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:
Matei
2006-09-10 20:38:39 +00:00
parent df1a779d76
commit aa6ca7d1e8
5 changed files with 57 additions and 12 deletions
+1 -1
View File
@@ -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;
}