stanbsky / How-Hard-Can-It-Be-Redux

DeltaDucks
http://stanbsky.com/How-Hard-Can-It-Be-Redux/
1 stars 0 forks source link

Killing one college kills them all #12

Closed stanbsky closed 2 years ago

stanbsky commented 2 years ago

Exactly what it says: when you shoot and kill any one college, they all die and game is won.

Kroojel commented 2 years ago

It seems that the college death being checked is tied to the disposal of the college. The college is not being correctly disposed of, therefore it continually runs the death script ending the game early.

Kroojel commented 2 years ago

College.java method 'dispose()' should actually deal with the object in some capacity

Kroojel commented 2 years ago

Added "collegeBodiesToRemove.add(college);" line to the death of a college. While this fixed the issue raised, I'm not sure if this is the best method for dealing with it.