- Llevats els colors roig i blau, queden rarunos
- Reajustat el pintat dels comptadors. - Els comptadors canvien de color segón el color de l'habitació - [FIX] print2 pintava mal el número
This commit is contained in:
@@ -148,7 +148,7 @@ namespace room
|
||||
door_height[YN] = SDL_clamp(val, -1, 5);
|
||||
|
||||
} else if (util::strcomp(key, "color:")) {
|
||||
color = util::stringToInt(file::readString(&buffer), {"blue", "red", "purple", "green", "cyan", "yellow", "white"}, {5, 6, 7, 8, 9, 10, 11});
|
||||
color = util::stringToInt(file::readString(&buffer), {"purple", "green", "cyan", "yellow", "white"}, {7, 8, 9, 10, 11});
|
||||
|
||||
} else if (util::strcomp(key, "floor-texture:")) {
|
||||
floor_type = file::readInt(&buffer);
|
||||
@@ -446,8 +446,8 @@ namespace room
|
||||
|
||||
const char *numToColor(uint8_t value)
|
||||
{
|
||||
const char* colors[7] = {"BLUE", "RED", "PURPLE", "GREEN", "CYAN", "YELLOW", "WHITE"};
|
||||
return colors[value-5];
|
||||
const char* colors[5] = {"PURPLE", "GREEN", "CYAN", "YELLOW", "WHITE"};
|
||||
return colors[value-7];
|
||||
}
|
||||
|
||||
void modify() { modified = true; }
|
||||
|
||||
Reference in New Issue
Block a user