X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame.c;h=64a7c1aa326f5e01b2ca0b1eb04a1b5992a622d6;hb=d12226d88f7873261e86fb3b32029c2da20301d3;hp=26cc84cc2a8a61d0e95a9cd347f74368a549ebff;hpb=0918c3eb2f6219a8cc72aa85bd9c4889788dd474;p=rocksndiamonds.git 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