equal
deleted
inserted
replaced
242 |
242 |
243 static int FindColor(const char *name) |
243 static int FindColor(const char *name) |
244 { |
244 { |
245 int result = FindColorInternal(name); |
245 int result = FindColorInternal(name); |
246 if (result != -2) |
246 if (result != -2) |
|
247 return result; |
|
248 |
|
249 // Directly support 256-color values |
|
250 result = atoi(name); |
|
251 if (result > 0 && result < COLORS) |
247 return result; |
252 return result; |
248 |
253 |
249 scr_LogPrint(LPRINT_LOGNORM, "ERROR: Wrong color: %s", name); |
254 scr_LogPrint(LPRINT_LOGNORM, "ERROR: Wrong color: %s", name); |
250 return -1; |
255 return -1; |
251 } |
256 } |