… | |
… | |
1038 | |
1038 | |
1039 | check_map_change (pl); |
1039 | check_map_change (pl); |
1040 | prefetch_surrounding_maps (pl->ob); |
1040 | prefetch_surrounding_maps (pl->ob); |
1041 | |
1041 | |
1042 | /* do LOS after calls to update_position */ |
1042 | /* do LOS after calls to update_position */ |
|
|
1043 | if (ob != pl->ob) |
|
|
1044 | clear_los (pl); |
1043 | if (pl->do_los) |
1045 | else if (pl->do_los) |
1044 | { |
1046 | { |
1045 | update_los (ob); |
1047 | update_los (ob); |
1046 | pl->do_los = 0; |
1048 | pl->do_los = 0; |
1047 | } |
1049 | } |
1048 | |
1050 | |
… | |
… | |
1138 | continue; |
1140 | continue; |
1139 | } |
1141 | } |
1140 | |
1142 | |
1141 | m->touch (); |
1143 | m->touch (); |
1142 | |
1144 | |
1143 | int d = ob->contr->blocked_los[ax][ay]; |
1145 | int d = pl->blocked_los[ax][ay]; |
1144 | |
1146 | |
1145 | if (d > 3) |
1147 | if (d > 3) |
1146 | { |
1148 | { |
1147 | |
1149 | |
1148 | int need_send = 0, count; |
1150 | int need_send = 0, count; |
… | |
… | |
1308 | } |
1310 | } |
1309 | } |
1311 | } |
1310 | /* Top face */ |
1312 | /* Top face */ |
1311 | else if (update_space (sl, socket, ms, lastcell, 0)) |
1313 | else if (update_space (sl, socket, ms, lastcell, 0)) |
1312 | mask |= 0x1; |
1314 | mask |= 0x1; |
1313 | |
|
|
1314 | |
1315 | |
1315 | /* Check to see if we are in fact sending anything for this |
1316 | /* Check to see if we are in fact sending anything for this |
1316 | * space by checking the mask. If so, update the mask. |
1317 | * space by checking the mask. If so, update the mask. |
1317 | * if not, reset the len to that from before adding the mask |
1318 | * if not, reset the len to that from before adding the mask |
1318 | * value, so we don't send those bits. |
1319 | * value, so we don't send those bits. |