* additions and cleanup [skip ci]
* disallow observers to change their faction and team [skip ci]
* disable observer slots from admin control
* when checkboxObserversAllowed is toggled, update correctly
* Also adjusted the labels better
* when scenario is checked, observer mode is disabled and extra slots are
closed
* attempted to add a feature that would allow the admin to change to a
different slot (doesn't work yet)
* graphics still needs some adjustment
* host can not go to a slot > mapInfo.maxPlayers
* when scenario xml file not present, don't err
For ZetaGlest/zetaglest-data#30
* remove 'else' clause
Accepted @andy5995 's scenario browser improvement (does not throw major error if scenario is malformed).
* This reverts part of 42541caab7d457d0c73f63ec6dc1e8816ceff704
* This fixes the bug from 42541caab7d457d0c73f63ec6dc1e8816ceff704
where if there 4 slots being used on a 4 player map, the game will crash
if an observer is in the 5th slot.
* The menu needs to be altered to accomodate the extra lines of text.
* There needs to be checks put in place so people in the extra slots can
only choose "observer" mode. If they choose a different faction, the
game will crash.
The positioning of the labels and text will need changing. I'm going to
ask @jammyjamjamman if he'll fix it up all nice and pretty.
* [wip] change how observer mode works (#13)
* [wip] opens 10 slots on any map [observer mode]
* [wip]set start location for observers [skip ci]
* [wip] new observer mode works with no crashing
I need to clean up the code more though. I only did the bare minimum to
change the way observer mode works.
now you can enable sharedTeamUnits and sharedTeamResources in scenarios
to do so use this two xml tags:
<shared-team-units value="false"/>
<shared-team-resources value="false"/>
put them in the <scenario> node
To claculate limitResourcesToStore() we need to first load all factions.
Else we get wrong results for limitResourcesToStore(), and by this sometimes
no food on startup, depending on the setup.
When playing with shared team units but not with shared resources, only
the resources of the selected faction is shown now. With shared resources all
resources of the team are shown like before.
Rendering ressources with two lines stays like before showing all resources in
team mode!