Merge pull request #2515 from DiscipleOfEris/bugfix-dismounting-sometimes-makes-character-invisible

Fix Dismounting sometimes causing players to become invisible
This commit is contained in:
claywar 2022-08-13 15:05:48 -04:00 committed by GitHub
commit bf5b569eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1054,6 +1054,8 @@ void SmallPacket0x01A(map_session_data_t* const PSession, CCharEntity* const PCh
PChar->animation = ANIMATION_NONE;
PChar->updatemask |= UPDATE_HP;
PChar->StatusEffectContainer->DelStatusEffectSilent(EFFECT_MOUNTED);
// Workaround for a bug where dismounting out of update range would cause the character to stop rendering.
PChar->loc.zone->PushPacket(PChar, CHAR_INZONE, new CCharPacket(PChar, ENTITY_UPDATE, UPDATE_HP));
}
break;
case 0x13: // tractor menu