Mercurial > mm7
comparison mm7_5.cpp @ 91:471b1354cc73
previous commit fix
author | zipi |
---|---|
date | Wed, 06 Feb 2013 22:37:18 +0000 |
parents | d61f6bc04bf2 |
children | b7ff791b1333 |
comparison
equal
deleted
inserted
replaced
90:d61f6bc04bf2 | 91:471b1354cc73 |
---|---|
5088 if ( (signed int)uNumActors > 0 ) | 5088 if ( (signed int)uNumActors > 0 ) |
5089 { | 5089 { |
5090 v28 = pActors;//[0].vPosition.z; | 5090 v28 = pActors;//[0].vPosition.z; |
5091 do | 5091 do |
5092 { | 5092 { |
5093 if ( ((Actor *)(v28 - 146))->CanAct() ) | 5093 if ( v28->CanAct() ) |
5094 { | 5094 { |
5095 v29 = *(short *)v1; | 5095 v29 = *(short *)v1; |
5096 v30 = *(&v28->vPosition.y - *((short *)v1 - 100); | 5096 v30 = v28->vPosition.y - *((short *)v1 - 100); |
5097 a1 = *(&v28->vPosition.x - *((short *)v1 - 200); | 5097 a1 = v28->vPosition.x - *((short *)v1 - 200); |
5098 v31 = v28->vPosition.z; | 5098 v31 = v28->vPosition.z; |
5099 v48 = v30; | 5099 v48 = v30; |
5100 v44 = v31; | 5100 v44 = v31; |
5101 v32 = (v28->uActorHeight >> 1) - v29; | 5101 v32 = (v28->uActorHeight >> 1) - v29; |
5102 v33 = *(&v28->uActorRadius + *((short *)v1 + 100); | 5102 v33 = v28->uActorRadius + *((short *)v1 + 100); |
5103 if ( a1 * a1 + v48 * v48 + (v31 + v32) * (v31 + v32) < (unsigned int)(v33 * v33) ) | 5103 if ( a1 * a1 + v48 * v48 + (v31 + v32) * (v31 + v32) < (unsigned int)(v33 * v33) ) |
5104 { | 5104 { |
5105 v34.z = *(short *)v1; | 5105 v34.z = *(short *)v1; |
5106 v34.y = *((short *)v1 - 100); | 5106 v34.y = *((short *)v1 - 100); |
5107 v34.x = *((short *)v1 - 200); | 5107 v34.x = *((short *)v1 - 200); |