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:
|
if game_mode is None:
|
||||||
return
|
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:
|
elif game_mode[0] not in VALID_GAME_STATES:
|
||||||
return
|
return
|
||||||
elif item_received[0] > 0x00:
|
elif item_received[0] > 0x00:
|
||||||
|
@ -101,6 +99,10 @@ class YoshisIslandSNIClient(SNIClient):
|
||||||
ctx.rom = None
|
ctx.rom = None
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if goal_flag[0] != 0x00:
|
||||||
|
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||||
|
ctx.finished_game = True
|
||||||
|
|
||||||
new_checks = []
|
new_checks = []
|
||||||
from .Rom import location_table
|
from .Rom import location_table
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue