about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docs/articles/tasks.txt3
-rw-r--r--trackinggenerator/main.cpp109
2 files changed, 2 insertions, 110 deletions
diff --git a/docs/articles/tasks.txt b/docs/articles/tasks.txt
index 2b86dcef..1a471d2b 100644
--- a/docs/articles/tasks.txt
+++ b/docs/articles/tasks.txt
@@ -10,9 +10,9 @@ Group: 0.1.1 - Awesome Alpha Bug Fixed (NEXT)
 * FAQ on the webpage
 	DONE * Private server (no heartbeats)
 	DONE * Can't pickup ammo, health or armor when not needed
+	DONE * Fix so that the homepage is in the SVN
 
 Group: 0.2.x - 
-* Fix so that the homepage is in the SVN
 * Cleanup: SVN
 * Cleanup: client.cpp / server.cpp
 * Cleanup: game_client.cpp / game_server.cpp
@@ -23,6 +23,7 @@ Group: 0.2.x -
 * Game: Chat
 * Game: Bigger and better scoreboard
 * Game: Events for kills and such
+	DONE * Client: Only send input when needed
 * Client: Should timeout from server
 * Client: More robust and smoother handling of snapshots
 * Client: Some sort of settings format (think KISS).
diff --git a/trackinggenerator/main.cpp b/trackinggenerator/main.cpp
deleted file mode 100644
index e63f9ce4..00000000
--- a/trackinggenerator/main.cpp
+++ /dev/null
@@ -1,109 +0,0 @@
-#include <iostream>
-#include <fstream>
-
-using namespace std;
-
-int main(int argc, char *argv[])
-{
-	if (argc != 2)
-	{
-		cout << "Usage: bla <infile.tga>" << endl;
-		return -1;
-	}
-
-	ifstream file(argv[1]);
-
-	if (!file)
-	{
-		cout << "No such file..." << endl;
-		return -1;
-	}
-
-	unsigned short headers[9];
-
-	file.read((char *)headers, 18);
-
-	int width = headers[6];
-	int height = headers[7];
-
-	const int charsx = 16;
-	const int charsy = 16;
-	const int charWidth = width / charsx;
-	const int charHeight = height / charsy;
-
-	char *data = new char[width * height * 4];
-
-	file.read(data, width * height * 4);
-	
-    int startTable[256] = {0};
-	int endTable[256] = {0};
-
-    for (int i = 0; i < charsy; i++)
-        for (int j = 0; j < charsx; j++)
-        {
-            bool done = false;
-
-            for (int x = 0; x < charWidth && !done; ++x)
-                for (int y = charHeight - 1; y >= 0; --y)
-                {   
-                    // check if alpha is != 0 
-                    int tempX = j * charWidth + x;
-                    int tempY = i * charHeight + y;
-                    
-                    int coordIndex = tempX + tempY * width;
-                    
-                    if (data[4 * coordIndex + 3] != 0)
-                    {   
-                        // if it is, save the x-coord to table and go to next character
-                        startTable[j + i * charsx] = x;
-                        done = true;
-                    }
-                }
-
-
-			done = false;
-            for (int x = charWidth - 1; x >= 0 && !done; --x)
-                for (int y = charHeight - 1; y >= 0; --y)
-                {
-                    // check if alpha is != 0
-                    int tempX = j * charWidth + x;
-                    int tempY = i * charHeight + y;
-
-                    int coordIndex = tempX + tempY * width;
-
-                    if (data[4 * coordIndex + 3] != 0)
-                    {
-                        // if it is, save the x-coord to table and go to next character
-                        endTable[j + i * charsx] = x;
-                        done = true;
-                    }
-                }
-        }
-
-    delete[] data;
-
-    cout << "float CharStartTable[] =" << endl << '{' << endl << '\t';
-
-    for (int i = 0; i < 256; i++)
-    {
-        cout << startTable[i] / float(charWidth) << ", ";
-        if (!((i + 1) % 16))
-            cout << endl << '\t';
-    }
-
-    cout << endl << "};" << endl;
-
-    cout << "float CharEndTable[] =" << endl << '{' << endl << '\t';
-
-    for (int i = 0; i < 256; i++)
-    {
-        cout << endTable[i] / float(charWidth) << ", ";
-        if (!((i + 1) % 16))
-            cout << endl << '\t';
-    }
-
-    cout << endl << "};" << endl;
-
-        
-    cout << charWidth << 'x' << charHeight << endl;
-}