TBTR: Clip drawing of template vehicles.

This fixes long templates running off the side of the window and/or
obscuring the train length text.
This commit is contained in:
Jonathan G Rennison
2016-03-08 19:21:15 +00:00
parent 4f052d3cad
commit cf638e836a
2 changed files with 13 additions and 3 deletions

View File

@@ -679,7 +679,7 @@ public:
}
/* Draw the template */
DrawTemplate(v, left + ScaleGUITrad(50), right, y);
DrawTemplate(v, left + ScaleGUITrad(36), right - ScaleGUITrad(24), y);
/* Draw a notification string for chains that are not runnable */
if (v->IsFreeWagonChain()) {