Subversion Repositories eduke32

Rev

Go to most recent revision | Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4973 2443d 2h helixhorned /polymer/eduke32/build/ Mapster32: in build.c, prevent oob of wall[] if joining non-adjacent sectors.

Also, some minor stylistic cleanup.
 
4971 2443d 13h hendricks266 /polymer/eduke32/build/ Engine: Remove some conditional disabling of spriteext features when !defined USE_OPENGL.  
4965 2444d 3h helixhorned /polymer/eduke32/build/ Classic: fix underallocation of TILE_TILT and tilting at very small resolutions.

Since TILE_TILT is only allocated once, it must be done with the maximum
possible size.
 
4964 2444d 3h helixhorned /polymer/eduke32/build/ sdlayer.c: minor stylistic simplification of sdlayer_checkversion(). DONT_BUILD.  
4963 2444d 3h helixhorned /polymer/eduke32/build/ osd.c: in OSD_HandleChar() for TAB, fix use of uninitialized osd->editor.buf[i].

Exposed by Valgrind. DONT_BUILD.
 
4961 2444d 3h helixhorned /polymer/eduke32/build/ Make g_player a +1 offset pointer into 'static g_player_s[1 + MAXPLAYER]'.

This fixes the out-of-bounds read of former g_player[] in VM_EventCommon_().
 
4960 2444d 3h helixhorned /polymer/eduke32/build/ Classic: on desktops, handle abs. z diff. of floor/ceiling to camera >= 1<<24.  
4959 2444d 3h helixhorned /polymer/eduke32/build/ engine.c: style-cleanup owallmost() and wallmost(). DONT_BUILD.  
4958 2446d 4h helixhorned /polymer/eduke32/build/ In DEBUGANYWAY=2/DEBUG_MAIN_ARRAYS build, declare tsprite[] as tspritetype.

Fixing a bunch of warnings. DONT_BUILD.
 
4952 2446d 4h helixhorned /polymer/eduke32/build/ mdsprite.c: in md3free(), also free s->geometry for each surface. DONT_BUILD.

This prevents a enormous leak being reported by LeakSanitizer. Not that it
matters much, since we most frequently free models only at exit. (Sometimes one
may be freed earlier though -- if there was an error loading it, AFAICS.)
 
4948 2457d 9h hendricks266 /polymer/eduke32/build/ Modularize .mid --> .ogg --> .flac code to apply to sounds as well, and various cleanup in music/sound filename-handling code.  
4942 2457d 9h hendricks266 /polymer/eduke32/build/ Simplify the macros used for distinguishing between OS X and iOS.  
4939 2458d 2h helixhorned /polymer/eduke32/build/ compat_tools.c: match definition of 'editstatus'to declarations in other places. DONT_BUILD.  
4938 2463d 19h helixhorned /polymer/eduke32/build/ engine.c: in qsetmodeany(), call initsmost() after setting xdim and ydim.

This makes sure that the engine arrays have sufficient space allocated for usage
in Mapster32's 2D mode, for example from drawmapview().
 
4937 2463d 21h helixhorned /polymer/eduke32/build/ Lunatic: fix build and linking. DONT_BUILD.

- t{sector,wall}type are simply typedef'd to the non-t versions
- make FORCE_INLINE unconditional of DISABLE_INLINING (otherwise there are
multiple definitions of these functions)
- update lunatic/doc/lpeg-lunatic.patch to apply against the LPeg 0.12 I just
downloaded
 
4935 2463d 22h helixhorned /polymer/eduke32/build/ Classic: fix "windowed" modes (r_size >= 12) by reverting r4920; adapt.

In setview(), we now assert windowx2 < xdim. The only calling places where its
non-violation is non-trivial to ascertain are (1) showview from CON and
(2) draw-to-tile for look-sideways in game.c. AFAICS case 1 should be fine.
Case 2 is adapted; see comments there.
 
4934 2463d 23h helixhorned /polymer/eduke32/build/ Mapster32: remove unused key* options in mapster32.cfg and corresponding BK_* macros. DONT_BUILD.  
4933 2464d 0h helixhorned /polymer/eduke32/build/ Fix bsearch() call for user G_LoadMapHack(): don't access nonexistent storage. DONT_BUILD.  
4932 2464d 0h helixhorned /polymer/eduke32/build/ polymost.c: fix possible access of wallchanged[-1]. DONT_BUILD.  
4931 2464d 0h helixhorned /polymer/eduke32/build/ engine.c: fix memory leak. DONT_BUILD.  

Show All