From 97543baadb5ad7c56dc4856f34aee1f8d149420f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 30 Jan 2011 16:26:22 +0100 Subject: [PATCH] Use relations_with() in player_relstr() No functional change, because argument is never player->cnum. --- src/lib/commands/spy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/spy.c b/src/lib/commands/spy.c index 2a7ec53bd..729186061 100644 --- 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"; -- 2.43.0