sevivon

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

commit 40a85063ac937fcfa1c95a27ae02f4c9826a746d
parent dd8609fb985621afb831bc59f327ad02cd837e35
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 13 Feb 2021 16:45:36 -0800

Inline ante_completed in _everyone_puts_in_one()

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

diff --git a/src/scripts/main.gd b/src/scripts/main.gd @@ -160,12 +160,10 @@ func _everyone_puts_in_one() -> void: if players[id]["in"]: players[id]["paid_ante"] = false - var ante_completed := _everyone_anted() - while not ante_completed: + while not _everyone_anted(): var id: int = yield(self, "client_anted") var username: String = players[id]["name"] if not players[id]["in"] or players[id]["paid_ante"]: - ante_completed = _everyone_anted() continue if players[id]["gelt"] > 0: players[id]["gelt"] -= 1 @@ -175,7 +173,6 @@ func _everyone_puts_in_one() -> void: rpc("print_message_from_server", "%s can't pay the ante – you lose!" % username) players[id]["in"] = false players[id]["paid_ante"] = true - ante_completed = _everyone_anted() func _iterate_turn() -> void: