summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-05-23 22:54:25 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-05-23 22:54:25 (GMT)
commit2656bcec2bc9e14dca844195fab3d3c676fc7689 (patch)
tree8e0f7f25ab690933a84482622375290d7dce41b8 /src/main.c
parenta1b7b02f81500e0707cf4c98a943c17351c5505d (diff)
downloadpowder-2656bcec2bc9e14dca844195fab3d3c676fc7689.zip
powder-2656bcec2bc9e14dca844195fab3d3c676fc7689.tar.gz
fix compiling
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b616273..b3ac8af 100644
--- a/src/main.c
+++ b/src/main.c
@@ -770,6 +770,7 @@ int main(int argc, char *argv[])
unsigned int rgbSave = PIXRGB(127,0,0);
SDL_AudioSpec fmt;
int username_flash = 0, username_flash_t = 1;
+ int saveOpenError = 0;
#ifdef PTW32_STATIC_LIB
pthread_win32_process_attach_np();
pthread_win32_thread_attach_np();
@@ -779,7 +780,6 @@ int main(int argc, char *argv[])
part_vbuf = calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE); //Extra video buffer
part_vbuf_store = part_vbuf;
pers_bg = calloc((XRES+BARSIZE)*YRES, PIXELSIZE);
- int saveOpenError = 0;
gravity_init();
GSPEED = 1;
@@ -902,12 +902,12 @@ int main(int argc, char *argv[])
}
else if (!strncmp(argv[i], "ptsave", 7) && i+1<argc)
{
- puts("Got ptsave");
int ci = 0, ns = 0, okay = 0;
char * tempString = argv[i+1];
int tempStringLength = strlen(argv[i+1])-7;
int tempSaveID = 0;
char tempNumberString[32];
+ puts("Got ptsave");
i++;
tempNumberString[31] = 0;
tempNumberString[0] = 0;