chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf4dc2e
)
clock: Swap x and y
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Mar 2021 12:32:35 +0000
(12:32 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Mar 2021 12:35:32 +0000
(12:35 +0000)
It just makes more sense for White to be X.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs
patch
|
blob
|
history
diff --git
a/src/clock.rs
b/src/clock.rs
index 41b43d6afd99eed5cc35bdead2ffdc1ae06785b6..5efb416763c436aa560a1f67b01395c03c44eae0 100644
(file)
--- a/
src/clock.rs
+++ b/
src/clock.rs
@@
-61,8
+61,8
@@
impl Spec {
// will go from stopped to Y, and then later when it's X's turn
// X will get an extra per_move. Y therefore needs per_move too.
[
- self.initial_time(),
self.initial_time() + self.per_move(),
+ self.initial_time(),
]
}
}
@@
-449,7
+449,7
@@
impl PieceTrait for Clock {
// player missing, nick is red and pink
- const Y: &[f32] = &[
0., 7
. ];
+ const Y: &[f32] = &[
7., 0
. ];
struct Show {
text: &'static str,