Brought the initialization of move class's...

...static const double members in line with C specification (code now
compiles in VC9).
This commit is contained in:
Jody Northup 2010-06-16 13:50:33 +00:00
parent 243fa797a7
commit 52bce1e38d
2 changed files with 4 additions and 2 deletions

View file

@ -82,4 +82,6 @@ modifier_ptr move::apply_temp_modifier(unit_map& unit_map)
return modifier;
}
const double move::ALPHA_HIGHLIGHT = 2.0;
const double move::ALPHA_NORMAL = 0.6;
} // end namespace wb

View file

@ -38,8 +38,8 @@ namespace wb {
class move : public action, public boost::enable_shared_from_this<move>
{
public: //constants
static const double ALPHA_HIGHLIGHT = 2.0;
static const double ALPHA_NORMAL = 0.6;
static const double ALPHA_HIGHLIGHT;
static const double ALPHA_NORMAL;
public:
move(unit& subject, const map_location& target_hex, boost::shared_ptr<arrow> arrow,