Merge pull request #1220 from dorkster/fixes

Fix glitched cooldown rendering on other slots when using two-step power
eliminate warnings
Merge pull request #1222 from igorko/master

eliminate warnings
Prefer int cast to floor()

Using floor() would break things if we encounter negative float values.