Skip to content

Commit

Permalink
Set correct default cockpit type for mech with command console.
Browse files Browse the repository at this point in the history
  • Loading branch information
neoancient committed Sep 19, 2023
1 parent 0709c54 commit 8ddf962
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions megamek/src/megamek/common/Mech.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ public int getUnitType() {
return UnitType.MEK;
}

@Override
public CrewType defaultCrewType() {
return (cockpitType == COCKPIT_COMMAND_CONSOLE) || (cockpitType == COCKPIT_SUPERHEAVY_COMMAND_CONSOLE)
|| (cockpitType == COCKPIT_SMALL_COMMAND_CONSOLE) ? CrewType.COMMAND_CONSOLE : CrewType.SINGLE;
}

/**
* @return if this mech cannot stand up from hulldown
*/
Expand Down

0 comments on commit 8ddf962

Please sign in to comment.