Fixed a bunch of vehicle bugs - will probably change the way vehicles are being handled soon to account for other vehicle templates

This commit is contained in:
Seefo
2014-04-13 13:37:54 -04:00
parent c45e645a07
commit 1b1294136a
8 changed files with 108 additions and 24 deletions
+9
View File
@@ -763,6 +763,15 @@ public class SimulationService implements INetworkDispatch {
core.combatService.handleEndDuel(object, opponent, true);
}
}
System.out.print(object.getAttachment("activeVehicleID"));
if(object.getAttachment("activeVehicleID") != null)
{
if(object.isMounted()) object.getMountedVehicle().unmount(object);
long vehicleID = ((java.math.BigInteger) object.getAttachment("activeVehicleID")).longValue();
core.objectService.destroyObject(vehicleID);
object.setAttachment("activeVehicleID", null);
}
/*
object.createTransaction(core.getCreatureODB().getEnvironment());