Author: anonymissimus
Date: Sun Nov  6 03:00:24 2011
New Revision: 51880

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51880&view=rev
Log:
deprecated ancient [scenario]objectives= attribute

Modified:
    trunk/src/gamestatus.cpp

Modified: trunk/src/gamestatus.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=51880&r1=51879&r2=51880&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Sun Nov  6 03:00:24 2011
@@ -783,8 +783,10 @@
                // If this team has no objectives, set its objectives
                // to the level-global "objectives"
                const config::attribute_value objectives = level_["objectives"];
-               if (!objectives.blank() && t_->objectives().empty())
-                       t_->set_objectives(objectives.t_str(), false);
+               if (!objectives.blank()) {
+                       WRN_NG << "[scenario]objectives= is deprecated, use 
[event][objectives]\n";
+                       if(t_->objectives().empty()) 
t_->set_objectives(objectives.t_str(), false);
+               }
        }
 
 


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

Reply via email to