You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* find and return a user command */
for (i = 0; i < max_users; i++) {
ip = all_users[NextCmdGiver++];
NextCmdGiver %= max_users;
/* ... */
/* if there's a command in the buffer, pull it out! */
if (ip->iflags & CMD_IN_BUF) {
NextCmdGiver++;
NextCmdGiver %= max_users;
user_command = first_cmd_in_buf(ip);
break;
}
It is not necessary to increment NextCmdGiver a second time; this allows one user to starve another of command processing time.
The text was updated successfully, but these errors were encountered:
Removed an extraneous NextCmdGiver++ in get_user_command,
which caused the driver to skip the next user in the list
whenever it process a command. Flooding the MUD with
command input would prevent the next user's command's
from being processed.
Fixes issue #4
It is not necessary to increment NextCmdGiver a second time; this allows one user to starve another of command processing time.
The text was updated successfully, but these errors were encountered: