Skip to content

Commit

Permalink
[9179] Update formula for GameObject 'autoclose' time (dataN-field in…
Browse files Browse the repository at this point in the history
… _template)

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

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Jan 14, 2010
1 parent c62c2fa commit ab7811a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/GameObject.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9178"
#define REVISION_NR "9179"
#endif // __REVISION_NR_H__

0 comments on commit ab7811a

Please sign in to comment.