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:
2fd7cba
)
hidden: Trace missing piece map lookups too
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 16:45:37 +0000
(16:45 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 31 Jan 2021 22:30:54 +0000
(22:30 +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 80c3758267a8ff05b71e065808a1f6d4c2ec1f60..f047fbda01a1872c92a4c0daff0162e8511953e9 100644
(file)
--- a/
src/hidden.rs
+++ b/
src/hidden.rs
@@
-76,12
+76,12
@@
pub fn vpiece_decode(
gpl: &GPlayerState,
vis: VisiblePieceId
) -> Option<PieceId> {
- let piece = gpl.idmap.rev(vis)
?
;
+ let piece = gpl.idmap.rev(vis);
// xxx check for occultation:
// check that this piece is visible at all to this player,
// or they might manipulate it despite not seeing it!
trace!("{} {:?} <= {}", player, piece, vis);
- Some(piece)
+ piece
}
pub fn massage_prep_piecestate(