… | |
… | |
689 | * to smooth a picture number given as argument. |
689 | * to smooth a picture number given as argument. |
690 | */ |
690 | */ |
691 | void |
691 | void |
692 | AskSmooth (char *buf, int len, client *ns) |
692 | AskSmooth (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 | |