Oops, this should be an int too

This commit is contained in:
Pk11
2021-01-20 15:55:18 -06:00
parent 584afd74c2
commit dd9f8cd54c
+1 -1
View File
@@ -110,7 +110,7 @@ void Image::drawSpecial(int x, int y, bool top, int layer, float scaleX, float s
// If the scale is 1 use faster integer math
if(scaleX == 1.0f && scaleY == 1.0f) {
for(int i = 0; i < _height; i++) {
for(float j = 0; j < _width; j++) {
for(int j = 0; j < _width; j++) {
u8 px = _bitmap[i * _width + j];
if(_palette[px - _palOfs] & 0x8000)
toncset(dst + i * 256 + j, px + paletteOffset, 1);