private static void DoVis(ref List <vector> visset, vector pos, int a, int radius) { for (var i = 0; i < radius; i++) { pos += _degvecs[a * 50]; if (world.IsOpaque(pos)) { return; } if (!visset.Contains(pos)) { visset.Add(pos.Floor()); } } }
private static void DoVisLight(ref HashSet <vector> visset, vector pos, int a) { for (var i = 0; i < level.LightmapSize; i++) { pos += _degvecs[a]; if (world.IsOpaque((pos / renderer.TEXSIZE).Floor())) { return; } if (!visset.Contains(pos)) { visset.Add(pos.Floor()); } } }