INNER CODE UNIT · C++

origin

TombEngine/TombEngine · TombEngine/Game/camera.cpp:389

			auto origin = *ideal;
			auto target = Camera.pos;
			if (!LOSAndReturnTarget(&origin, &target, 0) &&
				++CameraSnaps >= 8)
			{
				Camera.pos = *ideal;
				CameraSnaps = 0;
			}
		}
	}

	pointColl = GetPointCollision(Camera.pos.ToVector3i(), Camera.pos.RoomNumber);

	int buffer = CLICK(1) - 1;
	if ((Camera.pos.y - buffer) < pointColl.GetCeilingHeight() &&
		(Camera.pos.y + buffer) > pointColl.GetFloorHeight() &&
		pointColl.GetCeilingHeight() < pointColl.GetFloorHeight() &&
		pointColl.GetCeilingHeight() != NO_HEIGHT &&

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…