From 5ff076c4e040563be94726ba8104444713c8a546 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Sun, 7 Feb 2016 17:56:45 -0500 Subject: Bug fixes dealing with color --- color.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'color.c') diff --git a/color.c b/color.c index 1ddae81..94025ed 100644 --- a/color.c +++ b/color.c @@ -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; + } } -- cgit