X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=64a7c1aa326f5e01b2ca0b1eb04a1b5992a622d6;hp=26cc84cc2a8a61d0e95a9cd347f74368a549ebff;hb=d12226d88f7873261e86fb3b32029c2da20301d3;hpb=d4c11da68a7271553ca5591adfae54fd3b45011f diff --git a/src/game.c b/src/game.c index 26cc84cc..64a7c1aa 100644 --- a/src/game.c +++ b/src/game.c @@ -99,6 +99,62 @@ /* to control special behaviour of certain game elements */ int game_emulation = EMU_NONE; + + + +#ifdef DEBUG +#if 1 +static unsigned int getStateCheckSum(int counter) +{ + int x, y; + unsigned int mult = 1; + unsigned int checksum = 0; + /* + static short lastFeld[MAX_LEV_FIELDX][MAX_LEV_FIELDY]; + */ + static boolean first_game = TRUE; + + for (y=0; ygone) { extern unsigned int last_RND(); @@ -3204,7 +3260,7 @@ void GameActions() last_RND(), getStateCheckSum(level.time - TimeLeft)); } - */ + #endif