X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_c64import.c;h=b838aa4323caeec908b9800a41f2ccd387d1fe14;hb=27f82f7887886eee23bdf5da0f4e248b46d7f257;hp=921c57f1f0921beb8c7542c0819a22d3705b68f9;hpb=f2cc15ab6077384c6afd14e7cc5593e210d34c4e;p=rocksndiamonds.git diff --git a/src/game_bd/bd_c64import.c b/src/game_bd/bd_c64import.c index 921c57f1..b838aa43 100644 --- a/src/game_bd/bd_c64import.c +++ b/src/game_bd/bd_c64import.c @@ -1165,7 +1165,7 @@ static int cave_copy_from_plck(GdCave *cave, const guint8 *data, for (j = 0; j < 12; j++) cave->name[j] = data[0x1f2 + j]; - g_strchomp(cave->name); /* remove spaces */ + chompString(cave->name); /* remove spaces */ } else { @@ -1452,12 +1452,12 @@ static int cave_copy_from_1stb(GdCave *cave, const guint8 *data, int remaining_b c = ' '; /* don't know this, so change to space */ if (i > 0) - c = g_ascii_tolower(c); + c = tolower(c); cave->name[i] = c; } - g_strchomp(cave->name); + chompString(cave->name); cave->intermission = data[0x389] != 0; @@ -1581,12 +1581,12 @@ static int cave_copy_from_crdr_7(GdCave *cave, const guint8 *data, int remaining else c = ' '; if (i > 0) - c = g_ascii_tolower(c); + c = tolower(c); cave->name[i] = c; } - g_strchomp(cave->name); /* remove trailing and leading spaces */ + chompString(cave->name); /* remove trailing and leading spaces */ cave->selectable = data[14] != 0; @@ -2028,12 +2028,12 @@ static int cave_copy_from_crli(GdCave *cave, const guint8 *data, int remaining_b c = ' '; if (i > 0) - c = g_ascii_tolower(c); + c = tolower(c); cave->name[i] = c; } - g_strchomp(cave->name); /* remove trailing and leading spaces */ + chompString(cave->name); /* remove trailing and leading spaces */ } /* uncompress rle data */