Browse Source

Merge remote-tracking branch 'origin/feature/portal_logic' into feature/portal_logic

Kenneth van Ewijk 9 năm trước cách đây
mục cha
commit
656a904a4b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 	}
 }