return NULL;
if (words)
- g_strfreev(words);
+ freeStringArray(words);
- words = g_strsplit_set(param, " ", -1);
- l = g_strv_length(words);
+ words = getSplitStringArray(param, " ", -1);
+ l = getStringArrayLength(words);
if (l < 10 || l > 19)
return NULL;
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)
if (randm < object->random_fill_probability[3])
element = object->random_fill[3];
- if (object->element==O_NONE ||
+ if (object->element == O_NONE ||
gd_cave_get_rc(cave, x, y) == object->element)
gd_cave_store_rc(cave, x, y, element, object);
}