Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.
This commit is contained in:
parent
6283e552d4
commit
b648d6f17b
1 changed files with 4 additions and 0 deletions
|
@ -1119,6 +1119,10 @@ void CL_InitUI( void ) {
|
||||||
VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE));
|
VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE));
|
||||||
}
|
}
|
||||||
else if (v != UI_API_VERSION) {
|
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 );
|
Com_Error( ERR_DROP, "User Interface is version %d, expected %d", v, UI_API_VERSION );
|
||||||
cls.uiStarted = qfalse;
|
cls.uiStarted = qfalse;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue