Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
4880 2317d 3h helixhorned /polymer/eduke32/source/m32exec.c Mapster32: make sprite duplication examples in work again.

- Work around a sequencing issue (assignment of searchstat) in
- When having sprites highlighted and changing shade, since r1943 change
every highlighted sprite's shade if one of them is aimed at. With this
revision, if SHIFT is pressed while doing that, only change the aimed at
sprite's shade
- a.m32: Use 'break' from a state instead of 'return'. The former may be
"sticky" in a way that is not intended. Needs to be debugged later.
- Update instructions in

4799 2348d 4h helixhorned /polymer/eduke32/source/m32exec.c m32script: fix tilesizx[]/tilesizy[] access. Can also 'copy' from them.  
4798 2348d 4h helixhorned /polymer/eduke32/source/m32exec.c M32Script cleanup. Fixes at least one non-minor and one minor bug.  
4658 2390d 20h terminx /polymer/eduke32/source/m32exec.c Various additional optimizations: add CLASSIC_SLICE_BY_4 mode to unroll some of the loops in a-c, replace integer divisions by a divisor unknown at compile time with usage of libdivide, clean up pragmas further by removing more old stuff that wasn't used anywhere. This is another one of those nasty commits that make people cry. DONT_BUILD.  
4563 2479d 16h hendricks266 /polymer/eduke32/source/m32exec.c Move implementation details of Mapster32's sound system from m32exec.c into sounds_mapster32.c, and set up a sound system stub in KenBuild Editor.

4560 2479d 16h hendricks266 /polymer/eduke32/source/m32exec.c Progress towards KenBuild Editor, part 2.

4541 2487d 14h hendricks266 /polymer/eduke32/source/m32exec.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.

4491 2538d 23h helixhorned /polymer/eduke32/source/m32exec.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.

4385 2607d 14h terminx /polymer/eduke32/source/m32exec.c Widespread use of ARRAY_SIZE macro.  
4360 2624d 2h helixhorned /polymer/eduke32/source/m32exec.c Propagate 'blend' to rotatesprite_(), but don't hook it up to scripting yet.  
4357 2629d 3h helixhorned /polymer/eduke32/source/m32exec.c a.m32: add states 'uniformceiling' and 'uniformfloor'.

Given highlighted sectors, these take the arithmetic mean of their ceiling's
or floor's (respectively) z, removing the slope bit from all, and setting the
new z to the mean one, rounded down to 1024 Build z units (one PGUP/PGDN).

4196 2708d 2h helixhorned /polymer/eduke32/source/m32exec.c m32script: fix parsing negated labels, getnumber* with neg. 'max'.

Exposed by this snippet from a.m32:
getnumber256 .owner "OWNER (projection picnum): " -MAXTILES
Now, Alt+KP2 works as expected in 3D mode.
4068 2789d 10h helixhorned /polymer/eduke32/source/m32exec.c Prevent calling function pointers cast to an incompatible type.

Most often, this had happened when casting comparison functions for qsort()
like these: "int yax_cmpbunches(const int16_t *b1, const int16_t *b2)"
to a function pointer type expecting "const void *". Alas, this is undefined
behavior: see
and posts linked from it.

At least two cases have not been fixed:
- The savegame system maintains pointers which are either to data or a function in
the generic "void *". This ought to be made into a union.
- Probably also:
#define OSD_ALIAS (int32_t (*)(const osdfuncparm_t*))0x1337
3823 2903d 14h helixhorned /polymer/eduke32/source/m32exec.c Replace inline "qsetmode==200" checks with in3dmode().

Analogously for the negation; remove a couple of redundant decls of "qsetmode".
3753 2921d 4h helixhorned /polymer/eduke32/source/m32exec.c m32script: sync rotatesprite* with CON.  
3610 2969d 19h hendricks266 /polymer/eduke32/source/m32exec.c Add "rotatespritea" to CON and M32script.

I hope I didn't bruise Lunatic too much.
3394 3037d 3h helixhorned /polymer/eduke32/source/m32exec.c Replace dragpoint()'s "dragpoint_noreset" global with a "flags" argument.

Also, add another flag, signifying that from the editor, also the
"lastwall"s (i.e. the CCW-linked points) should get collected. This is
to signal the editor that their wall lengths should be displayed, too.
3243 3085d 10h helixhorned /polymer/eduke32/source/m32exec.c Factor dist() and ldist() into common.c.  
3177 3099d 9h helixhorned /polymer/eduke32/source/m32exec.c Split r3159..r3161, part 11: Add explicit casts, pointer types.  
3165 3099d 9h helixhorned /polymer/eduke32/source/m32exec.c Revert "Fix the warnings when building with C++, add MSVC C++ build support."

This reverts r3159..r3161.

(Handled so that r3163's changes are kept applied.)

Show All