| 84 | } |
| 85 | |
| 86 | void level_loadPalette() |
| 87 | { |
| 88 | // Palette *IS* loaded from the level file. |
| 89 | FilePath filePath; |
| 90 | if (TFE_Paths::getFilePath(s_levelState.levelPaletteName, &filePath)) |
| 91 | { |
| 92 | FileStream::readContents(&filePath, s_levelPalette, 768); |
| 93 | } |
| 94 | else if (TFE_Paths::getFilePath("default.pal", &filePath)) |
| 95 | { |
| 96 | FileStream::readContents(&filePath, s_levelPalette, 768); |
| 97 | } |
| 98 | // The "base palette" is adjusted by the hud colors, which is why it is a copy. |
| 99 | memcpy(s_basePalette, s_levelPalette, 768); |
| 100 | s_palModified = JTRUE; |
| 101 | } |
| 102 | |
| 103 | void level_postProcessGeometry() |
| 104 | { |
no test coverage detected