Fix constants bug

This commit is contained in:
Miloslav Číž 2020-09-28 21:49:15 +02:00
parent 0b6fe11e38
commit 535155a60d
2 changed files with 2 additions and 4 deletions

View File

@ -378,8 +378,8 @@
#define SFG_MAP_PIXEL_SIZE (SFG_GAME_RESOLUTION_Y / SFG_MAP_SIZE)
#if SFG_MAP_PIXEL_SIZE == 0
#undef SFG_MAP_SIZE
#define SFG_MAP_SIZE 1
#undef SFG_PIXEL_SIZE
#define SFG_PIXEL_SIZE 1
#endif
#define SFG_AI_UPDATE_FRAME_INTERVAL \

2
game.h
View File

@ -4313,8 +4313,6 @@ void SFG_drawWinOverlay()
RCL_Unit l = (t2 * STRIP_HEIGHT * 4) / SFG_WIN_ANIMATION_DURATION;
uint8_t n = (t * 5) / SFG_WIN_ANIMATION_DURATION;
for (uint16_t y = STRIP_START; y < STRIP_START + l; ++y)
for (uint16_t x = 0; x < SFG_GAME_RESOLUTION_X; ++x)
SFG_setGamePixel(x,y,