Skip to content

Commit

Permalink
Fix VOB_SPACER_CAMERA_START
Browse files Browse the repository at this point in the history
  • Loading branch information
postm1 committed Jun 27, 2024
1 parent 26fd9f6 commit 833e3bd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions SpacerNET_Union/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,19 +694,20 @@ namespace GOTHIC_ENGINE {
if (pVob)
{
ogame->GetCameraVob()->SetPositionWorld(pVob->GetPositionWorld() + zVEC3(0, 100, 0));
return;
}
else
{
zCArray<zCVob*> resultList;
zCWorld* world = ogame->GetWorld();

world->SearchVobListByClass(zCVobStartpoint::classDef, resultList, 0);

zCArray<zCVob*> resultList;
zCWorld* world = ogame->GetWorld();

world->SearchVobListByClass(zCVobStartpoint::classDef, resultList, 0);

if (resultList.GetNumInList() > 0)
{
ogame->GetCameraVob()->SetPositionWorld(resultList.GetSafe(0)->GetPositionWorld() + zVEC3(0, 75, 0));
if (resultList.GetNumInList() > 0)
{
ogame->GetCameraVob()->SetPositionWorld(resultList.GetSafe(0)->GetPositionWorld() + zVEC3(0, 75, 0));
}
}

}


Expand Down

0 comments on commit 833e3bd

Please sign in to comment.