Age | Commit message (Collapse) | Author |
|
refitable detection. It had two variables doing the same thing, but not always set to the same (oops)
|
|
DrawVehiclePurchaseInfo() and renamed them into type specific names
|
|
the details with one line since some newgrf trains needs it
|
|
only add "(refitable)" if the engine in question is refitable
|
|
request wants to draw more vehicles than the list contains
|
|
loop to a function of it's own
-Fix (r8335): [vehicle build window] ship sprites were moved two pixels to the left
|
|
removed two switch-cases, that we can do without
|
|
intelligent) then other compilers when it comes to operator precedence.
A copy of code from train_gui.cpp to build_vehicle_gui.cpp was not exactly the same.
The earlier version did not require parenthesis to specify correct operator precedence.
|
|
Note: now all build vehicle windows are merged into build_vehicle_gui.cpp
|
|
build_vehicle_gui.cpp and added arrays + VehTypeToIndex() instead
|
|
0,1,2... for use for index to arrays
Used this function to get rid of some switch-cases in build_vehicle_gui.cpp
-Fix (r8335): ship build window didn't remember assending/decending sort setting
|
|
horizontally and contains sorting options
-Codechange: the build ship window is merged into build_vehicle_gui.cpp
|
|
|
|
instead of rebuilding the list and then rebuild it the next time it's redrawn
This should save CPU time in the (maybe unlikely) event that the list is invalidated more than once between two redraws
|
|
from build_vehicle_gui.cpp to aircraft_gui.cpp
|
|
in horizontal direction as well
-Codechange: merged train and aircraft build window code
|
|
values.
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
|
|
stillunknown and pv2b.
|
|
renamed to .cpp)
|