be_ai_weap.c: s/move state/weapon state/g
This commit is contained in:
parent
c7059fbf28
commit
57cb0b2d89
|
@ -153,12 +153,12 @@ bot_weaponstate_t *BotWeaponStateFromHandle(int handle)
|
||||||
{
|
{
|
||||||
if (handle <= 0 || handle > MAX_CLIENTS)
|
if (handle <= 0 || handle > MAX_CLIENTS)
|
||||||
{
|
{
|
||||||
botimport.Print(PRT_FATAL, "move state handle %d out of range\n", handle);
|
botimport.Print(PRT_FATAL, "weapon state handle %d out of range\n", handle);
|
||||||
return NULL;
|
return NULL;
|
||||||
} //end if
|
} //end if
|
||||||
if (!botweaponstates[handle])
|
if (!botweaponstates[handle])
|
||||||
{
|
{
|
||||||
botimport.Print(PRT_FATAL, "invalid move state %d\n", handle);
|
botimport.Print(PRT_FATAL, "invalid weapon state %d\n", handle);
|
||||||
return NULL;
|
return NULL;
|
||||||
} //end if
|
} //end if
|
||||||
return botweaponstates[handle];
|
return botweaponstates[handle];
|
||||||
|
@ -483,12 +483,12 @@ void BotFreeWeaponState(int handle)
|
||||||
{
|
{
|
||||||
if (handle <= 0 || handle > MAX_CLIENTS)
|
if (handle <= 0 || handle > MAX_CLIENTS)
|
||||||
{
|
{
|
||||||
botimport.Print(PRT_FATAL, "move state handle %d out of range\n", handle);
|
botimport.Print(PRT_FATAL, "weapon state handle %d out of range\n", handle);
|
||||||
return;
|
return;
|
||||||
} //end if
|
} //end if
|
||||||
if (!botweaponstates[handle])
|
if (!botweaponstates[handle])
|
||||||
{
|
{
|
||||||
botimport.Print(PRT_FATAL, "invalid move state %d\n", handle);
|
botimport.Print(PRT_FATAL, "invalid weapon state %d\n", handle);
|
||||||
return;
|
return;
|
||||||
} //end if
|
} //end if
|
||||||
BotFreeWeaponWeights(handle);
|
BotFreeWeaponWeights(handle);
|
||||||
|
|
Loading…
Reference in New Issue