diff options
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -1,15 +1,22 @@ #include "7w.h" -int gettypecolor(int type) -{ - switch(type) { - case RESOURCE: return COLORRESOURCE; - case INDUSTRY: return COLORINDUSTRY; - case STRUCTURE: return COLORSTRUCTURE; - case COMMERCIAL: return COLORCOMMERCIAL; - case MILITARY: return COLORMILITARY; - case SCIENTIFIC: return COLORSCIENTIFIC; - case GUILD: return COLORGUILD; - default: return 0; - } +int gettypecolor(int type) { + switch (type) { + case RESOURCE: + return COLORRESOURCE; + case INDUSTRY: + return COLORINDUSTRY; + case STRUCTURE: + return COLORSTRUCTURE; + case COMMERCIAL: + return COLORCOMMERCIAL; + case MILITARY: + return COLORMILITARY; + case SCIENTIFIC: + return COLORSCIENTIFIC; + case GUILD: + return COLORGUILD; + default: + return 0; + } } |