Skip to content

gfx4snes: Wrong type for map in inc file #329

@frcs6

Description

@frcs6

Currently, gfx4snes export map with unsigned short, but it should be unsigned char (examples are like that).

// Exported by gfx4snes 
#ifndef grid_H_
#define grid_H_

#include <snes.h>

extern unsigned char grid_til,grid_tilend;

---extern unsigned short grid_map,grid_mapend;
+++extern unsigned char grid_map,grid_mapend;

extern unsigned char grid_pal,grid_palend;

#endif

The fix may be in incgener.c

---#define WRITEFILEMAP 			"extern unsigned short %s_map,%s_mapend;\n\n"
+++#define WRITEFILEMAP 			"extern unsigned char %s_map,%s_mapend;\n\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions