mail[Wesnoth-commits] r43492 - in /trunk/src/whiteboard: move.cpp move.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by upthorn on June 16, 2010 - 15:50:
Author: upthorn
Date: Wed Jun 16 15:50:33 2010
New Revision: 43492

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43492&view=rev
Log:
Brought the initialization of move class' static const double members in line 
with C specification (code now compiles in VC9).

Modified:
    trunk/src/whiteboard/move.cpp
    trunk/src/whiteboard/move.hpp

Modified: trunk/src/whiteboard/move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.cpp?rev=43492&r1=43491&r2=43492&view=diff
==============================================================================
--- trunk/src/whiteboard/move.cpp (original)
+++ trunk/src/whiteboard/move.cpp Wed Jun 16 15:50:33 2010
@@ -82,4 +82,6 @@
        return modifier;
 }
 
+const double move::ALPHA_HIGHLIGHT = 2.0;
+const double move::ALPHA_NORMAL = 0.6;
 } // end namespace wb

Modified: trunk/src/whiteboard/move.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.hpp?rev=43492&r1=43491&r2=43492&view=diff
==============================================================================
--- trunk/src/whiteboard/move.hpp (original)
+++ trunk/src/whiteboard/move.hpp Wed Jun 16 15:50:33 2010
@@ -38,8 +38,8 @@
 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,




Related Messages


Powered by MHonArc, Updated Wed Jun 16 16:00:23 2010