MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetOrderGoToString

Function GetOrderGoToString

src/order_gui.cpp:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200};
201
202static StringID GetOrderGoToString(const Order &order)
203{
204 if (order.GetDepotOrderType().Test(OrderDepotTypeFlag::Service)) {
205 return order.GetNonStopType().Test(OrderNonStopFlag::NoIntermediate) ? STR_ORDER_SERVICE_NON_STOP_AT : STR_ORDER_SERVICE_AT;
206 } else {
207 return order.GetNonStopType().Test(OrderNonStopFlag::NoIntermediate) ? STR_ORDER_GO_NON_STOP_TO : STR_ORDER_GO_TO;
208 }
209}
210
211/**
212 * Draws an order in order or timetable GUI

Callers 1

DrawOrderStringFunction · 0.85

Calls 3

TestMethod · 0.80
GetDepotOrderTypeMethod · 0.80
GetNonStopTypeMethod · 0.80

Tested by

no test coverage detected