Mercurial > mm7
comparison Indoor.cpp @ 141:cca78efb377e
Constants -> enums
author | Nomad |
---|---|
date | Tue, 12 Feb 2013 03:02:13 +0200 |
parents | fe0e317c0de0 |
children | d65528fc3bda |
comparison
equal
deleted
inserted
replaced
140:f4d7a9a8c363 | 141:cca78efb377e |
---|---|
4219 v36 = stru_721530.uFaceID; | 4219 v36 = stru_721530.uFaceID; |
4220 v0->vPosition.z += (unsigned int)(stru_721530.field_7C * stru_721530.field_58.z) >> 16; | 4220 v0->vPosition.z += (unsigned int)(stru_721530.field_7C * stru_721530.field_58.z) >> 16; |
4221 v0->uSectorID = LOWORD(stru_721530.uSectorID); | 4221 v0->uSectorID = LOWORD(stru_721530.uSectorID); |
4222 stru_721530.field_70 += stru_721530.field_7C; | 4222 stru_721530.field_70 += stru_721530.field_7C; |
4223 v37 = v36 >> 3; | 4223 v37 = v36 >> 3; |
4224 if ( (v36 & 7) != 3 ) | 4224 if ( (v36 & 7) != OBJECT_Actor) |
4225 { | 4225 { |
4226 if ( (v36 & 7) != 4 ) | 4226 if ( (v36 & 7) != OBJECT_Player) |
4227 { | 4227 { |
4228 if ( (v36 & 7) == 5 ) | 4228 if ( (v36 & 7) == OBJECT_Decoration) |
4229 { | 4229 { |
4230 _this = sub_452A9E(v0->vVelocity.x * v0->vVelocity.x + v0->vVelocity.y * v0->vVelocity.y); | 4230 _this = sub_452A9E(v0->vVelocity.x * v0->vVelocity.x + v0->vVelocity.y * v0->vVelocity.y); |
4231 v45 = stru_5C6E00->Atan2( | 4231 v45 = stru_5C6E00->Atan2( |
4232 v0->vPosition.x - pLevelDecorations[v37].vPosition.x, | 4232 v0->vPosition.x - pLevelDecorations[v37].vPosition.x, |
4233 v0->vPosition.y - pLevelDecorations[v37].vPosition.y); | 4233 v0->vPosition.y - pLevelDecorations[v37].vPosition.y); |
4240 v48 = v47 * (signed __int64)(signed int)_this; | 4240 v48 = v47 * (signed __int64)(signed int)_this; |
4241 v56 = v48 >> 16; | 4241 v56 = v48 >> 16; |
4242 v0->vVelocity.y = WORD1(v48); | 4242 v0->vVelocity.y = WORD1(v48); |
4243 goto LABEL_119; | 4243 goto LABEL_119; |
4244 } | 4244 } |
4245 if ( (v36 & 7) == 6 ) | 4245 if ( (v36 & 7) == OBJECT_BModel) |
4246 { | 4246 { |
4247 stru_721530.field_84 = v36 >> 3; | 4247 stru_721530.field_84 = v36 >> 3; |
4248 v38 = &pIndoor->pFaces[v37]; | 4248 v38 = &pIndoor->pFaces[v37]; |
4249 if ( v38->uPolygonType == 3 ) | 4249 if ( v38->uPolygonType == 3 ) |
4250 { | 4250 { |