| 310 | } |
| 311 | |
| 312 | static inline void GetPreRotatedPointFast(vector *dest, int x, int z, int yvalue) { |
| 313 | ASSERT(yvalue >= 0 && yvalue <= 255); |
| 314 | |
| 315 | // If the terrain is supposed to be flat, bash this to zero |
| 316 | #ifdef EDITOR |
| 317 | if (Flat_terrain) { |
| 318 | yvalue = 0; |
| 319 | } |
| 320 | #endif |
| 321 | |
| 322 | *dest = TS_PreRows[z]; |
| 323 | *dest += TS_RVectorAdd * x; |
| 324 | *dest += *GetDYVector(yvalue); |
| 325 | } |
| 326 | |
| 327 | void GetPreRotatedPoint(g3Point *dest, int x, int z, int yvalue) { |
| 328 | ASSERT(yvalue >= 0 && yvalue <= 255); |
no test coverage detected