summaryrefslogtreecommitdiff
path: root/engine.c
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
commitf1ce786bab77bc602da41c0ec131d379b892332d (patch)
treeaa73a883c0d42c545d83ce08a772b6fd0c44ed72 /engine.c
parent93f29c16c37b2fcc6f960232c58fdde714edc382 (diff)
downloadopenttd-f1ce786bab77bc602da41c0ec131d379b892332d.tar.xz
(svn r1196) -Fix: Preview Vehicle had a small glitch. Fixed now.
Diffstat (limited to 'engine.c')
-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++;