int/long fix.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6256
cda61777-01e9-0310-a592-
d414129be87e
{
game_params *ret = snew(game_params);
{
game_params *ret = snew(game_params);
+#ifdef SLOW_SYSTEM
+ ret->h = 4;
+ ret->w = 4;
+#else
ret->h = 10;
ret->w = 10;
ret->h = 10;
ret->w = 10;
{ "7x7 Easy", { 7, 7, 0 } },
{ "7x7 Hard", { 7, 7, 2 } },
{ "10x10 Easy", { 10, 10, 0 } },
{ "7x7 Easy", { 7, 7, 0 } },
{ "7x7 Hard", { 7, 7, 2 } },
{ "10x10 Easy", { 10, 10, 0 } },
{ "10x10 Hard", { 10, 10, 2 } },
{ "15x15 Easy", { 15, 15, 0 } },
{ "30x20 Easy", { 30, 20, 0 } }
{ "10x10 Hard", { 10, 10, 2 } },
{ "15x15 Easy", { 15, 15, 0 } },
{ "30x20 Easy", { 30, 20, 0 } }
};
static int game_fetch_preset(int i, char **name, game_params **params)
};
static int game_fetch_preset(int i, char **name, game_params **params)
* light towards those with high scores */
struct square {
int score;
* light towards those with high scores */
struct square {
int score;
- r = s1->random - s2->random;
- if (r) {
- return r;
- }
+ if (s1->random < s2->random)
+ return -1;
+ else if (s1->random > s2->random)
+ return 1;
/*
* It's _just_ possible that two squares might have been given
/*
* It's _just_ possible that two squares might have been given