Mercurial > hg > openttd
changeset 16226:88d827382b41 draft
(svn r20927) -Add [FS#3905]: Transfer orders imply 'leave empty' by default
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Fri, 15 Oct 2010 18:15:01 +0000 |
parents | 30ecf29ecad9 |
children | f785d86bf2d0 |
files | src/order_gui.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -596,6 +596,12 @@ } DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 20), MOF_UNLOAD | (unload_type << 4), CMD_MODIFY_ORDER | CMD_MSG(STR_ERROR_CAN_T_MODIFY_THIS_ORDER)); + + /* Transfer orders with leave empty as default */ + if (unload_type == OUFB_TRANSFER) { + DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 20), MOF_LOAD | (OLFB_NO_LOAD << 4), CMD_MODIFY_ORDER); + this->SetWidgetDirty(ORDER_WIDGET_FULL_LOAD); + } } /**