mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9666] Check max. honor points on characteacter login.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
3d7313a229
commit
4e81b6c98b
2 changed files with 6 additions and 2 deletions
|
|
@ -14840,7 +14840,11 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
|
|||
SetArenaTeamInfoField(arena_slot, ArenaTeamInfoType(j), 0);
|
||||
}
|
||||
|
||||
SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, fields[40].GetUInt32());
|
||||
uint32 honor_currency = fields[40].GetUInt32();
|
||||
if (honor_currency > sWorld.getConfig(CONFIG_UINT32_MAX_HONOR_POINTS))
|
||||
honor_currency = sWorld.getConfig(CONFIG_UINT32_MAX_HONOR_POINTS);
|
||||
SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, honor_currency);
|
||||
|
||||
SetUInt32Value(PLAYER_FIELD_TODAY_CONTRIBUTION, fields[41].GetUInt32());
|
||||
SetUInt32Value(PLAYER_FIELD_YESTERDAY_CONTRIBUTION, fields[42].GetUInt32());
|
||||
SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORBALE_KILLS, fields[43].GetUInt32());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9665"
|
||||
#define REVISION_NR "9666"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue