This allows the host of a custom game to switch himself to a slot >
mapInfo.hardMaxPlayers for the purpose of being an observer. The 10th
slot is enabled and editable (listBoxControls).
The 8 lines removed from menu_state_custom_game.cpp was some code I
tried last month and forgot to remove.
With enhanced observer mode, When a map is changed from 8 players to 4,
this switches factions 5-8 from Observer to British (used faction "0"
for the default, which translates to British in this situation) and
allows teams to be changed.
This adds a function to play a different sound when a server becomes
available.
The sound hasn't changed, but now the separate function has been added,
the sound can be changed very easily.
The ticket to create the new sound is at
https://github.com/ZetaGlest/zetaglest-data/issues/44
Can be customized by adding the variable to
$HOME/.zetaglest/glestuser.ini
closes#63
Fixes the travis build
```
/home/travis/build/ZetaGlest/zetaglest-source/source/g3d_viewer/../glest_game/global/core_data.h:132:40:
error: ‘>>’ should be ‘> >’ within a nested template argument list
FontChangedCallbackInterface *
>>registeredFontChangedCallbacks;```
This allows users to set their own sound effects using glestuser.ini
Any values from glest.ini can be used in glestuser.ini, and when in
glestuser.ini, they override the values in glest.ini.
Not yet documented.
This adds only 2 sfx, and shows how to do it.
This will change how #63 is done
This disables slots >= mapInfo.hardMaxPlayers from headless admin
control.
I forgot to check how the menu looked when connecting to a headless
server when I "completed" #13.
* 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).