Commit e22f836
committed
Fix concatenation of timed GUI commands
In idWindow::AddCommand() if a command already exists, it will add " ; "
and then the additional command. This works.
idWindow::Time() also does a concatenation for commands
on gui->GetPendingCmd(), but so far did did not add anything in between
the commands. If that actually happened, an invalid command string would
be used later. To fix this I also add " ; " between the commands now.
Also did some little tweaks to only do this if actually adding a command
This bug became obvious in the Hexen: Edge Of Chaos ("eoc") mod, when
returning to the main menu sometimes you'd get
"WARNING: Couldn't load sound 'hexen_mainmenuplay.wav' using default"
because the commands "music hexen_mainmenu" and "play hexen_fire_menu"
got concatenated.1 parent 0bafb95 commit e22f836
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
1118 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1119 | 1124 | | |
1120 | 1125 | | |
1121 | 1126 | | |
| |||
0 commit comments