Skip to content

Commit

Permalink
Fixed call to arms that I broke
Browse files Browse the repository at this point in the history
  • Loading branch information
Loobinex committed Nov 25, 2024
1 parent fe6421d commit 122461f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/fxdata/playerstates.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PointerGroup = "INVISIBLE"
StopOwnUnits = false

[playerstate6]
Name = "PLAYER_STATE_CALL_TO_ARMS"
Name = "PLAYER_STATE_CALLTOARMS"
PointerGroup = "SPELL"
StopOwnUnits = false

Expand Down
1 change: 1 addition & 0 deletions src/packets_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ TbBool process_dungeon_control_packet_clicks(long plyr_idx)
case PSt_BuildRoom:
process_dungeon_control_packet_dungeon_build_room(plyr_idx);
break;
case PSt_CallToArms:
case PSt_CastPowerOnSubtile:
if (((pckt->control_flags & PCtr_LBtnRelease) != 0) && ((pckt->control_flags & PCtr_MapCoordsValid) != 0))
{
Expand Down
2 changes: 2 additions & 0 deletions src/player_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ void set_player_state(struct PlayerInfo *player, short nwrk_state, long chosen_k
break;
case PSt_CastPowerOnSubtile:
case PST_CastPowerOnTarget:
case PSt_CallToArms:
player->chosen_power_kind = chosen_kind;
break;
}
Expand Down Expand Up @@ -371,6 +372,7 @@ void set_player_state(struct PlayerInfo *player, short nwrk_state, long chosen_k
break;
case PSt_CastPowerOnSubtile:
case PST_CastPowerOnTarget:
case PSt_CallToArms:
player->chosen_power_kind = chosen_kind;
break;
case PSt_MkGoodCreatr:
Expand Down

0 comments on commit 122461f

Please sign in to comment.