summaryrefslogtreecommitdiff
path: root/src/tux.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-05-28 19:25:15 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-05-28 19:25:15 +0000
commite5120505b21ff38dc25efcad129a440bbfa9996d (patch)
tree583e0683fb1f71f65bb81b0fcdf2e71587e1fe46 /src/tux.c
parentc94fd664bba352732bf0e5c9a77e709b49f1aa4f (diff)
- zrychlenie hry, bez toho aby sa menila rychlost hlavneho casovaca
- oprava chyby v ID managery - ID manager spravuje ID-y pre vsetky objekty git-svn-id: http://opensvn.csie.org/tuxanci_ng@55 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/tux.c')
-rw-r--r--src/tux.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/tux.c b/src/tux.c
index bc66708..c925019 100644
--- a/src/tux.c
+++ b/src/tux.c
@@ -40,8 +40,6 @@ static SDL_Surface *g_cross;
#endif
-static list_t *listID;
-
static bool_t isTuxInit = FALSE;
bool_t isTuxInicialized()
@@ -63,8 +61,6 @@ void initTux()
g_cross = addImageData("cross.png", IMAGE_ALPHA, "cross", IMAGE_GROUP_BASE);
#endif
- listID = newListID();
-
isTuxInit = TRUE;
}
@@ -78,7 +74,7 @@ tux_t* newTux()
memset(new, 0, sizeof(tux_t) );
- new->id = getNewID(listID);
+ new->id = getNewID();
new->status = TUX_STATUS_ALIVE;
new->control = TUX_CONTROL_NONE;
@@ -248,7 +244,7 @@ tux_t* getTuxID(list_t *listTux, int id)
void replaceTuxID(tux_t *tux, int id)
{
- replaceID(listID, tux->id, id);
+ replaceID(tux->id, id);
tux->id = id;
}
@@ -869,12 +865,11 @@ void setTuxProportion(tux_t *tux, int x, int y)
void destroyTux(tux_t *tux)
{
assert( tux != NULL );
- delID(listID, tux->id);
+ delID(tux->id);
free(tux);
}
void quitTux()
{
- destroyListID(listID);
isTuxInit = FALSE;
}