Mail Archives: djgpp/1998/08/12/09:15:26
> Is map[x][y]->tile really an index? You didn't tell, but it could be
> that map[x][y]->tile is already a pointer to the tile, so you don't
> need to index tiles[] with it.
Well, I know that tiles is perfectly fine, because I did some debugging
code and dumped the tiles to the screen, and tile is an unsigned char..
> This will never work. You are using a pointer (an address of
> map[x][y]->tile) as an index into an array.
>
Hmmm is that supposed to be common knowledge? Why not?
> It is usually a bad idea to use names with leading underscores. ANSI
> C says that these names are reserved for the library, so you could get
> a conflict.
>
Not my fault, friend started graphics engine and left me to debug it... (I
personally would have used tile_t) I guess this game is doomed, then. Oh
well more time for other game :P
- Cephaler -
- Raw text -