summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-06-22 14:49:47 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-06-22 14:49:47 +0200
commit1bcde2b23a273c7ff6c5b5ea5346111084e01700 (patch)
tree9c20ff8a5d48deeb65b50e46e5c8d73a341f23a7 /src/battlemap/reply
parenta76d6919142fed58bbe20031591d31f8bec08bb6 (diff)
Removes obsolete sanity checks.
Diffstat (limited to 'src/battlemap/reply')
-rw-r--r--src/battlemap/reply/bm_add_char.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/battlemap/reply/bm_add_char.erl b/src/battlemap/reply/bm_add_char.erl
index 227c93a..d7b76c3 100644
--- a/src/battlemap/reply/bm_add_char.erl
+++ b/src/battlemap/reply/bm_add_char.erl
@@ -40,15 +40,10 @@ attributes_as_json (Attributes) ->
)
-> {list(any())}.
generate (IX, Character, PlayerID) ->
- IsAlive = bm_character:get_is_alive(Character),
Attributes = bm_character:get_attributes(Character),
{ActiveWeapon, SecondaryWeapon} = bm_character:get_weapon_ids(Character),
OwnerID = bm_character:get_owner_id(Character),
- Location =
- case IsAlive of
- true -> bm_character:get_location(Character);
- _ -> bm_location:get_nowhere()
- end,
+ Location = bm_character:get_location(Character),
{
[