Fix work cvar bot_chatter "radio", zbots doesn't send radio command into chat.

Wrong ascii conversion.
This commit is contained in:
s1lent 2019-06-05 20:08:50 +07:00
parent 3f5448da59
commit 247e93b4ff
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -326,19 +326,19 @@ void CCSBot::SendRadioMessage(GameEventType event)
if (event > EVENT_START_RADIO_1 && event < EVENT_START_RADIO_2)
{
slot[0] = event - EVENT_START_RADIO_1;
slot[0] = '0' + event - EVENT_START_RADIO_1;
ClientCommand("radio1");
//Radio1(this, event - EVENT_START_RADIO_3);
//Radio1(this, event - EVENT_START_RADIO_1);
}
else if (event > EVENT_START_RADIO_2 && event < EVENT_START_RADIO_3)
{
slot[0] = event - EVENT_START_RADIO_2;
slot[0] = '0' + event - EVENT_START_RADIO_2;
ClientCommand("radio2");
//Radio2(this, event - EVENT_START_RADIO_3);
//Radio2(this, event - EVENT_START_RADIO_2);
}
else
{
slot[0] = event - EVENT_START_RADIO_3;
slot[0] = '0' + event - EVENT_START_RADIO_3;
ClientCommand("radio3");
//Radio3(this, event - EVENT_START_RADIO_3);
}