sevivon

[DORMANT] multiplayer dreidel game for mobile devices w/ godot
git clone git://git.figbert.com/sevivon.git
Log | Files | Refs | README | LICENSE

commit 9440c391199b650daf45a35ccbca100b08f74c95
parent e1879825b6280ce3e38bedc8d017484e75ee709f
Author: FIGBERT <figbert@figbert.com>
Date:   Thu,  4 Feb 2021 16:38:53 -0800

Fix integer division warnings

Diffstat:
Msrc/scripts/main.gd | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scripts/main.gd b/src/scripts/main.gd @@ -136,8 +136,8 @@ func _spin_dreidel(id: int) -> void: _everyone_puts_in_one() spin_results["gimmel"] += 1 2: # hey - players[id]["gelt"] += floor(pot / 2) - pot -= floor(pot / 2) + players[id]["gelt"] += floor(pot / 2.0) + pot -= floor(pot / 2.0) if pot == 1: _everyone_puts_in_one() spin_results["hey"] += 1