From 43ecb1e0e63774edc53c7cefc98b5c05155d4acd Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 30 Jun 2025 11:00:06 +0200 Subject: [PATCH] (micro)optimise downwards movement --- src/game/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game.c b/src/game/game.c index a9d6370..9581685 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -65,7 +65,7 @@ struct gamedata* game_init(void) { // called every time the game's state is updated void game_update(int movdat, size_t time) { 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); }