1
This commit is contained in:
parent
ce74ce5d61
commit
f80f1451bf
@ -162,8 +162,10 @@ void Room::Update(int delta_time)
|
||||
pair.second->Update(50);
|
||||
}
|
||||
for (auto& pair : task_hash_) {
|
||||
if (!pair.second->IsDone()) {
|
||||
pair.second->Update(50);
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG1
|
||||
end_tick = a8::XGetTickCount();
|
||||
if (a8::XGetTickCount() - begin_tick > 1000) {
|
||||
|
@ -89,7 +89,7 @@ void VirtualBullet::Update(int delta_time)
|
||||
|
||||
bool VirtualBullet::IsDone()
|
||||
{
|
||||
return false;
|
||||
return later_removed_;
|
||||
}
|
||||
|
||||
void VirtualBullet::Check(float distance)
|
||||
@ -271,7 +271,7 @@ void VirtualBullet::OnHit(std::set<Entity*>& objects)
|
||||
|
||||
void VirtualBullet::Init()
|
||||
{
|
||||
|
||||
room->grid_service->GetAllCellsByXy(room, GetPos().x, GetPos().y, grid_list_);
|
||||
}
|
||||
|
||||
bool VirtualBullet::TestCollision(Room* room, Entity* b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user