diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-08-15 15:25:21 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-08-15 15:25:21 +0000 |
commit | d876b69b388528fd3236f2f05caac22345a798f4 (patch) | |
tree | 114f57a7ffc7a3e3a0a75fd93f4bb33680ed33d4 /source/cl_view.c | |
parent | f294db4ccf45f6274e65260dd6f9a2c5faa94313 (diff) |
Fixed UI_ModeChanged not being called for hard linked UI.
Added QDECL specifier for some interface functions.
Changed default values for com_date_format and com_time_format.
On Windows, set up empty CRT invalid parameter handler so e.g. invalid
modificators passed to strftime do not raise an exception.
Diffstat (limited to 'source/cl_view.c')
-rw-r--r-- | source/cl_view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cl_view.c b/source/cl_view.c index a9f1dd4..b523f23 100644 --- a/source/cl_view.c +++ b/source/cl_view.c @@ -382,7 +382,7 @@ void V_Gun_Model_f (void) //============================================================================ -static int entitycmpfnc( const entity_t *a, const entity_t *b ) +static int QDECL entitycmpfnc( const entity_t *a, const entity_t *b ) { /* ** all other models are sorted by model then skin @@ -494,7 +494,7 @@ void V_RenderView( void ) { cl.refdef.rdflags = cl.frame.ps.rdflags; // sort entities for better cache locality - qsort( cl.refdef.entities, cl.refdef.num_entities, sizeof( cl.refdef.entities[0] ), (int (*)(const void *, const void *))entitycmpfnc ); + qsort( cl.refdef.entities, cl.refdef.num_entities, sizeof( cl.refdef.entities[0] ), (int (QDECL *)(const void *, const void *))entitycmpfnc ); } ref.RenderFrame (&cl.refdef); |