projects
/
empserver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cb7b75
)
Use relations_with() in player_relstr()
author
Markus Armbruster
<armbru@pond.sub.org>
Sun, 30 Jan 2011 15:26:22 +0000
(16:26 +0100)
committer
Markus Armbruster
<armbru@pond.sub.org>
Wed, 16 Feb 2011 06:52:25 +0000
(07:52 +0100)
No functional change, because argument is never player->cnum.
src/lib/commands/spy.c
patch
|
blob
|
history
diff --git
a/src/lib/commands/spy.c
b/src/lib/commands/spy.c
index 2a7ec53bd4de1220e01bdc244e08a1b51b460c0a..729186061f37abe2b8a3131d32261c213ffc7e14 100644
(file)
--- a/
src/lib/commands/spy.c
+++ b/
src/lib/commands/spy.c
@@
-254,7
+254,7
@@
prplanes(int x, int y)
static char *
player_relstr(natid them)
{
- int rel =
getrel(getnatp(player->cnum)
, them);
+ int rel =
relations_with(player->cnum
, them);
if (rel == ALLIED)
return "Allied";