This commit is contained in:
Walter Julius Hennecke 2013-05-26 16:21:12 +02:00
parent 9940ef692d
commit dfa84481bc
2 changed files with 2 additions and 4 deletions

View file

@ -253,7 +253,7 @@ void steam_link( gentity_t *ent )
}
// This is used as the toggle switch
if(ent->targetname != 0) {
if(ent->targetname != NULL && ent->targetname[0] != 0) {
if((ent->spawnflags & STEAM_STARTOFF) == 0) {
ent->count = 1;
} else {

View file

@ -1996,12 +1996,10 @@ void G_ShutdownGame( int restart ) {
#ifndef GAME_HARD_LINKED
// this is only here so the functions in q_shared.c and bg_*.c can link
void QDECL Com_Error ( int errlevel, const char *error, ... ) {
void QDECL Com_Error ( /*@unused@*/ int errlevel, const char *error, ... ) {
va_list argptr;
char text[1024];
UNUSED(errlevel);
va_start (argptr, error);
vsnprintf(text, sizeof(text), error, argptr);
va_end (argptr);