]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add cases for MOVETYPE_ANGLECLIP and MOVETYPE_ANGLENOCLIP, so they don't produce... Mario/unhandled_movetypes 34/head
authorMario <mario@smbclan.net>
Fri, 29 Jul 2016 23:19:34 +0000 (09:19 +1000)
committerMario <mario@smbclan.net>
Fri, 29 Jul 2016 23:19:34 +0000 (09:19 +1000)
sv_phys.c

index 87717114d0cffddcb5f7278126259b31e41e2a64..b605d6b19c225b6e94d3e35132ea3cc72f88deb3 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -2880,6 +2880,9 @@ static void SV_Physics_Entity (prvm_edict_t *ent)
                        SV_LinkEdict_TouchAreaGrid(ent);
                }
                break;
+       case MOVETYPE_ANGLECLIP:
+       case MOVETYPE_ANGLENOCLIP:
+               break; // no actual handling, just don't warn
        default:
                Con_Printf ("SV_Physics: bad movetype %i\n", (int)PRVM_serveredictfloat(ent, movetype));
                break;
@@ -2928,6 +2931,9 @@ static void SV_Physics_ClientEntity_NoThink (prvm_edict_t *ent)
                break;
        case MOVETYPE_PHYSICS:
                break;
+       case MOVETYPE_ANGLECLIP:
+       case MOVETYPE_ANGLENOCLIP:
+               break; // no actual handling, just don't warn
        default:
                Con_Printf ("SV_Physics_ClientEntity_NoThink: bad movetype %i\n", (int)PRVM_serveredictfloat(ent, movetype));
                break;
@@ -3113,6 +3119,9 @@ static void SV_Physics_ClientEntity(prvm_edict_t *ent)
        case MOVETYPE_PHYSICS:
                SV_RunThink (ent);
                break;
+       case MOVETYPE_ANGLECLIP:
+       case MOVETYPE_ANGLENOCLIP:
+               break; // no actual handling, just don't warn
        default:
                Con_Printf ("SV_Physics_ClientEntity: bad movetype %i\n", (int)PRVM_serveredictfloat(ent, movetype));
                break;