diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-24 22:12:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-24 22:12:24 +0300 |
commit | e29cfffbcd79f5cc8d2beea5434a4594f2353187 (patch) | |
tree | 80793e81ad5c810e9161d98aa1bf1d0f5698d194 /src/map/map.c | |
parent | 371293407ca9937a03942a2f8e32f2eb7c87940c (diff) | |
download | evol-hercules-e29cfffbcd79f5cc8d2beea5434a4594f2353187.tar.gz evol-hercules-e29cfffbcd79f5cc8d2beea5434a4594f2353187.tar.bz2 evol-hercules-e29cfffbcd79f5cc8d2beea5434a4594f2353187.tar.xz evol-hercules-e29cfffbcd79f5cc8d2beea5434a4594f2353187.zip |
map: If FloorLifeTime < 0 put item on ground forever.
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 08ad216..5696723 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -37,7 +37,8 @@ int emap_addflooritem_post(int retVal, if (data) timeout = data->floorLifeTime; timer->delete(fitem->cleartimer, map->clearflooritem_timer); - fitem->cleartimer = timer->add(timer->gettick() + timeout, map->clearflooritem_timer, fitem->bl.id, 0); + if (timeout >= 0) + fitem->cleartimer = timer->add(timer->gettick() + timeout, map->clearflooritem_timer, fitem->bl.id, 0); } return retVal; } |