Fixed: Incorrect comparison operator for AColor caused Scriptable<AColor>s to not be updated when only the alpha changed.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1024 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-07-11 18:01:36 +00:00
parent 3c4aa8346b
commit 4bab20d67c
+5
View File
@@ -25,6 +25,11 @@ class AColor : public Color {
inline AColor() : alpha(0) {}
inline AColor(Byte r, Byte g, Byte b, Byte a = 255) : Color(r,g,b), alpha(a) {}
inline AColor(const Color& color, Byte a = 255) : Color(color), alpha(a) {}
inline bool operator == (const AColor& that) const {
return static_cast<const Color&>(*this) == static_cast<const Color&>(that) && alpha == that.alpha;
}
inline bool operator != (const AColor& that) const { return ! (*this == that); }
};
// ----------------------------------------------------------------------------- : Parsing