ref: 1290c2496e85105871ab457b91e159d43c4cc7b4
parent: a3ab0a6910f55c6f45a3f4eaf48b4a99c4e16e22
author: Simon Howard <[email protected]>
date: Sat Oct 17 15:39:37 EDT 2009
Use M_StrToInt() when processing values passed with -spechit, so that hex values can be specified. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1721
--- 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 @@
if (p > 0)
{
- baseaddr = atoi(myargv[p+1]);
+ M_StrToInt(atoi(myargv[p+1]), &baseaddr);
}
else
{