mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 19:52:23 +00:00
Modified world intersection so that you can also intersect with the water plane, which is useful for making ships move around as expected when you rightclick a spot on the water.
This was SVN commit r4319.
This commit is contained in:
@@ -847,7 +847,7 @@ jsval CEntity::GetRallyPoint( JSContext* UNUSED(cx), uintN UNUSED(argc), jsval*
|
||||
jsval CEntity::SetRallyPoint( JSContext* UNUSED(cx), uintN UNUSED(argc), jsval* UNUSED(argv) )
|
||||
{
|
||||
entf_set(ENTF_HAS_RALLY_POINT);
|
||||
m_rallyPoint = g_Game->GetView()->GetCamera()->GetWorldCoordinates();
|
||||
m_rallyPoint = g_Game->GetView()->GetCamera()->GetWorldCoordinates(true);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user