From ec10853f22694f322a62cc530d82d446e206b5ac Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Sat, 16 Jan 2010 19:31:49 +0300 Subject: [PATCH] Update formula for GameObject 'autoclose' time (dataN-field in_template), by NoFantasy. --HG-- branch : trunk --- src/game/GameObject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/GameObject.h b/src/game/GameObject.h index 8d378d5a96..16b5cd96f6 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -479,7 +479,7 @@ struct GameObjectInfo case GAMEOBJECT_TYPE_AREADAMAGE: autoCloseTime = areadamage.autoCloseTime; break; default: break; } - return autoCloseTime / 0x10000; + return autoCloseTime / IN_MILISECONDS; // prior to 3.0.3, conversion was / 0x10000; } uint32 GetLootId() const