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:
8831081
)
call recalculate_occultation in ungrab
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 01:24:39 +0000
(
01:24
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 01:38:24 +0000
(
01:38
+0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
patch
|
blob
|
history
diff --git
a/daemon/api.rs
b/daemon/api.rs
index 4c948c2fe91daa5ad053afe5a12b901e0ad8aa28..59f3ec6a14adc56d1e5f122c03e62f4074b13073 100644
(file)
--- a/
daemon/api.rs
+++ b/
daemon/api.rs
@@
-294,11
+294,20
@@
api_route!{
&gs.occults, player, gpl, piece, pc, p,
"released"
);
+ let who_by = Html(htmlescape::encode_minimal(&gpl.nick));
- let _ = ipieces;
+ let vanilla = (WhatResponseToClientOp::Predictable,
+ update,
+ logents);
- (WhatResponseToClientOp::Predictable,
- update, logents).into()
+ let update=
+ recalculate_occultation(gs,
+ who_by,
+ ipieces,
+ piece,
+ vanilla).map_err(|e| OnlineError::from(e))?;
+
+ update
}
}