ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/request.C
(Generate patch)

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.73 by root, Wed Mar 14 00:04:59 2007 UTC vs.
Revision 1.74 by root, Wed Mar 14 01:19:10 2007 UTC

689 * to smooth a picture number given as argument. 689 * to smooth a picture number given as argument.
690 */ 690 */
691void 691void
692AskSmooth (char *buf, int len, client *ns) 692AskSmooth (char *buf, int len, client *ns)
693{ 693{
694 ns->send_smooth (atoi (buf)); 694 ns->send_face (atoi (buf));
695} 695}
696 696
697/** 697/**
698 * This handles the general commands from the client (ie, north, fire, cast, 698 * This handles the general commands from the client (ie, north, fire, cast,
699 * etc.) 699 * etc.)
1140 */ 1140 */
1141 if (ns.lastmap.cells[sx][sy].faces[layer] != face_num) 1141 if (ns.lastmap.cells[sx][sy].faces[layer] != face_num)
1142 { 1142 {
1143 ns.lastmap.cells[sx][sy].faces[layer] = face_num; 1143 ns.lastmap.cells[sx][sy].faces[layer] = face_num;
1144 1144
1145 if (!(ns.faces_sent[face_num] & NS_FACESENT_FACE)) 1145 if (!ns.faces_sent[face_num])
1146 if (ob) 1146 if (ob)
1147 ns.send_faces (ob); 1147 ns.send_faces (ob);
1148 else 1148 else
1149 ns.send_face (face_num); 1149 ns.send_face (face_num);
1150 1150
1192 else if (smoothlevel < 0) 1192 else if (smoothlevel < 0)
1193 smoothlevel = 0; 1193 smoothlevel = 0;
1194 1194
1195 if (ns.lastmap.cells[sx][sy].smooth[layer] != smoothlevel) 1195 if (ns.lastmap.cells[sx][sy].smooth[layer] != smoothlevel)
1196 { 1196 {
1197 if (smoothlevel)
1198 ns.send_smooth (ob->face);
1199
1200 ns.lastmap.cells[sx][sy].smooth[layer] = smoothlevel; 1197 ns.lastmap.cells[sx][sy].smooth[layer] = smoothlevel;
1201 sl << uint8 (smoothlevel); 1198 sl << uint8 (smoothlevel);
1202 return 1; 1199 return 1;
1203 } 1200 }
1204 1201

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines