diff options
author | Simon Howard | 2009-10-17 19:39:37 +0000 |
---|---|---|
committer | Simon Howard | 2009-10-17 19:39:37 +0000 |
commit | 1290c2496e85105871ab457b91e159d43c4cc7b4 (patch) | |
tree | edca74b89c3e6dcf6d1455acbb636d66190c3f29 | |
parent | a3ab0a6910f55c6f45a3f4eaf48b4a99c4e16e22 (diff) | |
download | chocolate-doom-1290c2496e85105871ab457b91e159d43c4cc7b4.tar.gz chocolate-doom-1290c2496e85105871ab457b91e159d43c4cc7b4.tar.bz2 chocolate-doom-1290c2496e85105871ab457b91e159d43c4cc7b4.zip |
Use M_StrToInt() when processing values passed with -spechit, so that
hex values can be specified.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1721
-rw-r--r-- | src/p_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/p_map.c b/src/p_map.c index 42f2a60f..db512673 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -36,6 +36,7 @@ #include "doomdef.h" #include "m_argv.h" +#include "m_misc.h" #include "p_local.h" #include "s_sound.h" @@ -1412,7 +1413,7 @@ static void SpechitOverrun(line_t *ld) if (p > 0) { - baseaddr = atoi(myargv[p+1]); + M_StrToInt(atoi(myargv[p+1]), &baseaddr); } else { |