Infinity vehicle health bug (between players).
#3

Quote:
Originally Posted by AmigaBlizzard
Посмотреть сообщение
Also, 0x7F800000 isn't the highest value and certainly isn't the same as -0.0.
The highest value for a 32-bit signed integer is 0x7FFFFFFF, which is the same as 2147483647.
If you add 1 to that value, it will flip negative to 0x80000000 (or -2147483648 ).

Just set it to some high value (like 1000000 or so), you can't reach infinity with binary values anyways.
If we would be talking about integers then you would be correct. But floating point values don't work like that. 0x7F800000 is actually defined as "infinity" in the IEEE 754 standard. See: https://www.h-schmidt.net/FloatConverter/IEEE754.html
Reply


Messages In This Thread
Infinity vehicle health bug (between players). - by Swedky - 30.11.2016, 03:27
Re: Infinity vehicle health bug (between players). - by AmigaBlizzard - 30.11.2016, 10:36
Re: Infinity vehicle health bug (between players). - by Vince - 30.11.2016, 14:51
Re: Infinity vehicle health bug (between players). - by AmigaBlizzard - 30.11.2016, 21:30
Re: Infinity vehicle health bug (between players). - by NaS - 04.12.2016, 17:19
Re: Infinity vehicle health bug (between players). - by Swedky - 04.12.2016, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)