projects
/
onyx-aoc-2020.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcbd9d7
)
removed dummy data
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 22 Dec 2020 04:24:58 +0000
(22:24 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 22 Dec 2020 04:24:58 +0000
(22:24 -0600)
day20.onyx
patch
|
blob
|
history
diff --git
a/day20.onyx
b/day20.onyx
index 8c466e9ad84fac3ac22bf109f1cd329cf00585cd..547c0bc66b53d37065f8df6c52e017913dcb1f1b 100644
(file)
--- a/
day20.onyx
+++ b/
day20.onyx
@@
-183,14
+183,6
@@
apply_orientation :: proc (t: ^Tile, ori: TO) {
t.orientation = ori;
}
-dummy_data := u32.[
- 0, 1, 0, 0, 0,
- 0, 1, 0, 1, 0,
- 1, 1, 1, 1, 1,
- 0, 1, 0, 0, 0,
- 0, 1, 0, 0, 0,
-];
-
index_square_with_orientation :: proc (data: ^$T, ori: TO, size: i32, x: i32, y: i32) -> ^T {
switch ori {
case TO.N do return ^data[x + y * size];