Skip to content

Commit

Permalink
Fixed imps getting stuck after reinforce special
Browse files Browse the repository at this point in the history
fixes #3724
  • Loading branch information
Loobinex committed Jan 10, 2025
1 parent 6f613a3 commit ae6c210
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/power_specials.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void make_safe(struct PlayerInfo *player)
if ((slbattr->category == SlbAtCtg_FriableDirt) && slab_by_players_land(plyr_idx, slb_x-1, slb_y))
{
unsigned char pretty_type = choose_pretty_type(plyr_idx, slb_x - 1, slb_y);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x-1,0), slab_subtile(slb_y,0), plyr_idx, 1);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x-1,0), slab_subtile(slb_y,0), plyr_idx, 0);
do_slab_efficiency_alteration(slb_x-1, slb_y);
fill_in_reinforced_corners(plyr_idx, slb_x-1, slb_y);
}
Expand All @@ -353,7 +353,7 @@ void make_safe(struct PlayerInfo *player)
if ((slbattr->category == SlbAtCtg_FriableDirt) && slab_by_players_land(plyr_idx, slb_x+1, slb_y))
{
unsigned char pretty_type = choose_pretty_type(plyr_idx, slb_x + 1, slb_y);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x+1,0), slab_subtile(slb_y,0), plyr_idx, 1u);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x+1,0), slab_subtile(slb_y,0), plyr_idx, 0);
do_slab_efficiency_alteration(slb_x+1, slb_y);
fill_in_reinforced_corners(plyr_idx, slb_x+1, slb_y);
}
Expand All @@ -376,7 +376,7 @@ void make_safe(struct PlayerInfo *player)
if ((slbattr->category == SlbAtCtg_FriableDirt) && slab_by_players_land(plyr_idx, slb_x, slb_y-1))
{
unsigned char pretty_type = choose_pretty_type(plyr_idx, slb_x, slb_y - 1);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x,0), slab_subtile(slb_y-1,0), plyr_idx, 1);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x,0), slab_subtile(slb_y-1,0), plyr_idx, 0);
do_slab_efficiency_alteration(slb_x, slb_y-1);
fill_in_reinforced_corners(plyr_idx, slb_x, slb_y-1);
}
Expand All @@ -399,7 +399,7 @@ void make_safe(struct PlayerInfo *player)
if ((slbattr->category == SlbAtCtg_FriableDirt) && slab_by_players_land(plyr_idx, slb_x, slb_y+1))
{
unsigned char pretty_type = choose_pretty_type(plyr_idx, slb_x, slb_y + 1);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x,0), slab_subtile(slb_y+1,0), plyr_idx, 1);
place_slab_type_on_map(pretty_type, slab_subtile(slb_x,0), slab_subtile(slb_y+1,0), plyr_idx, 0);
do_slab_efficiency_alteration(slb_x, slb_y+1);
fill_in_reinforced_corners(plyr_idx, slb_x, slb_y+1);
}
Expand Down

0 comments on commit ae6c210

Please sign in to comment.