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

Method Camera_TileSpeedY_Set

Source/Fodder.cpp:2395–2413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2393}
2394
2395void cFodder::Camera_TileSpeedY_Set() {
2396
2397 int32 dword_39F5A = mCameraY;
2398
2399 mCameraY += mCamera_Speed_Y;
2400 if (mCameraY < 0) {
2401 mCamera_Speed_Y = dword_39F5A;
2402
2403 if (mCamera_Speed_Y)
2404 mCamera_Speed_Y = -mCamera_Speed_Y;
2405
2406 mCameraY = 0;
2407 }
2408
2409 //loc_121F2
2410
2411 mCamera_TileSpeedY += (mCamera_Speed_Y + mCamera_TileSpeed_Overflow);
2412 mCamera_TileSpeedY &= (0x00FF << 16) | 0xFFFF;
2413}
2414
2415void cFodder::Camera_Speed_MaxSet() {
2416

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected