From 249c0dc68a107878b7aaca0c8d2dcc3e08862430 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 11 Apr 2011 21:28:04 +0300 Subject: Fixed some problems with crafting and inventory --- src/utility.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utility.h') diff --git a/src/utility.h b/src/utility.h index e3a977400..0b59ce6fd 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1331,6 +1331,14 @@ public: return value; } + void setBool(std::string name, bool value) + { + if(value) + set(name, "true"); + else + set(name, "false"); + } + void setS32(std::string name, s32 value) { set(name, itos(value)); -- cgit v1.2.3