1
This commit is contained in:
parent
4d4479fede
commit
ddba86168b
@ -284,6 +284,7 @@ void Car::SyncPos()
|
||||
hum->SetPos(GetPos());
|
||||
hum->SetMoveDir(GetMoveDir());
|
||||
room->grid_service->MoveCreature(hum);
|
||||
hum->SyncServerPos(kNormalReason);
|
||||
}
|
||||
}
|
||||
App::Instance()->verify_set_pos = 0;
|
||||
@ -634,6 +635,7 @@ void Car::Update(int delta_time)
|
||||
App::Instance()->verify_set_pos = 1;
|
||||
GetDriver()->SetPos(GetPos());
|
||||
App::Instance()->verify_set_pos = 0;
|
||||
GetDriver()->SyncServerPos(kNormalReason);
|
||||
}
|
||||
SyncPos();
|
||||
#ifdef MYDEBUG1
|
||||
|
Loading…
x
Reference in New Issue
Block a user