Fixed multiple splint warnings

This commit is contained in:
Walter Julius Hennecke 2013-05-21 20:57:26 +02:00
parent caf8ae371a
commit c5e13d0557
3 changed files with 4 additions and 4 deletions

View File

@ -227,7 +227,7 @@ Chooses a player start, deathmatch start, etc
/**
* Chooses a player start, deathmatch start, etc
*/
gentity_t *G_Client_SelectSpawnPoint ( vec3_t avoidPoint, vec3_t origin, vec3_t angles ) {
gentity_t* /*@alt void@*/ G_Client_SelectSpawnPoint ( vec3_t avoidPoint, vec3_t origin, vec3_t angles ) {
gentity_t *spot;
gentity_t *nearestSpot;

View File

@ -2166,7 +2166,7 @@ void G_Client_CalculateRanks( qboolean fromExit ) {
// decide if this should be auto-followed
if ( level.clients[i].pers.connected == CON_CONNECTED ) {
level.numPlayingClients++;
if ( !(g_entities[i].r.svFlags & SVF_BOT) ) {
if ( (g_entities[i].r.svFlags & SVF_BOT) == 0 ) {
level.numVotingClients++;
}
if ( level.follow1 == -1 ) {
@ -2308,7 +2308,7 @@ void FindIntermissionPoint( void ) {
// find the intermission spot
ent = G_Find (NULL, FOFS(classname), "info_player_intermission");
if ( !ent ) { // the map creator forgot to put in an intermission point...
if ( ent == NULL ) { // the map creator forgot to put in an intermission point...
G_Client_SelectSpawnPoint ( vec3_origin, level.intermission_origin, level.intermission_angle );
} else {
VectorCopy (ent->s.origin, level.intermission_origin);

View File

@ -976,7 +976,7 @@ varargs versions of all text functions.
FIXME: make this buffer size safe someday
============
*/
char * QDECL va( char *format, ... ) {
/*@shared@*/ char * QDECL va( char *format, ... ) {
va_list argptr;
static char string[2][32000]; /* in case va is called by nested functions */
static int index = 0;