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:
7c2cd82
)
hidden: Do not permute pieces for players with Visible view
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 14:25:25 +0000
(14:25 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 14:25:25 +0000
(14:25 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs
patch
|
blob
|
history
diff --git
a/src/hidden.rs
b/src/hidden.rs
index 1d2a90c98e591005d4363ee43747704556ba62b8..03b4ff8fe835bf957b63d85f456e8dd82b9eb6e8 100644
(file)
--- a/
src/hidden.rs
+++ b/
src/hidden.rs
@@
-441,8
+441,13
@@
mod vpid {
new_notches
};
- for gpl in gplayers.values_mut() {
- // xxx don't do this for Visible, check occk
+ for (player, gpl) in gplayers.iter_mut() {
+ match occ.views.get_kind(player) {
+ OccK::Visible => continue,
+ OccK::Scrambled |
+ OccK::Displaced{..} |
+ OccK::Invisible => (),
+ };
let mut fwd_updates = vec![];
for (old, new) in izip!(&occ.notches.table, &new_notches) {