summaryrefslogtreecommitdiff
path: root/src/game/Tool.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-09 20:05:20 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-09 20:05:20 (GMT)
commit9971ea63b7aca6f23dfdee9ceb5d7cb3dcd1fa58 (patch)
treed68699db22c32bddcdb8421a822ee207f1578b4e /src/game/Tool.h
parentac45502de917bae206ae511366926c235d7bff1d (diff)
downloadpowder-9971ea63b7aca6f23dfdee9ceb5d7cb3dcd1fa58.zip
powder-9971ea63b7aca6f23dfdee9ceb5d7cb3dcd1fa58.tar.gz
Slow LIGH creation speed, fixes #86
Diffstat (limited to 'src/game/Tool.h')
-rw-r--r--src/game/Tool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Tool.h b/src/game/Tool.h
index bee1fd8..f6327cf 100644
--- a/src/game/Tool.h
+++ b/src/game/Tool.h
@@ -73,9 +73,11 @@ public:
class Element_LIGH_Tool: public Tool
{
+ int nextUse;
public:
Element_LIGH_Tool(int id, string name, string description, int r, int g, int b, VideoBuffer * (*textureGen)(int, int, int) = NULL):
- Tool(id, name, description, r, g, b)
+ Tool(id, name, description, r, g, b),
+ nextUse(0)
{
}
virtual ~Element_LIGH_Tool() {}