(sendmessage): Skip players not in state PS_PLAYING. Flashes to them
get ignored, hence telling the player that the flash was sent is wrong. Skipping fixes that.
This commit is contained in:
parent
c051c5f58d
commit
e6ef2545bd
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,8 @@ sendmessage(struct natstr *us, struct natstr *to, char *message
|
|||
time(&now);
|
||||
tm = localtime(&now);
|
||||
for (other = player_next(0); other != 0; other = player_next(other)) {
|
||||
if (other->state != PS_PLAYING)
|
||||
continue;
|
||||
if (to && other->cnum != to->nat_cnum)
|
||||
continue;
|
||||
if (!(wto = getnatp(other->cnum)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue