mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
create an SV_Error wrapper for the client to help tidy up model.c
This commit is contained in:
parent
38f9b705b9
commit
ace849a9be
3 changed files with 55 additions and 47 deletions
13
source/cl_misc.c
Normal file
13
source/cl_misc.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <quakedef.h>
|
||||
|
||||
void SV_Error (char *error, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
static char string[1024];
|
||||
|
||||
va_start (argptr,error);
|
||||
vsprintf (string,error,argptr);
|
||||
va_end (argptr);
|
||||
|
||||
Sys_Error ("%s\n",string);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue