Quote:
Originally Posted by KLS
btw there's already a function to tell if the corpse is empty: Corpse::IsEmpty() =p
|
LOL, that's what I get for not looking through the function list very carefully. It seems as though IsEmpty() is only used for the PERL interface right now.
Ignore the above and use this until KLS tells us how it's actually supposed to be done in one line probably :p~
Code:
if (IsEmpty())
corpse_decay_timer.SetTimer(5000);