From 88b51fcb5b5ba23fca194555253cb7051afe0cb9 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 6 Dec 2014 20:29:08 -0500 Subject: [PATCH] Allow strangemood to work if debug_nomoods is not available --- plugins/strangemood.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/strangemood.cpp b/plugins/strangemood.cpp index 09c4ead11..22bafc056 100644 --- a/plugins/strangemood.cpp +++ b/plugins/strangemood.cpp @@ -42,7 +42,7 @@ REQUIRE_GLOBAL(created_item_type); REQUIRE_GLOBAL(created_item_subtype); REQUIRE_GLOBAL(created_item_mattype); REQUIRE_GLOBAL(created_item_matindex); -REQUIRE_GLOBAL(debug_nomoods); +using df::global::debug_nomoods; Random::MersenneRNG rng; @@ -476,7 +476,7 @@ command_result df_strangemood (color_ostream &out, vector & parameters) out.printerr("ARTIFACTS are not enabled!\n"); return CR_FAILURE; } - if (*debug_nomoods) + if (debug_nomoods && *debug_nomoods) { out.printerr("Strange moods disabled via debug flag!\n"); return CR_FAILURE;