diff options
-rw-r--r-- | engines/sludge/backdrop.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 8c4b02b5a8..dab10be8b3 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -400,6 +400,17 @@ bool GraphicsManager::loadLightMap(int v) { g_sludge->_resMan->finishAccess(); setResourceForFatal(-1); + // Debug code to output light map image +#if 0 + Common::DumpFile *outFile = new Common::DumpFile(); + Common::String outName = Common::String::format("lightmap_%i.png", v); + outFile->open(outName); + Image::writePNG(*outFile, _lightMap); + outFile->finalize(); + outFile->close(); + delete outFile; +#endif + return true; } |