diff options
Diffstat (limited to '')
-rw-r--r-- | source/cSkeleton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cSkeleton.cpp b/source/cSkeleton.cpp index ea1fd5a77..77a0984de 100644 --- a/source/cSkeleton.cpp +++ b/source/cSkeleton.cpp @@ -22,8 +22,8 @@ void cSkeleton::Tick(float a_Dt) //TODO Outsource
//TODO should do lightcheck, not daylight -> mobs in the dark donīt burn
- 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
}
}
|