relations: New enum relations

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-10-31 14:54:21 +01:00
parent f88365e762
commit 0b05f11d28
9 changed files with 32 additions and 25 deletions

View file

@ -57,7 +57,7 @@ int
spy(void)
{
natid own;
int relat;
enum relations relat;
coord x, y;
coord nx, ny;
int military;
@ -252,7 +252,7 @@ prplanes(int x, int y)
static char *
player_relstr(natid them)
{
int rel = relations_with(player->cnum, them);
enum relations rel = relations_with(player->cnum, them);
if (rel == ALLIED)
return "Allied";