Exec autoexec.cfg everytime game changes.

I don't remember why we restricted it to client startup. The original
code executed it everytime when `game` changed... Revert to that
behavior. Look here if some problems come up. ;)

Closes #544.
This commit is contained in:
Yamagi 2020-04-21 14:06:16 +02:00
parent 5455ffa96f
commit 563ef16ee3

View file

@ -172,12 +172,14 @@ void Qcommon_ExecConfigs(qboolean gameStartUp)
Cbuf_AddText("exec default.cfg\n"); Cbuf_AddText("exec default.cfg\n");
Cbuf_AddText("exec yq2.cfg\n"); Cbuf_AddText("exec yq2.cfg\n");
Cbuf_AddText("exec config.cfg\n"); Cbuf_AddText("exec config.cfg\n");
Cbuf_AddText("exec autoexec.cfg\n");
if (gameStartUp) if (gameStartUp)
{ {
// only when the game is first started we execute autoexec.cfg and set the cvars from commandline /* Process cmd arguments only startup. */
Cbuf_AddText("exec autoexec.cfg\n");
Cbuf_AddEarlyCommands(true); Cbuf_AddEarlyCommands(true);
} }
Cbuf_Execute(); Cbuf_Execute();
} }