MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / UpdateCurrentAnimationType

Method UpdateCurrentAnimationType

src/openrct2/entity/Peep.cpp:391–404  ·  view source on GitHub ↗

* rct2: 0x00693B58 */

Source from the content-addressed store, hash-verified

389 * rct2: 0x00693B58
390 */
391 void Peep::UpdateCurrentAnimationType()
392 {
393 PeepAnimationType newAnimationType = GetAnimationType();
394 if (AnimationType == newAnimationType)
395 {
396 return;
397 }
398
399 AnimationType = newAnimationType;
400
401 invalidate();
402 UpdateSpriteBoundingBox();
403 invalidate();
404 }
405
406 void Peep::UpdateSpriteBoundingBox()
407 {

Callers 7

ExecuteMethod · 0.80
FootpathInterruptPeepsFunction · 0.80
PeepApplauseFunction · 0.80
givePassingGuestPizzaMethod · 0.80
makePassingGuestSickMethod · 0.80
GuestTryGetUpFromSittingFunction · 0.80

Calls 1

invalidateFunction · 0.50

Tested by

no test coverage detected