1
0
Fork 0
forked from fte/fteqw

Use the correct function for plugins.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6257 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-05-28 18:00:45 +00:00
parent f59283aa56
commit 33665b8d92

View file

@ -1257,7 +1257,7 @@ static void MyODEErrorHandler (int errnum, const char *msg, va_list ap)
char string[1024]; char string[1024];
vsnprintf (string,sizeof(string), msg, ap); vsnprintf (string,sizeof(string), msg, ap);
string[sizeof(string)-1] = 0; string[sizeof(string)-1] = 0;
Sys_Error("ODE ERROR %i: %s", errnum, string); Sys_Errorf("ODE ERROR %i: %s", errnum, string);
} }
static void MyODEMessageHandler (int errnum, const char *msg, va_list ap) static void MyODEMessageHandler (int errnum, const char *msg, va_list ap)
{ {
@ -2277,7 +2277,7 @@ static void World_ODE_Frame_BodyFromEntity(world_t *world, wedict_t *ed)
dMassSetCylinderTotal(&mass, massval, axisindex+1, radius, length); dMassSetCylinderTotal(&mass, massval, axisindex+1, radius, length);
break; break;
default: default:
Sys_Error("World_ODE_BodyFromEntity: unrecognized solid value %i was accepted by filter\n", solid); Sys_Errorf("World_ODE_BodyFromEntity: unrecognized solid value %i was accepted by filter\n", solid);
} }
Matrix3x4_InvertTo4x4_Simple(ed->rbe.offsetmatrix, ed->rbe.offsetimatrix); Matrix3x4_InvertTo4x4_Simple(ed->rbe.offsetmatrix, ed->rbe.offsetimatrix);
ed->rbe.massbuf = BZ_Malloc(sizeof(dMass)); ed->rbe.massbuf = BZ_Malloc(sizeof(dMass));