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 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: