summaryrefslogtreecommitdiff
path: root/src/resources/dyepalette.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/dyepalette.cpp')
-rw-r--r--src/resources/dyepalette.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/dyepalette.cpp b/src/resources/dyepalette.cpp
index 895f9c03f..5ebbdf626 100644
--- a/src/resources/dyepalette.cpp
+++ b/src/resources/dyepalette.cpp
@@ -24,7 +24,9 @@
#include "logger.h"
+#ifndef DYECMD
#include "resources/db/palettedb.h"
+#endif
#include <cmath>
@@ -68,6 +70,7 @@ DyePalette::DyePalette(const std::string &description,
++pos;
}
}
+#ifndef DYECMD
else if (description[0] == '@')
{
size_t pos = 1;
@@ -83,7 +86,7 @@ DyePalette::DyePalette(const std::string &description,
pos = idx + 1;
}
}
-
+#endif
logger->log("Error, invalid embedded palette: %s", description.c_str());
}