Skip to content

Commit

Permalink
- avoid using plain chars as variables.
Browse files Browse the repository at this point in the history
This is all I found with a quick search, there's probably more...
  • Loading branch information
coelckers committed Jul 15, 2017
1 parent 970adff commit 98124c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/gl/textures/gl_material.h
Expand Up @@ -57,7 +57,7 @@ class FGLTexture
public:
FTexture * tex;
FTexture * hirestexture;
char bIsTransparent;
int8_t bIsTransparent;
int HiresLump;

private:
Expand Down
34 changes: 17 additions & 17 deletions src/m_misc.cpp
Expand Up @@ -432,27 +432,27 @@ void M_LoadDefaults ()

struct pcx_t
{
char manufacturer;
char version;
char encoding;
char bits_per_pixel;

unsigned short xmin;
unsigned short ymin;
unsigned short xmax;
unsigned short ymax;
int8_t manufacturer;
int8_t version;
int8_t encoding;
int8_t bits_per_pixel;

uint16_t xmin;
uint16_t ymin;
uint16_t xmax;
uint16_t ymax;

unsigned short hdpi;
unsigned short vdpi;
uint16_t hdpi;
uint16_t vdpi;

unsigned char palette[48];
uint8_t palette[48];

char reserved;
char color_planes;
unsigned short bytes_per_line;
unsigned short palette_type;
int8_t reserved;
int8_t color_planes;
uint16_t bytes_per_line;
uint16_t palette_type;

char filler[58];
int8_t filler[58];
};


Expand Down

0 comments on commit 98124c8

Please sign in to comment.