Yoshi's Island: Fix client giving victory randomly (#3586)
* Create d * Create d * Delete worlds/mariomissing/d * Delete mariomissing directory * Create d * Add files via upload * Delete worlds/mariomissing/d * Delete worlds/mariomissing directory * Add files via upload * Delete worlds/sai2 directory * fix dumb client bug
This commit is contained in:
parent
07dd8f0671
commit
6c54b3596b
|
@ -87,9 +87,7 @@ class YoshisIslandSNIClient(SNIClient):
|
|||
|
||||
if game_mode is None:
|
||||
return
|
||||
elif goal_flag[0] != 0x00:
|
||||
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||
ctx.finished_game = True
|
||||
|
||||
elif game_mode[0] not in VALID_GAME_STATES:
|
||||
return
|
||||
elif item_received[0] > 0x00:
|
||||
|
@ -101,6 +99,10 @@ class YoshisIslandSNIClient(SNIClient):
|
|||
ctx.rom = None
|
||||
return
|
||||
|
||||
if goal_flag[0] != 0x00:
|
||||
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||
ctx.finished_game = True
|
||||
|
||||
new_checks = []
|
||||
from .Rom import location_table
|
||||
|
||||
|
|
Loading…
Reference in New Issue