From c32871687e7e0f0177c4be9672b38c152f6ce845 Mon Sep 17 00:00:00 2001 From: Pontus Fransson Date: Wed, 26 Feb 2014 13:59:06 +0100 Subject: [PATCH] Found bug. Explosive box was increasing the ID. --- Code/Game/GameLogic/Level.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Code/Game/GameLogic/Level.cpp b/Code/Game/GameLogic/Level.cpp index 56c0e21c..3fa39829 100644 --- a/Code/Game/GameLogic/Level.cpp +++ b/Code/Game/GameLogic/Level.cpp @@ -71,7 +71,7 @@ Object* Level::CreateGameObj(ObjectHeader* obj, ICustomBody* rigidBody) Oyster::Math::Float dmg = 120; Oyster::Math::Float force = 500; Oyster::Math::Float radie = 3; - gameObj = new ExplosiveCrate(rigidBody, (ObjectSpecialType)obj->specialTypeID, objIDCounter++, dmg, force, radie); + gameObj = new ExplosiveCrate(rigidBody, (ObjectSpecialType)obj->specialTypeID, objIDCounter, dmg, force, radie); } break; //case ObjectSpecialType_BlueExplosiveBox: @@ -228,9 +228,6 @@ bool Level::InitiateLevel(std::wstring levelPath) std::string levelName = LevelObjData->levelName; // LevelObjData->worldSize; - - //LevelMetaData is not an object. - --this->objIDCounter; } break; case ObjectType::ObjectType_Static: