1
This commit is contained in:
parent
9732a54a97
commit
feaddff103
@ -15,6 +15,7 @@
|
||||
#include "netdata.h"
|
||||
#include "hero.h"
|
||||
#include "obstacle.h"
|
||||
#include "car.h"
|
||||
|
||||
#include "mt/Buff.h"
|
||||
#include "mt/Skill.h"
|
||||
@ -344,6 +345,15 @@ void CallFuncBuff::ProcFlashMove()
|
||||
owner->SetPos(new_pos);
|
||||
Global::Instance()->verify_set_pos = 0;
|
||||
owner->room->grid_service->MoveCreature(owner);
|
||||
if (owner->IsCar()) {
|
||||
Car* car = owner->AsCar();
|
||||
if (car->GetDriver()) {
|
||||
Global::Instance()->verify_set_pos = 1;
|
||||
car->GetDriver()->SetPos(new_pos);
|
||||
car->SyncPos();
|
||||
Global::Instance()->verify_set_pos = 0;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user