map MOVETYPE_GIB of quake '2021 release' version to MOVETYPE_BOUNCE

This commit is contained in:
Andrei Drexler 2021-08-22 18:55:02 +03:00 committed by Ozkan Sezer
parent 51b23fa30a
commit c82ef652db
2 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,7 @@ typedef struct client_s
#define MOVETYPE_NOCLIP 8
#define MOVETYPE_FLYMISSILE 9 // extra size to monsters
#define MOVETYPE_BOUNCE 10
#define MOVETYPE_GIB 11 // 2021 rerelease gibs
// edict->solid values
#define SOLID_NOT 0 // no interaction with other objects

View File

@ -940,6 +940,7 @@ void SV_Physics_Client (edict_t *ent, int num)
case MOVETYPE_TOSS:
case MOVETYPE_BOUNCE:
case MOVETYPE_GIB:
SV_Physics_Toss (ent);
break;
@ -1216,6 +1217,7 @@ void SV_Physics (void)
else if (ent->v.movetype == MOVETYPE_STEP)
SV_Physics_Step (ent);
else if (ent->v.movetype == MOVETYPE_TOSS
|| ent->v.movetype == MOVETYPE_GIB
|| ent->v.movetype == MOVETYPE_BOUNCE
|| ent->v.movetype == MOVETYPE_FLY
|| ent->v.movetype == MOVETYPE_FLYMISSILE)