Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.

This commit is contained in:
Zack Middleton 2011-11-03 03:52:46 +00:00
parent 6283e552d4
commit b648d6f17b

View file

@ -1119,6 +1119,10 @@ void CL_InitUI( void ) {
VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE));
}
else if (v != UI_API_VERSION) {
// Free uivm now, so UI_SHUTDOWN doesn't get called later.
VM_Free( uivm );
uivm = NULL;
Com_Error( ERR_DROP, "User Interface is version %d, expected %d", v, UI_API_VERSION );
cls.uiStarted = qfalse;
}