aboutsummaryrefslogtreecommitdiff
path: root/color.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2016-02-07 17:56:45 -0500
committerNathan Vance <nathav63@gmail.com>2016-02-07 17:56:45 -0500
commit5ff076c4e040563be94726ba8104444713c8a546 (patch)
tree09fb2a7349804f1cd6f30c4b7846a7669c5022c9 /color.c
parentUpdated to work with gcc 5.X (diff)
download7w-5ff076c4e040563be94726ba8104444713c8a546.tar.gz
7w-5ff076c4e040563be94726ba8104444713c8a546.tar.bz2
7w-5ff076c4e040563be94726ba8104444713c8a546.zip
Bug fixes dealing with colorHEADmaster
Diffstat (limited to 'color.c')
-rw-r--r--color.c31
1 files changed, 19 insertions, 12 deletions
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;
+ }
}
bgstack15