(micro)optimise downwards movement

This commit is contained in:
2025-06-30 11:00:06 +02:00
parent 1ae6d936eb
commit 43ecb1e0e6

View File

@@ -65,7 +65,7 @@ struct gamedata* game_init(void) {
// called every time the game's state is updated // called every time the game's state is updated
void game_update(int movdat, size_t time) { void game_update(int movdat, size_t time) {
static time_t drop_timeout = 0; static time_t drop_timeout = 0;
movdat |= !!time_poll(time, 200, &drop_timeout) * MOVD; movdat |= MOVD & -!!time_poll(time, 200, &drop_timeout);
place_update(&dat, movdat); place_update(&dat, movdat);
} }