MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / MapTile_Update_Y

Method MapTile_Update_Y

Source/Fodder.cpp:8640–8662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8638}
8639
8640void cFodder::MapTile_Update_Y() {
8641 int16 Data0 = mMapTile_MoveDirectionY;
8642
8643 if (Data0 < 0)
8644 Data0 = -1;
8645 else
8646 Data0 = 1;
8647 // Direction Change?
8648 if (Data0 != mMapTile_MoveDirectionY_Previous) {
8649 mMapTile_MoveDirectionY_Previous = Data0;
8650 Data0 = mMapTile_SpeedY >> 16;
8651 int16 Data4 = mMapTile_SpeedY_Previous;
8652
8653 Data0 >>= 4;
8654 Data4 >>= 4;
8655 if (Data4 != Data0)
8656 return;
8657 }
8658
8659 mCamera_MovePauseY = 0;
8660 mMapTile_DrawY = mMapTile_TargetY >> 16;
8661 mMapTile_SpeedY_Previous = mMapTile_SpeedY >> 16;
8662}
8663
8664void cFodder::MapTile_Update_X() {
8665 int16 Data0 = mMapTile_MoveDirectionX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected