COMI: Failed assertion when starting the game (regression)
|Reported by:||eriktorbjorn||Owned by:||Kirben|
|Cc:||Game:||Monkey Island 3|
When I try to start The Curse of Monkey Island with the latest CVS snapshot of ScummVM, it immediately terminates with the following message:
Assertion failed: camera._cur.x >= (_screenWidth / 2) && camera._cur.y >= (_screenHeight / 2), file scumm/camera.cpp, line 76
From what I could see setCameraAt(320, 240) was called, which should be a valid camera position except the X coordinate was clamped down to 0. I'm guessing that VAR(VAR_CAMERA_MIN_X) and VAR(VAR_CAMERA_MAX_X) weren't properly initialized, but I don't know why.
I haven't yet had the time to check when the bug was introduced.
Ticket imported from: #804938. Ticket imported from: bugs/1222.