Skip to content

Commit

Permalink
Remove unused range secondary order stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Nov 6, 2012
1 parent c7cabf1 commit 64d8d40
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/droid.cpp
Expand Up @@ -291,8 +291,8 @@ DROID::DROID(uint32_t id, unsigned player)
, droidType(DROID_ANY)
, psGroup(NULL)
, psGrpNext(NULL)
, secondaryOrder(DSS_ARANGE_DEFAULT | DSS_REPLEV_NEVER | DSS_ALEV_ALWAYS | DSS_HALT_GUARD)
, secondaryOrderPending(DSS_ARANGE_DEFAULT | DSS_REPLEV_NEVER | DSS_ALEV_ALWAYS | DSS_HALT_GUARD)
, secondaryOrder(DSS_REPLEV_NEVER | DSS_ALEV_ALWAYS | DSS_HALT_GUARD)
, secondaryOrderPending(DSS_REPLEV_NEVER | DSS_ALEV_ALWAYS | DSS_HALT_GUARD)
, secondaryOrderPendingCount(0)
, action(DACTION_NONE)
, actionPos(0, 0)
Expand Down
3 changes: 0 additions & 3 deletions src/orderdef.h
Expand Up @@ -100,9 +100,6 @@ enum SECONDARY_ORDER
enum SECONDARY_STATE
{
DSS_NONE = 0x000000, /**< no state. */
DSS_ARANGE_SHORT = 0x000001, /**< state referred to secondary order DSO_ATTACK_RANGE. Droid can only attack with short range. */
DSS_ARANGE_LONG = 0x000002, /**< state referred to secondary order DSO_ATTACK_RANGE. Droid can only attack with long range. */
DSS_ARANGE_DEFAULT = 0x000003, /**< state referred to secondary order DSO_ATTACK_RANGE. Droid can attacks with short or long range depending on what is the best hit chance. */
DSS_REPLEV_LOW = 0x000004, /**< state referred to secondary order DSO_REPAIR_LEVEL. Droid falls back if its health decrease below 25%. */
DSS_REPLEV_HIGH = 0x000008, /**< state referred to secondary order DSO_REPAIR_LEVEL. Droid falls back if its health decrease below 50%. */
DSS_REPLEV_NEVER = 0x00000c, /**< state referred to secondary order DSO_REPAIR_LEVEL. Droid never falls back. */
Expand Down
3 changes: 0 additions & 3 deletions src/scripttabs.cpp
Expand Up @@ -1846,9 +1846,6 @@ CONST_SYMBOL asConstantTable[] =
{ "DSO_RETURN_TO_LOC", VAL_INT, false, DSO_RETURN_TO_LOC, NULL, NULL, 0.0f },

// secondary order stats
{ "DSS_ARANGE_SHORT", VAL_INT, false, DSS_ARANGE_SHORT, NULL, NULL, 0.0f },
{ "DSS_ARANGE_LONG", VAL_INT, false, DSS_ARANGE_LONG, NULL, NULL, 0.0f },
{ "DSS_ARANGE_DEFAULT", VAL_INT, false, DSS_ARANGE_DEFAULT, NULL, NULL, 0.0f },
{ "DSS_REPLEV_LOW", VAL_INT, false, DSS_REPLEV_LOW, NULL, NULL, 0.0f },
{ "DSS_REPLEV_HIGH", VAL_INT, false, DSS_REPLEV_HIGH, NULL, NULL, 0.0f },
{ "DSS_REPLEV_NEVER", VAL_INT, false, DSS_REPLEV_NEVER, NULL, NULL, 0.0f },
Expand Down
3 changes: 1 addition & 2 deletions src/structure.cpp
Expand Up @@ -1949,8 +1949,7 @@ static bool setFunctionality(STRUCTURE *psBuilding, STRUCTURE_TYPE functionType)
psFactory->psSubject = NULL;

// Default the secondary order - AB 22/04/99
psFactory->secondaryOrder = DSS_ARANGE_DEFAULT | DSS_REPLEV_NEVER
| DSS_ALEV_ALWAYS | DSS_HALT_GUARD;
psFactory->secondaryOrder = DSS_REPLEV_NEVER | DSS_ALEV_ALWAYS | DSS_HALT_GUARD;

// Create the assembly point for the factory
if (!createFlagPosition(&psFactory->psAssemblyPoint, psBuilding->player))
Expand Down

0 comments on commit 64d8d40

Please sign in to comment.