From: Holger Schemel Date: Sun, 4 Feb 2018 20:58:31 +0000 (+0100) Subject: fixed bug with variable defined as "long" that should be "int" in EM engine X-Git-Tag: 4.0.1.2~9 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=c92edfe90dcec71c4d01e435b2a1baba29d187cd fixed bug with variable defined as "long" that should be "int" in EM engine - this was apparently overseen when fixing the R'n'D code for 64-bit systems back in 2011 by replacing all "long" with "int" types (see commit 61c3da0) - this bug was open to the public since version 3.3.1.0 was released in 2013 - this bug has potentially broken all EM engine tapes containing amoeba - fixing this bug potentially breaks similar tapes between 2013 and now - tapes created before 3.3.1.0 and broken due to this bug should work again --- diff --git a/src/game_em/synchro_3.c b/src/game_em/synchro_3.c index 307d285e..ca83a820 100644 --- a/src/game_em/synchro_3.c +++ b/src/game_em/synchro_3.c @@ -13,7 +13,7 @@ void synchro_3(void) int x; int y; int count; - unsigned long random; + unsigned int random; /* update variables */