Changeset - r28730:d593090c0f0e
[Not reviewed]
master
0 1 0
Tyler Trahan - 10 months ago 2024-02-06 22:44:37
tyler@tylertrahan.com
Fix #12019: Correctly highlight depot unbunch action in dropdown
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -185,24 +185,26 @@ static const StringID _order_depot_actio
 
	STR_ORDER_DROP_SERVICE_DEPOT,
 
	STR_ORDER_DROP_HALT_DEPOT,
 
	STR_ORDER_DROP_UNBUNCH,
 
	INVALID_STRING_ID
 
};
 

	
 
static int DepotActionStringIndex(const Order *order)
 
{
 
	if (order->GetDepotActionType() & ODATFB_HALT) {
 
		return DA_STOP;
 
	} else if (order->GetDepotOrderType() & ODTFB_SERVICE) {
 
		return DA_SERVICE;
 
	} else if (order->GetDepotActionType() & ODATFB_UNBUNCH) {
 
		return DA_UNBUNCH;
 
	} else {
 
		return DA_ALWAYS_GO;
 
	}
 
}
 

	
 
static const StringID _order_refit_action_dropdown[] = {
 
	STR_ORDER_DROP_REFIT_AUTO,
 
	STR_ORDER_DROP_REFIT_AUTO_ANY,
 
	INVALID_STRING_ID
 
};
 

	
 
/**
0 comments (0 inline, 0 general)