mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9194] Implement default min player per team at BG same as max players.
This let use now default requirement for not set in `battleground_template` min/max values (or =0) In other cases just set expected data into template table.
This commit is contained in:
parent
0a1dd54b7f
commit
ccbf14d4ac
2 changed files with 2 additions and 2 deletions
|
|
@ -1688,7 +1688,7 @@ void BattleGroundMgr::CreateInitialBattleGrounds()
|
||||||
if (MaxPlayersPerTeam == 0 || MinPlayersPerTeam == 0 || MinPlayersPerTeam > MaxPlayersPerTeam)
|
if (MaxPlayersPerTeam == 0 || MinPlayersPerTeam == 0 || MinPlayersPerTeam > MaxPlayersPerTeam)
|
||||||
{
|
{
|
||||||
MaxPlayersPerTeam = bl->maxplayersperteam;
|
MaxPlayersPerTeam = bl->maxplayersperteam;
|
||||||
MinPlayersPerTeam = bl->maxplayersperteam / 2;
|
MinPlayersPerTeam = bl->maxplayersperteam; // by default now expected strong full bg requirement
|
||||||
}
|
}
|
||||||
if (MinLvl == 0 || MaxLvl == 0 || MinLvl > MaxLvl)
|
if (MinLvl == 0 || MaxLvl == 0 || MinLvl > MaxLvl)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9193"
|
#define REVISION_NR "9194"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue