diff options
Diffstat (limited to 'source/cZombie.cpp')
-rw-r--r-- | source/cZombie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cZombie.cpp b/source/cZombie.cpp index 4530cc42f..62ba163e4 100644 --- a/source/cZombie.cpp +++ b/source/cZombie.cpp @@ -21,8 +21,8 @@ void cZombie::Tick(float a_Dt) cMonster::Tick(a_Dt);
//TODO Same as in cSkeleton :D
- if (GetWorld()->GetWorldTime() < (12000 + 1000) ) { //if daylight
- m_EMMetaState = BURNING; // BURN, BABY, BURN! >:D
+ if (GetWorld()->GetWorldTime() < (12000 + 1000) && GetMetaData() != BURNING) { //if daylight
+ SetMetaData(BURNING); // BURN, BABY, BURN! >:D
}
}
|