X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=f0a282f16a12e2611ab84c9e8b796fd0b84961fd;hb=3bf51f147946d7080ed973f7d1fca2971e5009d2;hp=39eca58ac7d2cc9d2438d5600e84b9f3521c1072;hpb=dce12aedb7f597d85daf4ae5dfc4e058ae2f7b5c;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 39eca58a..f0a282f1 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -52,6 +52,12 @@ void printf_line(char *line_string, int line_length) fprintf_line(stdout, line_string, line_length); } +void printf_line_with_prefix(char *prefix, char *line_string, int line_length) +{ + fprintf(stdout, "%s", prefix); + fprintf_line(stdout, line_string, line_length); +} + /* int2str() returns a number converted to a string; the used memory is static, but will be overwritten by later calls, @@ -1748,7 +1754,7 @@ int get_parameter_value(char *value_raw, char *suffix, int type) result = (strcmp(value, "left") == 0 ? MV_LEFT : strcmp(value, "right") == 0 ? MV_RIGHT : strcmp(value, "up") == 0 ? MV_UP : - strcmp(value, "down") == 0 ? MV_DOWN : MV_NO_MOVING); + strcmp(value, "down") == 0 ? MV_DOWN : MV_NONE); } else if (strcmp(suffix, ".anim_mode") == 0) {