mirror of
https://github.com/parnic/advent-of-code-2022.git
synced 2025-06-16 13:40:13 -05:00
Treat the vector as immutable
This commit is contained in:
@ -116,7 +116,7 @@ internal class Day15 : Day
|
||||
pt += dir;
|
||||
}
|
||||
|
||||
dir.x = 1;
|
||||
dir = new ivec2(1, dir.y);
|
||||
while (answer == null)
|
||||
{
|
||||
pointsTested++;
|
||||
@ -134,7 +134,7 @@ internal class Day15 : Day
|
||||
pt += dir;
|
||||
}
|
||||
|
||||
dir.y = -1;
|
||||
dir = new ivec2(dir.x, -1);
|
||||
while (answer == null)
|
||||
{
|
||||
pointsTested++;
|
||||
@ -152,7 +152,7 @@ internal class Day15 : Day
|
||||
pt += dir;
|
||||
}
|
||||
|
||||
dir.x = -1;
|
||||
dir = new ivec2(-1, dir.y);
|
||||
while (answer == null)
|
||||
{
|
||||
pointsTested++;
|
||||
|
Reference in New Issue
Block a user