Changed DOIds to be safer, added reusableIds

DOIds are still 100% needed for instances.

ReusableIds will be ideal for staticService and many other locations
where you know the object is only temporary to that session.
This commit is contained in:
Treeku
2014-08-25 21:24:23 +01:00
parent 326963f96e
commit 1dd7d712a3
3 changed files with 109 additions and 6 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ public class StaticService implements INetworkDispatch {
}
//long objectId = core.objectService.getDOId(planetName, template, 0, buildingId, cellNumber, x, y, z);
long objectId = 0;
long objectId = core.objectService.getReusableId();
//long objectId = 0;
SWGObject object = null;
MobileTemplate mobileTemplate = core.spawnService.getMobileTemplate(template);