diff options
author | frosch <frosch@openttd.org> | 2010-04-18 17:13:01 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-18 17:13:01 +0000 |
commit | af7051178de9f4b3eccbf9a4c0bd347e12a1f9dd (patch) | |
tree | 33dd7c5f98fa5caeffe3f8c477ef3a8da1d7c667 /src/terraform_gui.cpp | |
parent | 2e90f7f8b975d380c3d544995ef6db9d6c8a86d8 (diff) | |
download | openttd-af7051178de9f4b3eccbf9a4c0bd347e12a1f9dd.tar.xz |
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r-- | src/terraform_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 019dd5616..2340ddcd9 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -649,8 +649,8 @@ struct ScenarioEditorLandscapeGenerationWindow : Window { { if (widget != ETTW_DOTS) return; - int center_x = RoundDiv(r.left + r.right, 2); - int center_y = RoundDiv(r.top + r.bottom, 2); + int center_x = RoundDivSU(r.left + r.right, 2); + int center_y = RoundDivSU(r.top + r.bottom, 2); int n = _terraform_size * _terraform_size; const int8 *coords = &_multi_terraform_coords[0][0]; |