Skip to content

Commit

Permalink
fix: read notes
Browse files Browse the repository at this point in the history
- better login on the last commit
- Cuboids not on the mainscreen are filtered based on their center now instead of them being fully visible on the mainscreen. This fixes issues with large objects like wintertodt gate
  • Loading branch information
Torwent committed Jan 19, 2024
1 parent 603431f commit 79e0a33
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 208 deletions.
2 changes: 1 addition & 1 deletion osr/interfaces/mainscreen.simba
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ end;

function TRSMainScreen.IsVisible(cuboid: TCuboidEx): Boolean; overload;
begin
Result := Self.IsVisible(cuboid.ConvexHull(), False);
Result := Self.IsVisible(cuboid.Center());
end;


Expand Down
16 changes: 8 additions & 8 deletions osr/mm2ms.simba
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,20 @@ Example
*)
procedure TMM2MS.SetupZoom();
begin
if (Self.ZoomLevel = -1) then
begin
Self.DebugLn('Unknown zoom level, reading from options...');
Self.ZoomLevel := Options.GetZoomLevel;
Self.DebugLn('Current zoom level: ' + ToString(Self.ZoomLevel));
end;
if Self.ZoomLevel > -1 then
Exit;

Self.DebugLn('Unknown zoom level, reading from options...');
Self.ZoomLevel := Options.GetZoomLevel();
Self.DebugLn('Current zoom level: ' + ToString(Self.ZoomLevel));
end;


function TRSMinimap.ArrToMs(atpa: T2DPointArray; roll:Single=$FFFF): T2DPointArray; overload;
function TRSMinimap.ArrToMs(atpa: T2DPointArray; roll: Single = $FFFF): T2DPointArray; overload;
var
tpa: TPointArray;
begin
if (roll = $FFFF) then
if roll = $FFFF then
roll := Self.GetCompassAngle(False);

for tpa in atpa do
Expand Down
1 change: 1 addition & 0 deletions osr/walker/objects/rsobjects.simba
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ begin
begin
SetupEx([10, 4, 30], [[1912, 596]]);
SetupUpText(['Doors', 'Dinh']);
Filter.Finder := False;
end;

with Self.WintertodtRootNW do
Expand Down
Loading

0 comments on commit 79e0a33

Please sign in to comment.