refatcor: changed check isAlive to isDead
This commit is contained in:
@@ -244,7 +244,7 @@ bool World::CanPlaceBigTower(const glm::vec2& worldPos, PlayerID playerID) const
|
|||||||
void World::cleanDeadMobs() {
|
void World::cleanDeadMobs() {
|
||||||
for (std::size_t i = 0; i < m_Mobs.size(); i++) {
|
for (std::size_t i = 0; i < m_Mobs.size(); i++) {
|
||||||
MobPtr mob = m_Mobs[i];
|
MobPtr mob = m_Mobs[i];
|
||||||
if (!mob->isAlive()) {
|
if (mob->isDead()) {
|
||||||
mob->OnDeath(this);
|
mob->OnDeath(this);
|
||||||
|
|
||||||
//reward players
|
//reward players
|
||||||
|
|||||||
Reference in New Issue
Block a user