diff options
Diffstat (limited to 'games/enigma/patches/patch-aj')
-rw-r--r-- | games/enigma/patches/patch-aj | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games/enigma/patches/patch-aj b/games/enigma/patches/patch-aj new file mode 100644 index 00000000000..e69028c2afb --- /dev/null +++ b/games/enigma/patches/patch-aj @@ -0,0 +1,23 @@ +$NetBSD: patch-aj,v 1.2.2.2 2005/05/06 00:30:17 salo Exp $ + +--- src/object_mixins.hh 2003-07-12 12:04:47.000000000 +0200 ++++ src/object_mixins.hh 2004-11-11 00:05:24.000000000 +0100 +@@ -80,14 +80,14 @@ + template <class T> + class OnOffBase : public T { + protected: +- OnOffBase(const char *kind) : T(kind) { set_attrib("on", 0.0); } ++ OnOffBase(const char *kind) : T(kind) { this->set_attrib("on", 0.0); } + +- bool is_on() const { return int_attrib("on") == 1; } ++ bool is_on() const { return this->int_attrib("on") == 1; } + + void set_on(bool newon) { + if (newon != is_on()) { +- set_attrib("on", Value(newon)); +- init_model(); ++ this->set_attrib("on", Value(newon)); ++ this->init_model(); + notify_onoff(newon); + } + } |