Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
3708 2910d 15h terminx /polymer/eduke32/source/game.c Support adding custom grps to the selector in the startup window. To use this feature, create a file with a ".grpinfo" extension in your EDuke32 directory, following this template:

grpinfo
{
name "YourGameName"
scriptname "yourgame.con"
defname "yourgame.def"
size yourgrpsize
dependency DUKE15_CRC
flags GAMEFLAG_ADDON
crc yourgrpcrc
}

The "flags" field can also take the value "GAMEFLAG_DUKE" to define a new base game. Since this is the first commit of a new feature, certain semantics of the implementation and syntax are liable to change as necessary.
 
3702 2913d 22h helixhorned /polymer/eduke32/source/game.c Remove 'cl_angleinterpolation' cvar because it had no effect for a while.

Also remove the two instances of commented out code, but not the respective
CON structure access code.
 
3694 2914d 13h helixhorned /polymer/eduke32/source/game.c A couple of trivial stylistic changes.  
3689 2918d 12h helixhorned /polymer/eduke32/source/game.c OS X: Write eduke32.log to ~/Library/Logs unless -usecwd is given.  
3676 2922d 2h hendricks266 /polymer/eduke32/source/game.c Fix the inventory icon selector's positioning to match v1.5 (reported by Fox [1]). While we're at it, move it according to ud.statusbarscale for aesthetic purposes.

[1] http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__153060
 
3674 2922d 2h hendricks266 /polymer/eduke32/source/game.c Center the x-position of BOTTOMSTATUSBAR displayed to the screen so an extra-wide one would display correctly.

Let me know if this breaks any mods that have #2462 with an x-dimension other than 320.
 
3667 2923d 5h hendricks266 /polymer/eduke32/source/game.c Fix the pause during display of TENSCREEN.  
3666 2923d 20h helixhorned /polymer/eduke32/source/game.c In upward moving enemy code of VM_Move(), consider TROR boundaries.

This fixes liztroops not passing TROR layers when on the jetpack, as well as
other enemies capable of moving upward, and also COMMANDER and DRONE (for which
the code is special-cased).
 
3660 2926d 15h helixhorned /polymer/eduke32/source/game.c Silence "may be used uninitialized" warning, use Batoi() for user input.

Nag: The behavoir of atoi() is *undefined* if "the value of the result
cannot be represented" (C99 7.20.1).

Note: my nagging about undefined behaviors will *not* get less over time. :P
 
3654 2927d 14h terminx /polymer/eduke32/source/game.c Add support for the versions of Duke it out in D.C., Duke Caribbean: Life's a Beach, and Duke: Nuclear Winter packaged with Duke Nukem 3D: Megaton Edition on Steam. This allows them to be launched directly from the startup window and also adds an "-addon" command line parameter that should allow the duke3d.exe included with Megaton Edition to be replaced with a copy of EDuke32.  
3649 2928d 17h helixhorned /polymer/eduke32/source/game.c Remove useless code setting show2dwall[] or show2dsprite[], as they're unused.  
3647 2930d 15h helixhorned /polymer/eduke32/source/game.c Factor out displaying episode ending cutscenes into G_BonusCutscenes().

Also,
- retire IFWITHIN() macro, preferring expanding it
- fix _endofgame() in control.lua
 
3645 2930d 15h helixhorned /polymer/eduke32/source/game.c Define a macro LUNATIC_EXTERN that expands to 'static' in non-Lunatic builds.  
3644 2930d 15h helixhorned /polymer/eduke32/source/game.c Take over and use static assertion macro found in LuaJIT sources.  
3637 2931d 1h terminx /polymer/eduke32/source/game.c Prevent loading anything except the GRP from the Steam or GOG Duke3D install directories. Loading DUKE.RTS from those paths will be resolved later.  
3618 2938d 23h hendricks266 /polymer/eduke32/source/game.c Correct the capitalization of NAPALM.  
3612 2941d 13h hendricks266 /polymer/eduke32/source/game.c Fix a case in minitext_() overlooked by r3608.

(This should fix the inventory item box in the statusbar.)
 
3608 2942d 4h hendricks266 /polymer/eduke32/source/game.c Add orientation bit 2048, enumerated as ROTATESPRITE_FULL16, which is a courtesy provided by the engine for the purpose of the game to internally force use of full 32-bit coordinates. With this bit set, all CON screen drawing commands can use rotatesprite16-like coordinates.

While the functionality was already internally in place for gametext as one of two hacks using ROTATESPRITE_MAX (the other still used by minitext_() to align with the statusbar) we must codify a bit in the engine for safe external use. (Otherwise, ROTATESPRITE_MAX could/would theoretically increase and leave modders high and dry.)

(Dev note: In G_DrawTXDigiNumZ(), ROTATESPRITE_MAX was used to bitshift the value used to calculate digit spacing for no reason I can ascertain other than to introduce rounding errors into the zoom/textscale calculations. It was never used anywhere, so I removed it.)

Bonus: The scaling code for digitalnumberz and gametextz has been modified so that the spacing is no longer affected by rounding errors. Try animating the zoom value and compare how the text used to jump but now does not.
 
3606 2942d 4h hendricks266 /polymer/eduke32/source/game.c Relax CAPITALIZATION restrictions.  
3593 2942d 14h helixhorned /polymer/eduke32/source/game.c Lunatic: cancel logo on EVENT_LOGO error, fix CON mulscale and writable gv.  

Show All