mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Nuke qboolean from orbit
I never liked it, but with C2x coming out, it's best to handle bools properly. I haven't gone through all the uses of int as bool (I'll leave that for fixing when I encounter them), but this gets QF working with both c2x (really, gnu2x because of raw strings).
This commit is contained in:
parent
9871b44d68
commit
dbd3d6502a
273 changed files with 894 additions and 897 deletions
|
@ -45,7 +45,7 @@ void locs_load(const char *filename);
|
|||
void locs_mark (vec4f_t loc, const char *desc);
|
||||
int locs_nearest (vec4f_t loc) __attribute__((pure));
|
||||
void locs_reset (void);
|
||||
void locs_save (const char *filename, qboolean gz);
|
||||
void locs_save (const char *filename, bool gz);
|
||||
void map_to_loc (const char *mapname, char *filename);
|
||||
void locs_draw (double time, vec4f_t simorg);
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#ifndef __client_sbar_h
|
||||
#define __client_sbar_h
|
||||
|
||||
extern qboolean sbar_showscores;
|
||||
extern bool sbar_showscores;
|
||||
|
||||
struct player_info_s;
|
||||
void Sbar_Init (int *stats, float *item_gettime);
|
||||
|
|
|
@ -114,7 +114,7 @@ void CL_ParseTEnt_qw (struct msg_s *net_message, double time,
|
|||
TEntContext_t *ctx);
|
||||
void CL_ParseParticleEffect (struct msg_s *net_message);
|
||||
void CL_ClearProjectiles (void);
|
||||
void CL_ParseProjectiles (struct msg_s *net_message, qboolean nail2,
|
||||
void CL_ParseProjectiles (struct msg_s *net_message, bool nail2,
|
||||
TEntContext_t *ctx);
|
||||
|
||||
#endif//__client_temp_entities_h
|
||||
|
|
|
@ -86,7 +86,7 @@ typedef struct viewstate_s {
|
|||
// pitch drifting vars
|
||||
float idealpitch;
|
||||
float pitchvel;
|
||||
qboolean nodrift;
|
||||
bool nodrift;
|
||||
float driftmove;
|
||||
double laststop;
|
||||
|
||||
|
@ -112,6 +112,6 @@ void V_SetContentsColor (viewstate_t *vs, int contents);
|
|||
void V_ParseDamage (struct msg_s *net_message, viewstate_t *vs);
|
||||
void V_PrepBlend (viewstate_t *vs);
|
||||
|
||||
extern qboolean noclip_anglehack;
|
||||
extern bool noclip_anglehack;
|
||||
|
||||
#endif // __client_view_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue