Author: mordante
Date: Tue Jun 17 19:31:11 2008
New Revision: 27261

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27261&view=rev
Log:
Removed the deprecated message for random since it's used in trunk quite a bit.

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=27261&r1=27260&r2=27261&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Tue Jun 17 19:31:11 2008
@@ -1073,10 +1073,14 @@
                // range (i.e. -1..-10, 0..100, -10..10, etc).
                const std::string random = cfg["random"];
                if(random.empty() == false) {
+                       /**
+                        * @todo random seems to be used quite often in 
mainline so need to
+                        * see what the best solution to avoid rand and random.
+                        */
                        // random is deprecated but will be available in the 
1.4 branch
                        // so enable the message after forking
-                       lg::wml_error << "Usage of 'random' is deprecated use 
'rand' instead, "
-                               "support will be removed in 1.5.3.\n";
+                       //lg::wml_error << "Usage of 'random' is deprecated use 
'rand' instead, "
+                       //      "support will be removed in 1.5.3.\n";
                        std::string random_value;
                        // If we're not replaying, create a random number
                        if(get_replay_source().at_end()) {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to