Subversion Repositories eduke32


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

Filtering Options

Rev Age Author Path Log message Diff
4880 2456d 0h 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 2487d 1h helixhorned /polymer/eduke32/source/m32exec.c m32script: fix tilesizx[]/tilesizy[] access. Can also 'copy' from them.  
4798 2487d 1h helixhorned /polymer/eduke32/source/m32exec.c M32Script cleanup. Fixes at least one non-minor and one minor bug.  
4658 2529d 16h 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 2618d 13h 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 2618d 13h hendricks266 /polymer/eduke32/source/m32exec.c Progress towards KenBuild Editor, part 2.

4541 2626d 11h 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 2677d 20h 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 2746d 10h terminx /polymer/eduke32/source/m32exec.c Widespread use of ARRAY_SIZE macro.  
4360 2762d 23h helixhorned /polymer/eduke32/source/m32exec.c Propagate 'blend' to rotatesprite_(), but don't hook it up to scripting yet.  
4357 2767d 23h 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 2846d 22h 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 2928d 6h 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 3042d 11h 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 3060d 1h helixhorned /polymer/eduke32/source/m32exec.c m32script: sync rotatesprite* with CON.  
3610 3108d 15h hendricks266 /polymer/eduke32/source/m32exec.c Add "rotatespritea" to CON and M32script.

I hope I didn't bruise Lunatic too much.
3394 3175d 23h 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 3224d 7h helixhorned /polymer/eduke32/source/m32exec.c Factor dist() and ldist() into common.c.  
3177 3238d 5h helixhorned /polymer/eduke32/source/m32exec.c Split r3159..r3161, part 11: Add explicit casts, pointer types.  
3165 3238d 5h 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