diff options
Diffstat (limited to 'src/game/client/clienthooks.cpp')
| -rw-r--r-- | src/game/client/clienthooks.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/game/client/clienthooks.cpp b/src/game/client/clienthooks.cpp index 88a7722a..76fa8dcd 100644 --- a/src/game/client/clienthooks.cpp +++ b/src/game/client/clienthooks.cpp @@ -7,22 +7,21 @@ - // clean hooks -extern "C" void modc_entergame() {} -extern "C" void modc_shutdown() {} -extern "C" void modc_console_init() { gameclient.on_console_init(); } -extern "C" void modc_save_config() { gameclient.on_save(); } -extern "C" void modc_init() { gameclient.on_init(); } -extern "C" void modc_connected() { gameclient.on_connected(); } -extern "C" void modc_predict() { gameclient.on_predict(); } -extern "C" void modc_newsnapshot() { gameclient.on_snapshot(); } -extern "C" int modc_snap_input(int *data) { return gameclient.on_snapinput(data); } -extern "C" void modc_statechange(int state, int old) { gameclient.on_statechange(state, old); } -extern "C" void modc_render() { gameclient.on_render(); } -extern "C" void modc_message(int msgtype) { gameclient.on_message(msgtype); } -extern "C" void modc_rcon_line(const char *line) { gameclient.console->print_line(1, line); } +void modc_entergame() {} +void modc_shutdown() {} +void modc_console_init() { gameclient.on_console_init(); } +void modc_save_config() { gameclient.on_save(); } +void modc_init() { gameclient.on_init(); } +void modc_connected() { gameclient.on_connected(); } +void modc_predict() { gameclient.on_predict(); } +void modc_newsnapshot() { gameclient.on_snapshot(); } +int modc_snap_input(int *data) { return gameclient.on_snapinput(data); } +void modc_statechange(int state, int old) { gameclient.on_statechange(state, old); } +void modc_render() { gameclient.on_render(); } +void modc_message(int msgtype) { gameclient.on_message(msgtype); } +void modc_rcon_line(const char *line) { gameclient.console->print_line(1, line); } -extern "C" const char *modc_net_version() { return GAME_NETVERSION; } -extern "C" const char *modc_getitemname(int type) { return netobj_get_name(type); } +const char *modc_net_version() { return GAME_NETVERSION; } +const char *modc_getitemname(int type) { return netobj_get_name(type); } |