summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-21 14:42:06 +0000
committertruelight <truelight@openttd.org>2004-12-21 14:42:06 +0000
commit245bc59c68eade21a03532f1b13282a7f1c70760 (patch)
treeaa73a883c0d42c545d83ce08a772b6fd0c44ed72
parent97865f03f6a00b87d623f02188d4a9339963c29a (diff)
downloadopenttd-245bc59c68eade21a03532f1b13282a7f1c70760.tar.xz
(svn r1196) -Fix: Preview Vehicle had a small glitch. Fixed now.
-rw-r--r--engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine.c b/engine.c
index c18444109..951d5f77c 100644
--- a/engine.c
+++ b/engine.c
@@ -638,7 +638,7 @@ void EnginesDailyLoop()
for(e=_engines,i=0; i!=TOTAL_NUM_ENGINES; e++,i++) {
if (e->flags & ENGINE_INTRODUCING) {
if (e->flags & ENGINE_PREVIEWING) {
- if (!--e->preview_wait) {
+ if (e->preview_player != 0xFF && !--e->preview_wait) {
e->flags &= ~ENGINE_PREVIEWING;
DeleteWindowById(WC_ENGINE_PREVIEW, i);
e->preview_player++;