diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-18 21:56:06 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-18 21:56:06 +0000 |
commit | 7d8ea8914bc230d473f558116d932f26f2b5d055 (patch) | |
tree | bf77bf707beb6a70b69d76dad7f19c0a69654c5f /src/net/protocol.cpp | |
parent | 708384a6b1fca22c6352deb79e52422266dc307e (diff) | |
download | mana-7d8ea8914bc230d473f558116d932f26f2b5d055.tar.gz mana-7d8ea8914bc230d473f558116d932f26f2b5d055.tar.bz2 mana-7d8ea8914bc230d473f558116d932f26f2b5d055.tar.xz mana-7d8ea8914bc230d473f558116d932f26f2b5d055.zip |
Fixed tileset loading to clear tilesets vector when finished.
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r-- | src/net/protocol.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index 94c4a5e1..d2f1bd77 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -197,7 +197,8 @@ void map_start() while (out_size > 0) flush(); } -void walk(unsigned short x, unsigned short y, unsigned char direction) { +void walk(unsigned short x, unsigned short y, unsigned char direction) +{ char temp[3]; set_coordinates(temp, x, y, direction); WFIFOW(0) = net_w_value(0x0085); @@ -205,7 +206,8 @@ void walk(unsigned short x, unsigned short y, unsigned char direction) { WFIFOSET(5); } -void speak(char *speech) { +void speak(char *speech) +{ int len = (int)strlen(speech); WFIFOW(0) = net_w_value(0x008c); WFIFOW(2) = net_w_value(len + 4); @@ -213,14 +215,16 @@ void speak(char *speech) { WFIFOSET(len + 4); } -void action(char type, int id) { +void action(char type, int id) +{ WFIFOW(0) = net_w_value(0x0089); WFIFOL(2) = net_l_value(id); WFIFOB(6) = net_b_value(type); WFIFOSET(7); } -void attack(unsigned short x, unsigned short y, unsigned char direction) { +void attack(unsigned short x, unsigned short y, unsigned char direction) +{ int monster_id = 0; if (direction == SOUTH) { |