| 2141 | } |
| 2142 | if (!unit) |
| 2143 | { |
| 2144 | return; |
| 2145 | } |
| 2146 | |
| 2147 | int dir = where / N_MOVE_DIST; |
| 2148 | int dist = where - dir * N_MOVE_DIST; |
| 2149 | float angle = (2 * H_PI / N_MOVE_DIR) * dir; |
| 2150 | float distance = 0; |
| 2151 | switch (dist) |
| 2152 | { |
| 2153 | case 0: |
| 2154 | distance = 50; |
nothing calls this directly
no test coverage detected