]> git.pond.sub.org Git - empserver/commit
Use relations_with() in sendmessage()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Feb 2011 09:29:14 +0000 (10:29 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 18 Feb 2011 17:46:05 +0000 (18:46 +0100)
commit67b9135e96fba21d29c26d1be4b9a3eca80f0d9f
tree0e7c70644fc1137de3fe43d324fea67f785128f1
parent6852ec6bc5b8521f35e133521eedb2ec317d10ef
Use relations_with() in sendmessage()

We know player != other.  Because we can have only one player in state
PS_PLAYING per country, and we know other->state == PS_PLAYING, it
follows that player->cnum != other->cnum.  Thus, no functional change.

Adds another call to getnatp() hidden in relations_with(), though.
Keeping that optimized isn't worth it.
src/lib/commands/flash.c