Sfoglia il codice sorgente

player crystals refresh

Remco 9 anni fa
parent
commit
71801a30f2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      WorldHandler.cpp

+ 2 - 0
WorldHandler.cpp

@@ -126,6 +126,7 @@ void WorldHandler::NextWorld()
 	if (!loadingWorld)
 	{
 		ChangeWorld(worldIndex + 1);
+		Player::getInstance()->crystals = 0;
 	}
 }
 
@@ -134,5 +135,6 @@ void WorldHandler::PreviousWorld()
 	if (!loadingWorld)
 	{
 		ChangeWorld(worldIndex - 1);
+		Player::getInstance()->crystals = 0;
 	}
 }