Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
3159 3071d 13h terminx /polymer/eduke32/source/demo.c Fix the warnings when building with C++, add MSVC C++ build support. This also changes the internal type of lotags, hitags and cstat type fields to uint16_t instead of int16_t to clean up some dubious behavior wherein the code was using a value of 32768 as a flag in these fields for certain types of things, like invisible sprites (using the value as if it was uint16_t) where it was elsewhere checking if the value was < 0 (using the value as if it was int16_t). This change may break a few specific effects if any part of the relevant code was missed when looking for areas that needed to be addressed.

I think there's also a fix for the CON precache system breakage in here (lost it in my local tree when I started getting the C++ build working in MSVC, sorry!)
3095 3088d 14h terminx /polymer/eduke32/source/demo.c WIP networking updates from Jasper Foreman  
3084 3102d 14h terminx /polymer/eduke32/source/demo.c Minor menu cleanups, only half-finished (if that).  
3045 3115d 18h helixhorned /polymer/eduke32/source/demo.c In -d command line arg, allow specifying demo number in addition to file name.  
3025 3122d 15h helixhorned /polymer/eduke32/source/demo.c Revert r2223's removing of bit 1 making it to setbrightness(), now a noop.

Hendricks found a bug caused by that commit, so this one enables exprimentation
with setbrightness() bit 1 behavior.
3024 3122d 15h helixhorned /polymer/eduke32/source/demo.c Add the option of starting demo profiling from the command line.

EDuke32 will exit afterwards.
3022 3131d 21h helixhorned /polymer/eduke32/source/demo.c With SDL 1.2 builds, make the profiling be cancelable by pressing any key.  
3021 3131d 21h helixhorned /polymer/eduke32/source/demo.c Add a profiling option to the 'demo' OSD command.

See the comment in source/osdcmds.c for instructions on its usage.
3007 3138d 14h helixhorned /polymer/eduke32/source/demo.c Clean up some timing-related code.

- duke3d.h: comment the timing marcos a bit more
- factor out smoothratio calculation
3006 3138d 14h helixhorned /polymer/eduke32/source/demo.c New OSD cmd: demo <demonum or demofile>, starting one instantly from the menu.

Also, correct some comments made in the demo source made earlier. Oops.
3003 3138d 14h helixhorned /polymer/eduke32/source/demo.c Make demos be named edemoXXX.edm, XXX ranging from 000 to 999.

Also, don't stop playback cycling at the 10th demo and show the demo
number when beginning to record one.
3001 3138d 14h helixhorned /polymer/eduke32/source/demo.c demo.c: minor cleanup; comment the G_PlaybackDemo() a little.  
2999 3141d 19h helixhorned /polymer/eduke32/source/demo.c Factor out some repeated code into G_{Load,Save}PlayerMaybeMulti.

This currently says that MP saving/loading isn't supported, but doesn't
really work correctly. Also, properly bound-check the immediate argument
to CON's 'save' command and one more ... -> G_HandleAsync().
2997 3141d 19h helixhorned /polymer/eduke32/source/demo.c Factor out snprintf'ing a maybe-modDir'd file name into macro G_ModDirSnprintf().

... and use it in three places. In two of these uses,
1) CON {read,write}arrayfromfile and
2) G_SavePlayer,
display an error message if the file name such generated is too long.

In the CON commands of 1), also error out if the file couldn't be opened.
2995 3141d 19h helixhorned /polymer/eduke32/source/demo.c Fix crash when recording demo, stooping it, going to title screen, and exiting.

A macro MAYBE_FCLOSE_AND_NULL(fileptr) is introduced in compat.h that does
what it says.
2994 3141d 19h helixhorned /polymer/eduke32/source/demo.c Demo: rename some functions for new-style conventions, functionize one marco...  
2961 3153d 17h helixhorned /polymer/eduke32/source/demo.c A couple of trivial changes.  
2960 3153d 17h helixhorned /polymer/eduke32/source/demo.c Fix stack corruption when demo was attempted to be written with non-empty mod dir.  
2948 3157d 15h helixhorned /polymer/eduke32/source/demo.c Print quotes for both players in fake multi, remove quote code in splitscr.con.  
2728 3235d 20h hendricks266 /polymer/eduke32/source/demo.c Massive menu input control revamp/cleanup/factor. (added: input.[ch])

New Wii control defaults for the Wii Remote + Nunchuk and the Classic Controller. This includes new code added just so that the Home key brings up the menu in-game, reducing the need for a USB keyboard.

On the technical side, raw joystick access (comparable to what is available for keyboard and mouse) is now present in jmact, on the game side. (added: joystick.[ch])

Using this new raw joystick access, I replaced tueidj's hack to map A and B to LMB/RMB and D-Pad Up/Down to the scrollwheel.

I made the menus more friendly to mouse and joystick browsing by adding and unifying checks and clears for various buttons and gamefuncs. In fact, the majority of the time spent on this commit was tracking down problems that appeared with the factoring and trying to understand the menu system and the way input checks are precariously executed.

In addition, "Press any key or button to continue" now truly means what it says.

As a result of incorporating proper raw access into control.c instead of it directly accessing the implementaiton, the program *may* no longer be affected by joystick input when it is out of focus. This follows the pattern set by the mouse, and I think this is a positive change.

A small bonus: In the classic/old keyboard preset, the key for Show_Console has been changed from '`' to 'C' because '`' is taken by Quick_Kick.

Show All