summaryrefslogtreecommitdiff
path: root/src/game/DecorationTool.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-05 15:56:41 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-05 15:56:41 (GMT)
commit5904844e96da821c276fe3409f6c173e71ef7dc2 (patch)
tree8e6549c6fdb57cc152fe485215b0797090dfe0df /src/game/DecorationTool.h
parentd256439c408094356d731afd7ab84c2365cbde7b (diff)
downloadpowder-5904844e96da821c276fe3409f6c173e71ef7dc2.zip
powder-5904844e96da821c276fe3409f6c173e71ef7dc2.tar.gz
Add way of uniquely identifying tools, preserve active menu and tools when rebuilding menus (fixes #170)
Diffstat (limited to 'src/game/DecorationTool.h')
-rw-r--r--src/game/DecorationTool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/DecorationTool.h b/src/game/DecorationTool.h
index 39c070b..679c854 100644
--- a/src/game/DecorationTool.h
+++ b/src/game/DecorationTool.h
@@ -16,8 +16,8 @@ public:
unsigned char Blue;
unsigned char Alpha;
- DecorationTool(ToolType decoMode_, string name, string description, int r, int g, int b):
- Tool(0, name, description, r, g, b),
+ DecorationTool(ToolType decoMode_, string name, string description, int r, int g, int b, std::string identifier):
+ Tool(0, name, description, r, g, b, identifier),
decoMode(decoMode_),
Red(0),
Green(0),