File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Intersect.Client.Core/Core Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 88using Intersect . Client . Maps ;
99using Intersect . Configuration ;
1010using Intersect . Enums ;
11+ using Intersect . Framework . Core . GameObjects . Maps ;
1112using Intersect . GameObjects ;
1213using Intersect . Utilities ;
1314
@@ -1000,6 +1001,10 @@ private static void UpdateView()
10001001 newView . X = restrictView . Right - newView . Width ;
10011002 }
10021003 }
1004+ else if ( Options . Instance . Map . GameBorderStyle == GameBorderStyle . Seamed )
1005+ {
1006+ newView . X = restrictView . X - ( newView . Width - restrictView . Width ) / 2 ;
1007+ }
10031008
10041009 if ( restrictView . Height >= newView . Height )
10051010 {
@@ -1013,6 +1018,10 @@ private static void UpdateView()
10131018 newView . Y = restrictView . Bottom - newView . Height ;
10141019 }
10151020 }
1021+ else if ( Options . Instance . Map . GameBorderStyle == GameBorderStyle . Seamed )
1022+ {
1023+ newView . Y = restrictView . Y - ( newView . Height - restrictView . Height ) / 2 ;
1024+ }
10161025
10171026 CurrentView = new FloatRect (
10181027 newView . X ,
You can’t perform that action at this time.
0 commit comments