X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=prvm_cmds.c;h=f2c0e54d57ededb37c9eaef2e0907762448bae42;hb=1eb56b522ecd9252242470d388c0ad7272f3f26d;hp=5755ef7c86a297975ba1c597153ac0c7d621fef7;hpb=8b68ee05515266fdb1b20b06b0c4c04646fdc397;p=xonotic%2Fdarkplaces.git diff --git a/prvm_cmds.c b/prvm_cmds.c index 5755ef7c..f2c0e54d 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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); }