Skip to content

Commit

Permalink
fix: raider trikes also constructing instantly if instant wall enhanc…
Browse files Browse the repository at this point in the history
…ement is enabled
  • Loading branch information
codeflorist committed Jan 7, 2025
1 parent c90bf56 commit c439955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void GameLoop_Structure(void)
if (buildCost / 256 <= h->credits) {
s->buildCostRemainder = buildCost & 0xFF;

if (enhancement_instant_walls && s->objectType == STRUCTURE_WALL && h->credits >= oi->buildCredits) {
if (enhancement_instant_walls && s->o.type == STRUCTURE_CONSTRUCTION_YARD && s->objectType == STRUCTURE_WALL && h->credits >= oi->buildCredits) {
h->credits -= oi->buildCredits;
s->countDown = 0;
}
Expand Down

0 comments on commit c439955

Please # to comment.