Cleaned up status_change_end (#7211)
* Removed leftover old debug info that made it necessary to the hide the real function behind a define. * Introduced a C++ default argument for timer id, as the timer id is only needed a single time, when the status expires naturally. * Replaced all currently existing calls that had INVALID_TIMER as argument and made use of the new default argument.
This commit is contained in:
@@ -3357,8 +3357,8 @@ int mob_class_change (struct mob_data *md, int mob_id)
|
||||
else
|
||||
memcpy(md->name,md->db->jname.c_str(),NAME_LENGTH);
|
||||
|
||||
status_change_end(&md->bl,SC_KEEPING,INVALID_TIMER); // End before calling status_calc_mob().
|
||||
status_change_end(&md->bl,SC_BARRIER,INVALID_TIMER);
|
||||
status_change_end(&md->bl,SC_KEEPING); // End before calling status_calc_mob().
|
||||
status_change_end(&md->bl,SC_BARRIER);
|
||||
mob_stop_attack(md);
|
||||
mob_stop_walking(md, 0);
|
||||
unit_skillcastcancel(&md->bl, 0);
|
||||
|
||||
Reference in New Issue
Block a user