static int seed(verb_t verb, const char *arg)
/* Set seed */
{
- long seed = atol(arg);
- speak(actions[verb].message, arg);
+ int seed = atoi(arg);
+ speak(actions[verb].message, seed);
set_seed(seed);
--game.turns;
return GO_TOP;
/* Burn turns */
{
game.limit -= turns;
- char newlim[1024];
- sprintf(newlim, "%ld", (long)game.limit);
- speak(actions[verb].message, newlim);
+ speak(actions[verb].message, (int)game.limit);
return GO_TOP;
}
message: *nothing_happens
words: ['z''zzz']
- SEED:
- message: 'Seed set to %s'
+ message: 'Seed set to %d'
words: ['seed']
- WASTE:
- message: 'Game limit is now %s'
+ message: 'Game limit is now %d'
words: ['waste']
- ACT_UNKNOWN:
message: *huh_man