[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src mapgen.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src mapgen.cpp |
Date: |
Mon, 25 Apr 2005 03:25:04 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 05/04/25 07:25:04
Modified files:
src : mapgen.cpp
Log message:
An awful typo. Thanks to GCC4 for pointing it. The castle ranking on
random map was then completely flawed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/mapgen.cpp.diff?tr1=1.63&tr2=1.64&r1=text&r2=text
Patches:
Index: wesnoth/src/mapgen.cpp
diff -u wesnoth/src/mapgen.cpp:1.63 wesnoth/src/mapgen.cpp:1.64
--- wesnoth/src/mapgen.cpp:1.63 Sat Apr 9 21:32:03 2005
+++ wesnoth/src/mapgen.cpp Mon Apr 25 07:25:04 2005
@@ -425,7 +425,7 @@
}
const int x_from_border = minimum<int>(x - min_x,max_x - x);
- const int y_from_border = minimum<int>(y = min_y,max_y - y);
+ const int y_from_border = minimum<int>(y - min_y,max_y - y);
const int border_ranking = min_distance -
minimum<int>(x_from_border,y_from_border) +
min_distance - x_from_border - y_from_border;