commit 1290c2496e85105871ab457b91e159d43c4cc7b4
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Oct 17 19:39:37 2009 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Oct 17 19:39:37 2009 +0000
Use M_StrToInt() when processing values passed with -spechit, so that
hex values can be specified.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1721
---
src/p_map.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
{