| 294 | } |
| 295 | |
| 296 | static inline vector *GetDYVector(int h) { |
| 297 | vector *dyp; |
| 298 | |
| 299 | dyp = &Terrain_y_cache[h]; |
| 300 | |
| 301 | if (!Terrain_y_flags[h]) { |
| 302 | vector up_vector = {0, h * TERRAIN_HEIGHT_INCREMENT, 0}; |
| 303 | |
| 304 | *dyp = up_vector * *TS_View_matrix; |
| 305 | |
| 306 | Terrain_y_flags[h] = 1; |
| 307 | } |
| 308 | |
| 309 | return dyp; |
| 310 | } |
| 311 | |
| 312 | static inline void GetPreRotatedPointFast(vector *dest, int x, int z, int yvalue) { |
| 313 | ASSERT(yvalue >= 0 && yvalue <= 255); |
no outgoing calls
no test coverage detected