Author: silene
Date: Sun Apr 19 12:07:54 2009
New Revision: 35041

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35041&view=rev
Log:
Removed the C++ code for [show_objectives] as it was never released.

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=35041&r1=35040&r2=35041&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Sun Apr 19 12:07:54 2009
@@ -1213,21 +1213,6 @@
                }
        }
 
-WML_HANDLER_FUNCTION(show_objectives, /*event_info*/, cfg)
-{
-       const game_events::resources_t &rsrc = *game_events::resources;
-
-               std::string side = cfg["side"];
-               const size_t side_num = lexical_cast_default<size_t>(side,0);
-               if(side_num == 0) {
-                       foreach (team &t, *rsrc.teams) {
-                               t.set_objectives_changed();
-                       }
-               } else {
-                       (*rsrc.teams)[side_num - 1].set_objectives_changed();
-               }
-       }
-
 // Helper function(s) for [set_variable]
 namespace {
        bool isint(const std::string &var) {


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

Reply via email to