Fix some warnings. Hopefully fix bullet plugin.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5287 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
aede46c776
commit
98b71860ed
33 changed files with 439 additions and 264 deletions
|
@ -64,8 +64,8 @@ BUILTINR(qhandle_t, Con_POpen, (const char *conname, quintptr_t flags));
|
|||
#define ARGNAMES ,conname,text
|
||||
BUILTIN(void, Con_SubPrint, (const char *conname, const char *text)); //on to named sub console (creating it too).
|
||||
#undef ARGNAMES
|
||||
#define ARGNAMES ,old,new
|
||||
BUILTIN(void, Con_RenameSub, (const char *old, const char *new)); //rename a subconsole
|
||||
#define ARGNAMES ,old,newname
|
||||
BUILTIN(void, Con_RenameSub, (const char *old, const char *newname)); //rename a subconsole
|
||||
#undef ARGNAMES
|
||||
#define ARGNAMES ,conname
|
||||
BUILTINR(int, Con_IsActive, (const char *conname));
|
||||
|
@ -565,18 +565,18 @@ qintptr_t QDECL Plug_InitAPI(qintptr_t *args)
|
|||
|
||||
qboolean Plug_Export(const char *name, export_t func)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
for (i = 0; i < sizeof(exports)/sizeof(exports[0]); i++)
|
||||
{
|
||||
if (!exports[i].name)
|
||||
{
|
||||
exports[i].name = name;
|
||||
exports[i].func = func;
|
||||
return pPlug_ExportToEngine(name, i);
|
||||
return pPlug_ExportToEngine(name, i)?qtrue:qfalse;
|
||||
}
|
||||
}
|
||||
pSys_Error("Plugin exports too many functions");
|
||||
return 0;
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue