mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
Consoles: Temp hack to make camera work in splitscreen mode
This commit is contained in:
parent
7881d05646
commit
0d772f5e90
13
src/Game.c
13
src/Game.c
@ -763,7 +763,20 @@ static CC_INLINE void Game_RenderFrame(void) {
|
||||
Game_Vertices = 0;
|
||||
|
||||
if (Input.Sources & INPUT_SOURCE_GAMEPAD) Gamepad_Tick(delta);
|
||||
|
||||
#ifdef CC_BUILD_SPLITSCREEN
|
||||
/* TODO: find a better solution */
|
||||
for (int i = 0; i < Game_NumStates; i++)
|
||||
{
|
||||
Game.CurrentState = i;
|
||||
Entities.CurPlayer = &LocalPlayer_Instances[i];
|
||||
Camera.Active->UpdateMouse(Entities.CurPlayer, delta);
|
||||
}
|
||||
Game.CurrentState = 0;
|
||||
Entities.CurPlayer = &LocalPlayer_Instances[0];
|
||||
#else
|
||||
Camera.Active->UpdateMouse(Entities.CurPlayer, delta);
|
||||
#endif
|
||||
|
||||
if (!Window_Main.Focused && !Gui.InputGrab) Gui_ShowPauseMenu();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user