relations: New enum relations
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
f88365e762
commit
0b05f11d28
9 changed files with 32 additions and 25 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue