mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 19:37:04 +00:00
[10782] Use Team enum types in all appropriate cases and catches bug in result fix.
* Fixed wrong arenaid use at leave arena queue. * Fixed memory lost and etc at not virtual EndBattleground call * Fixed crash at arena join with fake data from client. * Code cleanups.
This commit is contained in:
parent
c2331f58bc
commit
cc0655a402
38 changed files with 315 additions and 321 deletions
|
|
@ -519,16 +519,12 @@ enum Language
|
|||
|
||||
#define LANGUAGES_COUNT 19
|
||||
|
||||
// In fact !=0 values is alliance/horde root faction ids
|
||||
enum Team
|
||||
{
|
||||
TEAM_NONE = 0, // used when team value unknown or not set, 0 is also meaning that can be used !team check
|
||||
HORDE = 67,
|
||||
ALLIANCE = 469,
|
||||
//TEAM_STEAMWHEEDLE_CARTEL = 169, // not used in code
|
||||
//TEAM_ALLIANCE_FORCES = 891,
|
||||
//TEAM_HORDE_FORCES = 892,
|
||||
//TEAM_SANCTUARY = 936,
|
||||
//TEAM_OUTLAND = 980,
|
||||
//TEAM_OTHER = 0, // if ReputationListId > 0 && Flags != FACTION_FLAG_TEAM_HEADER
|
||||
};
|
||||
|
||||
enum SpellEffects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue