mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
Q_atoi -> atoi + headerfile addons.
This commit is contained in:
parent
5da01d2b9b
commit
a920dc69e8
1 changed files with 7 additions and 3 deletions
|
@ -29,7 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
#include "qwsvdef.h"
|
||||
#include "qargs.h"
|
||||
#include "cvar.h"
|
||||
#include "server.h"
|
||||
#include "sys.h"
|
||||
|
||||
#include <winsock.h>
|
||||
#include <conio.h>
|
||||
|
||||
|
@ -226,11 +230,11 @@ int main (int argc, char **argv)
|
|||
|
||||
if ((t = COM_CheckParm ("-heapsize")) != 0 &&
|
||||
t + 1 < com_argc)
|
||||
parms.memsize = Q_atoi (com_argv[t + 1]) * 1024;
|
||||
parms.memsize = atoi (com_argv[t + 1]) * 1024;
|
||||
|
||||
if ((t = COM_CheckParm ("-mem")) != 0 &&
|
||||
t + 1 < com_argc)
|
||||
parms.memsize = Q_atoi (com_argv[t + 1]) * 1024 * 1024;
|
||||
parms.memsize = atoi (com_argv[t + 1]) * 1024 * 1024;
|
||||
|
||||
parms.membase = malloc (parms.memsize);
|
||||
|
||||
|
|
Loading…
Reference in a new issue