Subversion Repositories eduke32

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4805 2422d 3h hendricks266 /polymer/eduke32/source/common.c BSD: Fix the previous commit. DONT_BUILD.  
4804 2422d 3h hendricks266 /polymer/eduke32/source/common.c Linux: Add detection of the Steam releases of Duke 3D and NAM. DONT_BUILD.  
4802 2422d 6h hendricks266 /polymer/eduke32/source/common.c Refine the previous commit a bit. DONT_BUILD.  
4801 2422d 9h hendricks266 /polymer/eduke32/source/common.c Mac OS X: Add detection of the Steam and GOG releases of Duke 3D and the Steam release of NAM. DONT_BUILD.  
4790 2428d 7h hendricks266 /polymer/eduke32/source/common.c Windows: Detect installation paths of 3DR's Duke Nukem 3D package, the 3DR Anthology, and the NAM Steam release.  
4789 2428d 7h hendricks266 /polymer/eduke32/source/common.c Remove the structure fields in grpscan.c that blocked my code for allowing NAM, NAPALM, and WWII GI to fall back to GAME.CON.  
4697 2461d 20h terminx /polymer/eduke32/source/common.c Fix a couple of clang warnings. DONT_BUILD.  
4594 2491d 9h hendricks266 /polymer/eduke32/source/common.c Update the known locations of the addons in a Megaton installation. DONT_BUILD.  
4584 2521d 2h helixhorned /polymer/eduke32/source/common.c Fix USE_OPENGL=0 build.  
4564 2555d 7h hendricks266 /polymer/eduke32/source/common.c Split parts of loadlookups() into generatefogpals() and fillemptylookups(), and move Duke-specific LOOKUP.DAT behavior to G_LoadLookups() in source/common.c, which contains the call to loadlookups() as factored out from astub.c and game.c.

DONT_BUILD.
 
4559 2555d 7h hendricks266 /polymer/eduke32/source/common.c Move code non-specific to Duke Nukem 3D from source/common.c to a new build/src/common.c.

DONT_BUILD.
 
4557 2555d 7h hendricks266 /polymer/eduke32/source/common.c Elimininate some codedup between game.c and astub.c.

DONT_BUILD.
 
4495 2613d 1h hendricks266 /polymer/eduke32/source/common.c Better compile timestamp handling.  
4491 2614d 13h helixhorned /polymer/eduke32/source/common.c Bye, bye, B*alloc(), all hail X*alloc()! Replace large portion of the calls...

... and cull code that is dead with the X*alloc() versions since they never
return NULL on requesting memory.

Use something like
git grep '[^Xx]\(m\|c\|re\)alloc *('
and
git grep '[^Xx]strdup *('
to see places where I left the B*alloc() calls intact.

BUILD_LUNATIC.
 
4408 2674d 17h helixhorned /polymer/eduke32/source/common.c In COMMON_clearbackground() (for the OSD), disable fog.  
4128 2822d 9h hendricks266 /polymer/eduke32/source/common.c Allow -g, -x, -h, -j, and for the game, -d, to take their file name after a space. This allows quotes to be used with them properly.
I updated the help windows to prefer these variants because they are superior to the -xSquished versions.
Also, factor out the command-line processing code for the above, plus con/def modules and clipmaps.
 
4127 2822d 9h hendricks266 /polymer/eduke32/source/common.c RegCloseKey when we are done with RegOpenKeyEx.  
4006 2905d 22h helixhorned /polymer/eduke32/source/common.c Retire MultiPsky_TileToIdx() in favor of engine-side getpskyidx().

DONT_BUILD, because there have been no significant changes of the non-Lua build.
 
3976 2912d 17h helixhorned /polymer/eduke32/source/common.c Clean up parallaxed sky functionality, part 2.

- Rename sky_t members: yscale -> horizfrac, bits -> lognumtiles.
- Add default sky (8 tiles, horizfrac=32768 (i.e. 1/2 the scene horiz), offsets
all zero) and CLOUDYOCEAN sky (8 tiles, horizfrac=65536, offsets all zero)
to multipsky[].
- Get rid of "psky_t g_psky", merely maintaining a g_pskyidx instead. Set it up
at map load time so as to keep the behavior of the legacy per-map psky:
the last sector index with a matching psky ceiling wins.
- In mapstate_t, save g_pskyidx too, not (former) pskybits and pskyoffs[].
- Make on-map-load global psky setup consistent for the game and editor by
factoring it out into common.c: G_SetupGlobalPsky().
- Remove a couple of useless initializations, add some static assertions.

This commit is more likely to introduce subtle differences in behavior.
Specifically, getpsky() now always returns the default sky properties instead of
the global sky ones (but with all-zero offsets) when no match for a suiting
multi-psky is found. This is only likely to affect the yscale/horizfrac of
non-multi-pskies when a global non-default multi-psky has been set up.
Bump BYTEVERSION again.
 
3975 2912d 17h helixhorned /polymer/eduke32/source/common.c Clean up parallaxed sky functionality, part 1.

- Consolidate psky* arrays into a "typedef struct psky_t" "g_psky" and
"multipsky[]".
- Factor out getting parallaxed sky properties into getpsky().
- Condense initial multi-psky setup by memcpy'ing from multipsky[].
- New function: MultiPsky_TileToIdx().
- Add new define PSKYOFF_MAX and related consistency-checking assertions.
- Lower MAXPSKYTILES to 8 to reflect current usage (was 256).
- Game: make multi-pskies consider dynamically-remapped MOONSKY1, BIGORBIT1
and LA. (Not very useful as the editor will still only act for the static
values -- 80, 84 and 89, respectively.)

An attempt has been made to preserve behavior even in strange cases, so this
commit is unlikely to introduce regressions. Because of point 6, BYTEVERSION
had to be bumped.
 

Show All