Mercurial > mm7
comparison mm7_2.cpp @ 2195:70b63fe6587c
fixing a few bugs reported by PVS
author | Grumpy7 |
---|---|
date | Thu, 30 Jan 2014 23:03:04 +0100 |
parents | 48a28fe1f32f |
children | 42c8807225a2 |
comparison
equal
deleted
inserted
replaced
2194:d0e321190c86 | 2195:70b63fe6587c |
---|---|
1226 pMonster->vInitialPosition.x = spawn->vPosition.x; | 1226 pMonster->vInitialPosition.x = spawn->vPosition.x; |
1227 pMonster->vPosition.x = spawn->vPosition.x; | 1227 pMonster->vPosition.x = spawn->vPosition.x; |
1228 pMonster->uTetherDistance = 256; | 1228 pMonster->uTetherDistance = 256; |
1229 pMonster->vInitialPosition.y = a4; | 1229 pMonster->vInitialPosition.y = a4; |
1230 pMonster->vPosition.y = a4; | 1230 pMonster->vPosition.y = a4; |
1231 pTexture = 0; | |
1232 pMonster->vInitialPosition.z = a3; | 1231 pMonster->vInitialPosition.z = a3; |
1233 pMonster->vPosition.z = a3; | 1232 pMonster->vPosition.z = a3; |
1234 pMonster->uSectorID = pSector; | 1233 pMonster->uSectorID = pSector; |
1235 pMonster->uGroup = spawn->uGroup; | 1234 pMonster->uGroup = spawn->uGroup; |
1236 pMonster->PrepareSprites((char)pTexture); | 1235 pMonster->PrepareSprites(0); |
1237 pMonster->pMonsterInfo.uHostilityType = MonsterInfo::Hostility_Friendly; | 1236 pMonster->pMonsterInfo.uHostilityType = MonsterInfo::Hostility_Friendly; |
1238 v32 = rand(); | 1237 v32 = rand(); |
1239 a3 = fixpoint_mul(stru_5C6E00->Cos(v32 % 2048), v52); | 1238 a3 = fixpoint_mul(stru_5C6E00->Cos(v32 % 2048), v52); |
1240 pPosX = a3 + spawn->vPosition.x; | 1239 pPosX = a3 + spawn->vPosition.x; |
1241 a3 = fixpoint_mul(stru_5C6E00->Sin(v32 % 2048), v52); | 1240 a3 = fixpoint_mul(stru_5C6E00->Sin(v32 % 2048), v52); |