[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
From: |
Philippe Plantier |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp |
Date: |
Sun, 28 Aug 2005 06:32:18 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Philippe Plantier <address@hidden> 05/08/28 10:32:18
Modified files:
src : playlevel.cpp
Log message:
Fixed # 13671: ambush (and nightstalk) not working on turn 1 for
leaders.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.213&tr2=1.214&r1=text&r2=text
Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.213 wesnoth/src/playlevel.cpp:1.214
--- wesnoth/src/playlevel.cpp:1.213 Wed Aug 24 20:37:55 2005
+++ wesnoth/src/playlevel.cpp Sun Aug 28 10:32:18 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.213 2005/08/24 20:37:55 gruikya Exp $ */
+/* $Id: playlevel.cpp,v 1.214 2005/08/28 10:32:18 gruikya Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -312,8 +312,9 @@
}
if(start_pos.valid()) {
+ new_unit.new_turn();
units.insert(std::pair<gamemap::location,unit>(
-
map.starting_position(new_unit.side()), new_unit));
+
map.starting_position(new_unit.side()), new_unit));
}
}
@@ -344,6 +345,7 @@
player->available_units.push_back(new_unit);
}
} else {
+ new_unit.new_turn();
units.insert(std::pair<gamemap::location,unit>(loc,new_unit));
LOG_NG << "inserting unit for side " <<
new_unit.side() << "\n";
}