mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Clamp ud.camerahoriz after EVENT_DISPLAYROOMS (instead of before).
git-svn-id: https://svn.eduke32.com/eduke32@2410 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2dca87b80a
commit
5791d5e068
1 changed files with 2 additions and 3 deletions
|
@ -3623,12 +3623,11 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ud.camerahoriz > HORIZ_MAX) ud.camerahoriz = HORIZ_MAX;
|
|
||||||
else if (ud.camerahoriz < HORIZ_MIN) ud.camerahoriz = HORIZ_MIN;
|
|
||||||
|
|
||||||
if (apScriptGameEvent[EVENT_DISPLAYROOMS])
|
if (apScriptGameEvent[EVENT_DISPLAYROOMS])
|
||||||
VM_OnEvent(EVENT_DISPLAYROOMS, g_player[screenpeek].ps->i, screenpeek, -1);
|
VM_OnEvent(EVENT_DISPLAYROOMS, g_player[screenpeek].ps->i, screenpeek, -1);
|
||||||
|
|
||||||
|
ud.camerahoriz = clamp(ud.camerahoriz, HORIZ_MIN, HORIZ_MAX);
|
||||||
|
|
||||||
G_HandleMirror(ud.camera.x, ud.camera.y, ud.camera.z, ud.cameraang, ud.camerahoriz, smoothratio);
|
G_HandleMirror(ud.camera.x, ud.camera.y, ud.camera.z, ud.cameraang, ud.camerahoriz, smoothratio);
|
||||||
|
|
||||||
G_SE40(smoothratio);
|
G_SE40(smoothratio);
|
||||||
|
|
Loading…
Reference in a new issue