From fa54df42c349ade2806e10e5d2be9c69d61a36f2 Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Thu, 11 Mar 2010 07:41:01 +0000 Subject: [PATCH] no mouse logic, we are on wrong path --- src/sdl-instead/game.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/sdl-instead/game.c b/src/sdl-instead/game.c index 56c3cc8..8d1ee83 100644 --- a/src/sdl-instead/game.c +++ b/src/sdl-instead/game.c @@ -230,28 +230,8 @@ enum { el_max, }; -static const char *el_names[] = { - "none", - "none", - "title", - "scene", - "inv", - "scene", - "up", - "down", - "iup", - "idown", - "pic", - "menu", -}; - struct el objs[el_max]; -const char *el_name(int i) -{ - return el_names[objs[i].id]; -} - void el_set(int i, int t, int x, int y, void *p) { objs[i].id = i; @@ -2270,9 +2250,6 @@ static int game_input(int down, const char *key, int x, int y, int mb) else { int px = -1; int py = -1; -// struct el *el = look_obj(x, y); -// if (el) -// fprintf(stderr,"%s\n", el_name(el->id)); game_pic_coord(x, y, &px, &py); /* got picture coord */ if (game_bg_coord(x, y, &x, &y)) /* no click on bg */ return -1;