git-svn-id: https://svn.eduke32.com/eduke32@7170 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-11-18 18:07:44 +00:00
parent 86496a8126
commit beafd13b1a

View file

@ -1729,14 +1729,16 @@ void OSD_Puts(const char *tmpstr)
//
void OSD_DispatchQueued(void)
{
if (!osd->history.exec) return;
if (!osd->history.exec)
return;
for (int cmd=osd->history.exec-1; cmd>=0; cmd--)
OSD_Dispatch((const char *)osd->history.buf[cmd]);
int cmd = osd->history.exec - 1;
osd->history.exec = 0;
}
for (; cmd >= 0; cmd--)
OSD_Dispatch((const char *)osd->history.buf[cmd]);
}
//
// OSD_Dispatch() -- Executes a command string