Change FL_RESERVED1 to GF_MADNESS, move it from flags to gflags.
This was a bug! Glad it broke.
This commit is contained in:
parent
3cd5af1d19
commit
bd4abcc299
3 changed files with 11 additions and 4 deletions
|
@ -230,12 +230,12 @@ SHMultiplayerRules::PlayerPostFrame(base_player pp)
|
|||
pl.sh_insaneactive = bound(0.0f, pl.sh_insaneactive - frametime, pl.sh_insaneactive);
|
||||
|
||||
if (pl.sh_insaneactive > 0.0f)
|
||||
pl.flags |= FL_RESERVED1;
|
||||
pl.gflags |= GF_MADNESS;
|
||||
else {
|
||||
if (pl.flags & FL_RESERVED1) {
|
||||
if (pl.gflags & GF_MADNESS) {
|
||||
bprint(PRINT_CHAT, sprintf("%s is no longer insane!\n", pl.netname));
|
||||
}
|
||||
pl.flags &= ~FL_RESERVED1;
|
||||
pl.gflags &= ~GF_MADNESS;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,3 +49,6 @@
|
|||
#define ITEM_UNUSED30 0x20000000
|
||||
#define ITEM_UNUSED31 0x40000000
|
||||
#define ITEM_UNUSED32 0x80000000
|
||||
|
||||
/* part of .gflags */
|
||||
#define GF_MADNESS (1<<23)
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
/* part of .gflags */
|
||||
#define GF_MADNESS (1<<23)
|
||||
|
||||
#define PHY_JUMP_CHAINWINDOW 0.5
|
||||
#define PHY_JUMP_CHAIN 100
|
||||
#define PHY_JUMP_CHAINDECAY 50
|
||||
|
@ -24,7 +28,7 @@
|
|||
float
|
||||
GamePMove_Maxspeed(player target)
|
||||
{
|
||||
if (target.flags & FL_RESERVED1)
|
||||
if (target.gflags & GF_MADNESS)
|
||||
return (target.flags & FL_CROUCHING) ? 135 : 500;
|
||||
else
|
||||
return (target.flags & FL_CROUCHING) ? 135 : 270;
|
||||
|
|
Loading…
Reference in a new issue