kanethemediocre / BlingHustle

Open sauce 2d space adventure
GNU General Public License v3.0
0 stars 0 forks source link

"T" doesn't always select closest target #4

Closed kanethemediocre closed 3 years ago

kanethemediocre commented 3 years ago

Works most of the time, but sometimes a different ship is deemed "closest".
Noted in UmoSpace138.html.

kanethemediocre commented 3 years ago

ubv107 fixes this. "closestindex" was re-declared inside the hud() function, overriding the global closestindex that is used when the "T" key is hit. I commented out the redundant declaration, and it seems to work now.