diff options
Diffstat (limited to 'src/game/server/entities')
| -rw-r--r-- | src/game/server/entities/character.cpp | 6 | ||||
| -rw-r--r-- | src/game/server/entities/character.hpp | 2 |
2 files changed, 4 insertions, 4 deletions
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); |