renamed functions (after removing parameter in previous commit)
authorHolger Schemel <info@artsoft.org>
Tue, 30 Oct 2018 20:56:49 +0000 (21:56 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 1 Nov 2018 00:23:00 +0000 (01:23 +0100)
src/game.c

index 410fec92a79180a7c5b014b1c95e375750c3c171..7c151483999a4e80dab1dc57d82050ffdd7dd603 100644 (file)
@@ -1683,25 +1683,25 @@ int GetElementFromGroupElement(int element)
   return element;
 }
 
-static void IncrementPlayerSokobanFieldsNeeded(void)
+static void IncrementSokobanFieldsNeeded(void)
 {
   if (level.sb_fields_needed)
     local_player->sokoban_fields_still_needed++;
 }
 
-static void IncrementPlayerSokobanObjectsNeeded(void)
+static void IncrementSokobanObjectsNeeded(void)
 {
   if (level.sb_objects_needed)
     local_player->sokoban_objects_still_needed++;
 }
 
-static void DecrementPlayerSokobanFieldsNeeded(void)
+static void DecrementSokobanFieldsNeeded(void)
 {
   if (local_player->sokoban_fields_still_needed > 0)
     local_player->sokoban_fields_still_needed--;
 }
 
-static void DecrementPlayerSokobanObjectsNeeded(void)
+static void DecrementSokobanObjectsNeeded(void)
 {
   if (local_player->sokoban_objects_still_needed > 0)
     local_player->sokoban_objects_still_needed--;
@@ -1816,11 +1816,11 @@ static void InitField(int x, int y, boolean init_game)
       break;
 
     case EL_SOKOBAN_FIELD_EMPTY:
-      IncrementPlayerSokobanFieldsNeeded();
+      IncrementSokobanFieldsNeeded();
       break;
 
     case EL_SOKOBAN_OBJECT:
-      IncrementPlayerSokobanObjectsNeeded();
+      IncrementSokobanObjectsNeeded();
       break;
 
     case EL_STONEBLOCK:
@@ -13972,16 +13972,16 @@ static int DigField(struct PlayerInfo *player,
       {
        Back[x][y] = EL_SOKOBAN_FIELD_EMPTY;
 
-       IncrementPlayerSokobanFieldsNeeded();
-       IncrementPlayerSokobanObjectsNeeded();
+       IncrementSokobanFieldsNeeded();
+       IncrementSokobanObjectsNeeded();
       }
 
       if (Feld[nextx][nexty] == EL_SOKOBAN_FIELD_EMPTY)
       {
        Back[nextx][nexty] = EL_SOKOBAN_FIELD_EMPTY;
 
-       DecrementPlayerSokobanFieldsNeeded();
-       DecrementPlayerSokobanObjectsNeeded();
+       DecrementSokobanFieldsNeeded();
+       DecrementSokobanObjectsNeeded();
 
        // sokoban object was pushed from empty field to sokoban field
        if (Back[x][y] == EL_EMPTY)