mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
Adding a bit of commentary to the code.
This commit is contained in:
parent
9597d684f9
commit
1a381e7022
1 changed files with 11 additions and 1 deletions
|
@ -376,7 +376,17 @@ int BotNextConsoleMessage(int chatstate, bot_consolemessage_t *cm)
|
|||
cm->handle = firstmsg->handle;
|
||||
cm->time = firstmsg->time;
|
||||
cm->type = firstmsg->type;
|
||||
Q_strncpyz(cm->message, firstmsg->message, sizeof(cm->message));
|
||||
Q_strncpyz(cm->message, firstmsg->message,
|
||||
sizeof(cm->message));
|
||||
|
||||
/* We omit setting the two pointers in cm because pointer
|
||||
* size in the VM differs between the size in the engine on
|
||||
* 64 bit machines, which would lead to a buffer overflow if
|
||||
* this functions is called from the VM. The pointers are
|
||||
* of no interest to functions calling
|
||||
* BotNextConsoleMessage anyways.
|
||||
*/
|
||||
|
||||
return cm->handle;
|
||||
} //end if
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue