projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replaced glib function calls to g_strcompress()
[rocksndiamonds.git]
/
src
/
game_bd
/
bd_caveobject.c
diff --git
a/src/game_bd/bd_caveobject.c
b/src/game_bd/bd_caveobject.c
index 254f373db3161b596963a956a833d7635e505207..69e886171db50893cd98671b1e8bd90557a4a1ed 100644
(file)
--- a/
src/game_bd/bd_caveobject.c
+++ b/
src/game_bd/bd_caveobject.c
@@
-615,10
+615,10
@@
GdObject *gd_object_new_from_string(char *str)
return NULL;
if (words)
return NULL;
if (words)
-
g_strfreev
(words);
+
freeStringArray
(words);
- words = g
_strsplit_set
(param, " ", -1);
- l = g
_strv_l
ength(words);
+ words = g
etSplitStringArray
(param, " ", -1);
+ l = g
etStringArrayL
ength(words);
if (l < 10 || l > 19)
return NULL;
if (l < 10 || l > 19)
return NULL;
@@
-1277,7
+1277,7
@@
static void draw_random_fill(GdCave *cave, const GdObject *object, int level)
rand = g_rand_new_with_seed(seed);
/* for c64 random, use the 2*8 lsb. */
rand = g_rand_new_with_seed(seed);
/* for c64 random, use the 2*8 lsb. */
- gd_c64_random_set_seed(&c64_rand, seed
/256%256, seed%
256);
+ gd_c64_random_set_seed(&c64_rand, seed
/ 256 % 256, seed %
256);
/* change coordinates if not in correct order */
if (y1 > y2)
/* change coordinates if not in correct order */
if (y1 > y2)