Skip to content

Commit

Permalink
Reorder enum values to use proper offset for TOOL_OFFSET (#52510)
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin authored Oct 30, 2021
1 parent 96efa20 commit a8083f9
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/vehicle_use.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2068,9 +2068,30 @@ void vehicle::interact_with( const vpart_position &vp )
bool is_appliance = has_tag( "APPLIANCE" );

enum {
EXAMINE, TRACK, HANDBRAKE, CONTROL, CONTROL_ELECTRONICS, GET_ITEMS, GET_ITEMS_ON_GROUND, FOLD_VEHICLE, UNLOAD_TURRET,
RELOAD_TURRET, FILL_CONTAINER, DRINK, PURIFY_TANK, USE_AUTOCLAVE, USE_WASHMACHINE,
USE_DISHWASHER, USE_MONSTER_CAPTURE, USE_BIKE_RACK, USE_HARNESS, RELOAD_PLANTER, WORKBENCH, PEEK_CURTAIN, TOOLS_OFFSET, PLUG
EXAMINE,
TRACK,
HANDBRAKE,
CONTROL,
CONTROL_ELECTRONICS,
GET_ITEMS,
GET_ITEMS_ON_GROUND,
FOLD_VEHICLE,
UNLOAD_TURRET,
RELOAD_TURRET,
FILL_CONTAINER,
DRINK,
PURIFY_TANK,
USE_AUTOCLAVE,
USE_WASHMACHINE,
USE_DISHWASHER,
USE_MONSTER_CAPTURE,
USE_BIKE_RACK,
USE_HARNESS,
RELOAD_PLANTER,
WORKBENCH,
PEEK_CURTAIN,
PLUG,
TOOLS_OFFSET // must be the last value!
};
uilist selectmenu;

Expand Down

0 comments on commit a8083f9

Please sign in to comment.