]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
fix a warning
[xonotic/darkplaces.git] / prvm_cmds.c
index 5755ef7c86a297975ba1c597153ac0c7d621fef7..f2c0e54d57ededb37c9eaef2e0907762448bae42 100644 (file)
@@ -6952,27 +6952,27 @@ void VM_physics_addforce(void)
        VM_physics_ApplyCmd(ed, &f);
 }
 
-// void(entity e, vector torgue) physics_addtorgue = #;
-void VM_physics_addtorgue(void)
+// void(entity e, vector torque) physics_addtorque = #;
+void VM_physics_addtorque(void)
 {
        prvm_edict_t *ed;
        edict_odefunc_t f;
        
-       VM_SAFEPARMCOUNT(2, VM_physics_addtorgue);
+       VM_SAFEPARMCOUNT(2, VM_physics_addtorque);
        ed = PRVM_G_EDICT(OFS_PARM0);
        if (!ed)
        {
                if (developer.integer > 0)
-                       VM_Warning("VM_physics_addtorgue: null entity!\n");
+                       VM_Warning("VM_physics_addtorque: null entity!\n");
                return;
        }
        // entity should have MOVETYPE_PHYSICS already set, this can damage memory (making leaked allocation) so warn about this even if non-developer
        if (ed->fields.server->movetype != MOVETYPE_PHYSICS)
        {
-               VM_Warning("VM_physics_addtorgue: entity is not MOVETYPE_PHYSICS!\n");
+               VM_Warning("VM_physics_addtorque: entity is not MOVETYPE_PHYSICS!\n");
                return;
        }
-       f.type = ODEFUNC_RELTORGUE;
+       f.type = ODEFUNC_RELTORQUE;
        VectorCopy(PRVM_G_VECTOR(OFS_PARM1), f.v1);
        VM_physics_ApplyCmd(ed, &f);
 }