Skip to content

Commit

Permalink
Merged in Root-Core/cncremastered (pull request #1)
Browse files Browse the repository at this point in the history
Ported CFE Patch from cfehunter to Red Alert
  • Loading branch information
Root-Core authored and cfehunter committed Jun 15, 2020
2 parents 06f73fb + b88544e commit df2eeca
Show file tree
Hide file tree
Showing 30 changed files with 816 additions and 72 deletions.
11 changes: 11 additions & 0 deletions Mod Data/CCDATA/DEFAULT.CFEPATCH_RA.INI
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[FEATURES]
ASTAR_PATHING=1
OOM_REPAIR=1
RALLY_POINTS=1
HARVY_QUEUE_JUMP=1
INSTANT_CAPTURE=1

[SETTINGS]
QUEUE_JUMP_CUTOFF=3
ORE_GROWTH_SCALE=1
WALL_BUILD_LENGTH=5
34 changes: 34 additions & 0 deletions REDALERT/BDATA.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -3627,6 +3627,40 @@ bool BuildingTypeClass::Bib_And_Offset(SmudgeType & bib, CELL & cell) const
}


/***********************************************************************************************
* BuildingTypeClass::Overlay_Type *
* *
* Determines the overlay type required to display this building *
* *
* INPUT: none *
* *
* OUTPUT: overlay type to display *
* *
* WARNINGS: none *
* *
* HISTORY: *
* 12/06/2020 cfehunter : Created. *
*=============================================================================================*/
OverlayType BuildingTypeClass::Overlay_Type() const
{
switch (StructType(*this))
{
case STRUCT_SANDBAG_WALL:
return OVERLAY_SANDBAG_WALL;
case STRUCT_CYCLONE_WALL:
return OVERLAY_CYCLONE_WALL;
case STRUCT_BRICK_WALL:
return OVERLAY_BRICK_WALL;
case STRUCT_BARBWIRE_WALL:
return OVERLAY_BARBWIRE_WALL;
case STRUCT_WOOD_WALL:
return OVERLAY_WOOD_WALL;
default:
return OVERLAY_NONE;
}
}


/***********************************************************************************************
* BuildingTypeClass::Max_Pips -- Determines the maximum pips to display. *
* *
Expand Down
Loading

0 comments on commit df2eeca

Please sign in to comment.