… | |
… | |
33 | LOS_YI = 0x02, |
33 | LOS_YI = 0x02, |
34 | }; |
34 | }; |
35 | |
35 | |
36 | struct los_info |
36 | struct los_info |
37 | { |
37 | { |
38 | sint8 xo, yo; // obscure angle |
38 | sint8 xo, yo; // obscure angle |
39 | sint8 xe, ye; // angle deviation |
39 | sint8 xe, ye; // angle deviation |
40 | uint8 culled; |
40 | uint8 culled; // culled from "tree" |
41 | uint8 queued; |
41 | uint8 queued; // already queued |
42 | uint8 visible; |
42 | uint8 visible; |
43 | uint8 flags; |
43 | uint8 flags; // LOS_XI/YI |
44 | }; |
44 | }; |
45 | |
45 | |
46 | // temporary storage for the los algorithm, |
46 | // temporary storage for the los algorithm, |
47 | // one los_info for each lightable map space |
47 | // one los_info for each lightable map space |
48 | static los_info los[MAP_CLIENT_X][MAP_CLIENT_Y]; |
48 | static los_info los[MAP_CLIENT_X][MAP_CLIENT_Y]; |