Found bug. Explosive box was increasing the ID.

This commit is contained in:
Pontus Fransson 2014-02-26 13:59:06 +01:00 committed by Dander7BD
parent 977920b360
commit c32871687e
1 changed files with 1 additions and 4 deletions

View File

@ -71,7 +71,7 @@ Object* Level::CreateGameObj(ObjectHeader* obj, ICustomBody* rigidBody)
Oyster::Math::Float dmg = 120; Oyster::Math::Float dmg = 120;
Oyster::Math::Float force = 500; Oyster::Math::Float force = 500;
Oyster::Math::Float radie = 3; 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; break;
//case ObjectSpecialType_BlueExplosiveBox: //case ObjectSpecialType_BlueExplosiveBox:
@ -228,9 +228,6 @@ bool Level::InitiateLevel(std::wstring levelPath)
std::string levelName = LevelObjData->levelName; std::string levelName = LevelObjData->levelName;
// LevelObjData->worldSize; // LevelObjData->worldSize;
//LevelMetaData is not an object.
--this->objIDCounter;
} }
break; break;
case ObjectType::ObjectType_Static: case ObjectType::ObjectType_Static: