Skip to content

Commit 99dc917

Browse files
committed
Fix lost world soft locking in the gun calibration menu
1 parent 5d547e3 commit 99dc917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Src/Model3/Model3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ void CModel3::RunMainBoardFrame(void)
20882088
unsigned ppcCycles = GetCPUClockFrequencyInHz(m_game, m_config);
20892089
unsigned frameCycles = (unsigned)((float)ppcCycles / 57.524160f);
20902090
unsigned lineCycles = frameCycles / 424;
2091-
unsigned pingPongCycles = lineCycles * (TileGen.ReadRegister(0x08) + 40);
2091+
unsigned pingPongCycles = lineCycles * (TileGen.ReadRegister(0x08) + 40 + 1); // add 1 or lost world soft locks in the gun calibration menu. Perhaps ping_ping flips at the end of the line not the start.
20922092
unsigned vBlankCycles = lineCycles * 40;
20932093

20942094
// Games will start writing a new frame after the ping-pong buffers have been flipped, which is indicated by the

0 commit comments

Comments
 (0)