Skip to content

Commit 1815bf6

Browse files
committed
fix: Update ball manger API.
1 parent 504521b commit 1815bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VisualPinball.Engine.PinMAME.Unity/Runtime/PinMameGamelogicEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public void Switch(string id, bool isClosed)
740740
_pinMame.SetSwitch(_switchIdToPinMameIdMappings[_switches[id].Id], isClosed);
741741
} else if (id == "s_spawn_ball") {
742742
if (isClosed) {
743-
_ballManager.CreateBall(new DebugBallCreator(630, _playfieldComponent.Height / 2f, _playfieldComponent.TableHeight));
743+
_ballManager.CreateBall(new DebugBallCreator(630f, _playfieldComponent.Height / 2f));
744744
}
745745
} else {
746746
Logger.Error($"[PinMAME] Unknown switch \"{id}\".");

0 commit comments

Comments
 (0)