apetavern / grubs

A worms-inspired artillery game for s&box with randomly generated levels.
MIT License
29 stars 7 forks source link

Turn selection trying to switch to a dead player #386

Closed cs716 closed 1 month ago

cs716 commented 1 month ago

Turn selection will sometimes select a dead player and get stuck because it can't get the active worm. Possible related to #385 ?

DrewBritt commented 1 month ago

We likely ran into this bug due to what I've fixed with https://github.com/apetavern/grubs/commit/f74ad68856f60cb4664f8eb34f228f57feab5ecf, however I also noticed an oversight in the turn logic that would lead to dead players being selected to play, which I've fixed with https://github.com/apetavern/grubs/commit/417bb9201f97462dcbf86ce00527aa27809d125a.