aboutsummaryrefslogtreecommitdiff
path: root/color.c
blob: 1ddae8181abbea76e6b380102a009f654aac6448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
 }
}
bgstack15