[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
From: |
Jon Daniel |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp |
Date: |
Thu, 20 Jan 2005 21:14:55 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <address@hidden> 05/01/21 02:14:55
Modified files:
src : playlevel.cpp
Log message:
Fixed bug #11359 causing side turn events to be fired even when the
turn was not refreshed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.166&tr2=1.167&r1=text&r2=text
Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.166 wesnoth/src/playlevel.cpp:1.167
--- wesnoth/src/playlevel.cpp:1.166 Sat Jan 1 22:54:59 2005
+++ wesnoth/src/playlevel.cpp Fri Jan 21 02:14:55 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.166 2005/01/01 22:54:59 Sirp Exp $ */
+/* $Id: playlevel.cpp,v 1.167 2005/01/21 02:14:55 j_daniel Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -508,7 +508,6 @@
std::stringstream player_number_str;
player_number_str << player_number;
game_events::set_variable("side_number",player_number_str.str());
- game_events::fire("side turn");
//we want to work out if units for this player
should get healed, and the
//player should get income now. healing/income
happen if it's not the first
@@ -517,6 +516,7 @@
const bool turn_refresh = !first_time ||
loading_game && team_it != teams.begin()+first_player;
if(turn_refresh) {
+ game_events::fire("side turn");
for(unit_map::iterator i =
units.begin(); i != units.end(); ++i) {
if(i->second.side() ==
player_number) {
i->second.new_turn();
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, David White, 2005/01/01
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp,
Jon Daniel <=
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, Jon Daniel, 2005/01/21
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, Guillaume Melquiond, 2005/01/22
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, David White, 2005/01/24
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, Jordą Polo, 2005/01/28
- [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp, David White, 2005/01/28