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:
7aba6f0
)
currency: Rename show_new_qty
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 20:26:05 +0000
(21:26 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 20:27:15 +0000
(21:27 +0100)
We're going to show different quantities at different times.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/currency.rs
patch
|
blob
|
history
diff --git
a/src/currency.rs
b/src/currency.rs
index 42702616321bdc6b178317699022ed5fa5737a0e..948b40cc53b32e9d21284ef39c1173d9071e1bb1 100644
(file)
--- a/
src/currency.rs
+++ b/
src/currency.rs
@@
-263,7
+263,7
@@
impl PieceTrait for Banknote {
None => return default(), // arithmetic overflow!
};
- let show_qty = mgpc.fully_visible_to_everyone();
+ let show_
new_
qty = mgpc.fully_visible_to_everyone();
let logent = hformat!(
"{} deposited {}, giving {}{}",
@@
-272,7
+272,7
@@
impl PieceTrait for Banknote {
None => Html::lit("Departing player").into(),
},
tipc.p.show(show).describe_html(tgpc, goccults)?,
- &new_value.html(show_qty),
+ &new_value.html(show_
new_
qty),
currency,
);