Foohy / jazztronauts

Jazztronauts is a cooperative theft-em-up for Garry's Mod, also known as prop hunt 2.
123 stars 34 forks source link

Green bar on completed missions #180

Closed Commenter25 closed 8 months ago

Commenter25 commented 1 year ago

Based off #45, pretty self explanatory. Improved the logic a bit to only use one if. Also removed a random empty unreferenced function.

Commenter25 commented 1 year ago

I don't think that's mathematically possible. The width is calculated by multiplying by the percentage, and if the percentage is zero... well, it'll multiply by zero, which is nothing.

That said, just to be certain if it's a concern, I went ahead and re-added it.

SageJFox commented 1 year ago

Ha, haha. You think actual math has any bearing on 2D drawing.

Seriously though, I don't know for sure that it's an issue in Source/GMod, but I do know it's been an issue on at least some hardware in every other game engine I've used. Better to just explicitly not draw it than leave it up to the renderer to understand that a 0 width means don't draw it.