diff options
| author | tpart <tpart120@proton.me> | 2024-08-29 15:58:35 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-08-29 15:58:35 +0200 | 
| commit | f483afdc85f10934828dcacfa1636cd1934bfa8b (patch) | |
| tree | 5995402c268f598505b884ef5b78c4c1d33ad72e /client/game.gd | |
| parent | 295a5b6658b8202399a4940c207bd56f51bbcec9 (diff) | |
| download | hurrycurry-f483afdc85f10934828dcacfa1636cd1934bfa8b.tar hurrycurry-f483afdc85f10934828dcacfa1636cd1934bfa8b.tar.bz2 hurrycurry-f483afdc85f10934828dcacfa1636cd1934bfa8b.tar.zst  | |
Fix error when leaving and joining game after sending chat messages
Diffstat (limited to 'client/game.gd')
| -rw-r--r-- | client/game.gd | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd index 10e3fa0c..7a5e30db 100644 --- a/client/game.gd +++ b/client/game.gd @@ -219,8 +219,9 @@ func _ready():  	mp.text_message.connect(func(player: int, text: String, timeout_initial: float, timeout_remaining: float):  		var p: Player = players[player]  		p.text_message(text, timeout_initial, timeout_remaining) -		text_message.emit(player, text, timeout_initial, timeout_remaining) -		text_message_history.append([player, text]) +		var username: String = players[player].username +		text_message.emit(username, text, timeout_initial, timeout_remaining) +		text_message_history.append([username, text])  	)  	mp.item_message.connect(func(player: int, item: int, timeout_initial: float, timeout_remaining: float):  |