From 7d8ea8914bc230d473f558116d932f26f2b5d055 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 18 Apr 2005 21:56:06 +0000 Subject: Fixed tileset loading to clear tilesets vector when finished. --- src/net/protocol.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/net') 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) { -- cgit v1.2.3-70-g09d2