[9179] Update formula for GameObject 'autoclose' time (dataN-field in _template)

This require database support/dataN-fields update for correct calculation of time (now in milliseconds)

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-01-15 00:43:10 +01:00
parent 98f3ed3d4b
commit c4b0406e7d
2 changed files with 2 additions and 2 deletions

View file

@ -477,7 +477,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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9178"
#define REVISION_NR "9179"
#endif // __REVISION_NR_H__