mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 03:51:41 +00:00
Extra bloaty junk to modernise stuff a bit.
https://fte.triptohell.info/moodles/qss/
This matches the standard library and also fixes the following bug:
- load ad_sepulcher and move to an area where water is visible
- open up the console
- save waterbug
- load waterbug
Water is now invisible as long as the console is still active.
The issue stems from the fact that cvar_set is called at startup
with the arguments ("r_wateralpha", ftos(liquid_alpha)) [1],
and ftos pads its output (" 0.6"). Without skipping the leading
whitespace, Q_atof ends up returning 0, which then gets assigned
to r_wateralpha. This makes the water invisible until a stuffcmd
that sets r_wateralpha again is later received from the server.
With the console open at startup, however, the stuffcmd message
can be delayed indefinitely.
[1]
|
||
---|---|---|
Linux | ||
MacOSX | ||
Misc | ||
Quake | ||
Windows | ||
LICENSE.txt | ||
Quakespasm-Music.txt | ||
Quakespasm.html | ||
Quakespasm.txt |