spell recording handle rotate wall
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user