mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[build] Fix some windows bitrot
This commit is contained in:
parent
d99fb01b65
commit
ec54c54226
6 changed files with 12 additions and 12 deletions
|
@ -581,7 +581,7 @@ glsl_R_BuildDisplayLists (model_t **models, int num_models)
|
|||
glsltex_t *tex;
|
||||
if (j == dm->firstface + dm->numfaces) {
|
||||
dm++;
|
||||
if (dm - brush->submodels == brush->numsubmodels) {
|
||||
if (dm == brush->submodels + brush->numsubmodels) {
|
||||
// limit the surfaces
|
||||
// probably never hit
|
||||
Sys_Printf ("R_BuildDisplayLists: too many surfaces\n");
|
||||
|
|
|
@ -426,7 +426,7 @@ Vulkan_BuildDisplayLists (model_t **models, int num_models, vulkan_ctx_t *ctx)
|
|||
if (j == dm->firstface + dm->numfaces) {
|
||||
// move on to the next sub-model
|
||||
dm++;
|
||||
if (dm - brush->submodels == brush->numsubmodels) {
|
||||
if (dm == brush->submodels + brush->numsubmodels) {
|
||||
// limit the surfaces
|
||||
// probably never hit
|
||||
Sys_Printf ("R_BuildDisplayLists: too many surfaces\n");
|
||||
|
|
|
@ -71,7 +71,7 @@ event_focusin (void)
|
|||
}
|
||||
|
||||
static void
|
||||
sdl_keydest_callback (keydest_t key_dest)
|
||||
sdl_keydest_callback (keydest_t key_dest, void *data)
|
||||
{
|
||||
if (key_dest == key_game)
|
||||
SDL_EnableKeyRepeat (0, SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
|
@ -588,7 +588,7 @@ IN_LL_Init (void)
|
|||
{
|
||||
SDL_EnableUNICODE (1); // Enable UNICODE translation for keyboard input
|
||||
|
||||
Key_KeydestCallback (sdl_keydest_callback);
|
||||
Key_KeydestCallback (sdl_keydest_callback, 0);
|
||||
if (COM_CheckParm ("-nomouse"))
|
||||
return;
|
||||
|
||||
|
|
|
@ -348,7 +348,7 @@ in_paste_buffer_f (void)
|
|||
}
|
||||
|
||||
static void
|
||||
win_keydest_callback (keydest_t key_dest)
|
||||
win_keydest_callback (keydest_t key_dest, void *data)
|
||||
{
|
||||
win_in_game = key_dest == key_game;
|
||||
if (win_in_game) {
|
||||
|
@ -367,7 +367,7 @@ IN_LL_Init (void)
|
|||
|
||||
IN_StartupMouse ();
|
||||
|
||||
Key_KeydestCallback (win_keydest_callback);
|
||||
Key_KeydestCallback (win_keydest_callback, 0);
|
||||
Cmd_AddCommand ("in_paste_buffer", in_paste_buffer_f,
|
||||
"Paste the contents of the C&P buffer to the console");
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@ Thanks fly to Id for a hackable game! :)
|
|||
|
||||
/* MW */
|
||||
typedef struct edge_extra_t {
|
||||
long num_face_ref;
|
||||
long ref_faces[MAX_REF_FACES]; // which faces are referenced
|
||||
uint32_t num_face_ref;
|
||||
uint32_t ref_faces[MAX_REF_FACES]; // which faces are referenced
|
||||
dvertex_t ref_faces_normal[MAX_REF_FACES]; // normal of referenced
|
||||
// faces
|
||||
int ref_faces_area[MAX_REF_FACES]; // area of the referenced faces
|
||||
|
@ -531,7 +531,7 @@ create_image (long width, long height)
|
|||
static image_t *
|
||||
render_map (bsp_t *bsp)
|
||||
{
|
||||
long j = 0, k = 0, x = 0;
|
||||
uint32_t j = 0, k = 0, x = 0;
|
||||
|
||||
dvertex_t *vertexlist, *vert1, *vert2;
|
||||
dedge_t *edgelist;
|
||||
|
@ -563,7 +563,7 @@ render_map (bsp_t *bsp)
|
|||
edge_extra = malloc (sizeof (struct edge_extra_t) * bsp->numedges);
|
||||
if (edge_extra == NULL) {
|
||||
fprintf (stderr, "Error allocating %ld bytes for extra edge info.",
|
||||
(long) sizeof (struct edge_extra_t) * bsp->numedges);
|
||||
(long) (sizeof (struct edge_extra_t) * bsp->numedges));
|
||||
exit (2);
|
||||
}
|
||||
/* initialize the array */
|
||||
|
@ -842,7 +842,7 @@ render_map (bsp_t *bsp)
|
|||
}
|
||||
printf ("%zd edges plotted", bsp->numedges);
|
||||
if (options.edgeremove) {
|
||||
printf (" (%ld edges removed)\n", k);
|
||||
printf (" (%u edges removed)\n", k);
|
||||
} else {
|
||||
printf ("\n");
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ PortalBase (basethread_t *thread, portal_t *portal)
|
|||
cluster_t *cluster;
|
||||
int tp_side, portal_side;
|
||||
|
||||
for (cluster = clusters; cluster - clusters < portalclusters; cluster++) {
|
||||
for (cluster = clusters; cluster < clusters + portalclusters; cluster++) {
|
||||
int side = test_sphere (&cluster->sphere, portal->plane);
|
||||
|
||||
if (side < 0) {
|
||||
|
|
Loading…
Reference in a new issue