rnd-20061121-1-src
authorHolger Schemel <info@artsoft.org>
Mon, 20 Nov 2006 23:13:51 +0000 (00:13 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:53:46 +0000 (10:53 +0200)
* fixed nasty bug with initialization only done for the first player

ChangeLog
src/files.c

index 1990c249d13c03664b9f9b8003ea7e537f5bdc8b..dd4575c61f6269d74db66bf33f2c9576fd982af7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2006-11-21
+       * fixed nasty bug with initialization only done for the first player
+
 2006-11-19
        * small change to handle loading empty element/content list micro chunks
 
index 4dc5608aed5d1cf2560bbd941ae2a6783313074b..55645441fe065ae31f1a521af312d57e3b2d0f07 100644 (file)
@@ -2044,12 +2044,12 @@ static int LoadLevel_HEAD(FILE *file, int chunk_size, struct LevelInfo *level)
                                   STEPSIZE_NORMAL);
 
   for (i = 0; i < MAX_PLAYERS; i++)
-    level->initial_player_stepsize[0] = initial_player_stepsize;
+    level->initial_player_stepsize[i] = initial_player_stepsize;
 
   initial_player_gravity       = (getFile8Bit(file) == 1 ? TRUE : FALSE);
 
   for (i = 0; i < MAX_PLAYERS; i++)
-    level->initial_player_gravity[0] = initial_player_gravity;
+    level->initial_player_gravity[i] = initial_player_gravity;
 
   level->encoding_16bit_field  = (getFile8Bit(file) == 1 ? TRUE : FALSE);
   level->em_slippery_gems      = (getFile8Bit(file) == 1 ? TRUE : FALSE);