Fix function prototypes

This commit is contained in:
Denis Pauk 2021-01-26 20:55:54 +02:00
parent fda7c543b8
commit c88b0c1a9a
4 changed files with 14 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/build/ /build/
/release/

View File

@ -288,7 +288,7 @@ Must NOT be on the team with the rest of the turret parts.
Instead it must target the turret_breach. Instead it must target the turret_breach.
*/ */
void infantry_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage); void infantry_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point);
void infantry_stand (edict_t *self); void infantry_stand (edict_t *self);
void monster_use (edict_t *self, edict_t *other, edict_t *activator); void monster_use (edict_t *self, edict_t *other, edict_t *activator);
@ -314,7 +314,7 @@ void turret_driver_die (edict_t *self, edict_t *inflictor, edict_t *attacker, in
self->target_ent->owner = NULL; self->target_ent->owner = NULL;
self->target_ent->teammaster->owner = NULL; self->target_ent->teammaster->owner = NULL;
infantry_die (self, inflictor, attacker, damage); infantry_die (self, inflictor, attacker, damage, point);
} }
qboolean FindTarget (edict_t *self); qboolean FindTarget (edict_t *self);

View File

@ -140,7 +140,7 @@ void SP_info_player_coop(edict_t *self)
The deathmatch intermission point will be at one of these The deathmatch intermission point will be at one of these
Use 'angles' instead of 'angle', so you can set pitch or roll as well as yaw. 'pitch yaw roll' Use 'angles' instead of 'angle', so you can set pitch or roll as well as yaw. 'pitch yaw roll'
*/ */
void SP_info_player_intermission(void) void SP_info_player_intermission(edict_t *ent)
{ {
} }
@ -185,7 +185,7 @@ qboolean IsFemale (edict_t *ent)
struct monsterObit { struct monsterObit {
char *classname; char *classname;
char *message; char *message;
} obits[] = } obits[] =
{ {
{"monster_soldier", "%s was slaughtered by a Shotgun Guard.\n"}, {"monster_soldier", "%s was slaughtered by a Shotgun Guard.\n"},
{"monster_soldier_light", "%s was exterminated by a Light Guard.\n"}, {"monster_soldier_light", "%s was exterminated by a Light Guard.\n"},
@ -570,7 +570,7 @@ void player_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damag
{ {
stopCamera(self); stopCamera(self);
} }
VectorClear (self->avelocity); VectorClear (self->avelocity);
self->takedamage = DAMAGE_YES; self->takedamage = DAMAGE_YES;
@ -679,7 +679,7 @@ void InitClientPersistant (gclient_t *client)
item = FindItem("Push"); item = FindItem("Push");
client->pers.inventory[ITEM_INDEX(item)] = 1; client->pers.inventory[ITEM_INDEX(item)] = 1;
item = FindItem("Blaster"); item = FindItem("Blaster");
client->pers.selected_item = ITEM_INDEX(item); client->pers.selected_item = ITEM_INDEX(item);
client->pers.inventory[client->pers.selected_item] = 1; client->pers.inventory[client->pers.selected_item] = 1;
@ -693,7 +693,7 @@ void InitClientPersistant (gclient_t *client)
client->pers.inventory[ITEM_INDEX(item)] = 3; client->pers.inventory[ITEM_INDEX(item)] = 3;
} }
client->pers.health = 100; client->pers.health = 100;
client->pers.max_health = 100; client->pers.max_health = 100;
@ -730,7 +730,7 @@ void InitClientResp (gclient_t *client)
================== ==================
SaveClientData SaveClientData
Some information that should be persistant, like health, Some information that should be persistant, like health,
is still stored in the edict structure, so it needs to is still stored in the edict structure, so it needs to
be mirrored out to the client structure before all the be mirrored out to the client structure before all the
edicts are wiped. edicts are wiped.
@ -1249,7 +1249,7 @@ void PutClientInServer (edict_t *ent)
char userinfo[MAX_INFO_STRING]; char userinfo[MAX_INFO_STRING];
int health = client->pers.health; int health = client->pers.health;
memcpy (userinfo, client->pers.userinfo, sizeof(userinfo)); memcpy (userinfo, client->pers.userinfo, sizeof(userinfo));
InitClientPersistant(client); InitClientPersistant(client);
ClientUserinfoChanged (ent, userinfo); ClientUserinfoChanged (ent, userinfo);
@ -1344,7 +1344,7 @@ void PutClientInServer (edict_t *ent)
===================== =====================
ClientBeginDeathmatch ClientBeginDeathmatch
A client has just connected to the server in A client has just connected to the server in
deathmatch mode, so clear everything out before starting them. deathmatch mode, so clear everything out before starting them.
===================== =====================
*/ */
@ -1672,7 +1672,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
{ {
client->ps.pmove.pm_type = PM_FREEZE; client->ps.pmove.pm_type = PM_FREEZE;
// can exit intermission after five seconds // can exit intermission after five seconds
if (level.time > level.intermissiontime + 5.0 if (level.time > level.intermissiontime + 5.0
&& (ucmd->buttons & BUTTON_ANY) ) && (ucmd->buttons & BUTTON_ANY) )
level.exitintermission = true; level.exitintermission = true;
return; return;
@ -1688,7 +1688,7 @@ void ClientThink (edict_t *ent, usercmd_t *ucmd)
// set up for pmove // set up for pmove
memset (&pm, 0, sizeof(pm)); memset (&pm, 0, sizeof(pm));
if (ent->movetype == MOVETYPE_NOCLIP) if (ent->movetype == MOVETYPE_NOCLIP)
client->ps.pmove.pm_type = PM_SPECTATOR; client->ps.pmove.pm_type = PM_SPECTATOR;
else if (ent->s.modelindex != 255) else if (ent->s.modelindex != 255)

View File

@ -404,7 +404,7 @@ extern void TossClientWeapon ( edict_t * self ) ;
extern void ClientObituary ( edict_t * self , edict_t * inflictor , edict_t * attacker ) ; extern void ClientObituary ( edict_t * self , edict_t * inflictor , edict_t * attacker ) ;
extern qboolean IsFemale ( edict_t * ent ) ; extern qboolean IsFemale ( edict_t * ent ) ;
extern void player_pain ( edict_t * self , edict_t * other , float kick , int damage ) ; extern void player_pain ( edict_t * self , edict_t * other , float kick , int damage ) ;
extern void SP_info_player_intermission ( void ) ; extern void SP_info_player_intermission ( edict_t *ent ) ;
extern void SP_info_player_coop ( edict_t * self ) ; extern void SP_info_player_coop ( edict_t * self ) ;
extern void SP_info_player_deathmatch ( edict_t * self ) ; extern void SP_info_player_deathmatch ( edict_t * self ) ;
extern void SP_info_player_start ( edict_t * self ) ; extern void SP_info_player_start ( edict_t * self ) ;