changeset 260:0aa8647c3dfc

Etc.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Oct 2012 01:02:42 +0300
parents be2ca95af493
children eb77496ab7b3
files dmq3d.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dmq3d.c	Wed Oct 10 01:02:23 2012 +0300
+++ b/dmq3d.c	Wed Oct 10 01:02:42 2012 +0300
@@ -247,12 +247,12 @@
     return FALSE;
 }
 
-    char *ptr = line;
 
 static BOOL dmReadSprite(char *line, DM3DVectorSpriteModel *model, DMVector *pos)
 {
     DMVector pt;
     DM3DSprite spr;
+    char *ptr = line;
 
     ptr++;
     if (!dmReadCoordinate(line, &ptr, &pt.x, TRUE)) return FALSE;
@@ -276,12 +276,12 @@
 
     return TRUE;
 }
-    char *ptr = line;
 
 static BOOL dmReadBitmap(char *line, DM3DVectorSpriteModel *model)
 {
     DM3DBitmap bmp, *rbmp;
     int index;
+    char *ptr = line;
 
     strncpy(bmp.name, ptr + 1, sizeof(bmp.name));
     bmp.img = NULL;