mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
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:
parent
5455ffa96f
commit
563ef16ee3
1 changed files with 5 additions and 3 deletions
|
@ -172,12 +172,14 @@ void Qcommon_ExecConfigs(qboolean gameStartUp)
|
|||
Cbuf_AddText("exec default.cfg\n");
|
||||
Cbuf_AddText("exec yq2.cfg\n");
|
||||
Cbuf_AddText("exec config.cfg\n");
|
||||
Cbuf_AddText("exec autoexec.cfg\n");
|
||||
|
||||
if (gameStartUp)
|
||||
{
|
||||
// only when the game is first started we execute autoexec.cfg and set the cvars from commandline
|
||||
Cbuf_AddText("exec autoexec.cfg\n");
|
||||
/* Process cmd arguments only startup. */
|
||||
Cbuf_AddEarlyCommands(true);
|
||||
}
|
||||
|
||||
Cbuf_Execute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue