Last active
May 1, 2021 12:39
-
-
Save mattkimber/e2dab2f47f45d975faa2d77c61e5ea9d to your computer and use it in GitHub Desktop.
Vehicle reversal problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Vehicle::UpdateViewport(bool dirty) | |
{ | |
Rect old_coord = this->sprite_cache.old_coord; | |
this->UpdateBoundingBoxCoordinates(true); | |
if (old_coord.left == INVALID_COORD) { | |
UpdateVehicleViewportHash(this, this->coord.left, this->coord.top, old_coord.left, old_coord.top); | |
} else { | |
UpdateVehicleViewportHash(this, this->coord.left, this->coord.top, this->sprite_cache.old_coord.left, this->sprite_cache.old_coord.top); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment