mirror of
https://github.com/UberGames/EF2GameSource.git
synced 2024-11-10 06:31:42 +00:00
Linux: fixed warning in ai_cmd.cpp
This commit is contained in:
parent
cb603a09c9
commit
95de78c994
5 changed files with 19 additions and 19 deletions
|
@ -1367,74 +1367,74 @@ void BotMatch_WhatAreYouDoing(bot_state_t *bs, bot_match_t *match) {
|
||||||
case LTG_TEAMHELP:
|
case LTG_TEAMHELP:
|
||||||
{
|
{
|
||||||
EasyClientName(bs->teammate, netname, sizeof(netname));
|
EasyClientName(bs->teammate, netname, sizeof(netname));
|
||||||
BotAI_BotInitialChat(bs, "helping", netname, NULL);
|
BotAI_BotInitialChat(bs, (char*)"helping", netname, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_TEAMACCOMPANY:
|
case LTG_TEAMACCOMPANY:
|
||||||
{
|
{
|
||||||
EasyClientName(bs->teammate, netname, sizeof(netname));
|
EasyClientName(bs->teammate, netname, sizeof(netname));
|
||||||
BotAI_BotInitialChat(bs, "accompanying", netname, NULL);
|
BotAI_BotInitialChat(bs, (char*)"accompanying", netname, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_DEFENDKEYAREA:
|
case LTG_DEFENDKEYAREA:
|
||||||
{
|
{
|
||||||
gi.BotGoalName(bs->teamgoal.number, goalname, sizeof(goalname));
|
gi.BotGoalName(bs->teamgoal.number, goalname, sizeof(goalname));
|
||||||
BotAI_BotInitialChat(bs, "defending", goalname, NULL);
|
BotAI_BotInitialChat(bs, (char*)"defending", goalname, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_GETITEM:
|
case LTG_GETITEM:
|
||||||
{
|
{
|
||||||
gi.BotGoalName(bs->teamgoal.number, goalname, sizeof(goalname));
|
gi.BotGoalName(bs->teamgoal.number, goalname, sizeof(goalname));
|
||||||
BotAI_BotInitialChat(bs, "gettingitem", goalname, NULL);
|
BotAI_BotInitialChat(bs, (char*)"gettingitem", goalname, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_KILL:
|
case LTG_KILL:
|
||||||
{
|
{
|
||||||
ClientName(bs->teamgoal.entitynum, netname, sizeof(netname));
|
ClientName(bs->teamgoal.entitynum, netname, sizeof(netname));
|
||||||
BotAI_BotInitialChat(bs, "killing", netname, NULL);
|
BotAI_BotInitialChat(bs, (char*)"killing", netname, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_CAMP:
|
case LTG_CAMP:
|
||||||
case LTG_CAMPORDER:
|
case LTG_CAMPORDER:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "camping", NULL);
|
BotAI_BotInitialChat(bs, (char*)"camping", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_PATROL:
|
case LTG_PATROL:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "patrolling", NULL);
|
BotAI_BotInitialChat(bs, (char*)"patrolling", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_GETFLAG:
|
case LTG_GETFLAG:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "capturingflag", NULL);
|
BotAI_BotInitialChat(bs, (char*)"capturingflag", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_RUSHBASE:
|
case LTG_RUSHBASE:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "rushingbase", NULL);
|
BotAI_BotInitialChat(bs, (char*)"rushingbase", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_RETURNFLAG:
|
case LTG_RETURNFLAG:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "returningflag", NULL);
|
BotAI_BotInitialChat(bs, (char*)"returningflag", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef MISSIONPACK
|
#ifdef MISSIONPACK
|
||||||
case LTG_ATTACKENEMYBASE:
|
case LTG_ATTACKENEMYBASE:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "attackingenemybase", NULL);
|
BotAI_BotInitialChat(bs, (char*)"attackingenemybase", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LTG_HARVEST:
|
case LTG_HARVEST:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "harvesting", NULL);
|
BotAI_BotInitialChat(bs, (char*)"harvesting", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
BotAI_BotInitialChat(bs, "roaming", NULL);
|
BotAI_BotInitialChat(bs, (char*)"roaming", NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ vmCvar_t bot_interbreedwrite;
|
||||||
BotAI_Print
|
BotAI_Print
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
void QDECL BotAI_Print(int type, char *fmt, ...) {
|
void QDECL BotAI_Print(int type, const char *fmt, ...) {
|
||||||
char str[2048];
|
char str[2048];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,7 @@ extern float floattime;
|
||||||
#define FloatTime() level.time
|
#define FloatTime() level.time
|
||||||
|
|
||||||
// from the game source
|
// from the game source
|
||||||
void QDECL BotAI_Print(int type, char *fmt, ...);
|
void QDECL BotAI_Print(int type, const char *fmt, ...);
|
||||||
void QDECL QDECL BotAI_BotInitialChat( bot_state_t *bs, const char *type, ... );
|
void QDECL QDECL BotAI_BotInitialChat( bot_state_t *bs, const char *type, ... );
|
||||||
void BotAI_Trace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask);
|
void BotAI_Trace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask);
|
||||||
int BotAI_GetClientState( int clientNum, playerState_t *state );
|
int BotAI_GetClientState( int clientNum, playerState_t *state );
|
||||||
|
|
|
@ -271,7 +271,7 @@ void BotSayTeamOrder(bot_state_t *bs, int toclient) {
|
||||||
BotVoiceChat
|
BotVoiceChat
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
void BotVoiceChat(bot_state_t *bs, int toclient, char *voicechat) {
|
void BotVoiceChat(bot_state_t *bs, int toclient, const char *voicechat) {
|
||||||
#ifdef MISSIONPACK
|
#ifdef MISSIONPACK
|
||||||
if (toclient == -1)
|
if (toclient == -1)
|
||||||
// voice only say team
|
// voice only say team
|
||||||
|
@ -287,7 +287,7 @@ void BotVoiceChat(bot_state_t *bs, int toclient, char *voicechat) {
|
||||||
BotVoiceChatOnly
|
BotVoiceChatOnly
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
void BotVoiceChatOnly(bot_state_t *bs, int toclient, char *voicechat) {
|
void BotVoiceChatOnly(bot_state_t *bs, int toclient, const char *voicechat) {
|
||||||
#ifdef MISSIONPACK
|
#ifdef MISSIONPACK
|
||||||
if (toclient == -1)
|
if (toclient == -1)
|
||||||
// voice only say team
|
// voice only say team
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
void BotTeamAI(bot_state_t *bs);
|
void BotTeamAI(bot_state_t *bs);
|
||||||
int BotGetTeamMateTaskPreference(bot_state_t *bs, int teammate);
|
int BotGetTeamMateTaskPreference(bot_state_t *bs, int teammate);
|
||||||
void BotSetTeamMateTaskPreference(bot_state_t *bs, int teammate, int preference);
|
void BotSetTeamMateTaskPreference(bot_state_t *bs, int teammate, int preference);
|
||||||
void BotVoiceChat(bot_state_t *bs, int toclient, char *voicechat);
|
void BotVoiceChat(bot_state_t *bs, int toclient, const char *voicechat);
|
||||||
void BotVoiceChatOnly(bot_state_t *bs, int toclient, char *voicechat);
|
void BotVoiceChatOnly(bot_state_t *bs, int toclient, const char *voicechat);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue