diff options
Diffstat (limited to '')
| -rw-r--r-- | src/client/games/manager.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/games/manager.rs b/src/client/games/manager.rs index bb2a8b5..24ceeaa 100644 --- a/src/client/games/manager.rs +++ b/src/client/games/manager.rs | |||
| @@ -353,7 +353,7 @@ impl GameManager { | |||
| 353 | .insert("balance".to_string(), state.balance.to_string()); | 353 | .insert("balance".to_string(), state.balance.to_string()); |
| 354 | session | 354 | session |
| 355 | .data | 355 | .data |
| 356 | .insert("multiplier".to_string(), format!("{:.2}", state.multiplier)); | 356 | .insert("multiplier".to_string(), state.multiplier.to_string()); |
| 357 | session | 357 | session |
| 358 | .data | 358 | .data |
| 359 | .insert("potential".to_string(), state.potential.to_string()); | 359 | .insert("potential".to_string(), state.potential.to_string()); |
| @@ -373,9 +373,11 @@ impl GameManager { | |||
| 373 | return; | 373 | return; |
| 374 | }; | 374 | }; |
| 375 | let bet = session.bet_amount; | 375 | let bet = session.bet_amount; |
| 376 | // Keep the full value: the terminal rounds for display, but the GUI | ||
| 377 | // charts it and must not draw a staircase. | ||
| 376 | session | 378 | session |
| 377 | .data | 379 | .data |
| 378 | .insert("multiplier".to_string(), format!("{multiplier:.2}")); | 380 | .insert("multiplier".to_string(), multiplier.to_string()); |
| 379 | session | 381 | session |
| 380 | .data | 382 | .data |
| 381 | .insert("potential".to_string(), payout(bet, multiplier).to_string()); | 383 | .insert("potential".to_string(), payout(bet, multiplier).to_string()); |
