Mercurial > mm7
comparison mm7_4.cpp @ 1643:7182930263b3
fixpoint functions renaming
author | zipi |
---|---|
date | Tue, 17 Sep 2013 19:24:23 +0100 |
parents | afc1c3514dd5 |
children | 8251e59fd7c1 |
comparison
equal
deleted
inserted
replaced
1642:8971dc85b8fb | 1643:7182930263b3 |
---|---|
361 { | 361 { |
362 v9 = (v16 * stru_721530.direction.x + v15 * stru_721530.direction.y) >> 16; | 362 v9 = (v16 * stru_721530.direction.x + v15 * stru_721530.direction.y) >> 16; |
363 if ( v9 > 0 ) | 363 if ( v9 > 0 ) |
364 { | 364 { |
365 v10 = v1->vPosition.z; | 365 v10 = v1->vPosition.z; |
366 v11 = stru_721530.normal.z + fixpoint_sub0(stru_721530.direction.z, v9); | 366 v11 = stru_721530.normal.z + fixpoint_mul(stru_721530.direction.z, v9); |
367 if ( v11 >= v10 ) | 367 if ( v11 >= v10 ) |
368 { | 368 { |
369 if ( v11 <= v18 + v10 ) | 369 if ( v11 <= v18 + v10 ) |
370 { | 370 { |
371 v12 = v9 - integer_sqrt(v8 * v8 - v17 * v17); | 371 v12 = v9 - integer_sqrt(v8 * v8 - v17 * v17); |