| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-03-05 13:51:14 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-03-05 13:51:14 +0100 | 
| commit | 6a82ead205f4463ee34cc4fcbc06f1b3e7b1dd1a (patch) | |
| tree | 6b9fa780865044b8c57800d48fe251e4dff2d6f6 /src/reply/add_char.erl | |
| parent | 10b1058e56079232728e3fc959709bc784e58b5b (diff) | |
Starting to work on the client diff messages.
Diffstat (limited to 'src/reply/add_char.erl')
| -rw-r--r-- | src/reply/add_char.erl | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/src/reply/add_char.erl b/src/reply/add_char.erl index 8518372..a920a2a 100644 --- a/src/reply/add_char.erl +++ b/src/reply/add_char.erl @@ -38,7 +38,7 @@ attributes_as_json (Attributes) ->     -> binary().  encode (IX, CharacterInstance, PlayerID) ->     Character = character_instance:get_character(CharacterInstance), -   {X, Y} = character_instance:get_location(CharacterInstance), +   Location = character_instance:get_location(CharacterInstance),     Attributes = character:get_attributes(Character),     {ActiveWeapon, SecondaryWeapon} = character:get_weapon_ids(Character),     OwnerID = character:get_owner_id(Character), @@ -55,8 +55,7 @@ encode (IX, CharacterInstance, PlayerID) ->                 <<"hea">>,                 character_instance:get_current_health(CharacterInstance)              }, -            {<<"lcx">>, X}, -            {<<"lcy">>, Y}, +            {<<"lc">>, location:encode(Location)},              {<<"pla">>, OwnerID},              {                 <<"ena">>, | 


