From a91fecae920e1b6d9ca3dbdbf6251c11bd751d7c Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 17 Oct 2008 21:16:23 +0000 Subject: fixed fetching of server info and corrected some spelling errors --- src/game/server/entities/character.cpp | 6 +++--- src/game/server/entities/character.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/server/entities') diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 539e250d..4ef7cc78 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -833,9 +833,9 @@ bool CHARACTER::take_damage(vec2 force, int dmg, int from, int weapon) return true; } -void CHARACTER::snap(int snaping_client) +void CHARACTER::snap(int snapping_client) { - if(networkclipped(snaping_client)) + if(networkclipped(snapping_client)) return; NETOBJ_CHARACTER *character = (NETOBJ_CHARACTER *)snap_new_item(NETOBJTYPE_CHARACTER, player->client_id, sizeof(NETOBJ_CHARACTER)); @@ -862,7 +862,7 @@ void CHARACTER::snap(int snaping_client) character->direction = input.direction; - if(player->client_id == snaping_client) + if(player->client_id == snapping_client) { character->health = health; character->armor = armor; diff --git a/src/game/server/entities/character.hpp b/src/game/server/entities/character.hpp index 818cebdf..bfb9d8c2 100644 --- a/src/game/server/entities/character.hpp +++ b/src/game/server/entities/character.hpp @@ -118,7 +118,7 @@ public: virtual void tick(); virtual void tick_defered(); - virtual void snap(int snaping_client); + virtual void snap(int snapping_client); bool increase_health(int amount); bool increase_armor(int amount); -- cgit 1.4.1