Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
4895 2312d 23h terminx /polymer/eduke32/source/gamevars.c Clean up/refactor a few gamevar related functions based on building as C++/C99 and some interesting articles I read about how GCC and Clang optimize switches. Worth a few FPS here.  
4839 2328d 10h helixhorned /polymer/eduke32/source/gamevars.c In C-CON build, prevent leak of gamevar/gamearray labels on savegame loading.

Also, rewrite the loops in Gv_Free() and Gv_Clear() in the plain fashion so
that they are correct even if the number of gamearrays exceeds the number of
4793 2349d 8h helixhorned /polymer/eduke32/source/gamevars.c gamevars.c: don't leak memory in Gv_NewArray(). DONT_BUILD.  
4747 2362d 15h terminx /polymer/eduke32/source/gamevars.c Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD.  
4735 2377d 6h helixhorned /polymer/eduke32/source/gamevars.c C-CON: fix 'readgamearray' and 'resizearray' on Windows.

We must not use Xrealloc(), since gamearrays are now allocated with
NOTE: I did not check all potential problematic cases, only those to get
LNGA3 up and running.
4710 2385d 6h helixhorned /polymer/eduke32/source/gamevars.c Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD.

- Needed to rip out enum GameEvent_t into own header file to prevent what
would be a circular #include otherwise
- Added some forgotten #ifdef LUNATIC
- updated structure and function declarations on the Lua FFI side
4707 2386d 11h terminx /polymer/eduke32/source/gamevars.c Alter weapon switching to cycle through GROW_WEAPON when using next/previous weapon keys. DONT_BUILD.  
4698 2386d 11h terminx /polymer/eduke32/source/gamevars.c Aligned gamevar/gamearray allocation  
4680 2391d 0h terminx /polymer/eduke32/source/gamevars.c Another 5000 lines of pain and tears. DONT_BUILD.  
4633 2416d 0h terminx /polymer/eduke32/source/gamevars.c I thought I was clever, MinGW thought I should eat shit.  
4631 2416d 0h terminx /polymer/eduke32/source/gamevars.c Gamevar cleanup: drop "register" qualifiers, shuffle a few things around.  
4623 2416d 0h terminx /polymer/eduke32/source/gamevars.c More Polymost cleanup, also consolidate tilesizx and tilesizy into a single tilesiz vec2_t to ensure both x and y are always in the same cache line. I may add a new vec2_16t later. Still need to take care of emulating the old flat array for the sake of CON access.  
4541 2487d 19h hendricks266 /polymer/eduke32/source/gamevars.c Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it.

4536 2502d 4h terminx /polymer/eduke32/source/gamevars.c WIP OSD refactor, committing now before it stops applying cleanly to current svn. This shouldn't break anything in an obvious or major way.  
4502 2524d 19h hendricks266 /polymer/eduke32/source/gamevars.c Wrap most calls to exit() with a macro that will print the exit status, file name, line number, and function name to the log when using a debug build.  
4496 2537d 15h hendricks266 /polymer/eduke32/source/gamevars.c Ball-busting new menus. Still WIP.

Mouse/touch/pointer support is yet to come. #SOON.

Exposure to scripting is a LONG way off. Months. The spec and data structure needs time for comment and revision. The eventual scripting access will be Lua-only.
4491 2539d 4h helixhorned /polymer/eduke32/source/gamevars.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 *('
git grep '[^Xx]strdup *('
to see places where I left the B*alloc() calls intact.

4321 2647d 17h hendricks266 /polymer/eduke32/source/gamevars.c Fix warnings when building in C++11 mode, i.e. with CPLUSPLUS=1 CUSTOMOPT="--std=gnu++11".  
4286 2657d 7h helixhorned /polymer/eduke32/source/gamevars.c Lunatic: Fix compilation of C++ build, but not starting up yet.

4191 2713d 9h helixhorned /polymer/eduke32/source/gamevars.c Do not consider system gamearrays for updating from demos.

This generally fixes demo playback. Before, tilesizx[]/tilesizy[] were written
into twice as many bytes as needed. Now, don't do that at all.

Show All