summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-30 06:31:49 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-30 06:31:49 +0000
commit9d6136e89eff98f79328335a46ef824682a07aa0 (patch)
treef37d48e574750774e7a5689aef464032b9ca5c53 /src/genworld_gui.cpp
parentf9cac3c71b8d545c92658055807398b4b3455f75 (diff)
downloadopenttd-9d6136e89eff98f79328335a46ef824682a07aa0.tar.xz
(svn r10396) -Fix: When landscape generating, allow for 200ms between screen updates instead of updating every 200ms. Previously slow screen updates would result in very slow map generation (GeekToo)
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 9099354e1..bd1f305d2 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -888,7 +888,6 @@ static void _SetGeneratingWorldProgress(gwp_class cls, uint progress, uint total
/* Percentage is about the number of completed tasks, so 'current - 1' */
_tp.percent = percent_table[cls] + (percent_table[cls + 1] - percent_table[cls]) * (_tp.current == 0 ? 0 : _tp.current - 1) / _tp.total;
- _tp.timer = _realtime_tick;
if (_network_dedicated) {
static uint last_percent = 0;
@@ -917,6 +916,8 @@ static void _SetGeneratingWorldProgress(gwp_class cls, uint progress, uint total
* on the same tile at the same moment. Nasty hack, but that happens
* if you implement threading afterwards */
while (IsGeneratingWorldReadyForPaint()) { CSleep(10); }
+
+ _tp.timer = _realtime_tick;
}
/**