Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
5197 2341d 2h hendricks266 /polymer/eduke32/build/include/common.h Add SW to our build system and make relevant changes to avoid fatal build errors.  
4948 2455d 12h hendricks266 /polymer/eduke32/build/include/common.h Modularize .mid --> .ogg --> .flac code to apply to sounds as well, and various cleanup in music/sound filename-handling code.  
4910 2468d 14h terminx /polymer/eduke32/build/include/common.h Make dist() and ldist() take void pointers so we can compare spritetype with tspritetype without inserting casts everywhere.  
4846 2484d 7h helixhorned /polymer/eduke32/build/include/common.h Minor cleanup, mostly in engine.c:drawalls().  
4766 2515d 19h hendricks266 /polymer/eduke32/build/include/common.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD.  
4661 2547d 20h terminx /polymer/eduke32/build/include/common.h Additional engine cleanups and optimizations. About as generic as it sounds. Also changes internal dummytile/tilefromtexture behavior so that the LZ4 compressed version of a texture is kept and the cache1d entries associated with the tiles can expire, like any other tile.  
4620 2572d 20h terminx /polymer/eduke32/build/include/common.h Fix build error  
4579 2602d 13h helixhorned /polymer/eduke32/build/include/common.h Factor out [l]dist() implementations into static inline functions in common.h.

And use these in jmact/mathutil.c's FindDistance2D()/FindDistance3D().
The main use is to allow passing dx/dy instead of sprite positions; the code
that actually uses this is not committed.
4565 2636d 15h hendricks266 /polymer/eduke32/build/include/common.h Nuke rev.h.

Note to MSVC users: You can get the revision number if you run `make rev o=obj` with MinGW before you build.

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

4557 2636d 17h hendricks266 /polymer/eduke32/build/include/common.h Elimininate some codedup between game.c and astub.c.

4555 2640d 10h hendricks266 /polymer/eduke32/build/include/common.h KenBuild.

4128 2903d 20h hendricks266 /polymer/eduke32/build/include/common.h 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.
3976 2994d 3h helixhorned /polymer/eduke32/build/include/common.h 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.
3975 2994d 3h helixhorned /polymer/eduke32/build/include/common.h Clean up parallaxed sky functionality, part 1.

- Consolidate psky* arrays into a "typedef struct psky_t" "g_psky" and
- 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.
3321 3216d 8h helixhorned /polymer/eduke32/build/include/common.h Cleanup of console/on-screen-display (OSD) functionality.

- Rewrite the "clear background" routine in a no-brainer way instead of
juggling around with rotatesprite(). Make it common to game+editor.
Expose glRectd to glbuild.
- Don't stop OSD text line drawing when encountering a non-printable char.
Instead, treat it as space.
- In OSD_SetTextMode(), don't use swaplong (which really swaps 32-bit ints)
to swap pointers. Write an analogous "swapptr" instead.
- When changing from/to OSD, don't inject a pause key. This *might* have been
the cause of the reported pausing problems.
- clean up the code...
(Yes, this commit throws together too much stuff. I suck sometimes. :P)
3245 3242d 10h helixhorned /polymer/eduke32/build/include/common.h Fix build. It was my fault after all since I forgot common.h in r3243.  
3116 3266d 21h hendricks266 /polymer/eduke32/build/include/common.h Work-in-progress adjustment to the C code to compile under C++. It builds for me without errors using Win32 MinGW-GCC, but it still generates warning soup. No guarantees about MSVC or anything using SDL. Enable C++ by building with CPLUSPLUS=1. C remains the default and should compile with no change in setup.

Credit to Plagman for the idea and doing the work on the game side, which is included in this commit.

(Building as C++ will give us features with which we can make improvements and optimizations on the multiplayer code and Polymer.)
3004 3324d 1h helixhorned /polymer/eduke32/build/include/common.h OSD command 'map': entering a name with a '*' wildcard lists those that match.

A new function maybe_append_ext() is added to common.c and used in the handling
of the -d<demo.edm> cmdline parameter and the 'map' OSD command with one
non-wildcard arg. (It's slightly different from the way the extension was
maybe-appended previously.)
2752 3413d 3h helixhorned /polymer/eduke32/build/include/common.h Factor out r2726' kopen4load checks into testkopen, closing opened files.  

Show All