mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Also compile for client.dll
Mask it off for client.dll as well.
This commit is contained in:
parent
f6df34d68d
commit
1051b3a427
@ -394,12 +394,10 @@ void ConCommand::InitShipped(void)
|
||||
///------------------------------------------------------ [ CALLBACK SWAP ]
|
||||
//-------------------------------------------------------------------------
|
||||
// ENGINE DLL |
|
||||
#ifndef CLIENT_DLL
|
||||
ConCommand* changelevel = g_pCVar->FindCommand("changelevel");
|
||||
ConCommand* map = g_pCVar->FindCommand("map");
|
||||
ConCommand* map_background = g_pCVar->FindCommand("map_background");
|
||||
ConCommand* ss_map = g_pCVar->FindCommand("ss_map");
|
||||
#endif // !CLIENT_DLL
|
||||
ConCommand* migrateme = g_pCVar->FindCommand("migrateme");
|
||||
ConCommand* help = g_pCVar->FindCommand("help");
|
||||
ConCommand* convar_list = g_pCVar->FindCommand("convar_list");
|
||||
@ -418,15 +416,14 @@ void ConCommand::InitShipped(void)
|
||||
convar_list->m_fnCommandCallback = CVList_f;
|
||||
convar_differences->m_fnCommandCallback = CVDiff_f;
|
||||
convar_findByFlags->m_fnCommandCallback = CVFlag_f;
|
||||
|
||||
#ifndef CLIENT_DLL
|
||||
changelevel->m_fnCommandCallback = Host_Changelevel_f;
|
||||
#endif // !CLIENT_DLL
|
||||
changelevel->m_fnCompletionCallback = Host_Changelevel_f_CompletionFunc;
|
||||
|
||||
map->m_fnCompletionCallback = Host_Map_f_CompletionFunc;
|
||||
map_background->m_fnCompletionCallback = Host_Background_f_CompletionFunc;
|
||||
ss_map->m_fnCompletionCallback = Host_SSMap_f_CompletionFunc;
|
||||
#endif // !CLIENT_DLL
|
||||
|
||||
#ifndef DEDICATED
|
||||
mat_crosshair->m_fnCommandCallback = Mat_CrossHair_f;
|
||||
@ -469,12 +466,10 @@ void ConCommand::InitShipped(void)
|
||||
convar_findByFlags->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||
help->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||
migrateme->RemoveFlags(FCVAR_SERVER_CAN_EXECUTE);
|
||||
#ifndef CLIENT_DLL
|
||||
changelevel->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||
map->RemoveFlags(FCVAR_DEVELOPMENTONLY|FCVAR_SERVER_CAN_EXECUTE);
|
||||
map_background->RemoveFlags(FCVAR_DEVELOPMENTONLY|FCVAR_SERVER_CAN_EXECUTE);
|
||||
ss_map->RemoveFlags(FCVAR_DEVELOPMENTONLY|FCVAR_SERVER_CAN_EXECUTE);
|
||||
#endif // !CLIENT_DLL
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user