mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Small progress with vehicles
This commit is contained in:
parent
204b61c220
commit
871d5f8c99
18 changed files with 175 additions and 21 deletions
|
|
@ -50,14 +50,14 @@ ObjectGridRespawnMover::Visit(CreatureMapType &m)
|
|||
{
|
||||
// creature in unloading grid can have respawn point in another grid
|
||||
// if it will be unloaded then it will not respawn in original grid until unload/load original grid
|
||||
// move to respwn point to prevent this case. For player view in respawn grid this wll be normal respawn.
|
||||
// move to respawn point to prevent this case. For player view in respawn grid this will be normal respawn.
|
||||
for(CreatureMapType::iterator iter=m.begin(), next; iter != m.end(); iter = next)
|
||||
{
|
||||
next = iter; ++next;
|
||||
|
||||
Creature * c = iter->getSource();
|
||||
|
||||
assert(!c->isPet() && "ObjectGridRespawnMover don't must be called for pets");
|
||||
assert((!c->isPet() || !c->isVehicle()) && "ObjectGridRespawnMover don't must be called for pets");
|
||||
|
||||
Cell const& cur_cell = c->GetCurrentCell();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue