diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-19 10:57:25 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-19 10:57:25 +0000 |
| commit | dd21ae1bc7a648138d33727628983a3b25a07570 (patch) | |
| tree | caf87523cda90c3a0fb235ea6e642765136d3f88 /src/game/client | |
| parent | 4eb71856948077b4c0cf9b5ef7178075433b7259 (diff) | |
| download | zcatch-dd21ae1bc7a648138d33727628983a3b25a07570.tar.gz zcatch-dd21ae1bc7a648138d33727628983a3b25a07570.zip | |
large commit. documented a bit. editor updates. general cleanup of everything
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/gc_client.cpp | 5 | ||||
| -rw-r--r-- | src/game/client/gc_console.cpp | 4 | ||||
| -rw-r--r-- | src/game/client/gc_hooks.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/gc_map_image.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/gc_menu.cpp | 6 | ||||
| -rw-r--r-- | src/game/client/gc_render.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/gc_render_map.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/gc_render_obj.cpp | 6 | ||||
| -rw-r--r-- | src/game/client/gc_skin.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/gc_ui.cpp | 2 |
10 files changed, 17 insertions, 16 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp index bbb00c27..f4af5cc3 100644 --- a/src/game/client/gc_client.cpp +++ b/src/game/client/gc_client.cpp @@ -7,6 +7,7 @@ extern "C" { #include <engine/e_config.h> #include <engine/client/ec_font.h> + #include <engine/e_client_interface.h> }; #include "../g_game.h" @@ -1140,7 +1141,7 @@ void render_game() // don't use predicted } else - local_character_pos = mix(predicted_prev_player.pos, predicted_player.pos, client_intrapredtick()); + local_character_pos = mix(predicted_prev_player.pos, predicted_player.pos, client_predintratick()); } else if(local_character && local_prev_character) { @@ -1211,7 +1212,7 @@ void render_game() for(int i = 0; i < inp_num_events(); i++) { - INPUTEVENT e = inp_get_event(i); + INPUT_EVENT e = inp_get_event(i); if (!(e.ch >= 0 && e.ch < 32)) { diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp index ddfb4b48..9cf417e2 100644 --- a/src/game/client/gc_console.cpp +++ b/src/game/client/gc_console.cpp @@ -2,7 +2,7 @@ extern "C" { #include <engine/e_system.h> - #include <engine/e_interface.h> + #include <engine/e_client_interface.h> #include <engine/e_config.h> #include <engine/e_console.h> #include <engine/client/ec_font.h> @@ -71,7 +71,7 @@ void console_handle_input() for(int i = 0; i < inp_num_events(); i++) { - INPUTEVENT e = inp_get_event(i); + INPUT_EVENT e = inp_get_event(i); if (e.key == KEY_F3) { diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index 34196eaa..3f45251e 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -1,6 +1,6 @@ #include <string.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> extern "C" { #include <engine/e_config.h> diff --git a/src/game/client/gc_map_image.cpp b/src/game/client/gc_map_image.cpp index ab4d9aa7..c2c695ba 100644 --- a/src/game/client/gc_map_image.cpp +++ b/src/game/client/gc_map_image.cpp @@ -1,6 +1,6 @@ /* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ #include <engine/e_system.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include <game/g_mapitems.h> #include "gc_map_image.h" diff --git a/src/game/client/gc_menu.cpp b/src/game/client/gc_menu.cpp index 09c55d9c..9b72d4b5 100644 --- a/src/game/client/gc_menu.cpp +++ b/src/game/client/gc_menu.cpp @@ -9,7 +9,7 @@ extern "C" { #include <engine/e_system.h> - #include <engine/e_interface.h> + #include <engine/e_client_interface.h> #include <engine/e_config.h> #include <engine/client/ec_font.h> } @@ -206,7 +206,7 @@ int ui_do_edit_box(void *id, const RECT *rect, char *str, int str_size, float fo for(int i = 0; i < inp_num_events(); i++) { - INPUTEVENT e = inp_get_event(i); + INPUT_EVENT e = inp_get_event(i); char c = e.ch; int k = e.key; @@ -415,7 +415,7 @@ int ui_do_key_reader(void *id, const RECT *rect, int key) { for(int i = 0; i < inp_num_events(); i++) { - INPUTEVENT e = inp_get_event(i); + INPUT_EVENT e = inp_get_event(i); if(e.key && e.key != KEY_ESC) { new_key = e.key; diff --git a/src/game/client/gc_render.cpp b/src/game/client/gc_render.cpp index 1999cb0a..91ae5662 100644 --- a/src/game/client/gc_render.cpp +++ b/src/game/client/gc_render.cpp @@ -1,6 +1,6 @@ /* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ #include <math.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include <engine/e_config.h> #include <game/generated/gc_data.h> #include <game/g_protocol.h> diff --git a/src/game/client/gc_render_map.cpp b/src/game/client/gc_render_map.cpp index 931fdd18..ec96f583 100644 --- a/src/game/client/gc_render_map.cpp +++ b/src/game/client/gc_render_map.cpp @@ -1,5 +1,5 @@ /* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include "../g_math.h" #include "gc_client.h" diff --git a/src/game/client/gc_render_obj.cpp b/src/game/client/gc_render_obj.cpp index ba248907..bdb4cfac 100644 --- a/src/game/client/gc_render_obj.cpp +++ b/src/game/client/gc_render_obj.cpp @@ -1,6 +1,6 @@ /* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ #include <math.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include <engine/e_config.h> #include "../generated/gc_data.h" #include "../g_protocol.h" @@ -202,7 +202,7 @@ void render_player( // apply predicted results predicted_player.write(&player); predicted_prev_player.write(&prev); - intratick = client_intrapredtick(); + intratick = client_predintratick(); } } @@ -254,7 +254,7 @@ void render_player( if(local_info && player_char->hooked_player == local_info->clientid) { hook_pos = mix(vec2(predicted_prev_player.pos.x, predicted_prev_player.pos.y), - vec2(predicted_player.pos.x, predicted_player.pos.y), client_intrapredtick()); + vec2(predicted_player.pos.x, predicted_player.pos.y), client_predintratick()); } else hook_pos = mix(vec2(prev_char->hook_x, prev_char->hook_y), vec2(player_char->hook_x, player_char->hook_y), client_intratick()); diff --git a/src/game/client/gc_skin.cpp b/src/game/client/gc_skin.cpp index ea215edd..6136f76f 100644 --- a/src/game/client/gc_skin.cpp +++ b/src/game/client/gc_skin.cpp @@ -2,7 +2,7 @@ #include <string.h> #include <stdio.h> #include <engine/e_system.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include "gc_skin.h" #include "../g_math.h" diff --git a/src/game/client/gc_ui.cpp b/src/game/client/gc_ui.cpp index 25693d02..a7580d5d 100644 --- a/src/game/client/gc_ui.cpp +++ b/src/game/client/gc_ui.cpp @@ -1,6 +1,6 @@ /* copyright (c) 2007 magnus auvinen, see licence.txt for more info */ #include <engine/e_system.h> -#include <engine/e_interface.h> +#include <engine/e_client_interface.h> #include <engine/e_config.h> #include "gc_ui.h" |