|
|
|
@ -3392,7 +3392,23 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
MWWorld::ManualRef ref(getStore(), selectedCreature, 1);
|
|
|
|
|
|
|
|
|
|
safePlaceObject(ref.getPtr(), getPlayerPtr(), getPlayerPtr().getCell(), 0, 220.f);
|
|
|
|
|
/*
|
|
|
|
|
Start of tes3mp change (major)
|
|
|
|
|
|
|
|
|
|
Send an ID_OBJECT_PLACE packet every time a random creature is spawned, then delete
|
|
|
|
|
the creature and wait for the server to send it back with a unique mpNum of its own
|
|
|
|
|
*/
|
|
|
|
|
MWWorld::Ptr ptr = safePlaceObject(ref.getPtr(), getPlayerPtr(), getPlayerPtr().getCell(), 0, 220.f);
|
|
|
|
|
|
|
|
|
|
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
|
|
|
|
worldEvent->reset();
|
|
|
|
|
worldEvent->addObjectPlace(ptr);
|
|
|
|
|
worldEvent->sendObjectPlace();
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWorld()->deleteObject(ptr);
|
|
|
|
|
/*
|
|
|
|
|
End of tes3mp change (major)
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|