mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 01:15:13 +01:00
Make AI overlay use vis1 (#31348)
* Make AI overlay use vis1 I think this is what get_hear in 13 uses idk this shit is esoteric. vis1 is luminosity vis2 is line of sight. * boark
This commit is contained in:
@@ -482,11 +482,11 @@ public sealed class StationAiVisionSystem : EntitySystem
|
||||
|
||||
if (TargetTile != null)
|
||||
{
|
||||
if (vis2.TryGetValue(TargetTile.Value, out var tileVis2))
|
||||
if (vis1.TryGetValue(TargetTile.Value, out var tileVis))
|
||||
{
|
||||
DebugTools.Assert(seedTiles.Contains(TargetTile.Value));
|
||||
|
||||
if (tileVis2 != 0)
|
||||
if (tileVis != 0)
|
||||
{
|
||||
lock (System)
|
||||
{
|
||||
@@ -505,9 +505,9 @@ public sealed class StationAiVisionSystem : EntitySystem
|
||||
if (!System._viewportTiles.Contains(tile))
|
||||
continue;
|
||||
|
||||
var tileVis2 = vis2.GetValueOrDefault(tile, 0);
|
||||
var tileVis = vis1.GetValueOrDefault(tile, 0);
|
||||
|
||||
if (tileVis2 != 0)
|
||||
if (tileVis != 0)
|
||||
{
|
||||
// No idea if it's better to do this inside or out.
|
||||
lock (VisibleTiles)
|
||||
|
||||
Reference in New Issue
Block a user