Pass object &to start_robot_death_sequence
This commit is contained in:
parent
86b7151140
commit
6e0e286dc8
|
@ -270,7 +270,7 @@ extern void init_thief_for_level();
|
|||
extern objnum_t Buddy_objnum;
|
||||
extern int Buddy_allowed_to_talk;
|
||||
|
||||
void start_robot_death_sequence(vobjptr_t objp);
|
||||
void start_robot_death_sequence(object &objp);
|
||||
void buddy_message_str(const char * str) __attribute_nonnull();
|
||||
void buddy_message(const char * format, ... ) __attribute_format_printf(1, 2);
|
||||
#define buddy_message(F,...) dxx_call_printf_checked(buddy_message,buddy_message_str,(),(F),##__VA_ARGS__)
|
||||
|
|
|
@ -2303,12 +2303,12 @@ void init_ai_for_ship(void)
|
|||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
void start_robot_death_sequence(const vobjptr_t objp)
|
||||
void start_robot_death_sequence(object &obj)
|
||||
{
|
||||
objp->ctype.ai_info.dying_start_time = GameTime64;
|
||||
objp->ctype.ai_info.dying_sound_playing = 0;
|
||||
objp->ctype.ai_info.SKIP_AI_COUNT = 0;
|
||||
|
||||
auto &ai_info = obj.ctype.ai_info;
|
||||
ai_info.dying_start_time = GameTime64;
|
||||
ai_info.dying_sound_playing = 0;
|
||||
ai_info.SKIP_AI_COUNT = 0;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue