Subversion Repositories eduke32

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
3116 3105d 18h hendricks266 /polymer/ 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.)
 
3115 3105d 21h terminx /polymer/ Add some compile time defined names for p->inven_icon values. Too bad these values aren't in the same order as the inventory items themselves... (dukeinv_t and dukeinvicon_t values do not match).  
3114 3105d 22h helixhorned /polymer/ engine.c: add bound-check assert failing for sprites in m32's textured 2D mode.

Also, disable drawing sprites in that mode for now.
 
3113 3105d 22h helixhorned /polymer/ Mapster32: functionality to rotate or scale RShift-highlighted stuff smoothly.

This is done by pressing LShift and
- holding down the left mouse button for scaling, or
- the right mouse button for rotating the highlighted walls/sprites
with respect to a pivot point determined as the center of the bounding box of
all highlighted points.

Note that scaling sectors isn't that easy and the current functionality is very
rudimentary: there's no z scaling, no xrepeat correction, and sprites aren't
touched expect for their position. The user is responsible to maintain map
consistency, for example to prevent wall-lines of the same sector crossing
each other.
 
3112 3105d 22h helixhorned /polymer/ Mapster32: when looking for matching wall in 2nd pt. ins., don't skip gray nextwalls.

This fixes a bug where it's not possible to split a sector under certain
circumstances, reported by Micky C here:
http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__138380

Also, don't allow zero in various 'F functions: Resize selection and
Global {shade, visibility} divide.
 
3111 3107d 1h helixhorned /polymer/ Work around the transparent line with on-screen chaingun and linear filtering.

We do this by messing with the GL texture that gets uploaded for CHAINGUN.
Since this is implemented on the engine side, the static value for CHAINGUN
(2536) is used, and the tile dimensions are compared to 211x55 to have a
little confidence that the tile wasn't overridden by a mod. Hack indeed.
 
3110 3107d 1h helixhorned /polymer/ VPX: print determined frame rate to the log.

Currently, the FPS determination is based on libvpx's vpxdec.c code, which uses
the FPS provided in the IVF file in one case, and simply sets it to 30 FPS in
the other. For the first case, a "correction" is carried out for something
which the comments suggest to originate from other (old?) VPX encoder versions.
 
3109 3107d 1h helixhorned /polymer/ Lunatic: update structures, find maps case-insensitively in findmaps.sh.  
3108 3107d 1h helixhorned /polymer/ Mapster32: draw lines to linking sprites with LShift, jump to them with +[ or +]

When LShift is pressed and the mouse is over a linking sprite (as determined by
the tag labeling system), lines are drawn to all other sprites, and pressing
[ or ] will cycle these then. False positives and missed sprites are possible.

Additional changes:
- consider SE 31 and 32's lotag to NOT be linking, since the ACTIVATOR is what
matters. The original maps are inconsistent there.
- When pressing Alt+[ or Alt+] and there are no corruptions, say so instead of
doing [ or ].
 
3107 3107d 1h helixhorned /polymer/ Lunatic: make geom.lua work standalone, fix __eq metamethods for dvec[23]_t.  
3106 3107d 1h helixhorned /polymer/ Mapster32: when punching loop, fade screen; tweak two messages.  
3105 3110d 6h terminx /polymer/ Hopefully fix the projectile breakage, and add some predefined names for working with the built in statnums  
3104 3111d 5h terminx /polymer/ Move win32 "Initialized nedmalloc" message out of the function that prints the Windows version since it doesn't really belong there.  
3103 3111d 5h terminx /polymer/ A pretty useless fix from a newer version of kplib than we forked from. I'm just tired of seeing it in my tree. ;)  
3102 3111d 5h terminx /polymer/ Retire the actorscrptr[], actorLoadEventScrptr[], SpriteFlags[], ActorType[], SpriteCacheList[], ProjectileData[] and DefaultProjectile[] arrays in favor of a tile_t structure exposed as g_tile[]. This consolidates most of the MAXTILES sized arrays on the game side into one place.  
3101 3112d 16h hendricks266 /polymer/ Add EVENT_CHANGEMENU and clean up menus.c a little more.

This event is useful in certain circumstances where you want to skip a menu/screen value and the design of the monster switch statement would require the M_ChangeMenu() call to be intercepted or the unwanted screen will flash for a split second.
 
3100 3112d 16h hendricks266 /polymer/ Two new player structure members: "autostep" and "autostep_sbw".

These control the maximum difference in height between two sectors that the player will automatically traverse without needing to jump.

The latter controls the special case when the player's sector's lotag is ST_1_ABOVE_WATER or p->spritebridge == 1.

BYTEVERSION bumped.
 
3099 3112d 16h hendricks266 /polymer/ Remove unused variable "doretry" from S_PlaySound().  
3098 3112d 16h hendricks266 /polymer/ Revise grpfiles[] to include the censored South Korean GRP.  
3097 3112d 16h hendricks266 /polymer/ Fix harmless warnings in the Build tools.  

Show All