Mercurial > mm7
comparison stru10.cpp @ 1545:c4ab816fcc5e
assert, Abortf, AbortWithError -> Assert, Error
refactors here and there
author | Nomad |
---|---|
date | Sat, 07 Sep 2013 20:05:20 +0200 |
parents | a109bb203e28 |
children | afc1c3514dd5 |
comparison
equal
deleted
inserted
replaced
1544:499761153844 | 1545:c4ab816fcc5e |
---|---|
1 #include <assert.h> | |
2 | |
3 #include "stru10.h" | 1 #include "stru10.h" |
4 #include "Render.h" | 2 #include "Render.h" |
5 #include "Indoor.h" | 3 #include "Indoor.h" |
6 #include "Game.h" | 4 #include "Game.h" |
7 #include "Party.h" | 5 #include "Party.h" |
6 #include "ErrorHandling.h" | |
8 | 7 |
9 #include "mm7_data.h" | 8 #include "mm7_data.h" |
10 | 9 |
11 | 10 |
12 | 11 |
79 } | 78 } |
80 | 79 |
81 //----- (0049CE9E) -------------------------------------------------------- | 80 //----- (0049CE9E) -------------------------------------------------------- |
82 void stru10::_49CE9E(BLVFace *pFace, RenderVertexSoft *pVertices, unsigned int uNumVertices, RenderVertexSoft *pOutLimits) | 81 void stru10::_49CE9E(BLVFace *pFace, RenderVertexSoft *pVertices, unsigned int uNumVertices, RenderVertexSoft *pOutLimits) |
83 { | 82 { |
84 assert(sizeof(RenderVertexSoft) == 0x30); | 83 Assert(sizeof(RenderVertexSoft) == 0x30); |
85 | 84 |
86 RenderVertexSoft pLimits[64]; | 85 RenderVertexSoft pLimits[64]; |
87 stru10::CalcPolygonLimits(pFace, pLimits); | 86 stru10::CalcPolygonLimits(pFace, pLimits); |
88 | 87 |
89 if (pFace->uAttributes & FACE_XY_PLANE) | 88 if (pFace->uAttributes & FACE_XY_PLANE) |
271 var_28 = 1; | 270 var_28 = 1; |
272 var_24 = 0; | 271 var_24 = 0; |
273 break; | 272 break; |
274 | 273 |
275 default: | 274 default: |
276 assert(false); | 275 Error("Invalid polygon type (%u)", pFace->uPolygonType); |
277 } | 276 } |
278 | 277 |
279 | 278 |
280 float face_center_x; | 279 float face_center_x; |
281 float face_center_y; | 280 float face_center_y; |