summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-24 22:12:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-24 22:12:24 +0300
commite29cfffbcd79f5cc8d2beea5434a4594f2353187 (patch)
tree80793e81ad5c810e9161d98aa1bf1d0f5698d194 /src/map/map.c
parent371293407ca9937a03942a2f8e32f2eb7c87940c (diff)
downloadevol-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.c3
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;
}