projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Identify libedit better.
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index 3808f9b119b8ea836eafac3308a7774c73d5106e..0d8bf7f3578b9055329dd941ce3c6860a739d4ed 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-1,8
+1,17
@@
+/*
+ * Actions for the duneon-running code.
+ *
+ * Copyright (c) 1977, 2005 by Will Crowther and Don Woods
+ * Copyright (c) 2017 by Eric S. Raymond
+ * SPDX-License-Identifier: BSD-2-clause
+ */
+
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "advent.h"
#include "dungeon.h"
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "advent.h"
#include "dungeon.h"
+#include <inttypes.h>
static int fill(verb_t, obj_t);
static int fill(verb_t, obj_t);
@@
-1250,7
+1259,7
@@
static int wake(verb_t verb, obj_t obj)
static int seed(verb_t verb, const char *arg)
/* Set seed */
{
static int seed(verb_t verb, const char *arg)
/* Set seed */
{
- int
seed = atoi(arg
);
+ int
32_t seed = strtol(arg, NULL, 10
);
speak(actions[verb].message, seed);
set_seed(seed);
--game.turns;
speak(actions[verb].message, seed);
set_seed(seed);
--game.turns;