spell recording handle rotate wall

This commit is contained in:
2024-08-26 21:42:29 -05:00
committed by Celtic Minstrel
parent 89f56bfe4a
commit 545e8c3e9a
2 changed files with 8 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
#include "spell.hpp"
#include "tools/prefs.hpp"
#include "utility.hpp"
#include "replay.hpp"
extern eGameMode overall_mode;
extern short which_combat_type;
@@ -5245,6 +5246,9 @@ void start_fancy_spell_targeting(eSpell num, bool freebie, int spell_range, eSpe
}
void spell_cast_hit_return() {
if(recording){
record_action("spell_cast_hit_return", "");
}
if(force_wall_position < 10) {
force_wall_position = (force_wall_position + 1) % 8;

View File

@@ -103,6 +103,8 @@ short store_spell_target = 6,pc_casting;
short num_targets_left = 0;
location spell_targets[8];
extern void spell_cast_hit_return();
/* Combat globals */
short which_combat_type;
location center;
@@ -451,6 +453,8 @@ static void replay_next_action() {
sstr >> num_targets_left;
handle_target_space(destination, did_something, need_redraw, need_reprint);
}else if(t == "spell_cast_hit_return"){
spell_cast_hit_return();
}
// TODO some of these actions shouldn't call advance_time(). They should return