Mercurial > hg > Members > koba > t_dandy
diff sgoex.c @ 51:2e123c4bf5ca
print object name and id.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 22 Jan 2011 16:47:33 +0900 |
parents | 2c85322348cf |
children |
line wrap: on
line diff
--- a/sgoex.c Fri Jan 21 22:31:08 2011 +0900 +++ b/sgoex.c Sat Jan 22 16:47:33 2011 +0900 @@ -14,7 +14,7 @@ #include "trace.h" #include "syokika.h" #include "LoadSprite.h" - +#include "debug_db.h" #define OT_LENGTH 1 /* オーダリングテーブル */ #define MAXOBJ 320 /*スプライト表示上限 */ @@ -38,6 +38,7 @@ /* sgo.h 独自の変数形 */ SpriteTable sptable[DEFOBJ]; +DebugDB dtable[DEFOBJ]; // static SpriteView spview[MAXOBJ]; #define IMAGE_ADJUSTMENT (0) @@ -122,6 +123,9 @@ void DefSprite(int number, const char *name, float w, float h, int color, OBJECT *obj) { + dtable[number].name = name; + dtable[number].count = 0; + SURFACE *surfaces; surfaces = search_node(obj, name); if(surfaces == NULL)