projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20051231-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 39eca58ac7d2cc9d2438d5600e84b9f3521c1072..f0a282f16a12e2611ab84c9e8b796fd0b84961fd 100644
(file)
--- 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);
}
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,
/* 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 :
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_NO
NE
);
}
else if (strcmp(suffix, ".anim_mode") == 0)
{
}
else if (strcmp(suffix, ".anim_mode") == 0)
{