Commit graph

568 commits

Author SHA1 Message Date
hendricks266
2c96410b39 Address a number of harmless instances of "code never reached" identified by Xcode.
git-svn-id: https://svn.eduke32.com/eduke32@5961 1a8010ca-5511-0410-912e-c29ae57300e0
2016-12-26 06:02:06 +00:00
hendricks266
95452a5a8a C-CON and M32script: Only accept hex literals beginning with '0' and not any other digit.
git-svn-id: https://svn.eduke32.com/eduke32@5908 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-23 19:47:33 +00:00
hendricks266
942964ec3d Implement "divscale" and "scalevar" (scale()) in C-CON and "scalevar" in M32script.
git-svn-id: https://svn.eduke32.com/eduke32@5901 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-20 06:26:10 +00:00
hendricks266
c8f1e9bf37 C-CON: Allow gamestartup to read in one additional parameter (MAXFLAMETHROWERAMMO). Do nothing with it yet.
git-svn-id: https://svn.eduke32.com/eduke32@5894 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:44 +00:00
hendricks266
3ce371d84d C-CON: Implement "ifplaybackon" conditional, used by World Tour to determine if the replay feature is enabled. In our case, it is always false.
git-svn-id: https://svn.eduke32.com/eduke32@5893 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:41 +00:00
hendricks266
259d51bec0 Replace all "g_scriptVersion == 14" with "g_scriptVersion >= 14".
git-svn-id: https://svn.eduke32.com/eduke32@5892 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-14 07:40:38 +00:00
terminx
231c22d654 Misc cleanup. Removed ability to use .CON files found in the .GRP when the .CON files found in the directory can't be compiled.
git-svn-id: https://svn.eduke32.com/eduke32@5883 1a8010ca-5511-0410-912e-c29ae57300e0
2016-10-09 00:15:10 +00:00
terminx
559a34e875 Support saving specified CON arrays in map states
git-svn-id: https://svn.eduke32.com/eduke32@5860 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-10 05:21:01 +00:00
hendricks266
abd1523477 Enumify stuff having to do with action parameters.
git-svn-id: https://svn.eduke32.com/eduke32@5848 1a8010ca-5511-0410-912e-c29ae57300e0
2016-09-06 02:15:23 +00:00
terminx
3f4a4679ce Add "string" alias for "definequote" and "print" alias for "quote".
git-svn-id: https://svn.eduke32.com/eduke32@5838 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:42:16 +00:00
terminx
d7d6623364 More readability cleanup. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5835 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:42:01 +00:00
terminx
e3a7c98a25 Fix a gcc 6.x warning
git-svn-id: https://svn.eduke32.com/eduke32@5831 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:41:37 +00:00
terminx
4575148c02 Use size_t or ssize_t in for loops where possible
git-svn-id: https://svn.eduke32.com/eduke32@5829 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:41:21 +00:00
terminx
52f678a743 Massive readability cleanup of game code part 1. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5825 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:40:35 +00:00
terminx
ae5f941ad0 You're just going to have to trust me that this is 10000 lines worth of formatting and variable name cleanup, and not 10000 lines of functional changes.
git-svn-id: https://svn.eduke32.com/eduke32@5821 1a8010ca-5511-0410-912e-c29ae57300e0
2016-08-27 01:40:06 +00:00
hendricks266
0434a87e3a Remove trailing whitespace from anything we don't need to rebase from an upstream.
git-svn-id: https://svn.eduke32.com/eduke32@5768 1a8010ca-5511-0410-912e-c29ae57300e0
2016-06-05 04:46:28 +00:00
terminx
584b748897 Add CON_CLAMP
git-svn-id: https://svn.eduke32.com/eduke32@5728 1a8010ca-5511-0410-912e-c29ae57300e0
2016-05-13 22:15:37 +00:00
hendricks266
3cba791f5b Some stuff for using clang to build on Android. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5717 1a8010ca-5511-0410-912e-c29ae57300e0
2016-05-04 08:26:08 +00:00
terminx
eaa2b90251 Implement CON_NEXTSECTORNEIGHBORZ
git-svn-id: https://svn.eduke32.com/eduke32@5616 1a8010ca-5511-0410-912e-c29ae57300e0
2016-02-07 02:38:32 +00:00
terminx
03b0335130 Implement Mapster32's CON_FOR into EDuke32.
git-svn-id: https://svn.eduke32.com/eduke32@5604 1a8010ca-5511-0410-912e-c29ae57300e0
2016-02-02 00:21:24 +00:00
terminx
8ac3e86da3 Add SFLAG_REALCLIPDIST to bypass hard-coded clipdist fuckery based on xrepeat and picnum. This also changes some bad uses of A_CheckSpriteTileFlags() into A_CheckSpriteFlags() instead.
git-svn-id: https://svn.eduke32.com/eduke32@5602 1a8010ca-5511-0410-912e-c29ae57300e0
2016-02-02 00:21:17 +00:00
terminx
798685ee80 Fix switch/case regressions introduced in r5577.
git-svn-id: https://svn.eduke32.com/eduke32@5594 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-27 10:06:00 +00:00
terminx
6d9273d502 "4 spaces originally
2 spaces now
0 idea how that even happened"

git-svn-id: https://svn.eduke32.com/eduke32@5588 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-27 07:26:40 +00:00
terminx
b36f2bdc7f Fix problem with C-CON sector and wall structure access. Oops.
git-svn-id: https://svn.eduke32.com/eduke32@5587 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-27 07:16:47 +00:00
terminx
f8e1d814ce Minor cleanup. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5586 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-27 07:16:45 +00:00
terminx
e4e2954eea I still make off-by-one errors because I am a horrible programmer. :D
git-svn-id: https://svn.eduke32.com/eduke32@5584 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-24 19:44:49 +00:00
terminx
3e82145e2c CON_MOVESECTOR. Triggers built-in sector movement routines... not really appropriate to use outside of EVENT_MOVEEFFECTORS.
git-svn-id: https://svn.eduke32.com/eduke32@5581 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:34 +00:00
terminx
10fca8594d Replace msx/msy global arrays with vec2_t g_origins. Bump BYTEVERSION.
git-svn-id: https://svn.eduke32.com/eduke32@5580 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:30 +00:00
terminx
72d7f042de EVENT_MOVEEFFECTORS. Allows disabling, overriding, or just plain tampering with built-in SECTOREFFECTOR effects.
git-svn-id: https://svn.eduke32.com/eduke32@5579 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:25 +00:00
terminx
d30efa9a0a EVENT_MOVESECTOR. This isn't enough to really do anything with yet--more to come.
git-svn-id: https://svn.eduke32.com/eduke32@5578 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:22 +00:00
terminx
180d33c66e Revise compilation of CON_CASE and CON_DEFAULT.
git-svn-id: https://svn.eduke32.com/eduke32@5577 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:19 +00:00
terminx
2d004034b1 Inline some things that looked like happy, fun candidates for inlining.
git-svn-id: https://svn.eduke32.com/eduke32@5576 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:16 +00:00
terminx
806413e887 Fix compilation of malformed statements using array style notation.
git-svn-id: https://svn.eduke32.com/eduke32@5575 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:14 +00:00
terminx
c4193d933b Move C-CON compile stat printing into its own function.
git-svn-id: https://svn.eduke32.com/eduke32@5574 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:11 +00:00
terminx
621f5db188 Use lists for the many hash tables used in the C-CON compiler instead of dozens of lines of calls to hash_init() and hash_free().
git-svn-id: https://svn.eduke32.com/eduke32@5573 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:09 +00:00
terminx
39b9a77581 Add CON compiler error for malformed comments
git-svn-id: https://svn.eduke32.com/eduke32@5571 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:35:03 +00:00
terminx
ba80a5f35e First attempt at providing CON control of the internal sector animation system. Read the commit if you want to know how it works!
git-svn-id: https://svn.eduke32.com/eduke32@5569 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-21 19:34:56 +00:00
hendricks266
2beee7056c iOS: Eliminate some minor warnings.
git-svn-id: https://svn.eduke32.com/eduke32@5558 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-12 10:31:19 +00:00
hendricks266
c1f67576a4 CON: Add userdef[].soundtoggle. Read-only.
git-svn-id: https://svn.eduke32.com/eduke32@5553 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-12 10:31:01 +00:00
terminx
db8b4a00b6 Enable -Wwrite-strings and fix all instances where string constants were passed to functions accepting a char ptr.
git-svn-id: https://svn.eduke32.com/eduke32@5547 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:06:10 +00:00
terminx
a7e6ed8745 Fix quite a few issues with casting away const and volatile qualifiers, found with -Wcast-qual. If we're going to use const everywhere, we should really mean it!
git-svn-id: https://svn.eduke32.com/eduke32@5540 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:05:38 +00:00
terminx
603ae7eb7a CON compilation and debug message fuckery affecting virtually nobody
git-svn-id: https://svn.eduke32.com/eduke32@5537 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:05:18 +00:00
terminx
15b57d4dcf Fix a few instances where bitptr wasn't properly set after writing to the compiled script
git-svn-id: https://svn.eduke32.com/eduke32@5535 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:05:13 +00:00
terminx
31e89f12b2 Clean up a couple instances of direct usage of a magic number in the CON compiler. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5534 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:05:10 +00:00
terminx
e1124f9d12 Make the bitptr stuff in the CON compiler more readable.
git-svn-id: https://svn.eduke32.com/eduke32@5533 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-11 05:05:05 +00:00
hendricks266
d4dc72bac4 C-CON: Add getpv and setpv as short forms for get/setplayervar, and #include as an alternate for include.
git-svn-id: https://svn.eduke32.com/eduke32@5531 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-08 01:33:43 +00:00
hendricks266
f403d6234c C-CON: Add ifvarge, ifvarle, and ifvarboth in line with ifvarvarge, ifvarvarle, and ifvarvarboth.
git-svn-id: https://svn.eduke32.com/eduke32@5530 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-08 01:33:39 +00:00
hendricks266
8cd708cef4 C-CON: Fix the return command within events, broken since r5097.
git-svn-id: https://svn.eduke32.com/eduke32@5522 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-08 01:33:05 +00:00
hendricks266
5d9b8a2bb1 C-CON: Clean up pointer handling in the parser so we have less to re-offset in C_SetScriptSize. Also fixes bugs in r5093 and/or r5097.
git-svn-id: https://svn.eduke32.com/eduke32@5521 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-08 01:33:01 +00:00
hendricks266
d3f9244d66 Remove -CONversion command line parameter, because it has been supplanted by r5499's automatic identifier masking.
git-svn-id: https://svn.eduke32.com/eduke32@5519 1a8010ca-5511-0410-912e-c29ae57300e0
2016-01-08 01:32:53 +00:00