| 368 | } |
| 369 | |
| 370 | void zEntParseModelInfo(xEnt* ent, U32 assetID) |
| 371 | { |
| 372 | U32 bufsize[4]; |
| 373 | void* info = xSTFindAsset(assetID, bufsize); |
| 374 | if (*(U32*)info == 0x464e494d) |
| 375 | { |
| 376 | ent->model = zEntRecurseModelInfo(info, ent); |
| 377 | } |
| 378 | else |
| 379 | { |
| 380 | xEntLoadModel(ent, (RpAtomic*)info); |
| 381 | ent->model->modelID = assetID; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | // This function suffers from a couple floating point memes |
| 386 | // Additionally it has a jumptable that needs to be generated in the correct place. |
no test coverage detected