]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
reorder printf fields
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 May 2012 10:32:51 +0000 (10:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 15 May 2012 10:32:51 +0000 (10:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11817 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index f18bff240593b002c78ca067658b465b9e476374..b3ca4bf3d98740662a6395fab88f043bb158b122 100644 (file)
@@ -6640,18 +6640,18 @@ nolength:
                                        if(flags & PRINTF_LEFT) *f++ = '-';
                                        if(flags & PRINTF_SPACEPOSITIVE) *f++ = ' ';
                                        if(flags & PRINTF_SIGNPOSITIVE) *f++ = '+';
-                                       if(*s == 'd' || *s == 'i' || *s == 'o' || *s == 'u' || *s == 'x' || *s == 'X')
-                                       {
-                                               // make it use a good integer type
-                                               for(p = INT_LOSSLESS_FORMAT_SIZE; *p; )
-                                                       *f++ = *p++;
-                                       }
                                        *f++ = '*';
                                        if(precision >= 0)
                                        {
                                                *f++ = '.';
                                                *f++ = '*';
                                        }
+                                       if(*s == 'd' || *s == 'i' || *s == 'o' || *s == 'u' || *s == 'x' || *s == 'X')
+                                       {
+                                               // make it use a good integer type
+                                               for(p = INT_LOSSLESS_FORMAT_SIZE; *p; )
+                                                       *f++ = *p++;
+                                       }
                                        *f++ = *s;
                                        *f++ = 0;