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:
32e9512
)
hidden: Fix type of PUO::PerPlayer
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 00:52:45 +0000
(
00:52
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 01:38:24 +0000
(
01:38
+0000)
This is keyed by PlayerId, ie a SecondaryMap
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/updates.rs
patch
|
blob
|
history
diff --git
a/src/updates.rs
b/src/updates.rs
index ee8002cde2806103188fa39a3dcfaf5043d1b77b..bcb9c6ea04e21ec77707593ab0e5c6dc98126571 100644
(file)
--- a/
src/updates.rs
+++ b/
src/updates.rs
@@
-119,7
+119,7
@@
pub struct PieceUpdate {
#[derive(Debug)]
pub enum PieceUpdateOps {
Simple(PieceUpdateOp<(),()>),
- PerPlayer(
Dense
SlotMap<PlayerId, PieceUpdateOp<(),()>>),
+ PerPlayer(
Secondary
SlotMap<PlayerId, PieceUpdateOp<(),()>>),
}
impl From<PieceUpdateOp<(),()>> for PieceUpdateOps {