mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +03:00
Fixed Unix compilation warnings/errors
This commit is contained in:
parent
7b133e5b2f
commit
d53ab8540e
5 changed files with 5 additions and 5 deletions
|
@ -1178,7 +1178,7 @@ public:
|
||||||
bool ShortenPathToAttack( float fMinDist );
|
bool ShortenPathToAttack( float fMinDist );
|
||||||
void StrafeToAttack( float fDist, vec3_t vDir );
|
void StrafeToAttack( float fDist, vec3_t vDir );
|
||||||
virtual Vector GunTarget( bool bNoCollision ) override;
|
virtual Vector GunTarget( bool bNoCollision ) override;
|
||||||
virtual qboolean setModel( void );
|
virtual qboolean setModel( void ) override;
|
||||||
void EventSetHeadModel( Event *ev );
|
void EventSetHeadModel( Event *ev );
|
||||||
void EventGetHeadModel( Event *ev );
|
void EventGetHeadModel( Event *ev );
|
||||||
void EventSetHeadSkin( Event *ev );
|
void EventSetHeadSkin( Event *ev );
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ int DM_Manager::GetTeamSpawnTimeLeft() const
|
||||||
{
|
{
|
||||||
int timeLeft;
|
int timeLeft;
|
||||||
|
|
||||||
if (sv_team_spawn_interval <= 0) {
|
if (sv_team_spawn_interval->integer <= 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2018,7 +2018,7 @@ void Entity::setModel(const str& mdl)
|
||||||
model = CanonicalTikiName(mdl);
|
model = CanonicalTikiName(mdl);
|
||||||
|
|
||||||
if (!setModel()) {
|
if (!setModel()) {
|
||||||
Com_Printf("^~^~^ Bad model name '%s'\n", mdl);
|
Com_Printf("^~^~^ Bad model name '%s'\n", mdl.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4422,7 +4422,7 @@ void Player::GiveNewWeaponsCheat(Event *ev)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gi.FS_ReadFile("global/givenewweapons.scr", &(void *)buffer, qtrue) != -1) {
|
if (gi.FS_ReadFile("global/givenewweapons.scr", (void**)&buffer, qtrue) != -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -888,7 +888,7 @@ public:
|
||||||
void UserSelectWeapon(bool bWait);
|
void UserSelectWeapon(bool bWait);
|
||||||
void PickWeaponEvent(Event *ev);
|
void PickWeaponEvent(Event *ev);
|
||||||
bool AllowTeamRespawn() const;
|
bool AllowTeamRespawn() const;
|
||||||
void EventUseWeaponClass(Event *ev);
|
void EventUseWeaponClass(Event *ev) override;
|
||||||
void EventAddKills(Event *ev);
|
void EventAddKills(Event *ev);
|
||||||
bool CanKnockback(float minHealth) const;
|
bool CanKnockback(float minHealth) const;
|
||||||
//====
|
//====
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue