diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-13 18:45:15 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-13 18:45:15 +0000 |
| commit | e792ee9cbe5191fcc81273b65bdb4ac9108435d5 (patch) | |
| tree | 2238fccffd4265bccb14d23a958ec2cec8f6a2f1 /src/base/tux.c | |
| parent | bb15df3f3428df7cd2a4482adebcdaa6fc2f516e (diff) | |
- ID manager pocita pocet referencii na ID
- oprava chyb, suvisiaca so zlym spravovanim ID
- oprava chyby, objekt sa neda pridat mimo priestor ( to uz pisem druhy krat do commnitu ;) )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@127 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/tux.c')
| -rw-r--r-- | src/base/tux.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/base/tux.c b/src/base/tux.c index 5907a49..21fa7e6 100644 --- a/src/base/tux.c +++ b/src/base/tux.c @@ -233,23 +233,6 @@ void replaceTuxID(tux_t *tux, int id) tux->id = id; } -#if 0 -int isTuxSeesTux(tux_t *tux, tux_t *thisTux) -{ - int tux_x, tux_y, tux_w, tux_h; - int thisTux_x, thisTux_y, thisTux_w, thisTux_h; - int screen_x, screen_y; - - getTuxProportion(tux, &tux_x, &tux_y, &tux_w, &tux_h); - getTuxProportion(thisTux, &thisTux_x, &thisTux_y, &thisTux_w, &thisTux_h); - - getCenterScreen(&screen_x, &screen_y, tux->x, tux->y); - - return conflictSpace(screen_x-WINDOW_SIZE_X/4, screen_y-WINDOW_SIZE_Y/4, - WINDOW_SIZE_X*1.25, WINDOW_SIZE_Y*1.25, thisTux_x, thisTux_y, thisTux_w, thisTux_h); -} -#endif - static void timer_spawnTux(void *p) { tux_t *tux; |