mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- added more info to error message
This commit is contained in:
parent
6c62d675c3
commit
b65bdee592
@ -1518,7 +1518,7 @@ void World::initFactionTypes(GameSettings *gs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(gs->getFactionCount() > map.getMaxPlayers()) {
|
if(gs->getFactionCount() > map.getMaxPlayers()) {
|
||||||
throw megaglest_runtime_error("This map only supports "+intToStr(map.getMaxPlayers())+" players");
|
throw megaglest_runtime_error("This map only supports "+intToStr(map.getMaxPlayers())+" players, factionCount is " + intToStr(gs->getFactionCount()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//create stats
|
//create stats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user