mirror of
https://github.com/UberGames/EF2GameSource.git
synced 2024-11-10 06:31:42 +00:00
Linux: fixed warnings in ai_cmd.cpp
This commit is contained in:
parent
95de78c994
commit
7390c7ef91
1 changed files with 3 additions and 3 deletions
|
@ -1462,7 +1462,7 @@ void BotMatch_WhatIsMyCommand(bot_state_t *bs, bot_match_t *match) {
|
|||
BotNearestVisibleItem
|
||||
==================
|
||||
*/
|
||||
float BotNearestVisibleItem(bot_state_t *bs, char *itemname, bot_goal_t *goal) {
|
||||
float BotNearestVisibleItem(bot_state_t *bs, const char *itemname, bot_goal_t *goal) {
|
||||
int i;
|
||||
char name[64];
|
||||
bot_goal_t tmpgoal;
|
||||
|
@ -1473,7 +1473,7 @@ float BotNearestVisibleItem(bot_state_t *bs, char *itemname, bot_goal_t *goal) {
|
|||
bestdist = 999999;
|
||||
i = -1;
|
||||
do {
|
||||
i = gi.BotGetLevelItemGoal(i, itemname, &tmpgoal);
|
||||
i = gi.BotGetLevelItemGoal(i, (char*)itemname, &tmpgoal);
|
||||
gi.BotGoalName(tmpgoal.number, name, sizeof(name));
|
||||
if (Q_stricmp(itemname, name) != 0)
|
||||
continue;
|
||||
|
@ -1501,7 +1501,7 @@ void BotMatch_WhereAreYou(bot_state_t *bs, bot_match_t *match) {
|
|||
int i, bestitem, redtt, bluett, client;
|
||||
bot_goal_t goal;
|
||||
char netname[MAX_MESSAGE_SIZE];
|
||||
char *nearbyitems[] = {
|
||||
const char *nearbyitems[] = {
|
||||
"Shotgun",
|
||||
"Grenade Launcher",
|
||||
"Rocket Launcher",
|
||||
|
|
Loading…
Reference in a new issue