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:
Lemongrass3110
2022-08-27 04:23:40 +02:00
committed by GitHub
parent a03644fc53
commit b1b371f4b8
15 changed files with 512 additions and 513 deletions

View File

@@ -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);