Commit graph

27 commits

Author SHA1 Message Date
Kp 215c66595b Copy morphing g3s_uvl onto stack 2014-09-03 01:32:34 +00:00
Kp 99f1777983 Move point_list onto interpreter stack 2014-08-16 22:18:09 +00:00
Kp dfb7026724 Only set canvas color if it is used 2014-08-16 21:58:37 +00:00
Kp 4b7c823f2f Remove write-only variable morph_uvls 2014-08-16 21:56:18 +00:00
Kp d74e36507c Propagate NULL arguments to g3_check_and_draw_poly 2014-08-16 21:54:48 +00:00
Kp 22a34809ee Move interpreter g3s_lrgb onto stack
MAX_POINTS_PER_POLY is 25, so storing lrgb on the stack fits easily and
saves memory allocation/deallocation.
2014-08-16 21:53:29 +00:00
Kp cbd341e8ee Remove unused !FADE_FLATPOLY code 2014-08-16 21:52:56 +00:00
Kp 1cd6277a3f Move interpreter OP_ constants to static const 2014-08-16 21:52:37 +00:00
Kp a42a403198 Remove unused return value of g3_draw_morphing_model 2014-08-16 17:35:44 +00:00
Kp 0228b067c1 Remove unused return value of g3_draw_polygon_model 2014-08-16 17:35:44 +00:00
Kp cf7bdf3261 Remove long-unused verify 2014-07-16 03:21:04 +00:00
Matt Vandermeulen 28f307eb85 Fixes #5 - Byteswap header renamed to byteutil, plus sed magic
[Kp: switch to #pragma for byteutil.h]
2014-07-03 02:03:08 +00:00
Kp e6655f9481 Use std::vector for lrgb_list 2014-06-22 21:01:31 +00:00
zico c96aece6d2 Removed PARALLAX banner from source files that were not released by PARALLAX; most importantly C source code translated from Assembler and args.cpp which was rewritten from scratch 2014-06-12 10:41:03 +02:00
zico ad7cb106bc Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
Kp 8208ab9e53 Fix array underread when no glow is defined
ASan reports an access to array[-1].
2013-12-19 03:31:24 +00:00
Kp aba6c2dfee Pass glow_values as array<> to retain size information 2013-12-19 03:31:24 +00:00
Kp 77c0b58591 Fix editor crash introduced in 47c00c712
glow_values may be NULL, so check before dereferencing it.
2013-12-17 03:48:31 +00:00
Kp 279f123f56 Simplify FADE_FLATPOLY logic 2013-12-17 03:46:35 +00:00
zico 47c00c7128 Added code which draws activated headlights or their absence to g3_draw_polygon_model. This was never implemented in D2X - probably because most of interp.c was adopted from D1X. 2013-12-16 08:37:51 +01:00
Kp 3b9b5ebfb0 Use RAII to manage function-local heap objects 2013-12-08 19:04:52 +00:00
Kp 2714679284 Mark private functions static 2013-11-02 04:23:55 +00:00
Kp 4863c42c9d Move similar/3d/interp.c -> similar/3d/interp.cpp 2013-10-01 02:53:09 +00:00
Kp 74bcb86cf4 Remove some const modifiers that broke SDL-only build 2013-07-27 21:29:01 +00:00
Kp 4577dd3977 Merge branch 'd2x-rebirth/master' into unification/master 2013-07-21 21:34:46 +00:00
Kp a1ba420031 Mark various parameters and variables as const 2013-07-20 23:12:24 +00:00
Kp 8d379f4f9c Move */3d/interp.c -> similar/3d/interp.c 2013-03-03 01:03:33 +00:00