engine: server: remove misleading message about interface version in case when GetEntityAPI2 has failed
Add message when GetEntityAPI was used instead
This commit is contained in:
parent
ea34bc8652
commit
f3208e95b2
1 changed files with 8 additions and 5 deletions
|
@ -5206,6 +5206,7 @@ qboolean SV_LoadProgs( const char *name )
|
|||
{
|
||||
if( !GetEntityAPI2( &svgame.dllFuncs, &version ))
|
||||
{
|
||||
if( INTERFACE_VERSION != version )
|
||||
Con_Printf( S_WARN "SV_LoadProgs: interface version %i should be %i\n", INTERFACE_VERSION, version );
|
||||
|
||||
// fallback to old API
|
||||
|
@ -5217,6 +5218,7 @@ qboolean SV_LoadProgs( const char *name )
|
|||
Mem_FreePool( &svgame.mempool );
|
||||
return false;
|
||||
}
|
||||
else Con_Reportf( "SV_LoadProgs: ^2initailized legacy EntityAPI ^7ver. %i\n", version );
|
||||
}
|
||||
else Con_Reportf( "SV_LoadProgs: ^2initailized extended EntityAPI ^7ver. %i\n", version );
|
||||
}
|
||||
|
@ -5228,6 +5230,7 @@ qboolean SV_LoadProgs( const char *name )
|
|||
Mem_FreePool( &svgame.mempool );
|
||||
return false;
|
||||
}
|
||||
else Con_Reportf( "SV_LoadProgs: ^2initailized legacy EntityAPI ^7ver. %i\n", version );
|
||||
|
||||
SV_InitOperatorCommands();
|
||||
Mod_InitStudioAPI();
|
||||
|
|
Loading…
Add table
Reference in a new issue