(svn r6920) - Codechange: Ignore refit options of an engine if it has no capacity.

This commit is contained in:
peter1138
2006-10-24 07:10:37 +00:00
parent 6b3abe6508
commit e965ac67b3
2 changed files with 5 additions and 3 deletions

View File

@@ -293,7 +293,7 @@ void DrawTrainEnginePurchaseInfo(int x, int y, uint w, EngineID engine_number)
/* Additional text from NewGRF */
y += ShowAdditionalText(x, y, w, engine_number);
y += ShowRefitOptionsList(x, y, w, engine_number);
if (rvi->capacity > 0) y += ShowRefitOptionsList(x, y, w, engine_number);
}
/**