--- deliantra/server/socket/request.C 2006/12/19 05:12:52 1.46 +++ deliantra/server/socket/request.C 2006/12/20 01:19:11 1.47 @@ -721,10 +721,9 @@ ns->faces_sent[face] |= NS_FACESENT_SMOOTH; - packet sl; + packet sl ("smooth"); - sl << "smooth " - << uint16 (face) + sl << uint16 (face) << uint16 (smoothface); ns->send_packet (sl); @@ -811,8 +810,8 @@ : time = (int) (MAX_TIME / FABS (pl->ob->speed)); /* Send confirmation of command execution now */ - packet sl; - sl << "comc " << uint16 (cmdid) << uint32 (time); + packet sl ("comc"); + sl << uint16 (cmdid) << uint32 (time); pl->socket->send_packet (sl); } @@ -1035,8 +1034,7 @@ char buf[MAX_BUF]; uint16 flags; - packet sl; - sl << "stats "; + packet sl ("stats"); if (pl->ob) { @@ -1129,8 +1127,7 @@ { pl->last_weight = weight; - packet sl; - sl << "player "; + packet sl ("player"); sl << uint32 (pl->ob->count) << uint32 (weight) @@ -1161,10 +1158,9 @@ return; } - packet sl; + packet sl ("anim"); - sl << "anim " - << uint16 (anim_num) + sl << uint16 (anim_num) << uint16 (0); /* flags - not used right now */ /* Build up the list of faces. Also, send any information (ie, the @@ -1620,10 +1616,9 @@ check_map_change (pl->contr); - packet sl; + packet sl (socket.mapmode == Map1Cmd ? "map1" : "map1a"); packet esl; - sl << (socket.mapmode == Map1Cmd ? "map1 " : "map1a "); startlen = sl.length (); /*Extendedmapinfo structure initialisation */ @@ -2177,10 +2172,9 @@ return; } - packet sl; + packet sl ("delspell"); - sl << "delspell " - << uint32 (spell->count); + sl << uint32 (spell->count); pl->socket->send_packet (sl); } @@ -2243,8 +2237,7 @@ if (!pl->socket->monitor_spells) return; - packet sl; - sl << "addspell "; + packet sl ("addspell"); if (!spell) {