| 92 | } |
| 93 | |
| 94 | void LoadVoxelModels() |
| 95 | { |
| 96 | for (int i = 0; i < MAXVOXELS; i++) |
| 97 | { |
| 98 | int lumpnum = voxlumps[i]; |
| 99 | if (lumpnum > 0) |
| 100 | { |
| 101 | voxmodels[i] = voxload(lumpnum); |
| 102 | if (voxmodels[i]) |
| 103 | voxmodels[i]->scale = voxscale[i]; |
| 104 | else |
| 105 | Printf("Unable to load voxel from %s\n", fileSystem.GetFileFullPath(lumpnum).c_str()); |
| 106 | } |
| 107 | else |
| 108 | { |
| 109 | auto index = fileSystem.FindResource(i, "KVX"); |
| 110 | if (index >= 0) |
| 111 | { |
| 112 | voxmodels[i] = voxload(index); |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 |
no test coverage detected