Deobfuscate a value without affecting ASM

Doing 'fx / 32 / 0x200' produces different assembly.
This commit is contained in:
Clownacy 2019-09-15 18:46:52 +01:00
parent bc5a9b2d9f
commit 602315fa39

View file

@ -179,7 +179,7 @@ void PutFront(int fx, int fy)
switch (gBack.type) switch (gBack.type)
{ {
case 3: case 3:
x_1 = fx / 0x4000; x_1 = fx / (32 * 0x200);
x_2 = x_1 + (((WINDOW_WIDTH + (32 - 1)) / 32) + 1); x_2 = x_1 + (((WINDOW_WIDTH + (32 - 1)) / 32) + 1);
y_1 = 0; y_1 = 0;
y_2 = y_1 + 32; y_2 = y_1 + 32;