mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-28 08:47:14 +00:00
Cleanup Camera related code and uses constant references where possible.
Commented By: elexis Differential Revision: https://code.wildfiregames.com/D2350 This was SVN commit r23033.
This commit is contained in:
@@ -141,7 +141,7 @@ void JSI_GameView::CameraFollow(ScriptInterface::CxPrivate* UNUSED(pCxPrivate),
|
||||
if (!g_Game || !g_Game->GetView())
|
||||
return;
|
||||
|
||||
g_Game->GetView()->CameraFollow(entityid, false);
|
||||
g_Game->GetView()->FollowEntity(entityid, false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,7 +153,7 @@ void JSI_GameView::CameraFollowFPS(ScriptInterface::CxPrivate* UNUSED(pCxPrivate
|
||||
if (!g_Game || !g_Game->GetView())
|
||||
return;
|
||||
|
||||
g_Game->GetView()->CameraFollow(entityid, true);
|
||||
g_Game->GetView()->FollowEntity(entityid, true);
|
||||
}
|
||||
|
||||
entity_id_t JSI_GameView::GetFollowedEntity(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
|
||||
Reference in New Issue
Block a user