X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=f9ae5996bf77f5aa88748e3b8c9c40f087673e66;hp=c3c14af2e682f984e3034b7a011c12c363f24e59;hb=b6847742a0713d8ed21bb6104476db54f8c1a4b9;hpb=e3a53d28634c52a0b1de6d0609de911e5d01c344 diff --git a/src/init.c b/src/init.c index c3c14af2..f9ae5996 100644 --- a/src/init.c +++ b/src/init.c @@ -5192,15 +5192,13 @@ void Execute_Command(char *command) str_ptr++; } } - else if (strPrefix(command, "convert ") || - strPrefix(command, "convert_special_1 ")) + else if (strPrefix(command, "convert ")) { - char *str_copy = getStringCopy(&command[8]); + char *str_copy = getStringCopy(strchr(command, ' ') + 1); char *str_ptr = strchr(str_copy, ' '); global.convert_leveldir = str_copy; global.convert_level_nr = -1; - global.convert_mode_special_1 = strPrefix(command, "convert_special_1 "); if (str_ptr != NULL) /* level number follows */ {