From 586b7adc330f9f56209ab6b2ef8d05f12e65a108 Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Thu, 13 Dec 2007 21:23:03 +0000 Subject: [PATCH] Removed a file that has been there since the original TuxKart, but hasn't been used for anything since I can remember. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1352 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/offset.cxx | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 data/offset.cxx diff --git a/data/offset.cxx b/data/offset.cxx deleted file mode 100644 index 6241ad406..000000000 --- a/data/offset.cxx +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include - -int main ( int argc, char **argv ) -{ - char *fname = argv[1] ; - FILE *fd = fopen ( fname, "ra" ) ; - - if ( fd == NULL ) - { - fprintf ( stderr, "Can't open '%s' for reading.\n", fname ) ; - exit ( 1 ) ; - } - - for ( int i = 0 ; !feof(fd) ; i++ ) - { - char s [ 1024 ] ; - - if ( fgets ( s, 1023, fd ) == NULL ) - break ; - - if ( *s == '#' || *s < ' ' ) - continue ; - - float x, y ; - - if ( sscanf ( s, "%f,%f", &x, &y ) != 2 ) - { - fprintf ( stderr, "Syntax error in '%s'\n", fname ) ; - exit ( 1 ) ; - } - - x -= 66.68 ; - y = (-y) + 5.39 ; - - printf ( "%g,%g\n", x, y ) ; - } - - fclose ( fd ) ; -} -