Skip to content

Commit 240ff47

Browse files
committed
Use bool8_t typedef for IPC booleans
1 parent 828abf8 commit 240ff47

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/engine/renderer/tr_types.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ using bool8_t = uint8_t;
5858

5959
// renderfx flags
6060
enum RenderFx : uint8_t {
61-
RF_THIRD_PERSON = 0x000001, // don't draw through eyes, only mirrors (player bodies, chat sprites)
62-
RF_FIRST_PERSON = 0x000002, // only draw through eyes (view weapon, damage blood blob)
63-
RF_DEPTHHACK = 0x000004, // for view weapon Z crunching
64-
RF_NOSHADOW = 0x000008, // don't add stencil shadows
65-
RF_SWAPCULL = 0x000010 // swap CT_FRONT_SIDED and CT_BACK_SIDED
61+
RF_THIRD_PERSON = 0x01, // don't draw through eyes, only mirrors (player bodies, chat sprites)
62+
RF_FIRST_PERSON = 0x02, // only draw through eyes (view weapon, damage blood blob)
63+
RF_DEPTHHACK = 0x04, // for view weapon Z crunching
64+
RF_NOSHADOW = 0x08, // don't add stencil shadows
65+
RF_SWAPCULL = 0x10 // swap CT_FRONT_SIDED and CT_BACK_SIDED
6666
};
6767

6868
// refdef flags
@@ -230,14 +230,14 @@ struct refEntity_t
230230

231231
EntityTag positionOnTag;
232232

233-
int8_t clearOrigin;
234-
int8_t clearOrigin2;
233+
bool8_t clearOrigin;
234+
bool8_t clearOrigin2;
235235

236-
int8_t boundsAdd;
236+
bool8_t boundsAdd;
237237

238-
int8_t nonNormalizedAxes; // axis are not normalized, i.e. they have scale
238+
bool8_t nonNormalizedAxes; // axis are not normalized, i.e. they have scale
239239

240-
int8_t active;
240+
bool8_t active;
241241

242242
uint16_t attachmentEntity;
243243

0 commit comments

Comments
 (0)