PCExhumed - r11318 - Built: Wed Apr 8 15:56:51 UTC 2020 --- commit 6c8386c17e621d39703630f3d180fa4508922638 Merge: 514b59304 0fe5c5958 Author: nukeykt Date: Wed Apr 8 10:58:40 2020 +0900 Merge remote-tracking branch 'remotes/eduke32/master' # Conflicts: # Common.mak commit 0fe5c595854209c46105377855241d0249f99cd0 Author: Richard C. Gobeille Date: Tue Apr 7 10:17:40 2020 -0700 Are you kidding me? This fixes the elevator in Duke3D E2L3. commit 4af08d4e2136e46643da604d627fe69637e814cf Author: Richard C. Gobeille Date: Tue Apr 7 10:00:51 2020 -0700 Fix stupid typo that broke the camera aiming at the enemy that killed you in Duke3D commit 514b5930416816102018d58e6557245b6097417e Author: nukeykt Date: Tue Apr 7 14:29:52 2020 +0900 Blood: fix crash due to uninitialized voxel VBOs commit 87b2227772fdeac868b49ade405a4a165b952bd0 Author: nukeykt Date: Sun Apr 5 16:36:29 2020 +0900 clean up commit cfce576a1e517297b7bb5ccb121fdc0c4e012ef5 Author: nukeykt Date: Sat Mar 28 11:36:38 2020 +0900 Add slope sprite check to hitscan commit 8ce0e74bb054f8594105a4ac41c38350f6e575d4 Author: Richard C. Gobeille Date: Mon Apr 6 05:52:19 2020 -0700 Add .gitlab-ci.yml commit 468295aa1544ce8d028699e2316c1ef7cfc04805 Author: Richard C. Gobeille Date: Mon Apr 6 05:34:32 2020 -0700 Update the revision numbers added to builds to also contain the commit's short hash commit 37d3a01c857ad79cca07aa9a056872739cc5b5e1 Merge: cb62fd276 cad905dd5 Author: Evan Ramos Date: Mon Apr 6 05:13:12 2020 -0500 Merge remote-tracking branch 'eduke32/master' commit cb62fd2767b55bf1987f502e124e3d26dde3da73 Merge: 7a68e8d54 924557ef9 Author: Evan Ramos Date: Mon Apr 6 05:05:58 2020 -0500 Merge history from the newly minted official EDuke32 Git repository commit 7a68e8d54c147cfee7e4f3b302f7b2ce422c93e4 Author: Evan Ramos Date: Mon Apr 6 04:58:31 2020 -0500 engine.cpp: Fix inside() formatting commit 518aedd3ba30916524cdd5a2ab2c47124a39b8ed Author: ny00123 Date: Sat Apr 4 19:42:00 2020 +0000 SW: Revert the changes from JFSW commit 7d0deafe81b0ffa30d77cfe242e454f8b4487a1f related to the definitions of RANDOM_NEG in bunny.cpp, ripper.cpp and ripper2.cpp. Do so in a way that isn't re-introducing compiler warnings. This partially fixes compatibility with demos made for SW 1.2. Additionally, replace the 3 separate definitions of RANDOM_NEG with a common one within game.h. git-svn-id: https://svn.eduke32.com/eduke32@8798 1a8010ca-5511-0410-912e-c29ae57300e0 commit ea1f8695b2b2d6ad2b452227f7dea64acc4ffd91 Author: ny00123 Date: Sat Apr 4 19:41:58 2020 +0000 SW: Fix a few memory access errors related to demo support git-svn-id: https://svn.eduke32.com/eduke32@8797 1a8010ca-5511-0410-912e-c29ae57300e0 commit e54edf6b5c6d71163ad6bcab3c6bf505deeab118 Author: ny00123 Date: Sat Apr 4 19:41:57 2020 +0000 Add a workaround for possible rounding errors in calculations of sintable and radarang. sintable[512] was different in a 32-bit build. git-svn-id: https://svn.eduke32.com/eduke32@8796 1a8010ca-5511-0410-912e-c29ae57300e0 commit 3d1c8578359d20926e0604f16b4f80847098840a Author: hendricks266 Date: Sat Apr 4 10:59:18 2020 +0000 Fix voxels defined with definemodel Patch from Nuke.YKT. git-svn-id: https://svn.eduke32.com/eduke32@8794 1a8010ca-5511-0410-912e-c29ae57300e0 commit 216326cbba88c9eeee45261e55968b4d54280764 Author: ny00123 Date: Thu Apr 2 23:04:25 2020 +0000 Pack the struct SW_PACKET. While this makes demo playback functional with existing demo files, the code is known to be incompatible with demos made for SW 1.2. git-svn-id: https://svn.eduke32.com/eduke32@8792 1a8010ca-5511-0410-912e-c29ae57300e0 commit d3bc3fa7ce54e6b9d249080af663299b2f3cbec1 Author: hendricks266 Date: Sun Mar 29 09:07:03 2020 +0000 WT Incinerator projectile velocity hotfix from Nuke.YKT git-svn-id: https://svn.eduke32.com/eduke32@8791 1a8010ca-5511-0410-912e-c29ae57300e0 commit 71119c6507d17c313dd472da2b94c11b6b45aa4f Author: hendricks266 Date: Sun Mar 29 08:41:21 2020 +0000 Implement WT episode 5 ending git-svn-id: https://svn.eduke32.com/eduke32@8790 1a8010ca-5511-0410-912e-c29ae57300e0 commit 52d1030c299c04ffeae3433791000f7a681a11cd Author: hendricks266 Date: Sun Mar 29 08:41:17 2020 +0000 Implement WT's widescreen tiles git-svn-id: https://svn.eduke32.com/eduke32@8789 1a8010ca-5511-0410-912e-c29ae57300e0 commit 0d43faa205f3c88866abced000c1b950cddd5430 Author: hendricks266 Date: Sun Mar 29 08:41:12 2020 +0000 Implement hardcoded WT stuff Includes the new weapon, enemy projectiles, and breakable objects. Patch from Nuke.YKT. I edited it some, mostly to add the proper "if (WORLDTOUR)" checks. git-svn-id: https://svn.eduke32.com/eduke32@8788 1a8010ca-5511-0410-912e-c29ae57300e0 commit ad36bf09e26d35afae1082eb8544ecdc69ddd154 Author: hendricks266 Date: Sun Mar 29 08:41:07 2020 +0000 Fix negative viewtypes to match what World Tour expects git-svn-id: https://svn.eduke32.com/eduke32@8787 1a8010ca-5511-0410-912e-c29ae57300e0 commit 115ef5e57762d572fd0bb76bc4f2d32f506a1208 Author: hendricks266 Date: Sun Mar 29 08:41:03 2020 +0000 Cleanup some Duke game logic, mostly to allow easier chaining to the default case git-svn-id: https://svn.eduke32.com/eduke32@8786 1a8010ca-5511-0410-912e-c29ae57300e0 commit 15b7413d64191d5b4dd79046907de04a517fb867 Author: hendricks266 Date: Sun Mar 29 08:40:58 2020 +0000 Fix mistake in .rc git-svn-id: https://svn.eduke32.com/eduke32@8785 1a8010ca-5511-0410-912e-c29ae57300e0 commit cad905dd51cbc5e85005a5fddea44309c7e24480 Author: nukeykt Date: Sat Apr 4 01:30:53 2020 +0900 Add special case for spriteoncfz if heinum and angle match to sector commit 3d7c93fbd503608675bda26fb865dbadc49226a8 Author: nukeykt Date: Tue Mar 31 18:34:35 2020 +0900 Render slope sprite in automap commit 2e74e86669c8ff7a6706d6cd7663bf00ea8157a6 Author: nukeykt Date: Sat Mar 28 14:12:49 2020 +0900 Improve slope sprite clipping commit 6006900bc60e99cdc27cd802a5e8383cf6f5abfb Author: nukeykt Date: Sat Mar 28 13:30:16 2020 +0900 experimental clipping code for slope sprites commit 5fff319be3da123f20810ef52c498e91f6efeabe Author: nukeykt Date: Sat Mar 28 11:06:25 2020 +0900 Fix sloped sprite points calculation commit 0d27583d8e3cbfb5bac835626e57eb025e1869a2 Author: nukeykt Date: Sat Mar 28 10:59:42 2020 +0900 Fix silly typo commit 024c1f46caad9787df2a7969679e304a98f32f6c Author: nukeykt Date: Sat Mar 28 10:57:39 2020 +0900 Improve slope sprite height calculation commit adaa3da7c73ab2c6f05d9b9477f16064f6215a2c Author: nukeykt Date: Fri Mar 27 02:34:35 2020 +0900 Add sloped sprite case to spriteoncfz commit a2ee887352b72c50d013d0861ee0613720bc3683 Author: nukeykt Date: Fri Mar 27 02:33:36 2020 +0900 add slope sprite case to getzrange commit 91e588d6d8402ebcd1416e4895a4099cafc2b6f2 Author: nukeykt Date: Thu Mar 26 08:18:34 2020 +0900 Remove unused variables commit 4a151cdb5a5a51b791d36877b6ce94001791a149 Author: nukeykt Date: Thu Mar 26 07:57:39 2020 +0900 Add slope sprites to renderer commit 95dce4b40eae4a05ee904c698a9d256f7915f267 Author: Richard C. Gobeille Date: Sat Apr 4 23:40:38 2020 -0700 Rename G_HaveActor() and G_DefaultActorHealth() for clarity The new names are G_TileHasActor() and G_DefaultActorHealthForTile(). commit 255793ff1ab383279d4fc9d593dc52600152f9a9 Author: Richard C. Gobeille Date: Sat Apr 4 23:40:11 2020 -0700 Demote labeltype to uint8_t commit 5b216e38eada8be69c5fa2c7870e7379a8790114 Author: Richard C. Gobeille Date: Sat Apr 4 23:39:35 2020 -0700 Add EVENT_GETNUMBER for m32script commit 942673b959c518765e2081da9249944da16f5f30 Author: Richard C. Gobeille Date: Sat Apr 4 23:39:15 2020 -0700 Return INT32_MIN instead of -1 when pressing esc in the editor's getnumber functions commit d4a802786efefc909836c162ac9c1eb7cf640cf9 Author: Richard C. Gobeille Date: Sat Apr 4 23:38:14 2020 -0700 Silence warning when building with FURY=1 commit 924557ef9f25b4207be28975704d0b389be1134f Author: NY00123 Date: Sat Apr 4 19:42:00 2020 +0000 SW: Revert the changes from JFSW commit 7d0deafe81b0ffa30d77cfe242e454f8b4487a1f related to the definitions of RANDOM_NEG in bunny.cpp, ripper.cpp and ripper2.cpp. Do so in a way that isn't re-introducing compiler warnings. This partially fixes compatibility with demos made for SW 1.2. Additionally, replace the 3 separate definitions of RANDOM_NEG with a common one within game.h. From-SVN: r8798 commit c714b6c587d5ca67cb6140ea7d062d3b98c1cbe6 Author: NY00123 Date: Sat Apr 4 19:41:58 2020 +0000 SW: Fix a few memory access errors related to demo support From-SVN: r8797 commit 2a408c1a6d440868301ef289a89c9bd3b6ebb37c Author: NY00123 Date: Sat Apr 4 19:41:57 2020 +0000 Add a workaround for possible rounding errors in calculations of sintable and radarang. sintable[512] was different in a 32-bit build. From-SVN: r8796 commit 698a8f2c8d250b1cf740faaf6de31e1ba04db612 Author: Evan Ramos Date: Sat Apr 4 10:59:22 2020 +0000 Disable the call to WIN_UpdateClipCursorForWindows in WIN_PumpEvents Achieved by hex-editing libSDL2.a to change a JE (0x74) to JMP (0xEB). This should improve micro stuttering-issues on Windows. My settings: r_vsync 2 r_maxfps 0 win_systemtimermode 1 win_performancemode 1 From-SVN: r8795 commit ff967521b2aeb1aaa05758dd94e8abeced4b5280 Author: Evan Ramos Date: Sat Apr 4 10:59:18 2020 +0000 Fix voxels defined with definemodel Patch from Nuke.YKT. From-SVN: r8794 commit 13e54a6863062e2d6a983e540a2f05c97c3df596 Author: Evan Ramos Date: Sat Apr 4 10:59:14 2020 +0000 Replace hackish old PALETTE.DAT format detection with robust file length method From-SVN: r8793 commit f46d6c2f8e4846183e8a4d12051ed3f427c3b38f Author: NY00123 Date: Thu Apr 2 23:04:25 2020 +0000 Pack the struct SW_PACKET. While this makes demo playback functional with existing demo files, the code is known to be incompatible with demos made for SW 1.2. From-SVN: r8792 commit 2e0a25b1b423c94b45bad87487ac133511582c55 Author: Evan Ramos Date: Sun Mar 29 09:07:03 2020 +0000 WT Incinerator projectile velocity hotfix from Nuke.YKT From-SVN: r8791 commit cdc34214a55d0a7b0fc22628e08a3c43f09d3b7d Author: Evan Ramos Date: Sun Mar 29 08:41:21 2020 +0000 Implement WT episode 5 ending From-SVN: r8790 commit fccb71fca74d22d8103bb5b38ae1af3e675ffc2f Author: Evan Ramos Date: Sun Mar 29 08:41:17 2020 +0000 Implement WT's widescreen tiles From-SVN: r8789 commit 95be207503fb8863d3cb0a291acd3dcdbe8d6d93 Author: Evan Ramos Date: Sun Mar 29 08:41:12 2020 +0000 Implement hardcoded WT stuff Includes the new weapon, enemy projectiles, and breakable objects. Patch from Nuke.YKT. I edited it some, mostly to add the proper "if (WORLDTOUR)" checks. From-SVN: r8788 commit acc5da06ca6c6c0c9ca17d429a8191db108aa75f Author: Evan Ramos Date: Sun Mar 29 08:41:07 2020 +0000 Fix negative viewtypes to match what World Tour expects From-SVN: r8787 commit 5914c0c0c152e4745c931152810f18c45e6778fd Author: Evan Ramos Date: Sun Mar 29 08:41:03 2020 +0000 Cleanup some Duke game logic, mostly to allow easier chaining to the default case From-SVN: r8786 commit 3ce0ea538110ab4786dd1ff4cc72b7f113a87c11 Author: Evan Ramos Date: Sun Mar 29 08:40:58 2020 +0000 Fix mistake in .rc From-SVN: r8785 commit e18a12dff3797284ccf46dd24ee96c3173dc1a6c Author: Richard Gobeille Date: Tue Mar 24 09:18:10 2020 +0000 Update TinySoundFont to 21c07c0bcd702e7adf3db349ac926914b98d17ce From-SVN: r8784 commit 1d264ceb2afd8f0b216e7a630deca35e539b63c2 Author: Richard Gobeille Date: Tue Mar 24 09:18:06 2020 +0000 Clean up audiolib format detection a little bit From-SVN: r8783 commit fe9aa790a7eb8460f0928dc040505e59a867f9d8 Author: Richard Gobeille Date: Tue Mar 24 09:18:01 2020 +0000 Misc audiolib cleanup changes This was split from another commit to make the other commit clearer. These changes don't really do much of anything. From-SVN: r8782 commit 62a2b8122fc7298f75862ace0ea6003e0870257b Author: NY00123 Date: Sat Mar 21 21:52:05 2020 +0000 SW: Revert the automapping changes from r5207. Using engine-side code brought back in r7873, this should restore the behaviors of DOS v1.2. From-SVN: r8781 commit 2e86aa28b6293e176378b8cb2ef3587135a92d62 Author: NY00123 Date: Sat Mar 21 21:52:02 2020 +0000 Add set of polymost2d to 0 which was missed in r8711 to resizeglcheck. Fixes tiled automap rendering in SW, without breaking the status bar as in the case of r8766. From-SVN: r8780 commit 50479d5868c5ecb6d9d9c8b01c37b780879f74ed Author: NY00123 Date: Sat Mar 21 21:51:59 2020 +0000 Revert the change of call to FAF_DrawRooms into a conditional one, as done in r8766, since this breaks status bar output in tiled overhead map with Polymost. Do add comment about this for now. From-SVN: r8779 commit cd9c69af082fc1af17d19eefb51f94cd83f5d638 Author: Richard Gobeille Date: Sat Mar 21 12:18:47 2020 +0000 Restore previously selected .sf2 filename when the file selector is canceled by pressing esc From-SVN: r8778 commit b10bbae7dd7818ec629162ec8b175bbdf5d1fbb5 Author: Richard Gobeille Date: Sat Mar 21 12:18:43 2020 +0000 Remove a bunch of dead code relating to reading and writing configuration data in eduke32.cfg for stuff we don't even support anymore, or that is saved in settings.cfg now instead From-SVN: r8777 commit 5e76eb3d7cfa040515dd7613c125c653ad325560 Author: Richard Gobeille Date: Sat Mar 21 12:18:37 2020 +0000 Move mouse x-scale and y-scale to the main mouse setup menu and get rid of Advanced Mouse This also normalizes the scale sliders to a displayed range of 0 - 1.0, and adds in_mousexscale and in_mouseyscale cvars to hold the values. From-SVN: r8776 commit ebab5abdf59dcc48e7e47e643dafb36a6f505066 Author: Richard Gobeille Date: Sat Mar 21 12:18:31 2020 +0000 Update TinySoundFont to 031e4fecc37f8dc59725127941ae3d1f64867ff0 From-SVN: r8775 commit 765a99e3406481589c2457a55d7b6ba92108f267 Author: Richard Gobeille Date: Sat Mar 21 12:18:28 2020 +0000 Rename SF2_Load() to SF2_LoadBank() and fix the newline at the end of the error message that occurs if passed a bad filename From-SVN: r8774 commit b80eec3b041fa486ee959af0a88996b55a230dc4 Author: Richard Gobeille Date: Sat Mar 21 12:18:24 2020 +0000 Remove the leading slash from the .sf2 bank filename if it's the only slash in the string From-SVN: r8773 commit df9a53bbfbfe91e489c3c137aff7bc15abc02eb2 Author: Richard Gobeille Date: Sat Mar 21 12:18:21 2020 +0000 Improve handling of menu options that may be hidden in-between visits to a menu From-SVN: r8772 commit accafe40d6a782a7073259b5b094fc1ba1bd663f Author: Richard Gobeille Date: Sat Mar 21 12:18:16 2020 +0000 Refresh ud.config.MusicDevice and the menu sound configuration display variables after applying new settings This helps keep the menu state synchronized with the actual sound system state in cases where the requested configuration was rejected for some reason (unsupported playback frequency, missing .sf2 file, etc). From-SVN: r8771 commit 266228b7d149e6295a8e801b9e6d70af5407ceca Author: Richard Gobeille Date: Thu Mar 19 05:29:12 2020 +0000 Update TinySoundFont to 91c24e1620a8f9c13be1aa21698757e5ad5a95a6 From-SVN: r8770 commit 0690e3cff6e542f41a861a55c7c3b10420f5313a Author: Richard Gobeille Date: Thu Mar 19 05:29:02 2020 +0000 Make TinySoundFont effect sample block size configurable via cvar From-SVN: r8769 commit f4fb9f5a4466b2c1e973628e09962ec5ab0fc734 Author: NY00123 Date: Wed Mar 18 19:49:24 2020 +0000 Expand Nuke.YKT's patch from SVN r7414 to cover all 32-bit platforms. Fixes non-deterministic white rectangles rendering bug in PCExhumed. From-SVN: r8768 commit 050ff7afbeb57f0c9c5525346585cc1454e7083e Author: NY00123 Date: Wed Mar 18 19:49:22 2020 +0000 Remove unused FAF_DebugView variable from sw/src/brooms.cpp. The corresponding variable in rooms.cpp is used if DEBUG is defined to nonzero. From-SVN: r8767 commit 10bc95e45fcb99f3d1c4fb7b6221b0fbc80d8e81 Author: NY00123 Date: Wed Mar 18 19:49:17 2020 +0000 sw/src/draw.cpp: Don't draw rooms if textured overhead map is drawn later. This also turns out to fix a Polymost-specific bug revealed in SVN r8711. Further remove a call to PicInView which does nothing. From-SVN: r8766 commit 70d9be620333ab992fa11cd64a293c77daa32583 Author: Richard Gobeille Date: Wed Mar 18 00:18:06 2020 +0000 Fix crash in menu file selector when no files OR directories are available to display From-SVN: r8765 commit 1af5df0bba16399e7a4fad3969e901ea35b58aee Author: Richard Gobeille Date: Tue Mar 17 23:33:20 2020 +0000 Fix FURY=1 build From-SVN: r8764 commit 86cde0ba7e55b621d9996cb85650ae3c529ac5b2 Author: Richard Gobeille Date: Tue Mar 17 07:28:35 2020 +0000 Fix stupid menu bug From-SVN: r8763 commit 4b6d38f30b5271dd0fd4cfb93109e0195dd24ca6 Author: Richard Gobeille Date: Tue Mar 17 03:19:46 2020 +0000 GCC 9.3.0 Windows build fix From-SVN: r8762 commit 0a1bad528a80495fb5cd4f74e2d523af3a416192 Author: Richard Gobeille Date: Tue Mar 17 03:19:42 2020 +0000 Fix GCC 9.3.0 signedness warning From-SVN: r8761 commit 228ddbece49a8e5e9874310eff27dd5715b02b1e Author: Richard Gobeille Date: Tue Mar 17 03:19:39 2020 +0000 Add file selector for choosing which .sf2 bank to use This also adds a menu option for OPL3 stereo mode. Windows MME output device selection is probably next (this can already be done through the console). From-SVN: r8760 commit 571cfc9f290d1969c3ea0d321ba17dfa4e3b51a9 Author: Richard Gobeille Date: Tue Mar 17 03:19:33 2020 +0000 Stylistic changes to driver_winmm This changes the code formatting and style of driver_winmm to better match our style guidelines. From-SVN: r8759 commit 9240c77b5505272f632bb20bd5690b67e1b7c11e Author: Richard Gobeille Date: Tue Mar 17 03:19:28 2020 +0000 Move a couple things around in the audiolib headers so we can access them from the game code From-SVN: r8758 commit 911159947cf17d3cfc8b1c901d693fb2e3406082 Author: Richard Gobeille Date: Tue Mar 17 03:19:24 2020 +0000 The most minor of audiolib cleanups From-SVN: r8757 commit 106d296bc91b5eb1c7d481f5e5c035f5f98ee836 Author: Richard Gobeille Date: Tue Mar 17 03:19:19 2020 +0000 Fix swinging doors not automatically closing anymore after rebounding if they hit a player or actor when trying to close From-SVN: r8756 commit 0d98a749b048a695ee5b7112c3fbecb1ba5307a5 Author: Richard Gobeille Date: Tue Mar 17 03:19:15 2020 +0000 More SF2 work Now automatically detects a .sf2 file placed in the game directory if the mus_sf2_bank cvar is unset. From-SVN: r8755 commit fc48caf4a441ac6cc6f08aa3e8d3f9de81d95e80 Author: Richard Gobeille Date: Tue Mar 17 03:19:10 2020 +0000 Clamp SF2 sustain and attenuation From-SVN: r8754 commit 992af4d4ff99465578053e00ac5a26f61158337d Author: Richard Gobeille Date: Tue Mar 17 03:19:06 2020 +0000 Remove deleted file from VS project, must have been missed when the file was actually deleted from the repo From-SVN: r8753 commit e7993ab7712233afeffbe4b37b27eec6124b229f Author: Richard Gobeille Date: Tue Mar 17 03:19:02 2020 +0000 sf2 synthesizer WIP Patch from Nuke.YKT. From-SVN: r8752 commit f885370ad58631e0889f7d08ea8706bf19cc902a Author: NY00123 Date: Fri Mar 13 15:28:56 2020 +0000 SW: Make quitting by closing the window, now done via CON_Quit, a bit more usable in multiplayer, hiding the engine's console. From-SVN: r8751 commit 81ee120cd54250543a622b3f64b3c92c79e1fe5d Author: NY00123 Date: Fri Mar 13 15:28:55 2020 +0000 SW: Modify MenuLevel and RunLevel by using CON_Quit, toggling MultiPlayQuitFlag on instead of QuitFlag in multiplayer games if a player tries to close the window. Further update MNU_QuitCustom to use CON_Quit. - In RunLevel, this fixes quit of game for all players. - In MenuLevel, this leads to transmit of PACKET_TYPE_MENU_LEVEL_QUIT. However, the work isn't complete, since the game isn't shut down on the peers' sides, leading to possibly undesired side-effects. Currently known issue: - If the master closes the window, the scores won't be shown for the master. Reason is that waitforeverybody will terminate the app. From-SVN: r8750 commit 90b0ae6d0946f2242affd32b2df11710b93aba1d Author: NY00123 Date: Fri Mar 13 15:28:53 2020 +0000 sw/src/game.cpp:StatScreen crash bug fix: For a given player p, use p->TeamColor instead of User[p->PlayerSprite]->spal, since it's possible the player left before the map was loaded. From-SVN: r8749 commit f2a28c9cae11259254cd1bd43dacde61ae369788 Author: NY00123 Date: Fri Mar 13 15:28:51 2020 +0000 SW: Add a few calls to handleevents around key press loops. Also check quitevent in the game, and further call getpackets within StatScreen. From-SVN: r8748 commit 6c97deffdb6adeb7a6e821ca18ac6f9fba574859 Author: NY00123 Date: Fri Mar 13 15:28:50 2020 +0000 SW: Make sure StatScreen is called around the same time for all players after level change. This is done by adding calls to getpackets within the BonusScreen and StatScreen while loops. It is related to a change from the DOS versions of 1997. Basically, dosendpackets immediately sends all packets via the commit driver under DOS, while in the mmulti port in use here, sending might be postponed. This was leading to a problem with the game entering waitforeverybody before showing the stats. In particular, it initially attempted to send a PACKET_TYPE_PLAYER_READY message, which could get postponed in the manner described above. In case it received PACKET_TYPE_PLAYER_READY messages from all other peers before the time arrived for sending pending packets, though, waitforeverybody would return, eventually leading to a call to StatScreen/BonusScreen, without sending the pending message until the user in question continued. Other peers would have to wait for the given player to confirm level change before they could see their own stat screens. From-SVN: r8747 commit 56eea83a96b25cbd16f75c191fa4ad5a8119d761 Author: NY00123 Date: Fri Mar 13 15:28:48 2020 +0000 sw/src/game.cpp:NewLevel: Wait for all peers when master player quits. From-SVN: r8746 commit 2d8e1f4e701b11f9bd657ae161ee01bc8d76e0d0 Author: NY00123 Date: Fri Mar 13 15:28:47 2020 +0000 sw/src/network.cpp:MyCommPlayerQuit: When master player decides to quit, make sure all players quit the game. Don't internally change the list of players, just prepare to quit. From-SVN: r8745 commit e4b7a1c17ae86ffdb185f6b579a2991888e8b9db Author: NY00123 Date: Fri Mar 13 15:28:46 2020 +0000 sw/src/game.cpp:getinput: Make sure slave actually quits the game From-SVN: r8744 commit e761f658ebfd93c28445c417af5e945dbd54d371 Author: NY00123 Date: Fri Mar 13 15:28:43 2020 +0000 SW: Fix a bug in getpackets, making SW's Master-Slave code usable, including 3+ players sessions. From-SVN: r8743 commit a6ce9831489321708be88c8bdfcc27c89ba8316d Author: Evan Ramos Date: Fri Mar 13 05:55:56 2020 +0000 Engine compatibility update: ksqrt From-SVN: r8742 commit 0f41864c2d171ad68e1ad4878d460ed296ad7950 Author: Evan Ramos Date: Fri Mar 13 05:55:53 2020 +0000 Add userdata field to DemandFeed Backported from Rednukem. From-SVN: r8741 commit caa7a4f3467b528c1d9fff12c02ef67de18c2bdb Author: Evan Ramos Date: Fri Mar 13 05:55:49 2020 +0000 Fix OOB in polymost_spriteIsModelOrVoxel From-SVN: r8740 commit 5568bb4072081a31476c40315fc2412f44ecf939 Author: Evan Ramos Date: Fri Mar 13 05:55:45 2020 +0000 Revert r8712 From-SVN: r8739 commit d39fb9907503cf92c4d0f0ed2b4e66724cfba07d Author: Richard Gobeille Date: Thu Mar 12 01:19:49 2020 +0000 I forgot this bunch of SDL2 headers like an idiot From-SVN: r8738 commit d2a530cd9fa625d13d9d09b312970fa541df439e Author: Richard Gobeille Date: Thu Mar 12 01:11:12 2020 +0000 Fix IF crouch jumping and unintentional automatic crouching under sprites From-SVN: r8737 commit 4ed2824a6c3a63b1af086422439811962a6f5b89 Author: Richard Gobeille Date: Thu Mar 12 01:11:08 2020 +0000 ifndef EDUKE32_STANDALONE a couple more hard-coded Duke3D sound IDs that were missed previously From-SVN: r8736 commit 0972991f8612ec95b810d1449149c6722749b8a6 Author: Richard Gobeille Date: Thu Mar 12 01:09:48 2020 +0000 Reduce width of a couple fields in memberlabel_t From-SVN: r8735 commit a9a3fdcd1e8f942bc6ba94a4dba2826f452a3085 Author: Richard Gobeille Date: Thu Mar 12 01:09:43 2020 +0000 Make gamestructures a proper object From-SVN: r8734 commit 65b71e58ae6b71999c258149d4539ab29fd1d9b3 Author: Richard Gobeille Date: Thu Mar 12 01:09:35 2020 +0000 Use better variable names in my shitty windowsSetupTimer() function This also fixes a bug where timeEndPeriod() could be called with the new time period value instead of the old one when setting the period after a period had already been set. From-SVN: r8733 commit 308ebdd7a0f59e57eb0422d324ab4f8499853530 Author: Richard Gobeille Date: Thu Mar 12 01:05:44 2020 +0000 Speed up startup times on Windows for projects with a lot of sound definitions From-SVN: r8732 commit 70a46636c00af7a348469debe4510b5c0d1da920 Author: Richard Gobeille Date: Thu Mar 12 01:05:40 2020 +0000 Eliminate unnecessary goto From-SVN: r8731 commit 8f02b2cae0d2a7fc97101788c17f1e1f08ae3a7e Author: Richard Gobeille Date: Thu Mar 12 01:05:37 2020 +0000 Fix return type of A_CheckHitSprite() Since the returned value is a distance, it should be int32_t. From-SVN: r8730 commit ff95c714a2478f839ec85b35046ffbc00e8ddd9e Author: Richard Gobeille Date: Thu Mar 12 01:05:32 2020 +0000 Enable debugging symbols in MSVC release builds for profiling From-SVN: r8729 commit 490b8883226f464705b6bc56897fd7b6b47a06b8 Author: Richard Gobeille Date: Thu Mar 12 01:05:27 2020 +0000 Derp From-SVN: r8728 commit 5968ca3e78b42dca4e95909da2fcf245ab1b9de9 Author: Richard Gobeille Date: Thu Mar 12 00:58:45 2020 +0000 Patch from Nuke.YKT to fix a y-flipped voxel rendering issue in Polymost From-SVN: r8727 commit beae83d0890941f3e4cc70aeb2c0e1bbe71a5707 Author: Richard Gobeille Date: Thu Mar 12 00:58:41 2020 +0000 Patch from Nuke.YKT to fix a couple of NAM/WW2GI issues From-SVN: r8726 commit f771458f445a6095bd3f53207384dd625ebcbea5 Author: Richard Gobeille Date: Thu Mar 12 00:58:37 2020 +0000 Patch from Nuke.YKT to improve OPL3 emulator volume control From-SVN: r8725 commit 5793cd04cd5b2cf561e1d95a356d547c4435b6ce Author: Richard Gobeille Date: Thu Mar 12 00:58:32 2020 +0000 Patch from Striker to improve sprite interpolation From-SVN: r8724 commit 668a29af1869d977b5775aae0e93d5cdbdac13fc Author: Richard Gobeille Date: Thu Mar 12 00:58:28 2020 +0000 Make SE_13_EXPLOSIVE call A_GetZLimits() for all statnum 0-2 sprites in sector when triggering This fixes the fire sprites inside exploding walls not waking up after the wall explodes. From-SVN: r8723 commit ed5d226501061d946af54dfb78a88168a85d281a Author: Richard Gobeille Date: Thu Mar 12 00:58:23 2020 +0000 Experimental swinging door changes This makes swinging doors reverse direction instead of stopping in place and later resuming when obstructed. From-SVN: r8722 commit 4c4fdd1f4ab9381b60db06f37ec270850599e1ae Author: Richard Gobeille Date: Thu Mar 12 00:58:18 2020 +0000 Fix a bug with swinging doors This fixes a bug with swinging doors where multiple swinging doors linked together could become out of sync with each other if you block one door from moving and activate the second door again while the first is still blocked. From-SVN: r8721 commit 3bb6759f2609508f96c58bfb5242135c2d392245 Author: Richard Gobeille Date: Thu Mar 12 00:58:15 2020 +0000 Fix off-by-one error in various CON text truncation warnings From-SVN: r8720 commit 3c0373f261c75c888e4c2b35c89114c285c778a7 Author: Richard Gobeille Date: Thu Mar 12 00:58:10 2020 +0000 Add missing diagnostic information for getactor/setactor Internally, there are several different permutations of the opcodes that implement CON_GETACTOR and CON_SETACTOR. This maps the internal opcodes back to the external keywords that generated them and makes sure they all have the script line number attached to them for use in diagnostic warning and error messages. From-SVN: r8719 commit 520640a89e8dccb4f168b18de20606fa47d7693b Author: Richard Gobeille Date: Thu Mar 12 00:58:07 2020 +0000 Fix tripbomb laser From-SVN: r8718 commit 7799d0597e36b1d447e476cb05a7777cbbfbd141 Author: Richard Gobeille Date: Thu Mar 12 00:58:03 2020 +0000 Experimental feature to switch the Windows power plan to "high performance" while the game is running, and switch back upon exit During testing, CPU frequency scaling reducing the clock speed to sub-1GHz speeds was found to be a cause of frame time inconsistencies/stuttering. This attempts to work around that. This is disabled by default but can be enabled with win_performancemode 1. From-SVN: r8717 commit 6552db74ec798caa7c82b81a8273c9436cf05e71 Author: Richard Gobeille Date: Thu Mar 12 00:57:58 2020 +0000 Move FPS limiter to engine and rework functionality (again) From-SVN: r8716 commit 144ac63c83b7cbb8f4b53466697d9f8210ece741 Author: Richard Gobeille Date: Thu Mar 12 00:57:52 2020 +0000 Replace MERGE_NODES macro with vsmerge() function From-SVN: r8715 commit 683b24b049b61befc75820dd3e6a52cbee64e5ed Author: Richard Gobeille Date: Thu Mar 12 00:57:48 2020 +0000 Replace DRAWPOLY_MATH_BULLSHIT macro with lambda expression From-SVN: r8714 commit 86b81c811efb3bba9bdd54d98a3562a10ec54bb1 Author: Richard Gobeille Date: Thu Mar 12 00:57:44 2020 +0000 useShaderProgram() -> polymost_useShaderProgram() From-SVN: r8713 commit 3c09f5b4e0c386df5cf818091d89cc829d983518 Author: Richard Gobeille Date: Thu Mar 12 00:57:39 2020 +0000 Skip glActiveTexture() and glUseProgram() when possible From-SVN: r8712 commit bf5d3d42c9badf73009857a5cf7ff229f40cf949 Author: Richard Gobeille Date: Thu Mar 12 00:57:35 2020 +0000 Get rid of Polymost projection matrix caching From-SVN: r8711 commit a8370f3e081c119b8ba76aeb5465ca8db60a6ebc Author: Richard Gobeille Date: Thu Mar 12 00:57:30 2020 +0000 Clean up OpenGL extension detection a little bit This moves the extension detection into baselayer.cpp and unifies the implementation used by sdlayer.cpp and winlayer.cpp. From-SVN: r8710 commit 2895d05b1552f839529dede7ef0ba7ff8cab0774 Author: Richard Gobeille Date: Thu Mar 12 00:57:25 2020 +0000 Merge fix16.cpp and fix16_str.cpp From-SVN: r8709 commit 463d5ea4812550908bac371b1467b17820e6834e Author: Richard Gobeille Date: Thu Mar 12 00:57:20 2020 +0000 Tweaks to engine compatibility stuff From-SVN: r8708 commit 538b16579df3728766b765d53d642cbd269922e0 Author: Richard Gobeille Date: Thu Mar 12 00:57:14 2020 +0000 Boost SDL thread priority From-SVN: r8707 commit 69eb23e3b6ca1f9a47d57947fd6a78c93287d163 Author: Richard Gobeille Date: Thu Mar 12 00:57:03 2020 +0000 SDL 2.0.12 From-SVN: r8706 commit e241c9e26e094bc90a8f9c96ce264b6f3cb12888 Author: Richard Gobeille Date: Thu Mar 12 00:56:35 2020 +0000 Fix VS project From-SVN: r8705 commit c4be04631728b6a015f473b94cec5a42487ec80a Author: NY00123 Date: Tue Mar 10 00:00:05 2020 +0000 sw/src/game.cpp: Fix crash following an abort of InitGame while processing multiplayer params or waiting for players. It's been decided that Control won't call TerminateGame in this case, one implication being that voidsw.cfg is not updated. From-SVN: r8704 commit fd7330b6efeea0dcf7514aa670cc04a33f325b7e Author: NY00123 Date: Tue Mar 10 00:00:04 2020 +0000 SW: Do limit Master/Slave support to 2-players sessions. Thanks to LittleTijn for testing and inspecting. From-SVN: r8703 commit 7a2aa2051be1d0dcc0ce07d3e38424cab124a25a Author: NY00123 Date: Tue Mar 10 00:00:02 2020 +0000 mmulti.cpp: Resurrect P2P multiplayer with 3+ players from SVN r129 From-SVN: r8702 commit ee0d8602cee72c1f143caf1e65eee637eb86fe15 Author: NY00123 Date: Tue Mar 10 00:00:01 2020 +0000 sw/src/game.cpp: Update processing of multiplayer-related arguments, mostly from JFSW commits 7a95dee807c735de6588372e268af7a5c7cdc533 and 6137b48d6d432c34d94d08fea527b89539cc3adb. In particular, this makes Master/Slave usable for 2-player sessions, with SW's networking code behaving as if these were actually Peer-2-Peer sessions. Thanks to JonoF for his work on the support. From-SVN: r8701 commit 675ee5529050001ca51075cd7497442cb0dfee30 Author: NY00123 Date: Sat Mar 7 23:11:31 2020 +0000 sw/src/draw.cpp:ResizeView: Make map zooming less dependent on the frame rate From-SVN: r8700 commit f6074a3c95e506c4822cd79f78cc87544a67e584 Author: NY00123 Date: Sat Mar 7 13:51:57 2020 +0000 sw/src/menus.cpp: Remove nonexisting MNU_ClearDialog function prototype From-SVN: r8699 commit cf79030b6b61a8fcac49838f8eeff8011a1788ec Author: NY00123 Date: Sat Mar 7 13:51:56 2020 +0000 sw/src/weapon.cpp: Comment out unused MissileSeek and ComboMissileSeek params, but leave them for documentation. Note that currently, the only use of ComboMissileSeek is in the saveable_weapon_code array. From-SVN: r8698 commit 21c3f162e30ceabc96797996b3646ad98fc5b09f Author: NY00123 Date: Sat Mar 7 13:51:54 2020 +0000 SW: Comment out function parameters accessed only in commented out code From-SVN: r8697 commit 02ef5b6084216e6c77f4ba97828ad3b05e764f9b Author: NY00123 Date: Sat Mar 7 13:51:53 2020 +0000 SW: Mark function parameters as unused in cases we can't easily change the functions' signatures (often due to being used as callbacks/hooks) From-SVN: r8696 commit 15bb579add94de6b8c6e4f3283182a4667671b25 Author: NY00123 Date: Sat Mar 7 13:51:51 2020 +0000 Take care of unused parameters in sw/src/menus.cpp:MNU_DoMenu. Note that the passed type is always ct_mainmenu. From-SVN: r8695 commit 484b5715a3f43f4be97b0b4c1328d442ed44130c Author: NY00123 Date: Sat Mar 7 13:51:49 2020 +0000 SW: Remove a bunch of unused function parameters From-SVN: r8694 commit faf051ef802f12c8be4b1ba712b2659e15c6d861 Author: NY00123 Date: Sat Mar 7 13:51:46 2020 +0000 sw/src/weapon.cpp: Remove conditional set of unused variable hsp in InitMineShrap, as well as unused variable sp in TestDontStick From-SVN: r8693 commit 27773eca35ab9a8c11cb0c650623e5574c589e10 Author: NY00123 Date: Sat Mar 7 13:51:43 2020 +0000 sw/src/weapon.cpp: Insert unused SHRAP structs into #if 0 blocks From-SVN: r8692 commit 147bb19ef534cf1445032d910bbb400ded46952b Author: NY00123 Date: Sat Mar 7 13:51:41 2020 +0000 startgtk (Duke3D, SW, Build Editor): Use nullptr instead of NULL for ending arguments list in gtk function calls. Fixes "missing sentinel in function call" warning with a specific GCC version. From-SVN: r8691 commit 9f9e57f00a587af5781c4d66590a2808ce2058ef Author: NY00123 Date: Fri Mar 6 15:50:01 2020 +0000 sw/src/player.cpp: Remove unused globals related to mouse status From-SVN: r8690 commit d4e4754e82fadd0aed857b52535a7ae0d5ea8467 Author: NY00123 Date: Fri Mar 6 15:50:00 2020 +0000 sw/src/player.cpp: A bit more complicated cases of unused vars From-SVN: r8689 commit 88235e0b591172f464c3098ef95a8cccc19b96e3 Author: NY00123 Date: Fri Mar 6 15:49:58 2020 +0000 SW: Handle cases in which the result of an expression with (possible) side-effects is written to an unused var. From-SVN: r8688 commit ad98879b3d288616d73f053be920d923370ecd9b Author: NY00123 Date: Fri Mar 6 15:49:56 2020 +0000 sw/src/inv.cpp: Move unused global pal arrays to #if 0 block From-SVN: r8687 commit 621b48005c26e8b9a4df2efd322f18f07a59fbc3 Author: NY00123 Date: Fri Mar 6 15:49:55 2020 +0000 SW: Comment out unused vars, which would become used if previously commented out code was uncommented (including a few instances of uninitialized var reads). From-SVN: r8686 commit a128c489a56cbf99976a1fbdd816d20b182ad28e Author: NY00123 Date: Fri Mar 6 15:49:49 2020 +0000 SW: Remove a ton of unused vars From-SVN: r8685 commit 56fea38d22c806b6b2edb27cd267146209469152 Author: NY00123 Date: Fri Mar 6 15:49:41 2020 +0000 Let's force _WIN32_WINNT to 0x0600 in mmulti.cpp for now, even if already defined earlier. Don't redefine WIN32_LEAN_AND_MEAN, though. From-SVN: r8684 commit 2ed3798668c3eb2870ed5330ea9da6611ac35b9e Author: NY00123 Date: Fri Mar 6 15:49:40 2020 +0000 mmulti.cpp: Fix __USE_GNU redefinition warning From-SVN: r8683 commit f9e12d040bbbde1da55a96156fbcf06883e68b26 Author: NY00123 Date: Fri Mar 6 15:49:37 2020 +0000 mmulti.cpp: Remove unused variables. Additionally, define simlagcnt and simlagfif only if SIMLAG > 1. From-SVN: r8682 commit 081cea5a216df347c74955b128e0db2f5f7f246e Author: Evan Ramos Date: Thu Mar 5 07:44:23 2020 +0000 Add O_BINARY to buildvfs_open_read From-SVN: r8681 commit e7549a6f738ca3e8367c4105f72f523ea832fd77 Author: Evan Ramos Date: Thu Mar 5 07:44:20 2020 +0000 Menus: Fix two sources of null text drawing From-SVN: r8680 commit 5e4785b44d48c66a868eca004484952d9e8df2d3 Author: Evan Ramos Date: Thu Mar 5 07:44:16 2020 +0000 Add null pointer checks to G_ScreenText* From-SVN: r8679 commit 91edca8093939332e16a3430d39967fe0eeedf34 Author: NY00123 Date: Wed Mar 4 23:31:35 2020 +0000 sw/src/network.cpp:getpackets: Fix trimming of message in packet of type PACKET_TYPE_MESSAGE. This reverts a tiny portion of JFShadowWarrior commit 6b01a4703d55ae3e131d8c11903ff2dcd78c15d8. From-SVN: r8678 commit bb8a98b5315334c4a936877f867cd8ed9f5343b2 Author: NY00123 Date: Wed Mar 4 23:31:34 2020 +0000 sw/src/network.*: Sync the player's MouseAimingOn field. This is required for the slope tilting check in player.cpp:PlayerAutoLook, introduced in JFBuild commit 1915f408962b4d9c814f64affda634d28582e25e and updated in commit ef9aea53aced8fd90c701d0c8a9a927a23dd0a40. From-SVN: r8677 commit f617cf6726b0aa4b5108035c6334c965e1b73bad Author: NY00123 Date: Wed Mar 4 23:31:32 2020 +0000 Make the gtkbuild_msgbox/gtkbuild_ynbox dialog disappear after response From-SVN: r8676 commit 3fa02bdb5db65c2b5474a4133529f1442b200bd2 Author: NY00123 Date: Tue Mar 3 22:55:19 2020 +0000 build/src/sdlayer.cpp: Fix crash following video mode change in USE_OPENGL=0 build. From-SVN: r8675 commit c1b885345f962152c55813d2e83556ea3b295079 Author: NY00123 Date: Tue Mar 3 22:55:18 2020 +0000 kenbuild/src/game.cpp: Expose restartvid, vidmode and map OSD commands in USE_OPENGL=0 builds, and further make setrendermode usable. From-SVN: r8674 commit 81596e18832f313324c25138985e05cdfcf3dbf8 Author: NY00123 Date: Tue Mar 3 22:55:16 2020 +0000 KenBuild: Fix USE_OPENGL=0 build From-SVN: r8673 commit d6ab0d0c2cee4929e9b4cb259f0a3570b3d0b058 Author: NY00123 Date: Tue Mar 3 22:55:15 2020 +0000 kenbuild/src/game.cpp: Set console key default to ` From-SVN: r8672 commit d7c6da09d319a807e15def24a30e509e5ac1ba89 Author: NY00123 Date: Tue Mar 3 22:55:13 2020 +0000 kenbuild/src/game.cpp: Import mirror fix for SW from SVN r8588. From-SVN: r8671 commit 9d842a6fe487268e235a6598c734b8a5d42cadca Author: NY00123 Date: Tue Mar 3 22:55:12 2020 +0000 Limit build/src/mmulti.cpp to what's required for EDUKE32_STANDALONE builds of EDuke32 From-SVN: r8670 commit 0a022834015ff4489c9a0ab20921f5bd5c3e3a6d Author: NY00123 Date: Tue Mar 3 22:55:11 2020 +0000 build/include/mmulti.h: Replace MAXMULTIPLAYERS with MAXPLAYERS from build.h From-SVN: r8669 commit 922a41277efba99d5b33882b06da08c20038d406 Author: NY00123 Date: Tue Mar 3 22:55:09 2020 +0000 Remove mmulti_null.cpp From-SVN: r8668 commit 4274a6160ce2f64676b79364cf83f185814811f6 Author: NY00123 Date: Tue Mar 3 22:55:08 2020 +0000 sw/src/game.cpp: Use initsingleplayers instead of initmultiplayers From-SVN: r8667 commit 1f9d688c9bcf208d29206062524738accdd1ff4f Author: NY00123 Date: Tue Mar 3 22:55:07 2020 +0000 build/src/mmulti.cpp: Add the option -forceipv4 From-SVN: r8666 commit 7619602970ff4f33de939b4c52ea47bef42d0b96 Author: NY00123 Date: Tue Mar 3 22:55:05 2020 +0000 build/src/mmulti.cpp: Fix Windows build From-SVN: r8665 commit fe81e9097160a546f9a5b7fa884a8a92ffd4722b Author: NY00123 Date: Tue Mar 3 22:55:04 2020 +0000 Make kenbuild/src/game.cpp compatible and functional with mmulti.cpp; Partially covering changes to command line arguments processing in game.cpp from JFBuild commit 9f01a3095e038018e19e05daf68746bd0ebf087a. From-SVN: r8664 commit 274deb76c6f02bb0b4ac17628463207d366a4759 Author: NY00123 Date: Tue Mar 3 22:55:02 2020 +0000 Use mmulti.cpp instead of mmulti_null.cpp. From-SVN: r8663 commit f17e6acb88fff17949d16cec9dd68eeafff1c6a9 Author: NY00123 Date: Tue Mar 3 22:55:00 2020 +0000 Import mmulti.c from JFBuild commit 6308de2d1664fbd4e81c7e3f9c1a436db1e2a686 with minor changes From-SVN: r8662 commit 58d3e4ef2643a8877dade7db8fe5f00546ef5639 Author: NY00123 Date: Tue Mar 3 22:54:59 2020 +0000 Import mmulti.h from JFBuild commit c651d35c56eae07488a9cef421fbe33ae9dc9f9a, with minor changes. From-SVN: r8661 commit a784249d7026d1a6f60247d26d2432c4391278bb Author: NY00123 Date: Tue Mar 3 22:54:57 2020 +0000 KenBuild: Refresh status bar after showing tiled overhead map in GL mode From-SVN: r8660 commit 512df35a73d2032bb0b43cde7097fbe52aa25cd2 Author: Evan Ramos Date: Sat Feb 29 07:36:54 2020 +0000 Move minitext_lowercase calculation to a new G_InitText() in text.cpp From-SVN: r8659 commit 28bf1fe8f7305e1e2d2bde1ede69483f1dcb010e Author: Evan Ramos Date: Sat Feb 29 07:36:50 2020 +0000 screentext: Big refactor to take an array of tilenums (or control codes) instead of a C string From-SVN: r8658 commit 50d5868e605b5e41e41c917839dc01b416c75a54 Author: Evan Ramos Date: Sat Feb 29 07:36:45 2020 +0000 screentext: Remove TEXT_LINEWRAP From-SVN: r8657 commit b92a78bfc2c1dc11d5504c234216a3399352f87a Author: Evan Ramos Date: Sat Feb 29 07:36:41 2020 +0000 screentext: Move TEXT_{INTERNAL,TILE}{SPACE,LINE} handling off the critical path From-SVN: r8656 commit e50b245b3123209e7ae96783fcc7d1bea76e0289 Author: Evan Ramos Date: Sat Feb 29 07:36:36 2020 +0000 screentext: Eliminate GetSubString, including its heap allocation From-SVN: r8655 commit 25f3dc6c2b17594beb1498f3c29e9ecadfac2585 Author: Evan Ramos Date: Sat Feb 29 07:36:33 2020 +0000 screentext: Structify From-SVN: r8654 commit 805c320b9b690668e1f386144fa87f117b3df479 Author: Evan Ramos Date: Sat Feb 29 07:36:28 2020 +0000 screentext: Move ROTATESPRITE_FULL16 handling out of critical path From-SVN: r8653 commit 0344651ab0164b1a4591f8bbc8873256d82e9f6f Author: Evan Ramos Date: Sat Feb 29 07:36:24 2020 +0000 screentext: Remove TEXT_BACKWARDS From-SVN: r8652 commit de9122616d80aaf4af53b3dd317a1b7970377672 Author: Evan Ramos Date: Sat Feb 29 07:36:19 2020 +0000 screentext: Some cleanup From-SVN: r8651 commit 9f30ad1fc4c4359a1c2d755e4ad710d1980d69a1 Author: Evan Ramos Date: Sat Feb 29 07:36:15 2020 +0000 Move screentext to engine From-SVN: r8650 commit f18016573ff98fc7c80090a6410728348cdd2f57 Author: Evan Ramos Date: Sat Feb 29 07:36:09 2020 +0000 Rename screentext.cpp to text.cpp From-SVN: r8649 commit 50b4da104fa3141cd2c65275e9e9bfab7cadb062 Author: Evan Ramos Date: Sat Feb 29 07:36:04 2020 +0000 Add alloca definitions to compat.h From-SVN: r8648 commit b9f46c88a5aa5281cdf81517da04fadc20f91bea Author: Evan Ramos Date: Sat Feb 29 07:36:00 2020 +0000 Update credits From-SVN: r8647 commit 93ddd41017aa090139dcde9fd7c6679dd704a854 Author: Evan Ramos Date: Sat Feb 29 07:35:56 2020 +0000 GL: Fix VBO setup when loading voxels Fixes black screen at launch on macOS. Thanks to Alexey Lysiuk. From-SVN: r8646 commit b8cdcd08f47c6fbcc57294289db315d2308a2595 Author: Evan Ramos Date: Sat Feb 29 07:35:53 2020 +0000 Polymost: Fix flipped HUD model rendering Patch from Nuke.YKT. From-SVN: r8645 commit cf5bcb745440c44294f677b0cbcc219a0751efe2 Author: Evan Ramos Date: Sat Feb 29 07:35:50 2020 +0000 Add mhkreset maphack command Thanks to LeoD. From-SVN: r8644 commit ad099455c88a554b68c93743c5c96c28d46ed638 Author: Evan Ramos Date: Sat Feb 29 07:35:46 2020 +0000 Fix mdpivxoff and mdpivyoff commands Thanks to LeoD. From-SVN: r8643 commit eda2264ba959e53a112a4bb6063501086c6230a2 Author: Alex Dawson Date: Wed Feb 12 09:03:41 2020 +0000 polymost.cpp: In gloadtile_art_indexed(), reallocate a texture when the tile changes dimensions even if it is shrinking From-SVN: r8642 commit 68bf95bb322edbda0be1b99b05f6cef6dba70c88 Author: Richard Gobeille Date: Tue Feb 11 09:22:00 2020 +0000 Macros for a couple hardcoded values From-SVN: r8641 commit 744a46f1d668ddf1b0ade06cf1b58a817fbc4848 Author: Richard Gobeille Date: Tue Feb 11 09:21:56 2020 +0000 This lets the player jump into the vents in DUKEDC3.MAP Since this is Duke3D, I'm sure this change breaks something else. From-SVN: r8640 commit 7a72b15b474cef0282a4fd911f7c4def4c007732 Author: Richard Gobeille Date: Tue Feb 11 09:21:52 2020 +0000 Re-enable ignoring 256 units of curb when clipping against ceilings This fixes getting stuck on tiny lips created by sloppy slopes in the undersized vents in DUKEDC3.MAP. From-SVN: r8639 commit 81d3a6356861fe3d9bff90df714b0a2809efed4d Author: Richard Gobeille Date: Tue Feb 11 09:21:48 2020 +0000 Bump clang-format ColumnLimit to 165 From-SVN: r8638 commit d5b6a5e0ddfbdcca1057463d44a93699cff57ba7 Author: Richard Gobeille Date: Tue Feb 11 09:21:44 2020 +0000 Rename ZOFFSET1 to ACTOR_FLOOR_OFFSET and use ACTOR_MAXFALLINGZVEL in several places where it should have been used From-SVN: r8637 commit 8caac903fe3c30623bd80510465d888e669d457e Author: Richard Gobeille Date: Tue Feb 11 09:21:40 2020 +0000 Fix for E1L1 dumpster fire issue From-SVN: r8636 commit c2021f28cb532665795db7c8d0f8808b6f2f0aa4 Author: Richard Gobeille Date: Tue Feb 11 09:21:36 2020 +0000 Fix a couple of forward declarations From-SVN: r8635 commit cf1b785d9f70f14dfa140ac4d9a1e966f741166c Author: Richard Gobeille Date: Tue Feb 11 09:21:32 2020 +0000 This isn't really necessary From-SVN: r8634 commit 1e413c2bbf8a77c1bd8fb22b945d0847ba21700f Author: Richard Gobeille Date: Tue Feb 11 09:21:28 2020 +0000 Avoid overflow in clipmove() From-SVN: r8633 commit 7757602588196b8c1836422bffc5c038f0a32386 Author: Richard Gobeille Date: Tue Feb 11 09:21:24 2020 +0000 Steamworks fix From-SVN: r8632 commit cf1a35eeb1e8122c420cdba890b12b605b770a07 Author: Richard Gobeille Date: Tue Feb 11 09:21:20 2020 +0000 Functionally useless commit that only renames function pointers in winbits.cpp From-SVN: r8631 commit fa5425736d20c5a77e63c04b4a8320b102287dd7 Author: Richard Gobeille Date: Tue Feb 11 09:21:15 2020 +0000 Print HRESULT value directly when DwmGetCompositionTimingInfo() fails, because "Unknown error" turned out to be a pretty useless error string. From-SVN: r8630 commit c8fef835ef433c086a0e2ff1616d25434ffd1fd7 Author: Evan Ramos Date: Tue Feb 11 06:35:36 2020 +0000 SW: Activate engine compatibility From-SVN: r8629 commit 9cdeade1fac4338a1d54dbc33688b770de89e128 Author: Evan Ramos Date: Tue Feb 11 06:35:32 2020 +0000 Backport engine compatibility variable from NBlood/Rednukem/PCExhumed From-SVN: r8628 commit dde9c9b2b3e2f2148cfcd64e1990ebc3b09bfbc4 Author: Evan Ramos Date: Tue Feb 11 06:35:28 2020 +0000 SW: Don't restart the music when loading a save playing the same track From-SVN: r8627 commit f8c06c0a94743294b08873fca9b1e0d019926a64 Author: Evan Ramos Date: Tue Feb 11 06:35:24 2020 +0000 SW: Add handleevents to end credits From JFSW commit 0c651743f8371fade0231e9c3206ca25e6ae5269 From-SVN: r8626 commit f64457810c52d05fd78a1af1800034130e894255 Author: Evan Ramos Date: Tue Feb 11 06:35:21 2020 +0000 SW: Fix potential blank 3DR logo From JFSW commit 18d1c68893693e68d0ce7d41bd1eacbec5655d4f From-SVN: r8625 commit a752c1db07d72f07f85a01d0b9373a96624179f2 Author: Evan Ramos Date: Tue Feb 11 06:35:17 2020 +0000 SW: Fix potential buffer overrun in colormap From JFSW commit 18d1c68893693e68d0ce7d41bd1eacbec5655d4f From-SVN: r8624 commit 72bc466f3046e34c51591c566395aad06a13ad6b Author: Evan Ramos Date: Tue Feb 11 06:35:14 2020 +0000 CON: Add getarraysequence and setarraysequence Patch from Fox. From-SVN: r8623 commit 4d07f31e11c91347fdb72247cdf9719cafab8b46 Author: Evan Ramos Date: Tue Feb 11 06:35:10 2020 +0000 CON: Factor out implementations of setarray and resizearray commands Patch from Fox. From-SVN: r8622 commit 7305a299a0249c6e1fada143c0d69b01bdec75ef Author: Evan Ramos Date: Tue Feb 11 06:35:06 2020 +0000 polymost_spriteIsModelOrVoxel: Apply tweak respecting maphacks Backported from NBlood. From-SVN: r8621 commit cf440f4384c9ae3d8757235c98ea789fca2ea562 Author: Richard Gobeille Date: Sat Feb 8 05:09:15 2020 +0000 Fix stupid typo that broke conveyor belts From-SVN: r8620 commit 724b1314d5a98feb6b42c5cefdf9a92aee5a2dce Author: Richard Gobeille Date: Sat Feb 8 05:09:11 2020 +0000 Improve player input locking logic This fixes the issue with mouse input and viewscreens. From-SVN: r8619 commit 89a848b9573197863a64aa25a96fa898131f93ef Author: Richard Gobeille Date: Sat Feb 8 05:09:08 2020 +0000 Print HRESULT error message when DwmGetCompositionTimingInfo() fails (wtf?) From-SVN: r8618 commit 5cb9758d0a4d9b61aa9551bc44641fd8baf5fd86 Author: Richard Gobeille Date: Sat Feb 8 05:09:03 2020 +0000 Fix hilarious bug where holding the strafe modifier and pressing turn left/right moved the player in the wrong direction From-SVN: r8617 commit d71c066e0632cd4f00ae412ad06e31abb6a30e6d Author: Richard Gobeille Date: Thu Feb 6 22:01:34 2020 +0000 Revert "Hackish fix for spline interpolation crash in libxmp-lite" From-SVN: r8616 commit bccfa18b93485d411459373fa1eaf41b5d7758a9 Author: Richard Gobeille Date: Thu Feb 6 22:01:29 2020 +0000 Add -nosteam command line parameter From-SVN: r8615 commit a3c33202282173befb41079d54be9d9ad6c3c2a5 Author: Richard Gobeille Date: Thu Feb 6 22:01:25 2020 +0000 Call communityapiInit() from the game's app_main() instead of baselayer_init() From-SVN: r8614 commit 1838ce4edd4cec2b32c0ed500068f7807828b299 Author: Richard Gobeille Date: Thu Feb 6 22:01:21 2020 +0000 Add r_maxfps -1, an automatic setting that limits the framerate to the refresh rate -1 for each increment over 60Hz the refresh rate is E.g 60Hz > 59 fps 120Hz > 118 fps 144Hz > 141 fps 165Hz > 162 fps This also changes G_FPSLimit() back to a more simplistic calculation, because what was there didn't quite seem to make sense. From-SVN: r8613 commit 59072fee7e0084b17310c30c645fa9c447705fb6 Author: Richard Gobeille Date: Thu Feb 6 22:01:15 2020 +0000 Custom driver-independent VSync implementation for Windows From-SVN: r8612 commit c8b425361d604bb666319d95c1dfe1af4cbedb10 Author: Richard Gobeille Date: Thu Feb 6 22:01:09 2020 +0000 Patch from Nuke.YKT to fix a sprite rendering issue in Polymost From-SVN: r8611 commit a06a5405b3136464c848725cf5a06e427e92f7a9 Author: Richard Gobeille Date: Thu Feb 6 22:01:04 2020 +0000 Skip startup window when launched from Steam in Big Picture mode From-SVN: r8610 commit 9a078bdee2245179af02d815c377d25b9ed45427 Author: Richard Gobeille Date: Thu Feb 6 22:01:00 2020 +0000 Add NEED_DWMAPI_H and NEED_BCRYPT_H to windows_inc.h From-SVN: r8609 commit 420d9772a6a68b94482c0c40f820293455c59e11 Author: Richard Gobeille Date: Thu Feb 6 22:00:57 2020 +0000 Minor clipping fix From-SVN: r8608 commit 5f0b44634a5ca2557e04fb5d2dd0c2767913ce70 Author: Richard Gobeille Date: Thu Feb 6 22:00:53 2020 +0000 Fix issue with trying to pump a nonexistent SDL event queue when in the middle of changing resolutions From-SVN: r8607 commit 0c0b8ac5fd879cd4572243c4da8eaaf808b7578b Author: Richard Gobeille Date: Thu Feb 6 22:00:49 2020 +0000 Shitcan multisampling detection It wasn't useful. From-SVN: r8606 commit c666621dd0d5c48ec0ce6bd4af6982055fef67cd Author: Richard Gobeille Date: Thu Feb 6 22:00:44 2020 +0000 Emulate previous behavior for player oang/ohoriz/angvel struct members From-SVN: r8605 commit 5d70ead8e161bc1e59b0b489f88d2efef1069ff6 Author: Richard Gobeille Date: Thu Feb 6 22:00:39 2020 +0000 This should be ifndef NETCODE_DISABLE From-SVN: r8604 commit 3a92f96ec4c55b7a07c5caa915a595d97d1eb2d9 Author: Evan Ramos Date: Sun Feb 2 06:41:55 2020 +0000 SW: Add new game banner From-SVN: r8603 commit b7ac54aedf3064f867a1d3ef29de2c831282a5d1 Author: Evan Ramos Date: Sun Feb 2 06:41:50 2020 +0000 SW: Scale the banner, with antialiasing, instead of centering it From-SVN: r8602 commit ec8f59a5dd914630e7a68156ab01be8e373c5eba Author: Evan Ramos Date: Sun Feb 2 06:41:46 2020 +0000 SW: Overwrite startup window with Duke's From-SVN: r8601 commit 046e3013ab42779f494169b832e727c9aaf6dbd5 Author: Evan Ramos Date: Sun Feb 2 06:41:38 2020 +0000 Windows: Update dpiAwareness settings in manifests From-SVN: r8600 commit 0636a4087ba9d359f3d1afa5c56b9631ea1be14a Author: Evan Ramos Date: Sun Feb 2 06:41:33 2020 +0000 SW, KenBuild: Update names in Windows manifests From-SVN: r8599 commit 5d02c8bd5fb4e0c897128cb868472c7e2c34bd2d Author: Evan Ramos Date: Sun Feb 2 06:41:29 2020 +0000 SW: Clamp tsprz of blood pool floor decals From-SVN: r8598 commit e0b7c69d39816718acd54029e7309b4921937b9a Author: Evan Ramos Date: Sun Feb 2 06:41:25 2020 +0000 SW: Clamp tsprz of Bouncing Betty mines to their floorz if beneath the floor This fixes their invisibility in Polymost. From-SVN: r8597 commit 20ea1e1e4fa43b5070267e3e27564d16edde492f Author: Evan Ramos Date: Sun Feb 2 06:41:21 2020 +0000 SW, KenBuild: Update checks for using voxels From-SVN: r8596 commit 32aa5bfe8a2f6db353cc3f34e0136d2dea7d7c3b Author: Evan Ramos Date: Sun Feb 2 06:41:17 2020 +0000 SW: Add -addon0 which loads the base game From-SVN: r8595 commit 56df516a0ce84bc3bce17dc45c6ba3f60a727aa8 Author: Evan Ramos Date: Sun Feb 2 06:41:13 2020 +0000 Add -quick synonym for -nologo From-SVN: r8594 commit 968d5bf7efdc193644ad74de869ff866956f536f Author: Evan Ramos Date: Sun Feb 2 06:41:09 2020 +0000 SW: Add -nologo parameter From-SVN: r8593 commit b7591aa435f0e96143e64b29d37338e535070635 Author: Evan Ramos Date: Sun Feb 2 06:41:06 2020 +0000 SW: Add -nosetup parameter From-SVN: r8592 commit aaea1448d23a42f79775ad00fd627f47e11aa17a Author: Evan Ramos Date: Sun Feb 2 06:41:01 2020 +0000 SW: Use a struct for options shared between game and startup window From-SVN: r8591 commit 57a41e801dc438b1d91aec5afe195a73c5d956ad Author: Evan Ramos Date: Sun Feb 2 06:40:56 2020 +0000 macOS: Add NSSupportsAutomaticGraphicsSwitching to Info.plist From-SVN: r8590 commit ba20de650d031531015f2f58e55710f506be628a Author: Evan Ramos Date: Sun Feb 2 06:40:51 2020 +0000 SW: Add Redux's workaround for glitchy fist HUD sprites in widescreen From-SVN: r8589 commit 42aa0b8623e16afcff77f1bfa7c3b439f4412edd Author: Evan Ramos Date: Sun Feb 2 06:40:48 2020 +0000 SW: Fix mirrors in Polymost Thanks to NY00123. From-SVN: r8588 commit 68c66098ec531fd407a5ee98239db35f9d7a7f13 Author: Evan Ramos Date: Sun Feb 2 06:40:45 2020 +0000 renderMakeTSpriteFromSprite: Copy extra, since SW uses it SW: This fixes enemies glowing under nightvision. From-SVN: r8587 commit cb931580074499cb3cadd8de6ece7a5494e8f5d7 Author: Evan Ramos Date: Sun Feb 2 06:40:41 2020 +0000 macOS: Mark static functions in the startup windows eligible for inlining From-SVN: r8586 commit ea4a43d17a1ada5869d212863674ffa17d1c03d9 Author: Evan Ramos Date: Sun Feb 2 06:40:38 2020 +0000 SW: Fix -Wformat-security warning From-SVN: r8585 commit f2a89a390fceee7911d0d7ff0790f9539d83f86a Author: Evan Ramos Date: Sun Feb 2 06:40:34 2020 +0000 Fix -Wsign-compare warnings in anim.cpp From-SVN: r8584 commit f7e6298d685548c19cf97ef8a93ecf1f7af87b02 Author: Evan Ramos Date: Sun Feb 2 06:40:31 2020 +0000 A fix for the artfile def command From-SVN: r8583 commit 5921701b70a372d40035238f998e413a93d3535a Author: Evan Ramos Date: Sun Feb 2 06:40:27 2020 +0000 Maphacks: Add mdpos[xyz]off tokens and md[xyz]off synonyms mdpiv[xyz]off Backported from NBlood. From-SVN: r8582 commit 5976d0bb6a79e9a216557f3d0b5e49fb7024a741 Author: Evan Ramos Date: Sun Feb 2 06:40:21 2020 +0000 AudioLib: Add bit depth and channel settings to DemandFeed Backported from Rednukem. From-SVN: r8581 commit 834b9315c7af245ef0adf8de3ea88344936c3594 Author: Evan Ramos Date: Sun Feb 2 06:40:16 2020 +0000 Fix HAVE_XMP=0 build Backported from NBlood. From-SVN: r8580 commit 4683f24dee527517b2bf409accb7cf8a232f765d Author: Evan Ramos Date: Sun Feb 2 06:40:13 2020 +0000 Polymer: Use a 16-gon instead of an octagon if an ART sky has >8 panels Backported from NBlood. From-SVN: r8579 commit 196fb98184106f29bfab4f3282aeb1a1dd9638d1 Author: Evan Ramos Date: Sun Feb 2 06:40:09 2020 +0000 Fix SDL 1.2 mutex From-SVN: r8578 commit e193675525b0ab2336c39a9c7d134a9667e76657 Author: Evan Ramos Date: Sun Feb 2 06:40:05 2020 +0000 Remove references to standalone ENet folder from VS projects From-SVN: r8577 commit 5465ab68fe1cb577c9e9636cc37b27dd32fd1b00 Author: NY00123 Date: Sat Feb 1 10:29:23 2020 +0000 Fix the wrong aspect ratios of map grids for Ken-Build and SW, as well as the wrong aspect ratio in 3D for Ken-Build. From-SVN: r8576 commit 78b76289d90af83599e5f734dc252df35c78ad91 Author: NY00123 Date: Sat Feb 1 10:29:21 2020 +0000 Fix OPL music playback with snd_numchannels == 1 From-SVN: r8575 commit 1b6059e3d0653b9f0428a9b609a35e75dfa6b1bb Author: NY00123 Date: Sat Feb 1 10:29:20 2020 +0000 Fix read of uninitialized EMIDI_IncludeTrack value in _MIDI_ResetTracks From-SVN: r8574 commit 33f90b71fa3c5cab36401c4c7f5bd88d12f7aef8 Author: Richard Gobeille Date: Wed Jan 29 12:27:25 2020 +0000 Fix Ion Fury autodetection issue From-SVN: r8573 commit b4123fb48748cb4ab84bfaaf7c362030e02e8574 Author: Richard Gobeille Date: Wed Jan 29 11:38:06 2020 +0000 Calculate game loop timing using fractional ticks From-SVN: r8572 commit 7dedfee683a093f7fe881f1ad34276a4084e69bb Author: Richard Gobeille Date: Wed Jan 29 11:38:03 2020 +0000 This should be ifndef NETCODE_DISABLE From-SVN: r8571 commit 806a37b4bf13984140f1be5e044ee1322726baac Author: Richard Gobeille Date: Wed Jan 29 11:37:59 2020 +0000 This is pretty useless at this point From-SVN: r8570 commit c2d3cd18319eda28969aa5263fd95b609e2e546e Author: Richard Gobeille Date: Wed Jan 29 11:37:55 2020 +0000 Rename EDUKE32_SIMPLE_MENU to EDUKE32_RETAIL_MENU From-SVN: r8569 commit 86b57410c08b722f76ff73949eb4ae15727df2f7 Author: Richard Gobeille Date: Wed Jan 29 11:37:51 2020 +0000 This fixes things like shrunk player behavior at the expense of the return of issues like the player automatically stepping up onto sprite architecture. From-SVN: r8568 commit b4d249ff9a85ac2c09e17afde454e2c00a0cc6f6 Author: Richard Gobeille Date: Wed Jan 29 11:37:47 2020 +0000 Extremely minor audiolib driver_sdl cleanups From-SVN: r8567 commit 46b56ae5d6325aadb41053df8a550fe17837b3a2 Author: Richard Gobeille Date: Wed Jan 29 11:37:43 2020 +0000 Polymost: fix NPOT tile rendering when hightile option is disabled From-SVN: r8566 commit a9c1cac4926ead27029863cdc2c7587ded50ce57 Author: Richard Gobeille Date: Wed Jan 29 11:37:39 2020 +0000 Take CRANE sprites into account before applying mouse input From-SVN: r8565 commit 3a23e12959def1970235baab56f8861952430f69 Author: Richard Gobeille Date: Wed Jan 29 11:37:36 2020 +0000 Fix issue where the skill selection voice sometimes blocked playback of the E1L1 map entry voice From-SVN: r8564 commit e418a424a09b59a02ea6443285773e48898cc599 Author: Richard Gobeille Date: Wed Jan 29 11:37:32 2020 +0000 Remove useless G_MoveLoop() function From-SVN: r8563 commit 4c0aaa645a6b8f14711b7d451a951db18c2c8e41 Author: Richard Gobeille Date: Wed Jan 29 11:37:28 2020 +0000 ClockTicks maintenance From-SVN: r8562 commit d820260ab3adff74af7511a48e701d749a315cdd Author: Richard Gobeille Date: Wed Jan 29 11:37:25 2020 +0000 Hackish fix for spline interpolation crash in libxmp-lite From-SVN: r8561 commit bd3ac018625b89563c8a138e8becc976c755d74a Author: Richard Gobeille Date: Wed Jan 29 11:37:20 2020 +0000 Rename G_CheckPlayerInSector() to G_GetPlayerInSector() From-SVN: r8560 commit 53fc31e0fcab351a71608a84826007e1cb19d3fd Author: Richard Gobeille Date: Wed Jan 29 11:37:16 2020 +0000 Ion Fury compatibility improvements From-SVN: r8559 commit 7f3dd06b4c29c92d2dbc3f4b22f629635219f2d3 Author: Richard Gobeille Date: Wed Jan 29 11:37:12 2020 +0000 Fix issue where radius damage wasn't able to hit/damage sectors, walls, and sprites it should have been able to From-SVN: r8558 commit 52d3716920fb4b0f472ada03da91484fa939228b Author: Richard Gobeille Date: Wed Jan 29 11:37:07 2020 +0000 Remove in_mousedeadzone and supporting code When I originally added this "feature", nobody asked for it, and I don't think the imaginary use case I had for it back then is really applicable. If anyone has a use case for this that isn't imaginary, I'm willing to revert this change. From-SVN: r8557 commit b610e686b48945344e273e7781bb15b6071c4bb6 Author: Richard Gobeille Date: Wed Jan 29 11:37:03 2020 +0000 Fix video mode setup menu issue where the desktop resolution is displayed instead of the current setting when entering the menu for the first time From-SVN: r8556 commit d4a4884981f5c6e6c2513babe3c0f826dc3473b3 Author: Richard Gobeille Date: Wed Jan 29 11:36:59 2020 +0000 Get rid of the globals used when implementing the framerate based input polling From-SVN: r8555 commit 87822a02f43bc18d0e3c85c1672097c922ad1eb8 Author: Richard Gobeille Date: Wed Jan 29 11:36:55 2020 +0000 Use the saturating versions of the fix16 functions for player input From-SVN: r8554 commit 2e628d282bd1163ac8f5c830878c0a256d1d38b4 Author: Richard Gobeille Date: Wed Jan 29 11:36:52 2020 +0000 Disable EDUKE32_PREDICT_TRUE and EDUKE32_PREDICT_FALSE for now From-SVN: r8553 commit 16fc20a5d34df46ee9bac88c07658f51a24c21d8 Author: Richard Gobeille Date: Wed Jan 29 11:36:48 2020 +0000 Improve player view recentering From-SVN: r8552 commit d8a523e50d8e2bc47d5dc2863485a940003c6f54 Author: Richard Gobeille Date: Wed Jan 29 11:36:45 2020 +0000 Tie player input to the frame rate instead of the game tickrate This voodoo bullshit entirely eliminates any and all player viewport input latency. From-SVN: r8551 commit 53c92e05d295837461fa67170b5ad93a1b091d85 Author: Richard Gobeille Date: Wed Jan 29 11:36:39 2020 +0000 Ultra minor cleanup of CONTROL_KeyboardFunctionPressed() and CONTROL_ClearKeyboardFunction() From-SVN: r8550 commit 3fbaf79a86d725c9aac33ca0d4fdc0310cc0f9c8 Author: Richard Gobeille Date: Wed Jan 29 11:36:35 2020 +0000 Fix CONTROL_KeyboardFunctionPressed() and CONTROL_ClearAssignments()... From-SVN: r8549 commit 7368d1fb22f813b272d918fcce71ee711125e6ad Author: Richard Gobeille Date: Wed Jan 29 11:36:31 2020 +0000 Change the interaction between S_Callback() and S_Cleanup() and can the mutex again, hopefully once and for all From-SVN: r8548 commit 61bd7e5c99fec542049b7c11926654f5138b61b0 Author: Richard Gobeille Date: Wed Jan 29 11:36:27 2020 +0000 No longer call S_Cleanup() from gameTimerHandler() From-SVN: r8547 commit 0e9c75af239c92bad2a65bc861f55e7110e890e6 Author: Richard Gobeille Date: Wed Jan 29 11:36:24 2020 +0000 Bail out of A_MoveSpriteClipdist() early if passed no velocity From-SVN: r8546 commit a5134b5382a434b6729495d6737ec0b6cb0e4d81 Author: Richard Gobeille Date: Wed Jan 29 11:36:20 2020 +0000 Macro safety From-SVN: r8545 commit c317d8d80ca8bd6008f493440a6844a967b8d79c Author: Richard Gobeille Date: Wed Jan 29 11:36:16 2020 +0000 This vsync behavior might work better From-SVN: r8544 commit 9fdbc26079760d4a2e0ac07507bbcfcb66f7bc02 Author: Richard Gobeille Date: Wed Jan 29 11:36:13 2020 +0000 Don't push sprites away from other clip objects when their clip areas overlap if the velocity passed to clipmove() is 0 This workaround should fix issues with stationary sprites moving around at map load when their clip area is overlapping solid walls. From-SVN: r8543 commit afc5208ab78ec34e5c297f9d7e71653de9b1351f Author: Richard Gobeille Date: Wed Jan 29 11:36:09 2020 +0000 Add "maxhealth" console command to set the player's maximum health From-SVN: r8542 commit 320bfc2f6ffeeae03d5496c01099156a349c79e6 Author: Richard Gobeille Date: Wed Jan 29 11:36:06 2020 +0000 Fix forward movement with the mouse when mouse aiming is disabled This was missed back when input between the x and y axes was normalized to use the same scale. From-SVN: r8541 commit 685fc4083e3a0f83f0dc778036a929a98d12f7c5 Author: Richard Gobeille Date: Wed Jan 29 11:36:02 2020 +0000 Disable the SHIFT-F5 music changing thing in EDUKE32_STANDALONE builds and if running Ion Fury From-SVN: r8540 commit f1b7d9279f26b58ff16fcd65d65ec01a6965936b Author: Richard Gobeille Date: Wed Jan 29 11:35:58 2020 +0000 Factor conditions for locking player movement out into new P_CheckLockedMovement() function From-SVN: r8539 commit 8ce64e8c1f9b50f20e54fc5bc5bad0601b175077 Author: Richard Gobeille Date: Wed Jan 29 11:35:55 2020 +0000 Use increments of 0.1 for the mouse sensitivity slider in the menu The range of the slider is now 0.1-10.0. From-SVN: r8538 commit 9eca1c3faa3d0cfd80cb7b7c5a08be8e940b6aa8 Author: Richard Gobeille Date: Wed Jan 29 11:35:51 2020 +0000 Use ClockTicks class for the timer values saved and restored when creating a savegame From-SVN: r8537 commit d11f242d22e24590853defdc893bc985a6a8b898 Author: Richard Gobeille Date: Wed Jan 29 11:35:47 2020 +0000 Remove in_mousesmoothing and supporting code From-SVN: r8536 commit 8bbb8fcef76b6d333b9d0f0ef1106ccbab0a1e28 Author: Richard Gobeille Date: Wed Jan 29 11:35:42 2020 +0000 Only call S_Update() after processing all tics, and not once per call to G_MoveLoop() From-SVN: r8535 commit ae27593490222d25b321d503ae18bfeeae2a2e67 Author: Alex Dawson Date: Tue Jan 21 06:01:33 2020 +0000 game.h: fix calc_smoothratio_demo() to take into account differences between timerGetClockRate() and TICRATE when calculating the refresh frequency to interpolate between From-SVN: r8534 commit d4af3762d40884ef3d98f33d5016bf06f3cf22b6 Author: Evan Ramos Date: Fri Jan 3 10:22:00 2020 +0000 Bump PSKYOFF_MAX to 16 From-SVN: r8533 commit f07b6b6272d1a591b0ea25b72408f95768515f68 Author: Evan Ramos Date: Fri Jan 3 10:21:58 2020 +0000 Give the Xcode project a sorely needed update From-SVN: r8532 commit ed877c4af51dd1865fc184ff60128fef7acfd252 Author: Evan Ramos Date: Fri Jan 3 10:21:56 2020 +0000 Apple .app bundle stuff From-SVN: r8531 commit 894490fc3f968ec497da481e807a02b30e2561cd Author: Evan Ramos Date: Fri Jan 3 10:21:52 2020 +0000 Eliminate duplicate build_icon.ico From-SVN: r8530 commit 900eb9493eb049592418fcff1c3a0774b6c31b60 Author: Evan Ramos Date: Fri Jan 3 10:21:50 2020 +0000 music_external.cpp: Only include winbits.h #ifdef _WIN32 From-SVN: r8529 commit ff06a72d8920e810c4fa71cb69cc286de54d85ad Author: Evan Ramos Date: Fri Jan 3 10:21:48 2020 +0000 actors.cpp: Address -Wsometimes-uninitialized warnings From-SVN: r8528 commit f32ced9a08cdc82103176cc1a7a1876c29ecc48a Author: Evan Ramos Date: Fri Jan 3 10:21:46 2020 +0000 Engine: Fix -Wunused-parameter warnings From-SVN: r8527 commit 4a3c4ca581f2882d18171f68f9e9e5c86a29df63 Author: Evan Ramos Date: Fri Jan 3 10:21:43 2020 +0000 Audiolib: Fix -Wheader-guard warning From-SVN: r8526 commit 24d10771aad1f721f236b745e0d288f4a5596313 Author: Evan Ramos Date: Thu Dec 26 06:28:16 2019 +0000 SW: Fix FindDistance3D calls to not z>>4 at the call site This is handled by the function itself now. Fixes the distance issue with the ceiling fan. From-SVN: r8525 commit 4759212bf293501c6d6ded4a60186fcf6c37528b Author: Evan Ramos Date: Thu Dec 26 06:28:12 2019 +0000 SW: Draw the crosshair actually centered Thanks to Striker for the tip. From-SVN: r8524 commit 0de13ad6754f2c0d9b7d3def3accd56b7b75ed60 Author: Evan Ramos Date: Thu Dec 26 06:28:08 2019 +0000 Make the Polymode cstat bits Duke-only by translating them to tspr->clipdist From-SVN: r8523 commit d8e5e0083275ad25dba63c43b9a2b70a8855e6c3 Author: Evan Ramos Date: Thu Dec 26 06:28:03 2019 +0000 Move TSPR_EXTRA_MDHACK from extra to clipdist From-SVN: r8522 commit 12f2ef114405936027df448768a52b3a14a54058 Author: Evan Ramos Date: Thu Dec 26 06:27:58 2019 +0000 Refactor tsprite creation into renderAddTSpriteFromSprite From-SVN: r8521 commit 91c3723a2bdf2880b2780da61dfa6ea95d1a549d Author: Evan Ramos Date: Thu Dec 26 06:27:53 2019 +0000 Make tspritetype its own distinct struct From-SVN: r8520 commit d091225ca267de8045c06f5b493eb0625188167b Author: Evan Ramos Date: Thu Dec 26 06:27:48 2019 +0000 Mostly clean up the codebase in preparation for tspritetype != uspritetype Remaining exceptions: SW - ConnectCopySprite CON and M32Script - pSprite/pUSprite From-SVN: r8519 commit b8ac36768d620ac0eb9308643b2f93c85b712542 Author: Evan Ramos Date: Thu Dec 26 06:27:40 2019 +0000 Add information to cstat enums From-SVN: r8518 commit a19aaaf3f2866e5d612e3e34d8c347141ffebf1f Author: Evan Ramos Date: Thu Dec 26 06:27:37 2019 +0000 SW: Detect absence of pic_yinyang and use pic_shuriken1 for cursor instead Fixes menu usability with game data versions before 1.2 From-SVN: r8517 commit cc0efa75baf3130f69a262afb72d2833291ac8af Author: Evan Ramos Date: Thu Dec 26 06:27:33 2019 +0000 SW: Avoid memory leaks when playing a new music file From-SVN: r8516 commit 3cf75b76106a82273ee1d6940dfb7190c03b667f Author: Evan Ramos Date: Thu Dec 26 06:27:29 2019 +0000 SW: Run all allocations through Xmalloc et al From-SVN: r8515 commit 628627b43623eec5b2ef29dba3f2ac8504c94ca4 Author: Evan Ramos Date: Thu Dec 26 06:27:23 2019 +0000 SW: Add music format auto upgrading Example: e1l01.mid --> e1l01.flac From-SVN: r8514 commit d5db611d48c598b8ef7c8eec761ac076d5011444 Author: Evan Ramos Date: Thu Dec 26 06:27:20 2019 +0000 Duke: Slightly refactor S_TryFormats From-SVN: r8513 commit f7006c4e751a657f83d813ecef23158ef9e741a2 Author: Evan Ramos Date: Thu Dec 26 06:27:17 2019 +0000 SW: Unconditionally addsearchpath("music") This way the various packagings of the game will see music if the exe is dropped in, even if no registry detection is successful. From-SVN: r8512 commit cfd3d29efd0f47e3944fdbabc170ef75e02c9b6a Author: Evan Ramos Date: Thu Dec 26 06:27:13 2019 +0000 SW: Add GRP scanning for the Europe, UK, and "Special Edition" versions These have no differences that affect gameplay. Europe - slightly corrupted tile #28 UK - slightly corrupted tiles #2811, #4349 "Special Edition" - added CREDITS.TXT I have confirmed that the corrupt versions were actually mastered that way. Thanks to RoyBatty. From-SVN: r8511 commit cbbf44085bdc041cb3bfa3e4d0c791816eb3cd06 Author: Evan Ramos Date: Thu Dec 26 06:27:10 2019 +0000 SW: Implement episode and level names for the addons From-SVN: r8510 commit ddda99d0abfff607bbda4c9fb278ce2b2a48c5a2 Author: Evan Ramos Date: Thu Dec 26 06:27:06 2019 +0000 SW: Add gameflags field to internalgrpfile From-SVN: r8509 commit 17e2931de09e2fea9d11b30cc6ce7541461574ec Author: Evan Ramos Date: Thu Dec 26 06:27:02 2019 +0000 SW: Add GRP scanning entry for original tdragon.zip file From-SVN: r8508 commit 58352bb8d41e1ff798c25ae6ae891d2126cdfa3d Author: Evan Ramos Date: Thu Dec 26 06:26:59 2019 +0000 SW: Add .zip to GRP scanning extensions From-SVN: r8507 commit 939ed7970f4cf019ebbb27779ad3c7628b35071b Author: Evan Ramos Date: Thu Dec 26 06:26:55 2019 +0000 GRP scanning: Don't checksum files larger than any known entries From-SVN: r8506 commit 11736d6b23f4b1847fa2198bb6bde3fa4e857b66 Author: Evan Ramos Date: Thu Dec 26 06:26:51 2019 +0000 SW: Add infrastructure for checksum scanning multiple file extensions From-SVN: r8505 commit 57f52041d1b293e9ba03f943ee7079befe38aa17 Author: Evan Ramos Date: Thu Dec 26 06:26:48 2019 +0000 SW: Replace isShareware variable with SW_GameFlags bitfield From-SVN: r8504 commit df8eb7837bbdb02f4ab520f79bcec6368829634f Author: Evan Ramos Date: Thu Dec 26 06:26:43 2019 +0000 SW: Use postprocessing to disable the swcustom.txt in Redux's TD.grp From-SVN: r8503 commit d07225ded4dd1e6a49b07e02514b9dbc199e0e0b Author: Evan Ramos Date: Thu Dec 26 06:26:40 2019 +0000 SW: Add postprocessing function field to struct internalgrpfile From-SVN: r8502 commit 8b83c1e594ce9fff5f5831712de9bb12f59a2ecf Author: Evan Ramos Date: Thu Dec 26 06:26:36 2019 +0000 Menus: Hack around the User Map menu infinite return loop This should really be fixed using a stack. From-SVN: r8501 commit 6b365aa81d1a39c03d3cb35f0fe44b953ba305bf Author: Evan Ramos Date: Thu Dec 26 06:26:33 2019 +0000 Menus: Fix a fail in r8321 affecting X-positions of menu items Also disregard indentation for mouse left boundaries, for consistency with right edges and middles. From-SVN: r8500 commit 4ba00961d5f0efa9b778c5cb13a3d8c5a629a279 Author: Evan Ramos Date: Thu Dec 26 06:26:29 2019 +0000 Menus: Remove bool types From-SVN: r8499 commit 2b13da4516d99c59a142768c48fed306a22d899e Author: Evan Ramos Date: Thu Dec 26 06:26:26 2019 +0000 SW, KenBuild: Fix STARTUP_WINDOW=0 builds From-SVN: r8498 commit 9972b4598dca480feada1ce3e7e9b8188064f120 Author: Evan Ramos Date: Thu Dec 26 06:26:22 2019 +0000 Eradicate a use of std::string that crept in Windows exes are now 500 KB smaller. From-SVN: r8497 commit df5ebf2c3e97ec6f032eec7ac08d7e12765e7fe7 Author: Evan Ramos Date: Thu Dec 26 06:26:19 2019 +0000 Common.mak: Automatically disable --dynamicbase if debugging is active From-SVN: r8496 commit 463e92a2dff35d6e897b9f608bae5eb8502b9493 Author: Evan Ramos Date: Thu Dec 26 06:26:15 2019 +0000 Fix -Wfallthrough error in gamevars.h From-SVN: r8495 commit e9d4b825ba4e79bcfa875fa7c53b2b1d9eca7a35 Author: Evan Ramos Date: Mon Dec 23 07:04:05 2019 +0000 Add path recognition for Ion Fury installations From-SVN: r8494 commit 9a0dd8f686eadbf83433dd9c3d94d8f538e991dc Author: Evan Ramos Date: Mon Dec 23 07:04:02 2019 +0000 Timer: Use the CPUID instruction to serialize on 32-bit x86 without SSE2 Locking the memory bus seems like a bad idea in hindsight. From-SVN: r8493 commit 31faf439775a9a15b20511654cde0fadd03f6dbc Author: Evan Ramos Date: Mon Dec 23 07:03:58 2019 +0000 Timer: Update comments regarding LFENCE From-SVN: r8492 commit eb985391df45bee9692f34778df7d2a827b75b1f Author: Evan Ramos Date: Mon Dec 23 07:03:55 2019 +0000 Replace color matching up to index 239 with the engine's fullbright mask Should improve the color range available to non-Duke editors. From-SVN: r8491 commit c12a5070fd55a59930dbfe136714c0b7b4e97e75 Author: Evan Ramos Date: Mon Dec 23 07:03:51 2019 +0000 Generate editorcolors[] from vgapal16[] at a better point in the startup process From-SVN: r8490 commit 5808dc65bfa884120787aa780dee70f9eb7bbe05 Author: Evan Ramos Date: Mon Dec 23 07:03:46 2019 +0000 paletteGetClosestColor: I think these < should be <= From-SVN: r8489 commit bfb8b983c30e705b338fb5bb92c01c787c4f833a Author: Evan Ramos Date: Mon Dec 23 07:03:42 2019 +0000 Rename colmatch functions From-SVN: r8488 commit 0735f823ad67a43b1b56c163d9b296dbac13546f Author: Evan Ramos Date: Mon Dec 23 07:03:36 2019 +0000 Change PaletteIndexFullbrights from uint32_t[8] to uint8_t[32] From-SVN: r8487 commit ddfc7da471fe85009cf67721af799ec7e6e5de4a Author: Evan Ramos Date: Sun Dec 22 10:24:17 2019 +0000 Fix -Wunused-parameter in my CONTROL_ClearUserInput fix From-SVN: r8486 commit 837775b22746ee526d823b286ae5a1df7c52e7f9 Author: Evan Ramos Date: Sun Dec 22 10:21:22 2019 +0000 SW: Fix crash issues when Track sprites are set up incorrectly From-SVN: r8485 commit 957073d765416394922f1fe75425e122418e74f5 Author: Evan Ramos Date: Sun Dec 22 10:21:18 2019 +0000 SW, KenBuild: Draw mouse cursor in editor's 3D mode Will still look wrong in SW due to reversed palette ramps. From-SVN: r8484 commit 38d93464d4e926b6d9234772fdd24c1ea279571d Author: Evan Ramos Date: Sun Dec 22 10:21:13 2019 +0000 Fix a mistake in my temporary CONTROL_ClearUserInput Fixes skipping SW's 3D Realms screen and intro logo. From-SVN: r8483 commit 74ac9d9954b33500f41b3f3338c20b5933188f60 Author: Evan Ramos Date: Sun Dec 22 10:21:10 2019 +0000 SW, KenBuild: Remove some unnecessary #ifdef RENDERTYPEWIN From-SVN: r8482 commit 29903b498bbe527d7c145680ad7bf56cf3e239eb Author: Evan Ramos Date: Sun Dec 22 10:21:05 2019 +0000 SW: Add tailspritefree to savegames From-SVN: r8481 commit 3ef5ee55a88531735cff6661f3357f799311d643 Author: Evan Ramos Date: Sun Dec 22 10:21:01 2019 +0000 Revert r8386 and reinstate the Reverse Stereo option, but only #ifdef __MSDOS__ Agreed that this feature serves no purpose on modern systems. From-SVN: r8480 commit 4801c0b9513a2281174fda91afe7731ba9d60ea9 Author: Evan Ramos Date: Sun Dec 22 10:20:54 2019 +0000 SW: Remove sound quality option from startup window From-SVN: r8479 commit eb6d0b98425c6946c705186b5e06b0497e929ef4 Author: Evan Ramos Date: Sun Dec 22 10:20:50 2019 +0000 Move InitCustomColors to build.cpp This gets grid lines showing in all editors. From-SVN: r8478 commit 0de22d8d461e37f5a39d3b5af6daf6c3c9551aca Author: Evan Ramos Date: Sun Dec 22 10:20:46 2019 +0000 SW, KenBuild: Add grid line size change G key From-SVN: r8477 commit 62fba816072492dd03d41ffc2f0cae550ece5f44 Author: Evan Ramos Date: Sun Dec 22 10:20:42 2019 +0000 KenBuild, SW: Replace qsetmode == 200 with in3dmode() From-SVN: r8476 commit 76a08db94f610bca4c854cbc3fbab81ae51e8ef1 Author: Evan Ramos Date: Sun Dec 22 10:20:38 2019 +0000 KenBuild: Use old-style voxel loading so that ART animations are ignored From-SVN: r8475 commit 4ac4ccaaa574c62a419f10d06659daf12d286ddb Author: Evan Ramos Date: Sun Dec 22 10:20:34 2019 +0000 KenBuild: Move voxel loading to common.cpp From-SVN: r8474 commit d2f8165bde973fcedb59344718924004747a633c Author: Evan Ramos Date: Sun Dec 22 10:20:30 2019 +0000 KenBuild: Move palswap generation to common.cpp From-SVN: r8473 commit 6965d0c6045b66c020a9456d4e6bf33c1be81941 Author: Evan Ramos Date: Sun Dec 22 10:20:26 2019 +0000 Add check against MAXVOXELS in qloadkvx From-SVN: r8472 commit 2c4dede3eec5edd8443995629cc53f62bc246f95 Author: Evan Ramos Date: Sun Dec 22 10:20:22 2019 +0000 Expose nextvoxid variable This allows game and defs to not overwrite each other's voxels. From-SVN: r8471 commit ae43f459750bbe653f8c06e2f9b7ca5b6ebad779 Author: Evan Ramos Date: Sun Dec 22 10:20:17 2019 +0000 Don't predicate the construction of distrecip on voxoff[0][0] It's possible to load voxels after a call to dosetaspect. From-SVN: r8470 commit da6e3e7ea963fc9aecdea4737adefdd55e76a81d Author: Evan Ramos Date: Sun Dec 22 10:20:13 2019 +0000 SW: Add call to palettePostLoadLookups From-SVN: r8469 commit 53f5baea43237fc4b8c66252b96913faaf1fb88f Author: Evan Ramos Date: Sun Dec 22 10:20:10 2019 +0000 KenBuild: Add call to enginePreInit From-SVN: r8468 commit 17f751a2edd62c209e63b93e1f804a129f4995f2 Author: Evan Ramos Date: Sun Dec 22 10:20:07 2019 +0000 Add vfs.h include to common.h for BUILDVFS_FIND_REC From-SVN: r8467 commit da29b13ff6af9a3737e06713503ab15eb60e4977 Author: Evan Ramos Date: Sun Dec 22 10:20:03 2019 +0000 Cleanup: Add DAMETH_INDEXED token and replace PTH_INDEXED with it where applicable From-SVN: r8466 commit 8b9fa3f016ee6f43dc1c0fbafeb3d6ad7de6ba33 Author: Evan Ramos Date: Sun Dec 22 10:19:59 2019 +0000 Defs: Add tilefromtexture subtoken "ifmatch", with subtokens "crc32" and "size" From-SVN: r8465 commit e17b2ce47e0d196cbc1ee16981a87bc469a020f3 Author: Evan Ramos Date: Sun Dec 22 10:19:55 2019 +0000 Defs: Minor ifcrc cleanup From-SVN: r8464 commit 320444aa53c15c079b728ee0f77ad3d98f4f4146 Author: Evan Ramos Date: Sun Dec 22 10:19:51 2019 +0000 Audiolib: Move MV_Lock() and MV_Unlock back to multivoc.h From-SVN: r8463 commit 0d3d407e95d37299aadc423c7b200cb436a240f6 Author: Evan Ramos Date: Sun Dec 22 10:19:47 2019 +0000 Cleanup: Function definitions in class definitions are implicitly inline From-SVN: r8462 commit 0e383dad50104600928f75d81461adbb83d910a6 Author: Evan Ramos Date: Sun Dec 22 10:19:43 2019 +0000 Duke: Remove chdir for artLoadFiles now that the engine has g_modDir From-SVN: r8461 commit d8a0c76162d0dc96388cdd0ddd2926faee6da468 Author: Evan Ramos Date: Sun Dec 22 10:19:39 2019 +0000 KenBuild, SW: Change console key default from NumLock to ` From-SVN: r8460 commit 94abe9f083ecba9e3dc4b2ea6c7bbc4c10014aff Author: Evan Ramos Date: Sun Dec 22 10:19:36 2019 +0000 KenBuild: Enable mouse by default From-SVN: r8459 commit fd207fdf9a564a53653f1ce21514b75ea7ea0302 Author: Evan Ramos Date: Sun Dec 22 10:19:32 2019 +0000 SW, KenBuild: Add warning on startup that the software is not ready for public use From-SVN: r8458 commit 15203e4d1f2890faea78bfb0499ac1ed38a156f9 Author: Evan Ramos Date: Sun Dec 22 10:19:28 2019 +0000 SW, KenBuild: Fix print error in the first line of editor log files From-SVN: r8457 commit 2d73290212d4d9fa4ef641b0fd58f2c5c84d9c3f Author: Evan Ramos Date: Sun Dec 22 10:19:24 2019 +0000 KenBuild: Call the port EKenBuild at runtime From-SVN: r8456 commit c661f077501701a9d58ee0e0c675d4b4c146b1a6 Author: Evan Ramos Date: Sun Dec 22 10:19:20 2019 +0000 SW, KenBuild: Fix build of editors after AnalyzeSprites change From-SVN: r8455 commit 31f023dc48cd22415951acb47f4bf82c899c20ef Author: Evan Ramos Date: Wed Dec 18 09:32:16 2019 +0000 Fix rotatesprite widescreen pinning in 5:4 From-SVN: r8454 commit d31c1c8acc2cf2df6098c21cefaa280dd0aee538 Author: Evan Ramos Date: Wed Dec 18 09:32:12 2019 +0000 SW: Remove unconditional inclusion of winbits.h from game.cpp From-SVN: r8453 commit 70d8801655ff36733f05d3ee4252a4b44f7a5ac8 Author: Evan Ramos Date: Wed Dec 18 09:32:09 2019 +0000 Makefile: Add USE_SSE2 option for 32-bit x86 and default it to off This option might not exist forever, but for now entropy is preserved. From-SVN: r8452 commit e7a4f7294fafb56864b4c617c06a8812e2961dcd Author: Evan Ramos Date: Wed Dec 18 09:32:06 2019 +0000 Audiolib: Re-add DemandFeed Backported from PCExhumed. From-SVN: r8451 commit a065f96913cb96f6f78c911e2eda66156ddf7211 Author: Evan Ramos Date: Wed Dec 18 09:32:01 2019 +0000 Audiolib: Add MV_PlayRAW Backported from NBlood. From-SVN: r8450 commit 96133572cff7086a5f8efe59c1a4f79bd971b358 Author: Evan Ramos Date: Wed Dec 18 09:31:57 2019 +0000 Audiolib: Add MV_GetFrequency Backported from PCExhumed. From-SVN: r8449 commit b0d3ac8e2578a89af99249577b7ee6a3d8fbe1e3 Author: Evan Ramos Date: Wed Dec 18 09:31:53 2019 +0000 Bump MAXPSKYTILES to 16 Backported from NBlood. From-SVN: r8448 commit cde09375195f6574928299a665151770290b0474 Author: Evan Ramos Date: Wed Dec 18 09:31:50 2019 +0000 Pass -1 to ExtShowSectorData and ExtShowWallData as a sentinel instead of 0 Backported from NBlood. From-SVN: r8447 commit 7396f0a4776950974a64f99d6345c088bb53f33b Author: Evan Ramos Date: Wed Dec 18 09:31:46 2019 +0000 Avoid shadowed variable in dorotatesprite Backported from PCExhumed. From-SVN: r8446 commit 31778ccfddb3d80cf1dd3481d4010b6c69805a0f Author: Evan Ramos Date: Wed Dec 18 09:31:43 2019 +0000 Move MAXVOXMIPS and voxoff from engine.cpp to build.h Backported from NBlood. From-SVN: r8445 commit 6d4d105d3050a756fc5d4a5e8ac474af8bbbf0e9 Author: Evan Ramos Date: Wed Dec 18 09:31:39 2019 +0000 Factor out int to float conversion in getshadefactor Backported from PCExhumed. From-SVN: r8444 commit 73780392cfefe54823152b131975a1cc8a8f2c5b Author: Evan Ramos Date: Wed Dec 18 09:31:35 2019 +0000 Add sectorhighlight variable Backported from NBlood. From-SVN: r8443 commit e32d224529bef77e8e5fc86022ff430251cf1341 Author: Evan Ramos Date: Wed Dec 18 09:31:32 2019 +0000 Improve accuracy of sepldist when one dimension is zero Backported from Rednukem. From-SVN: r8442 commit 82333e2bd32100b502f353be201eb61c2d132774 Author: Evan Ramos Date: Wed Dec 18 09:31:28 2019 +0000 Add polymostcenterhoriz variable Backported from NBlood. From-SVN: r8441 commit b08a55745dde51950a0742f847906ccfab19600e Author: Evan Ramos Date: Wed Dec 18 09:31:25 2019 +0000 Expose defaultspritecstat variable Backported from NBlood. From-SVN: r8440 commit 2d5ceb4bb964d798461b9673397cf902b5d3661d Author: Evan Ramos Date: Wed Dec 18 09:31:21 2019 +0000 Expose hitscangoal variable Backported from NBlood. From-SVN: r8439 commit 5851424c84d64ce1e7c8407fa0ffbce9db77f8cb Author: Evan Ramos Date: Wed Dec 18 09:31:17 2019 +0000 Expose tileUpdatePicSiz function Backported from NBlood. From-SVN: r8438 commit 138eb7e6057d73f7c8dfa6632ea03d397f5f7f8d Author: Evan Ramos Date: Wed Dec 18 09:31:13 2019 +0000 Expose klistaddentry function Backported from NBlood. From-SVN: r8437 commit d26c85e8b6977520b6d58121963be17a540b741e Author: Evan Ramos Date: Wed Dec 18 09:31:10 2019 +0000 Fix the interpretation of old-format PALETTE.DAT Backported from PCExhumed. From-SVN: r8436 commit 60e55617b6893f85490f571c55fbbfdc193108cf Author: Evan Ramos Date: Wed Dec 18 09:31:06 2019 +0000 Use kopen4loadfrommod when opening ART files Backported from NBlood. From-SVN: r8435 commit 0d0826ee02cea2182f5558d9f98ae660e5fc1b5a Author: Evan Ramos Date: Wed Dec 18 09:31:03 2019 +0000 Make use of blackcol variable when drawing the OSD background Backported from PCExhumed. From-SVN: r8434 commit 55b3b257c791d628333d02cffa0db2abdcc5dd31 Author: Evan Ramos Date: Wed Dec 18 09:30:59 2019 +0000 Expose blackcol variable, containing the palette index closest to #000000 Backported from PCExhumed. From-SVN: r8433 commit 7fbdd1011670f596033bad5810eb284a56cb8826 Author: Evan Ramos Date: Wed Dec 18 09:30:53 2019 +0000 Remove arbitrary check on numshades == 32 Backported from PCExhumed. From-SVN: r8432 commit 74fbcb756462d5f843bb18da2ee6dd9ece00e666 Author: Evan Ramos Date: Wed Dec 18 09:30:49 2019 +0000 SDLayer: Change location of keySetState calls Backported from NBlood. From-SVN: r8431 commit 96cad3de66f95cc2b5a5c2d6a110d3f7f73f1c6e Author: Evan Ramos Date: Wed Dec 18 09:30:45 2019 +0000 Move kopen4loadfrommod to the engine Backported from NBlood. From-SVN: r8430 commit d2398dfd469ac3b4c78b6e82803341e0523b2370 Author: Evan Ramos Date: Wed Dec 18 09:30:41 2019 +0000 Baselayer: Add keyGetScan and keyFlushScans Backported from NBlood. From-SVN: r8429 commit 16bcb9fa0652f45b5573f979ed7732e7c85dc97e Author: Evan Ramos Date: Wed Dec 18 09:30:35 2019 +0000 Add a z coordinate parameter to Analyze/AnimateSprites Backported from NBlood. From-SVN: r8428 commit b191263b99204fa11766499d1b4dc41744a4df22 Author: Evan Ramos Date: Wed Dec 18 09:30:28 2019 +0000 Audiolib: Change callbackval from uint32_t to intptr_t Backported from NBlood. From-SVN: r8427 commit 92c521a1ae5fa0e1a76b772329d8a9e936bc5e54 Author: Richard Gobeille Date: Sun Dec 15 22:40:33 2019 +0000 Remove file accidentally added in r8424 From-SVN: r8426 commit 752eeda464f5923b1397f6503f11a80572292392 Author: Richard Gobeille Date: Sun Dec 15 22:39:07 2019 +0000 Fix Mapster32 undo/redo corruption issue From-SVN: r8425 commit 38a6c6ebc33c0723756e85f299a1ca186794e341 Author: Richard Gobeille Date: Sun Dec 15 22:39:02 2019 +0000 Don't build SW and the Kenbuild test game by default in VS From-SVN: r8424 commit 7141694f9768eb3caac4bcb274405ff9948e7e51 Author: Richard Gobeille Date: Fri Dec 13 21:33:14 2019 +0000 Recalculate horizycent because ydim can be changed in renderSetTarget From-SVN: r8423 commit b170666f026f503e70c10be784f144337c27b154 Author: Richard Gobeille Date: Mon Dec 9 09:43:56 2019 +0000 Revert "Windows: Remove keyboard layout switching entirely" This change was not well thought out and breaks a number of things for users of foreign keyboards. Unfortunately, we are still at a point where removing keyboard layout switching is a QOL downgrade. From-SVN: r8422 commit 3f0f8f78cc6515599fdce2cbc5a4688846f9ddf1 Author: Evan Ramos Date: Mon Dec 9 08:24:55 2019 +0000 Windows: Remove keyboard layout switching entirely Upon testing this already seems to do the right thing in game and editor, with winlayer, SDL 1.2, and SDL 2: use the labels on the keys when entering text such as in the console, and the positions of the keys for everything else. From-SVN: r8421 commit f27fbc7d89e28b5f97ac04834f800991a2966d3c Author: Evan Ramos Date: Mon Dec 9 06:02:31 2019 +0000 Remove -msse2 from default 32-bit x86 optimization parameters From-SVN: r8420 commit 72a6bb80a13070e249e577b0b8613288f08fb94d Author: Evan Ramos Date: Mon Dec 9 06:02:28 2019 +0000 Improve diagnostic printing of slopalookup overflows From-SVN: r8419 commit 27160dbf3abee78273ae4523de307a3e02ec68b6 Author: Evan Ramos Date: Mon Dec 9 06:02:25 2019 +0000 Fix regression in software rendering of slopes in r8363 From-SVN: r8418 commit b500a85ea597c798de55dcc594f4c7203370209a Author: Evan Ramos Date: Mon Dec 9 06:02:20 2019 +0000 Fix SDL 1.2 build From-SVN: r8417 commit b92da365261e27d92552920d46248c87d234d31f Author: Evan Ramos Date: Mon Dec 9 06:02:16 2019 +0000 Fix RENDERTYPE=WIN build Broken in r8319. From-SVN: r8416 commit de93b7d4c86c76a6fe0b92aca9e941eb26f2d398 Author: Evan Ramos Date: Mon Dec 9 06:02:10 2019 +0000 Amend r8174: Remove call to windowsHandleFocusChange during SDL_WINDOWEVENT_ENTER and SDL_WINDOWEVENT_LEAVE These events are for when the mouse cursor enters and leaves the window's region, not any kind of focus change. Confirmed with a test app. The SDL Wiki's description, "window has gained/lost mouse focus" is misleading. From-SVN: r8415 commit 04142e9ece8797cdc0e58d5d4fd0fc08b7036c90 Author: Evan Ramos Date: Mon Dec 9 06:02:07 2019 +0000 Fix crash when specifying an out of range value for sys_timer in the console Manifests as a crash on startup for all users who previously had sys_timer set to 4. From-SVN: r8414 commit 05fc87dce13f1f549db67d9fc98778720e20ead3 Author: Richard Gobeille Date: Sun Dec 8 09:20:55 2019 +0000 This should fix rare stalls of several seconds when changing window focus on some Windows systems, related to changing the keyboard layout From-SVN: r8413 commit c2e08bd161f31a8b3fdbdab0332ac45afe278c72 Author: Richard Gobeille Date: Sat Dec 7 23:53:10 2019 +0000 Fix SW compilation under VS From-SVN: r8412 commit 26c0c5e118c984a10be248c20674772bac93a59f Author: Richard Gobeille Date: Sat Dec 7 23:53:06 2019 +0000 Fix Mapster32 undo corruption issue From-SVN: r8411 commit 51b3fab16f23750d09075ef1671274975dbe8000 Author: Richard Gobeille Date: Sat Dec 7 23:53:02 2019 +0000 This is a __restricted area Theoretically, this will help the compiler generate more optimized code. In practicality, I haven't seen any difference yet but I don't think giving the compiler hints as to the intended operation of the code is ever really a bad thing. From-SVN: r8410 commit ff3bf5f3391c16715e0502bd6b09907752b28efe Author: Richard Gobeille Date: Sat Dec 7 23:52:58 2019 +0000 Track cache1d block overhead differently From-SVN: r8409 commit 90f5cfa365fd9e30786d9bc90b0b82c87d986524 Author: Richard Gobeille Date: Sat Dec 7 23:52:54 2019 +0000 These shouldn't be references From-SVN: r8408 commit e8ffc2ee5f4cc92a130249adb8bbb6a83da9e754 Author: Richard Gobeille Date: Sat Dec 7 23:52:51 2019 +0000 Update cvar help strings, WIP From-SVN: r8407 commit 61b115e1e24b36b4da1ae9963768f62c918c39ff Author: Richard Gobeille Date: Sat Dec 7 23:52:47 2019 +0000 Improve console cvar printing This breaks cvar printing out of osdcmd_cvar_set() and creates osdfunc_printvar(), which prints the cvar's current value and the range of values it accepts. This also improves the output of the "help" command. From-SVN: r8406 commit a6cde8a8046f3a5de5c4a18f2d1dbbd574cee9f8 Author: Richard Gobeille Date: Sat Dec 7 23:52:43 2019 +0000 Remove dead code From-SVN: r8405 commit 888921e8a0df36373ce2642b0163494ef40d49b7 Author: Richard Gobeille Date: Sat Dec 7 23:52:40 2019 +0000 Fix cacheAllSounds() being called before .def parsing... oops! From-SVN: r8404 commit b3e010ba69ddb187db11fe331e40e3b3c49d5b91 Author: Richard Gobeille Date: Sat Dec 7 23:52:36 2019 +0000 Cast the nanoseconds to uint64_t before multiplying in timerGetTicks() From-SVN: r8403 commit 2d06d91f0059fca0e150f2cab9d88b0cdcfbbf54 Author: Richard Gobeille Date: Sat Dec 7 23:52:32 2019 +0000 Move logic for timer type selection into its own function From-SVN: r8402 commit 5ba3df0af2e77d0567b4d9df5fe4391898b15975 Author: Richard Gobeille Date: Sat Dec 7 23:52:29 2019 +0000 Use -march=nocona for x86_64 builds This appears to be preferable for producing generic x86_64 binaries these days. From-SVN: r8401 commit f499b6d042cb8076953192ac8e5edbef093efdd4 Author: Richard Gobeille Date: Sat Dec 7 23:52:26 2019 +0000 Use -march=pentium-m for i686 builds From-SVN: r8400 commit 130fcbc02b52f253436f52a497a400466570e36e Author: Richard Gobeille Date: Sat Dec 7 23:52:22 2019 +0000 No more std::chrono! From-SVN: r8399 commit a14a0d9e58944c0f23891bd1e29a92d5ef6604ca Author: Richard Gobeille Date: Sat Dec 7 23:52:17 2019 +0000 Timer maintenance From-SVN: r8398 commit 319a8e228b2413149cee7a6b2ab796fb61b7574c Author: Richard Gobeille Date: Sat Dec 7 23:52:13 2019 +0000 Fix osdcmd_changelevel From-SVN: r8397 commit 0ce9fa189ddd3f58b4566fb6880d6835fc90586a Author: Richard Gobeille Date: Sat Dec 7 23:52:10 2019 +0000 This change to Gv_DivVar() is faster when benchmarked From-SVN: r8396 commit 02791952140664ef16be3c9f0322e96e0222993c Author: Richard Gobeille Date: Sat Dec 7 23:52:06 2019 +0000 Clean up CON_FOR a little From-SVN: r8395 commit 0069961ec2db4cfc5c315274c566cc00d78e9731 Author: Richard Gobeille Date: Sat Dec 7 23:52:02 2019 +0000 Change VS project DiagnosticsFormat option From-SVN: r8394 commit df1ea0bf2444aaf716e2624966f4ccfa70a8c757 Author: Richard Gobeille Date: Sat Dec 7 23:51:57 2019 +0000 Only use lfence with rdtsc I was going to use the CPU vendor to determine whether to use mfence or lfence, but reading the links in the comments lead me to the conclusion that lfence is still the correct choice on AMD. From-SVN: r8393 commit 25cabb38e42cf8431345b4a3e5bde0d893dd674d Author: Richard Gobeille Date: Sat Dec 7 23:51:54 2019 +0000 Start ripping out std::chrono because it sucks From-SVN: r8392 commit afbffce4a4fafd740eed625c71ad3af7e13fa7d7 Author: Richard Gobeille Date: Sat Dec 7 23:51:49 2019 +0000 Remove sound init messages from Shadow Warrior as they're emitted by the library itself now From-SVN: r8391 commit 7e6c316478401ccb57618ca09eff3e5babfc0ba9 Author: Richard Gobeille Date: Sat Dec 7 23:51:45 2019 +0000 Add snd_sdl_audiodriver cvar to select which audio backend SDL uses This also cleans up the sound init messages a bit. From-SVN: r8390 commit 2819e720fc42f074ea32f6c818419092e862d59d Author: Richard Gobeille Date: Sat Dec 7 23:51:39 2019 +0000 I'm pretty sure none of our output goes through the code path that uses this hint, but if it does we probably want the good one and not the crappy one From-SVN: r8389 commit b442f880b70da355bde8a58368dded1612be75cf Author: Richard Gobeille Date: Sat Dec 7 23:51:36 2019 +0000 Don't write blank string cvars to settings.cfg From-SVN: r8388 commit 7878aeec4585e741815317680b3b7e97162b3005 Author: Richard Gobeille Date: Sat Dec 7 23:51:32 2019 +0000 Remove driver_nosound from audiolib Why? Because it's fucking useless. If we want to waste CPU on outputting nothing, SDL has us covered with its "dummy" audio backend. From-SVN: r8387 commit fe91ae03fd5296913328c1023a1aea6f08d172e9 Author: Richard Gobeille Date: Sat Dec 7 23:51:25 2019 +0000 Remove obsolete option to reverse the stereo channels Anyone who plugged in their speakers backwards is SOL. From-SVN: r8386 commit 70980dd9bc01f12be6b075bbc6f9cac544dad5ce Author: Richard Gobeille Date: Sat Dec 7 23:51:17 2019 +0000 ENet fix to allow running on Windows XP again... completely untested tbh This is not the only thing that breaks compatibility with XP, but this fixes the ENet part of it. From-SVN: r8385 commit ab08d45d715e848921668d8e8cc7790fc721a2be Author: Richard Gobeille Date: Sat Dec 7 23:51:14 2019 +0000 Add mus_winmm_device cvar to allow selecting the Windows MME MIDI output device From-SVN: r8384 commit 2550fd12645bef733fe7b212e5abd456c0d0a212 Author: Richard Gobeille Date: Sat Dec 7 23:51:09 2019 +0000 Add mus_xmp_interpolation cvar to control XMP interpolation mode Full disclosure: changing the interpolation mode is practically useless. I was going to drop this commit from my tree, but a later commit doesn't merge without it and I didn't feel like dealing with it. From-SVN: r8383 commit d8419ec7836b86a1f464435b85035d78b98c453b Author: Richard Gobeille Date: Sat Dec 7 23:51:05 2019 +0000 Only restart the sound system itself when pressing "apply" in the advanced sound setup menu if the playback rate or number of voices changed From-SVN: r8382 commit 8974727bf2dcc83864f267a6c97443c7bed81e0f Author: Richard Gobeille Date: Sat Dec 7 23:51:00 2019 +0000 MIDI shuffling From-SVN: r8381 commit a359149afae9025d7383c5254400eb3313dc1fff Author: Richard Gobeille Date: Sat Dec 7 23:50:51 2019 +0000 Use mouse wheel to scroll console and limit scroll area to the number of lines actually present From-SVN: r8380 commit 278185fb3f938e265dcefc2b209280b6ad82865e Author: Richard Gobeille Date: Sat Dec 7 23:50:47 2019 +0000 Use GrowArray<> to save individual lines of text printed to the console so we can rebuild the concatenated text buffer without fucked formatting when the console resolution changes A proper solution would probably shitcan the big buffer altogether and just print the lines stored in the GrowArray<> directly, but this commit is not that. From-SVN: r8379 commit 1dc424df82643eaca9c44f81733330e2a2123d26 Author: Richard Gobeille Date: Sat Dec 7 23:50:42 2019 +0000 Update console cvar descriptions From-SVN: r8378 commit 4353698bde9a65cb0e3997e7047d04dcf592b433 Author: Richard Gobeille Date: Sat Dec 7 23:50:39 2019 +0000 Change osdlogcutoff to control the maximum number of errors printed to the console Previously osdlogcutoff controlled the max number of lines (error or otherwise) printed to the console, and the error limit was hard-coded at 4096. This seems more useful. From-SVN: r8377 commit 245462d53afb9d926a99fc8cc8e0967a6d9f2231 Author: Richard Gobeille Date: Sat Dec 7 23:50:34 2019 +0000 intitialization From-SVN: r8376 commit 86c36c193f5620a9dfd6c83ac15344faaa2b5400 Author: Richard Gobeille Date: Sat Dec 7 23:50:30 2019 +0000 Remove duplicate call to cacheAllSounds() from S_SoundStartup() From-SVN: r8375 commit fd0d54c4a80569bf7c2e8cf02d94386251c899a8 Author: Richard Gobeille Date: Sat Dec 7 23:50:27 2019 +0000 Move atoi_safe() from editor.h to compat.h and #define Batoi atoi_safe They were the same thing so they might as well be in the same place. From-SVN: r8374 commit a1f9f2aa655da661df1bcc050b255635d83f6de1 Author: Richard Gobeille Date: Sat Dec 7 23:50:23 2019 +0000 Properly use platform-specific cpuid intrinsics From-SVN: r8373 commit 36bd980eab79e5a798ce98a93b617dbad4a8362b Author: Richard Gobeille Date: Sat Dec 7 23:50:20 2019 +0000 Minor changes to hash table code From-SVN: r8372 commit 28ac454a5fddb2800d566fa68e78524c9775f7d2 Author: Richard Gobeille Date: Sat Dec 7 23:50:16 2019 +0000 Add Xaligned_calloc() From-SVN: r8371 commit e490445eba1b1f32d0a8368d9e051afab674158b Author: Richard Gobeille Date: Sat Dec 7 23:50:12 2019 +0000 cache1d improvements: add reset function, support for specifying the mininum block size, and make the information printed out by the cacheinfo console command more useful From-SVN: r8370 commit 77e4a05376c9939b80583b4aa754860a991cf1e9 Author: Richard Gobeille Date: Sat Dec 7 23:50:08 2019 +0000 Improve interaction between cheat entry and player input From-SVN: r8369 commit abb5bdcae96907c88107661aca0f479467f69a41 Author: Richard Gobeille Date: Sat Dec 7 23:50:04 2019 +0000 Fix noclip in Duke3d From-SVN: r8368 commit e96bb1cd8895d3adcdcd17a4047d21d63ceb978e Author: Richard Gobeille Date: Sat Dec 7 23:50:01 2019 +0000 Map SDL joystick device trackball input to mouse input From-SVN: r8367 commit 1ff07c99772f4cae5345d27646b2d85f39ef0559 Author: Richard Gobeille Date: Sat Dec 7 23:49:56 2019 +0000 Shitcan the few uses of the bool type in the VM after reading some things and dicking around on godbolt.org From-SVN: r8366 commit 2179a4046047872ffd214caa9094a4da919f23ec Author: Richard Gobeille Date: Sat Dec 7 23:49:51 2019 +0000 Update the Microsoft resource compiler scripts used for Windows binaries This adds the version control revision plus build time to the properties of the resulting binary, and updates some of the legal text. The executable version number has also been bumped from the longstanding "1.9.9.9" to "2.0.0.4", symbolic of the year EDuke32 was first released in. Future Fury binaries will now say "2.0.1.9" to match its first non-preview release as well. From-SVN: r8365 commit a42f864e0c60866e820e826f84e56c7b1a0b9271 Author: Richard Gobeille Date: Sat Dec 7 23:49:45 2019 +0000 This workaround doesn't appear to be necessary anymore Moreover, I couldn't really find any information about the problem this was supposed to resolve when I attempted to research it. The code has already been #if 0'd out for a while. From-SVN: r8364 commit ce3285dc5394f10a733a960daaee33c0fcbe40d4 Author: Richard Gobeille Date: Sat Dec 7 23:49:41 2019 +0000 Equivalent to https://github.com/jonof/jfbuild/commit/04e7e6af69f29479282a487382237d4a70c7be14 From-SVN: r8363 commit bfa98eee4c51ecc75da9f5bbe862d79ec535b234 Author: Richard Gobeille Date: Sat Dec 7 23:49:37 2019 +0000 Update gamecontrollerdb.txt From-SVN: r8362 commit b2543933391492ef6f18dd957d422eebfbf53cba Author: Richard Gobeille Date: Sat Dec 7 23:49:33 2019 +0000 A small amount of driver_adlib cleanup From-SVN: r8361 commit c0d7e10dafd6bd2348c31b26dffb65b122e550cb Author: Evan Ramos Date: Thu Dec 5 05:41:02 2019 +0000 Re-add r_usetileshades This reverts most of r7420. Menus are unchanged. This setting should be left to cvars. This is only a kill switch for the feature. This does not re-add the non-default former mode 1, which requires additional code complexity. See r4459 for more discussion of the difference between modes. From-SVN: r8360 commit 25331665cd78befe394e2265659134b6246fc073 Author: Evan Ramos Date: Thu Dec 5 05:40:58 2019 +0000 Factor tileshades determination into polymost_usetileshades() From-SVN: r8359 commit 196f7c6f02ff7e03779e4248e4a86edc5e0fa4bc Author: Evan Ramos Date: Thu Dec 5 05:40:54 2019 +0000 Fix an error in the removal of r_usetileshades Despite the default mode being 2 and the option being removed, statements reading (r_usetileshades == 1 && !(globalflags & GLOBAL_NO_GL_TILESHADES)) were changed to (!(globalflags & GLOBAL_NO_GL_TILESHADES)) instead of (false). Fortunately, this has no effect with default settings (r_usenewshading == 4). From-SVN: r8358 commit 9f65367e7e3d1758df8da3fd71ad877fe540e0b5 Author: Evan Ramos Date: Thu Dec 5 05:40:50 2019 +0000 Fix GLOBAL_NO_GL_TILESHADES since the implementation of the shader in Polymost Patch from Fox and Nuke.YKT. From-SVN: r8357 commit b48ac0149d6e497903553db088829c47b3b5304d Author: Evan Ramos Date: Thu Dec 5 05:40:46 2019 +0000 Fix the widescreen alignment of weapons when shrinking the screen with + or - (currently disabled by default) Patch from Fox. From-SVN: r8356 commit f1efada53fb42c17e2f9932d30c010cf067791bb Author: Evan Ramos Date: Thu Dec 5 05:40:43 2019 +0000 SW: Avoid a one-pixel tall hall of mirrors above the full status bar From-SVN: r8355 commit 2b51b0e85e239149fe70fe38c609524325f66b75 Author: Evan Ramos Date: Thu Dec 5 05:40:38 2019 +0000 SW: Draw the status bar under the menu instead of over it From-SVN: r8354 commit 83cbd9b8cb85c33802865f5a1720a8af03a8bb0d Author: Evan Ramos Date: Thu Dec 5 05:40:34 2019 +0000 SW: Don't show the status bar during the end of level screen From-SVN: r8353 commit d065b0e2155c8e03ab8d3166eda42ece1a671ac6 Author: Evan Ramos Date: Thu Dec 5 05:40:30 2019 +0000 SW: Left-pin the mini HUD in widescreen From-SVN: r8352 commit cced64af4e1a53ec2a535a9d7e077bd7c7e38313 Author: Evan Ramos Date: Tue Dec 3 09:45:05 2019 +0000 Fix STARTUP_WINDOW=0 on modern macOS From-SVN: r8351 commit c3e59516ac0ea0163b69b90d877d7764c2a8a6b5 Author: Evan Ramos Date: Tue Dec 3 09:45:00 2019 +0000 SW: Move HIT_PLAX_WALL out of the bit range used for limit raised struct IDs From-SVN: r8350 commit 82fd653ce832d355d79ddc6e4d442c76170dac85 Author: Evan Ramos Date: Tue Dec 3 09:44:56 2019 +0000 SW: Activate ASSERT macro with RELEASE=0 builds From-SVN: r8349 commit fbca0b6a7002f72436906c7b68905c47808d873e Author: Evan Ramos Date: Tue Dec 3 09:44:51 2019 +0000 SW: Fix assertions and OOB so that the player can noclip OOB From-SVN: r8348 commit 1e7ceb55b0aa39be8d0df87a80fc913599f30f87 Author: Evan Ramos Date: Tue Dec 3 09:44:46 2019 +0000 SW: Address Sanitization commenceth From-SVN: r8347 commit a9f72a7b298d564b3863cde6e417049c23cebd86 Author: Evan Ramos Date: Tue Dec 3 09:44:42 2019 +0000 SW: Get widescreen aspect working From-SVN: r8346 commit cd3c1e8a0224d78116b8e1bf14021fbe9527448d Author: Evan Ramos Date: Tue Dec 3 09:44:33 2019 +0000 Bgetsysmemsize() 64-bit fix From-SVN: r8345 commit b02a8f3bc7228c97d9ed14b66ffae1ad1670b8f0 Author: Evan Ramos Date: Sat Nov 30 06:11:02 2019 +0000 SW: Take screenshots as PNG, not TGA From-SVN: r8344 commit 25940c3dd0d8dfe3e17239ec33ec58f8ea7f1572 Author: Evan Ramos Date: Sat Nov 30 06:10:58 2019 +0000 SW: Fix cheats only granting one Uzi instead of two From-SVN: r8343 commit a0c306e48c0e108080c207be376b1b65672a756a Author: Evan Ramos Date: Sat Nov 30 06:10:54 2019 +0000 SW: Add Alt Weapon Mode gamefunc and bind it to MOUSE3 by default From-SVN: r8342 commit d34fb7908a1e8ada21b680c3d6b3331beb764adf Author: Evan Ramos Date: Sat Nov 30 06:10:49 2019 +0000 SW: Fix CONTROL_ClearUserInput so menu input is reliable From-SVN: r8341 commit f0339983fa15dbe6b96d0d9f77c52374e966c12f Author: Evan Ramos Date: Sat Nov 30 06:10:44 2019 +0000 SW: Fix NUMGAMEFUNCTIONS and mouse button select menu From-SVN: r8340 commit 5096f9e3bdb2dcf059734f41343138ed39793618 Author: Evan Ramos Date: Sat Nov 30 06:10:40 2019 +0000 SW: Add Equip Pickups weapon auto-switching toggle From-SVN: r8339 commit 7620a6e54b40bf17ad7cea993cb0e22aa6f8fe80 Author: Evan Ramos Date: Sat Nov 30 06:10:33 2019 +0000 SW: Implement Darts option, including bloody frames From-SVN: r8338 commit b0a17de1d90def840a2bea22b82293fbb474b5d4 Author: Evan Ramos Date: Sat Nov 30 06:10:26 2019 +0000 SW: Make quick save and load actually quick From-SVN: r8337 commit 32e1a9678d9adf2ae1d2e1e32499efb7e37b41ab Author: Evan Ramos Date: Sat Nov 30 06:10:21 2019 +0000 SW: Upgrade SoundAngle() from the original 5-bit precision to EDuke32's 7-bit From-SVN: r8336 commit 6d40acccd02e68bc63c938d79277d0c5b51449b2 Author: Evan Ramos Date: Sat Nov 30 06:10:16 2019 +0000 SW: Add debug_break() to _Assert() From-SVN: r8335 commit db82168b46b405b797fd0119cc591c552c7e5274 Author: Evan Ramos Date: Fri Nov 29 07:54:07 2019 +0000 SW: Enable Run mode by default From-SVN: r8334 commit c91398ba3e36f3349e3328e83e01e1e9a015ff5d Author: Evan Ramos Date: Fri Nov 29 07:54:02 2019 +0000 SW: Set up very basic OSD appearance From-SVN: r8333 commit 0eacaa6c5c962de01764b33a27485203344ada8a Author: Evan Ramos Date: Fri Nov 29 07:53:56 2019 +0000 SW: Add Redux's -addon1 and -addon2 command line parameters From-SVN: r8332 commit 88bea2689d235efba231daea1a31e2fa941f1846 Author: Evan Ramos Date: Fri Nov 29 07:53:50 2019 +0000 SW: Add support for loading dependent GRPs -- and Redux's Twin Dragon From-SVN: r8331 commit fda253f7c02840089aebd5ad6999aff09fe91419 Author: Evan Ramos Date: Fri Nov 29 07:53:44 2019 +0000 SW: Port more efficient startup window game data selection infrastructure This includes saving the user's selection to the cfg. From-SVN: r8330 commit 22cbe212ce0c0f664732ec08393f8de70ec36602 Author: Evan Ramos Date: Fri Nov 29 07:53:37 2019 +0000 SW: Update GRP list with more sharewares From-SVN: r8329 commit f7d02dea938c11011026c20110533179192ee87e Author: Evan Ramos Date: Fri Nov 29 07:53:31 2019 +0000 SW: Clean up startup messages From-SVN: r8328 commit 9ba50a7928a6497ae795d15a0cb828b9a7fbb601 Author: Evan Ramos Date: Thu Nov 28 23:22:09 2019 +0000 Clean up sign casts in kplib From-SVN: r8327 commit e9ec8326ec6ae9382ea22ae4c5fe72224bcffbb7 Author: Evan Ramos Date: Thu Nov 28 23:22:05 2019 +0000 SW: Rename the poorly named "Cool Stuff" menu entry to "Credits" and clean it up From-SVN: r8326 commit 5ae66459d30278fb63bc7141c43eca0db3d27789 Author: Evan Ramos Date: Thu Nov 28 23:22:01 2019 +0000 SW: Fix saves Dynamically-allocated structs strike again. From-SVN: r8325 commit 126b2b25df33809a14db01858eb896e1942d088b Author: Evan Ramos Date: Thu Nov 28 23:21:56 2019 +0000 mmulti_null: Fix an error in the the inline header version of initmultiplayers From-SVN: r8324 commit 4dc1af25b4dfe5695bef21cd6fbde01b8c912529 Author: Evan Ramos Date: Thu Nov 28 23:21:51 2019 +0000 Disable xxhash's xxh3 because we don't use it and it generates the following annoying warning on 32-bit: In file included from source/build/src/xxhash.c:1105: source/build/include/xxh3.h:279:41: warning: SSE instruction set disabled, using 387 arithmetics 279 | XXH_mult64to128(xxh_u64 lhs, xxh_u64 rhs) | ^ source/build/include/xxh3.h:393:44: warning: SSE instruction set disabled, using 387 arithmetics 393 | XXH3_mul128_fold64(xxh_u64 lhs, xxh_u64 rhs) | ^ From-SVN: r8323 commit f61b72347313fde451755b0cc8aba0bf163d1301 Author: Evan Ramos Date: Wed Nov 27 07:33:34 2019 +0000 SW: Sanitize all uses of wall.nextwall to prevent OOBs From-SVN: r8322 commit 451abd82177116c8ace83f3bcacc7045f05e04fb Author: Evan Ramos Date: Wed Nov 27 07:33:28 2019 +0000 Menus: Minor cleanup From-SVN: r8321 commit 0e4e356783f0e334540fd950981aaf2b64dbd2eb Author: Evan Ramos Date: Wed Nov 27 07:33:25 2019 +0000 Menus: Fix a bug with mouse cursor position in the keyboard keys menu From-SVN: r8320 commit fbddce74d2d78fcc9c2ce67063d8de6b877dfc81 Author: Evan Ramos Date: Wed Nov 27 07:33:21 2019 +0000 Sort mutex.cpp by preference of implementation and replace Win32 Mutex with CriticalSection From-SVN: r8319 commit ba4448e113fcf2d7b68e5222ae424c9701635f39 Author: Evan Ramos Date: Wed Nov 27 07:33:18 2019 +0000 Add mesa_glthread=true to our automatically enabled threaded optimizations From-SVN: r8318 commit 3f2f26fe8d5c16c617201aa5b5ad5214441974db Author: Evan Ramos Date: Wed Nov 27 07:33:14 2019 +0000 Menus: Fix scrollbar tile clipping Patch from Nuke.YKT. From-SVN: r8317 commit cfef7856feab4e8ee5b95680b8070cc716cb6263 Author: Evan Ramos Date: Wed Nov 27 07:33:11 2019 +0000 Menus: Fix slidebar touch control accuracy Patch from Nuke.YKT. From-SVN: r8316 commit c025ea80357fbd49558ae2a7240e9e825571465e Author: Evan Ramos Date: Wed Nov 27 07:33:08 2019 +0000 Fix buffer overflow in getclosestcol_lim Patch from Nuke.YKT. From-SVN: r8315 commit e407a83250e7f19d5b729c49004f41b865acd6d9 Author: Evan Ramos Date: Wed Nov 27 07:33:04 2019 +0000 Fix tautological comparison in savegame.cpp From-SVN: r8314 commit 01509255db13249d672b820d6183345d03243108 Author: Evan Ramos Date: Wed Nov 27 07:33:00 2019 +0000 SW: Fix Mac and Linux compilation of common.cpp From-SVN: r8313 commit e6c92cc40d768c50abd7a3f415b818524fa96684 Author: Evan Ramos Date: Tue Nov 26 08:25:13 2019 +0000 Templatize the branchless negation method used for GV_FLAG_NEGATIVE From-SVN: r8312 commit 8041539f9bd1e2ae5301535bf255df5e1b812ea4 Author: Evan Ramos Date: Tue Nov 26 08:25:08 2019 +0000 SW: Fix "MV_GetVoice(): bad handle" log spam From-SVN: r8311 commit 88d1bb7ca81710b4ee4c15c305556ffa28cc5d61 Author: Evan Ramos Date: Tue Nov 26 08:25:03 2019 +0000 SW: Fix widescreen flickering in end of level screen From-SVN: r8310 commit 871c5a917b2d281b128ad996d871415b8631470a Author: Evan Ramos Date: Tue Nov 26 08:25:00 2019 +0000 SW: Allow the Run key to Walk when AutoRun is enabled From-SVN: r8309 commit cd0599693295e73fd06d33bd7ad60fbe772a928a Author: Evan Ramos Date: Tue Nov 26 08:24:56 2019 +0000 SW: Fix non-debug builds on Windows From-SVN: r8308 commit e73e3f9da28440d53ade06bc0b1914ba7eeddd28 Author: Evan Ramos Date: Tue Nov 26 08:24:52 2019 +0000 SW: Update the port credits Still far from perfect. From-SVN: r8307 commit da64887a37727ac49793cfd98d2f23c989b20183 Author: Evan Ramos Date: Tue Nov 26 08:24:49 2019 +0000 SW: Copy the sln==1 GetUpperLowerSector case from the editor to the game This avoids upper and lower remaining unmodified. Sector 469 in Seppuku Station causes it! From-SVN: r8306 commit a12d9646df24dd54ba92577a14f235a5db88697b Author: Evan Ramos Date: Tue Nov 26 08:24:45 2019 +0000 SW: Improve the modern key defaults From-SVN: r8305 commit 28c804513b9f6ad47028f6bf4a969da9c19eb590 Author: Evan Ramos Date: Tue Nov 26 08:24:42 2019 +0000 SW: Stop looking for install paths when we find one that works This is because the OGGs included with the 3D Realms Anthology are terrible quality. From-SVN: r8304 commit db088f4660d409b6d7696447ca0543e12436899e Author: Evan Ramos Date: Tue Nov 26 08:24:38 2019 +0000 SW: Fix keyboard input From-SVN: r8303 commit 029e631c23fbfff527c8755f4e35eb0441eb9c64 Author: Evan Ramos Date: Tue Nov 26 08:24:33 2019 +0000 SW: Avoid an OOB in GetUpperLowerSector From-SVN: r8302 commit 2d6e4c7b5e7607f6e831e5232eeb82c083499292 Author: Evan Ramos Date: Tue Nov 26 08:24:29 2019 +0000 Makefile: Add DBGLEVEL so I can set it to 3 and get macros in my symbols From-SVN: r8301 commit dc66a04192e4edabd34bac4831935efbe5780805 Author: Evan Ramos Date: Tue Nov 26 08:24:26 2019 +0000 SW: Fix an assertion failure in palette changing code From-SVN: r8300 commit ca4fcc417eafe949c80ad87712e02d90092b9f26 Author: Evan Ramos Date: Tue Nov 26 08:24:23 2019 +0000 SW: Fix OOB access when viewing a mirror From-SVN: r8299 commit 17c97e1dda32a1cc594cd93bc50d6d648b953f52 Author: Evan Ramos Date: Tue Nov 26 08:24:19 2019 +0000 SW: Fix mouse aiming From-SVN: r8298 commit 3e5857622ccd915ebf7a1427401725d1b0e4c4f1 Author: Evan Ramos Date: Tue Nov 26 08:24:13 2019 +0000 SW: Fix crash if -map is the last parameter From-SVN: r8297 commit 547863663e2b70fd5c7789594001f44ea92b9682 Author: Evan Ramos Date: Tue Nov 26 08:24:10 2019 +0000 Fix the ifcrc token: 0 is a valid CRC32 result! From-SVN: r8296 commit bd0f840861f4a444ea342572800abc8a76efd2cd Author: Evan Ramos Date: Tue Nov 26 08:24:06 2019 +0000 SW: Fix enough OOBs to get in-game From-SVN: r8295 commit 817b971454ac65cbe165ada6600cb6cca55e99c7 Author: Evan Ramos Date: Tue Nov 26 08:24:02 2019 +0000 SW: Fix playing track 0 when entering the sound settings From-SVN: r8294 commit 1ac1b4720e034ecf8983e2df9e16a9215c82160d Author: Evan Ramos Date: Tue Nov 26 08:23:58 2019 +0000 SW: Fix input in menus From-SVN: r8293 commit 0b89be7b3d6525ebfdf7f4c75340e65549758f0e Author: NY00123 Date: Sat Nov 9 21:49:04 2019 +0000 cpuid.cpp: Apply another fix for Mingw-w64 builds From-SVN: r8292 commit 501f8e67a62ed79a926878a091e236a9fce35291 Author: NY00123 Date: Sat Nov 9 21:49:02 2019 +0000 Use fix16_t instead of float for MV volume control. This is otherwise still doing calculations as brought into r7773 from Nuke.YKT. From-SVN: r8291 commit 22cd7df861813705924aa85f17760fe6845a198e Author: NY00123 Date: Sat Nov 9 21:48:59 2019 +0000 Add fix16_fast_trunc_mul and fix16_fast_trunc_mul_int_by_fix16 From-SVN: r8290 commit ec1089bf956f3b860e5d8fe3144d3fb6914fbb07 Author: NY00123 Date: Sat Nov 9 21:48:57 2019 +0000 MV_PlayVOC: Remove assignment of volume, leave it for MV_SetVoiceVolume From-SVN: r8289 commit 41fb32f1a9a3e69dc96cb2a2e0040db9050c146c Author: NY00123 Date: Sat Nov 9 21:48:56 2019 +0000 Fix HAVE_FLAC=0 HAVE_VORBIS=0 builds From-SVN: r8288 commit 66e02c058427384b1f8b71eb9f13836d122d1d0e Author: Evan Ramos Date: Fri Nov 8 04:36:46 2019 +0000 Fail. Note to self: Use the correct variable. From-SVN: r8287 commit 929af8e9bf283604d3b466c311d087372799df28 Author: Evan Ramos Date: Fri Nov 8 04:23:18 2019 +0000 Add GOG Linux path detection Thanks to Jan200101 for showing how to do this. From-SVN: r8286 commit b049217f4c880287a7a4a7cf44554013110244a7 Author: Evan Ramos Date: Fri Nov 8 04:23:14 2019 +0000 Clean up Linux/Mac Steam path detection From-SVN: r8285 commit 57cbc17b83e075034b4538f74df153143a327a07 Author: Evan Ramos Date: Fri Nov 8 04:23:09 2019 +0000 Update .gitignore From-SVN: r8284 commit 618a273c47a6ad7b56015cbdd03693c5ef63742a Author: Evan Ramos Date: Fri Nov 8 04:23:06 2019 +0000 SW, KenBuild: Replace strupr with Bstrupr From-SVN: r8283 commit 66f1146bf8739e98ea633c14749702946a1e2f56 Author: Evan Ramos Date: Fri Nov 8 04:23:02 2019 +0000 SW: Replace UCHAR with unsigned char From-SVN: r8282 commit 385dd4082528f53662f1be0998e742be470857b6 Author: Evan Ramos Date: Fri Nov 8 04:22:58 2019 +0000 SW: Replace MAXLONG with INT32_MAX From-SVN: r8281 commit 255f127c0bc79ebc5425f883e11dac1351eb108f Author: Evan Ramos Date: Fri Nov 1 03:12:11 2019 +0000 Move audiolib's drivers.h from include to src From-SVN: r8280 commit b83513b5199ce871866a8b1f8a128ef22d3374bc Author: Evan Ramos Date: Fri Nov 1 03:11:49 2019 +0000 KenBuild: Fix unused global variables From-SVN: r8279 commit 64d40a7f5ee7d651a12afecfd82eba174d368154 Author: Evan Ramos Date: Fri Nov 1 03:11:46 2019 +0000 Replace zpl_*fence in RDTSC code The Windows definitions of zpl_*fence contain an error: _Read/WriteBarrier apply only to the compiler, not the processor. This commit improves the portability and correctness of the serialization taking place before RDTSC. From-SVN: r8278 commit 7abe15e8c2d2a25d118dee66b5bc3f520addb123 Author: Evan Ramos Date: Fri Nov 1 03:11:42 2019 +0000 Replace zpl_yield_thread in DirectSound driver The PAUSE instruction it issues on x86 tells hyperthreading processors to deprioritize the current instruction stream and is often used for spinlocks. The Apple implementation is erroneous: a compiler-level memory fence that compiles to nothing. Replace it with SwitchToYield, which tells the OS to context switch, as intended. From-SVN: r8277 commit f22170c28315179e0603f898846d1780e06e56f0 Author: Evan Ramos Date: Fri Nov 1 03:11:38 2019 +0000 Remove -Wno-deprecated-declarations Passing this in for the entire build process is dangerous. If a deprecated declaration can't be fixed, use pragmas to silence it specifically. From-SVN: r8276 commit 95193f697e1655640c23d1a2c0658059cb92b553 Author: Evan Ramos Date: Wed Oct 30 05:52:13 2019 +0000 Remove manual calls to uninitsystem because it is passed to atexit() and can cause double-frees. From-SVN: r8275 commit ec939a132ea3e5ea73bc5611b764a04507eddcb4 Author: Evan Ramos Date: Wed Oct 30 05:52:09 2019 +0000 Use exit, not Bexit, if not an error termination Bexit is ONLY for errors. Otherwise, in debug builds OSD_Printf tries to print Bexit's debug info to a closed osdlog. From-SVN: r8274 commit c2761299c437eb8419ab939cfbae6b990e3498e6 Author: Evan Ramos Date: Wed Oct 30 05:52:04 2019 +0000 Clean up the huge portability regressions caused by the introduction of ZPL and dependent features. This massively guts zpl.h: everything we don't use. It also improves the portability of the things we do use. See zpl.h for why keeping the entire library is unacceptable. Some notes: Intel, or more specifically x86, is an architecture, not a platform. The uses of zpl_vm_alloc functions contained a regression in that unlike the X-prefixed allocation functions, no checking of the return value was performed. Moreover, the new Bgetpagesize incorrectly used the zpl_virtual_memory_page_size API, causing the value returned to be dwAllocationGranularity instead of dwPageSize on Windows! timerInit contained a compilation error on "MIPS". The introduction of sysReadCPUID() broke linking on everything but x86. Any symbol containing two successive underscores is reserved, so don't use that for include guards. From-SVN: r8273 commit 40e6462cb6b171fd110f1924dbfaa82534d48fa0 Author: Evan Ramos Date: Wed Oct 30 05:51:58 2019 +0000 SW: Fix 3D Realms and ANM palettes From-SVN: r8272 commit 9163d89219cfff1a83b0bd9053f888e0b4e47bcc Author: Evan Ramos Date: Wed Oct 30 05:51:53 2019 +0000 SW: Fix MIDI music From-SVN: r8271 commit 51d59c91a6d977f2d101e03ff41940fb3d3bdbf7 Author: Evan Ramos Date: Wed Oct 30 05:51:49 2019 +0000 SW, KenBuild: When exiting, uninit sound before the engine From-SVN: r8270 commit 13e9ac7cd39b9558dd496478489bcf29cc30ef8e Author: Evan Ramos Date: Wed Oct 30 05:51:44 2019 +0000 SW: Fix file loading and init sequence From-SVN: r8269 commit abee0e94314e0944f612014cff34d9f783d2aae5 Author: Evan Ramos Date: Wed Oct 30 05:51:39 2019 +0000 Move registry reading to engine From-SVN: r8268 commit 4cf905280fd0817f41eab9e7e64b97a1336af262 Author: Evan Ramos Date: Wed Oct 30 05:51:34 2019 +0000 Move VDF parsing to engine From-SVN: r8267 commit 9d08c9a58a9f42c3d1af51c179ac2f474f640db5 Author: Evan Ramos Date: Wed Oct 30 05:51:29 2019 +0000 Add sound and music code for Ken-Build Patch from Nuke.YKT. From-SVN: r8266 commit ac164d4de9ca72b72ecf819eab65908b4dc1ebdc Author: NY00123 Date: Sat Oct 26 16:35:08 2019 +0000 Make the secondary backslash key of the standard 102-keys PC keyboard layout, also known as a "less than" key, usable. This is the key generally sitting in-between the left shift and Z keys, for the 102-keys QWERTY layout. From-SVN: r8265 commit 54e58b1dddec8de48423c25aa3f77a49a26585a7 Author: NY00123 Date: Sat Oct 26 16:35:06 2019 +0000 Fix SDL 1.2 build of sdlayer.cpp and apply minor changes to sdlayer12.cpp From-SVN: r8264 commit cc52920984ef7a23765e22bedae201e05c9e60df Author: NY00123 Date: Sat Oct 26 16:35:04 2019 +0000 Fix SDL 1.2 build of timer.cpp From-SVN: r8263 commit 34db0c3f85a2c3cdf7865482ac26d419b486b514 Author: Evan Ramos Date: Thu Oct 24 05:47:33 2019 +0000 SW: Load swtimbr.tmb From-SVN: r8262 commit e82fd0b9ad431b5c57e085cd90c55b13d31aba2a Author: Evan Ramos Date: Thu Oct 24 05:47:29 2019 +0000 Add MIDI_GetDevice and use it so that the default driver value doesn't show as "Custom" in the menu From-SVN: r8261 commit 4f15cf3e23fb5fc6c1c7f642ea9297dad3db31ec Author: Evan Ramos Date: Thu Oct 24 05:47:24 2019 +0000 Fix calls to FX_ErrorString and MUSIC_ErrorString From-SVN: r8260 commit 7f8085e0285b68e07159172371ce1536f1ae0fe7 Author: Evan Ramos Date: Thu Oct 24 05:47:15 2019 +0000 Prefer early return on error in sound and MIDI init functions From-SVN: r8259 commit 5330a3774a278011eb317c312f9aa7a0cdad06fa Author: Evan Ramos Date: Thu Oct 24 05:47:11 2019 +0000 Prefer "MIDI driver" to "Music device" From-SVN: r8258 commit 8fab5756554e47caee4f7560352b2f09fd1e7ffa Author: Evan Ramos Date: Thu Oct 24 05:47:06 2019 +0000 Remove second EMIDICard / ForceEMIDI parameter from MUSIC_Init which only served to clobber the value entered using the cvar From-SVN: r8257 commit 6f24829ce3672580f3ef8857024a70ae953e01c9 Author: Evan Ramos Date: Thu Oct 24 05:47:02 2019 +0000 Remove duplicate mus_emidicard from osdcmds.cpp From-SVN: r8256 commit 75bffdafb6539380d650a314e7f2d7eefcbee405 Author: Evan Ramos Date: Thu Oct 24 05:46:59 2019 +0000 Initialize sound before music From-SVN: r8255 commit 6888b7ebbb43e667c828fbbeed04496d60d172a0 Author: Evan Ramos Date: Thu Oct 24 05:46:54 2019 +0000 Remove obsolete comments now that the MIDI objects are back in their rightful location From-SVN: r8254 commit 634f5eefd174c3e2f2fd37fe359386e878ec119f Author: Evan Ramos Date: Thu Oct 24 05:46:45 2019 +0000 Fix mutex implementation with SDL 1.2, broken in r7907 From-SVN: r8253 commit f3c340ef89e8e98d64dd144dac4daa37ee7a98c8 Author: Evan Ramos Date: Thu Oct 24 05:46:40 2019 +0000 Revert r8159 but disable the code from being compiled because documentation is good. From-SVN: r8252 commit c1b9151b9f1b21ff03bf6b21c4532264b96e9256 Author: Evan Ramos Date: Thu Oct 24 05:46:36 2019 +0000 Revert r8150 and reinstate the SDL_Joystick API with SDL2 It is necessary for devices with more axes or buttons than those found on the Xbox 360 controller. From-SVN: r8251 commit 61d2581b064f4c1ce608a3a0d8ff75053d05060c Author: Evan Ramos Date: Thu Oct 24 05:46:32 2019 +0000 The point of getting these compiling was so that I wouldn't have to keep unbreaking them. From-SVN: r8250 commit 3aef21b11b48cfe4a15f9bd852e18f13e066861e Author: Evan Ramos Date: Thu Oct 24 05:46:24 2019 +0000 MSVC project file for Ken-Build Patch from Nuke.YKT. From-SVN: r8249 commit 103029d9e2edf748df5c50f021db289f1c967088 Author: Richard Gobeille Date: Mon Oct 21 13:56:35 2019 +0000 Fix keyboard layout change console message and make sure windowsPlatformCleanup() gets called from uninitsystem() From-SVN: r8248 commit 1ad61337a833cd56025a6e13c424fbca51b131c3 Author: Richard Gobeille Date: Mon Oct 21 11:27:47 2019 +0000 I swear, the amount of trivial differences between toolchain setups drives me up the wall sometimes From-SVN: r8247 commit c66eaf8c01fe5458fef1003c5005d94ff9dc6cf3 Author: Richard Gobeille Date: Mon Oct 21 11:27:27 2019 +0000 Use stat() instead of fopen() to detect existing files when saving screenshots From-SVN: r8246 commit a7ef5310e8ceb435c80ecd1d4ef5f24c2df3a120 Author: Richard Gobeille Date: Sun Oct 20 17:55:35 2019 +0000 This helps the player not fall off of the edges of certain types of moving sectors as easily From-SVN: r8245 commit 4e0ec8f5dbdfaa30e34169be01443f3c4d771c55 Author: Richard Gobeille Date: Sun Oct 20 17:55:32 2019 +0000 Don't activate gamefunc_Toggle_Crouch if cheat_phase is non-zero From-SVN: r8244 commit 77584dc4dfc0abf2281e4e7fa34cd5d864c5e065 Author: Richard Gobeille Date: Sun Oct 20 17:55:28 2019 +0000 This fixes most issues with the player clipping through the walls of rotating sectors From-SVN: r8243 commit 113fa71d48be711d485a0b7eb856cb69caeeba29 Author: Richard Gobeille Date: Sun Oct 20 17:55:24 2019 +0000 Prefer assignment of .vec2 union inside vec3_t instead of explicitly assigning .x and .y members From-SVN: r8242 commit 7bfa754762dcedd545e906848e075617c8a497d6 Author: Richard Gobeille Date: Sun Oct 20 17:55:20 2019 +0000 Band-aid fix for Duke3d E4L4 map "corruption" The map isn't necessarily "corrupt", but it has a large water sector with half a dozen different SE7 teleporter sprites in it, of which all but one have destination SE7 sprites that are constantly moving while the matching SE7 in the large sector stays in place. When you teleport, the game code picks one. It doesn't always pick the one that matches. Yeah, OK, it never picks the one that matches. The area is a total clusterfuck. From-SVN: r8241 commit c56642bd97fdea34c8545ef86e1b9a0594e592e0 Author: Richard Gobeille Date: Sun Oct 20 11:41:58 2019 +0000 Boost OPL3 output to about the level of WinMM From-SVN: r8240 commit d1e91ea0a73acac657ec04e65e2fd0e3e99f8374 Author: Richard Gobeille Date: Sun Oct 20 11:41:54 2019 +0000 Retain friendly names for audiolib drivers disabled at compile time From-SVN: r8239 commit a9e30eb9508259f669bcc5b845323020fca3217a Author: Richard Gobeille Date: Sun Oct 20 11:41:50 2019 +0000 Add mus_al_additive to control the behavior mentioned in r8232 and rename mus_adlibstereo to mus_al_stereo From-SVN: r8238 commit b636dcd228eda2b04911c49214509fe8b0c4e020 Author: Richard Gobeille Date: Sun Oct 20 11:41:45 2019 +0000 Better stereo suppport in OPL3 emulator Patch from Nuke.YKT From-SVN: r8237 commit c912e84bd993136ccbe1db2cf88529e06539cea2 Author: Richard Gobeille Date: Sun Oct 20 11:41:41 2019 +0000 Fix issue with tempo when changing back and forth between OPL3 and WinMM MIDI output From-SVN: r8236 commit 4fb01ff3aee560512fa9e533433b658654d9a255 Author: Richard Gobeille Date: Sun Oct 20 11:41:37 2019 +0000 Fix incorrect cvar help string From-SVN: r8235 commit 62cf8165f633affbed1b1c9e407751ef9c072cba Author: Richard Gobeille Date: Sun Oct 20 03:13:19 2019 +0000 Apparently, a long while back when I limited snd_numvoices to 128 I forgot to change the menu to reflect it From-SVN: r8234 commit 3c90d9ee3d683f38392ffc58be9dd7db74f3db93 Author: Richard Gobeille Date: Sun Oct 20 03:13:15 2019 +0000 Fix mus_adlibstereo From-SVN: r8233 commit 1ca771e848a4636d99c1ef471e3115738c18f60a Author: Richard Gobeille Date: Sun Oct 20 02:40:01 2019 +0000 Revert a copy/paste error fix in the AdLib code because the fixed version doesn't work right with the timbres Blood ships with From-SVN: r8232 commit 8b31d171afc40afa24fef871d3c211ef36e55d6e Author: Richard Gobeille Date: Sun Oct 20 02:28:05 2019 +0000 Fix AdLib timbre loading From-SVN: r8231 commit 9b393bb2421ab6c583a6dd4a19445a0cb3e4e81c Author: Richard Gobeille Date: Sun Oct 20 02:28:01 2019 +0000 Fix min/max values for audiolib cvars From-SVN: r8230 commit 178febc54b8b59bd04efe28bc6705d9f3b21ca8c Author: Richard Gobeille Date: Sun Oct 20 00:18:16 2019 +0000 I thought this would work but I'm stupid :D From-SVN: r8229 commit 0e8c6c01fa593cf6cfd5516a694dff0d26e41dd8 Author: Richard Gobeille Date: Sat Oct 19 23:49:02 2019 +0000 Tweak the priority classes set by win_priorityclass From-SVN: r8228 commit 10694d883bda4bd2dadaddb62ede3ad5b39950b3 Author: Richard Gobeille Date: Sat Oct 19 23:48:59 2019 +0000 Fix issue causing maps to sometimes fail to load From-SVN: r8227 commit 226ef991c50610ddbd61e75ec1bcf072a50b8f36 Author: Richard Gobeille Date: Sat Oct 19 23:48:55 2019 +0000 Band-aid fix an issue with the tile packer preventing MSVC builds from working From-SVN: r8226 commit 532cd5e4b72969b1fda69deaf103866d7ff8b2ee Author: Richard Gobeille Date: Sat Oct 19 23:48:51 2019 +0000 Prefer uint32_t over unsigned int From-SVN: r8225 commit eebc62b7b4f3fc4b82a6b8412807872f877c2dfb Author: Richard Gobeille Date: Sat Oct 19 23:48:44 2019 +0000 The constening From-SVN: r8224 commit 726f9ff816646209b9a749d552548d7dca7293ae Author: Richard Gobeille Date: Sat Oct 19 23:48:40 2019 +0000 Add mus_adlibstereo cvar to enable and disable AdLib stereo mode From-SVN: r8223 commit 87a2c384450d035cf85dde1ca90e1e5fa9b9bd89 Author: Richard Gobeille Date: Sat Oct 19 23:48:35 2019 +0000 Add a cvar array for audiolib From-SVN: r8222 commit 41380edcbebf491472a47051e315b8c75d927eb0 Author: Richard Gobeille Date: Sat Oct 19 23:48:31 2019 +0000 Further small midi cleanup changes--nothing functional From-SVN: r8221 commit 12b2e74e1e475b28e35e814a64f2d223762ec7a4 Author: Richard Gobeille Date: Sat Oct 19 23:48:26 2019 +0000 Further AdLib cleanup... leaving this in a separate commit in case I fucked something up From-SVN: r8220 commit 16c03bf5d27639aa29bf9f59b5d13da6ee4ac39f Author: Richard Gobeille Date: Sat Oct 19 23:48:20 2019 +0000 Further audiolib work... I think this is almost done! From-SVN: r8219 commit e91c50ef556e79b4887ea58e9d255edd7bff5cce Author: Richard Gobeille Date: Sat Oct 19 23:48:08 2019 +0000 More audiolib work From-SVN: r8218 commit 072317340a2bb44b8ef1485821d9b92231665ee2 Author: Richard Gobeille Date: Sat Oct 19 23:47:59 2019 +0000 Sort lists of things in the makefile I'm not gonna lie, I got some kind of weird OCD pleasure out of this. From-SVN: r8217 commit 02121c834cb1fa98276403bed58159da506bac72 Author: Richard Gobeille Date: Sat Oct 19 23:47:54 2019 +0000 Audiolib rework WIP This attempts to rectify the differences between versions of JFAudiolib created after we forked the code, and the extra features contained in Nuke.YKT's fork of our version. From-SVN: r8216 commit 1f45e4a63056ba513bcc111ed448bafeb3fdc764 Author: Richard Gobeille Date: Sat Oct 19 23:47:42 2019 +0000 New files for audiolib This is in a separate commit just to make the changes to existing files easier to go through. From-SVN: r8215 commit baaf1653a7a39af0f81d336a27af7923668c39ba Author: Richard Gobeille Date: Sat Oct 19 23:47:29 2019 +0000 Use SDL audiolib driver on Windows This shitcans the SDL_mixer requirement but leaves platforms other than Windows without built-in MIDI playback capability until Nuke.YKT's OPL3 emulator is merged. This also reworks sdlmusic.cpp into music_external.cpp, including an untested port of the code to Windows. From-SVN: r8214 commit c143e4581402f8a5c617d737aa9bd1456e225639 Author: Richard Gobeille Date: Sat Oct 19 23:47:19 2019 +0000 Misc audiolib cleanups From-SVN: r8213 commit f873fe0021b216f96ad4e28756ed95e3fee024aa Author: Richard Gobeille Date: Sat Oct 19 23:47:12 2019 +0000 Add snd_tryformats cvar to disable automatic loading of .ogg and .flac versions of sound and music From-SVN: r8212 commit 8a644814eebf5867cdf0d7f65a6e07dfd74aae15 Author: Richard Gobeille Date: Sat Oct 19 23:47:08 2019 +0000 With MinGW GCC, you get a different __cpuid() depending on whether or not you include cpuid.h. That is strange. This fixes sysReadCPUID() to work on more than just Windows. From-SVN: r8211 commit a58be4e5666cdbe737a38d013d3608e863978577 Author: Richard Gobeille Date: Sat Oct 19 23:47:04 2019 +0000 Add -Wno-deprecated-declarations to the warnings for GCC 9 and up From-SVN: r8210 commit e41ba920bb72b8bac28a3638a2663b305f2108dc Author: Richard Gobeille Date: Sat Oct 19 23:47:01 2019 +0000 Remove Android.mk From-SVN: r8209 commit 145f225be7f327adaeb01aa2ae0b3a5220f6ad78 Author: Richard Gobeille Date: Sat Oct 19 23:46:58 2019 +0000 Fix tiny header issue From-SVN: r8208 commit 71650a431fa843b348615e667cb5b2d4c2140f60 Author: Richard Gobeille Date: Sat Oct 19 23:46:54 2019 +0000 Don't try videoSetGameMode() if there aren't any valid modes From-SVN: r8207 commit dd365741dfbd42483c82a8c14398e2f0f7b7762b Author: Richard Gobeille Date: Sat Oct 19 23:46:50 2019 +0000 Patch from Nuke.YKT to fix polygon leakage issue with NPOT skies in Polymost From-SVN: r8206 commit 55f9aaaee7b17031b9eabaf324e36125b08a7ea7 Author: Richard Gobeille Date: Sat Oct 19 23:46:46 2019 +0000 Bump default cache1d size to 128MB in the editor and add support for the cachesize def token From-SVN: r8205 commit 76dc26140f81b6fd637edc1719ead125739e69db Author: Richard Gobeille Date: Sat Oct 19 23:46:41 2019 +0000 cache1d rework This turns cache1d into a reusable class that can be used to implement multiple caches for different types of data. Also adds a "cacheinfo" console command that prints out some statistics about the cache. From-SVN: r8204 commit 18a9bea4896f16792a247daae4f37aabe352c480 Author: Richard Gobeille Date: Sat Oct 19 23:46:34 2019 +0000 Move DEBUG_ALLOCACHE_AS_MALLOC crap to the bottom of cache1d.cpp instead of having preprocessor garbage in every function From-SVN: r8203 commit cf9db638d34bae76d2bfedd92bbdee64cd8c31fa Author: Richard Gobeille Date: Sat Oct 19 23:46:30 2019 +0000 This seems like it should be allocated permanently (value 255) instead of merely marked as locked (value 200) There doesn't seem to be any functionality implemented to re-load voxels if they're removed from the cache, and blocks marked as locked can still be pushed out of the cache if the cache is full and a large allocation won't fit anywhere else. From-SVN: r8202 commit b2411b6d1e7a3098eb2636a51e42fb44c8c95104 Author: Richard Gobeille Date: Sat Oct 19 23:46:26 2019 +0000 Better cache1d enums plus some general cache1d maintenance Renamed variables, added usage of said enums, etc. From-SVN: r8201 commit c5d221cd8a6902e83804d16ba9e3cb206457006e Author: Richard Gobeille Date: Sat Oct 19 23:46:17 2019 +0000 Speed up G_ReadGLFrame() by just grabbing a chunk of memory from cache1d instead of doing a huge malloc() From-SVN: r8200 commit f6c259284a47f78f2506a7be90d5f3d098ce13b3 Author: Richard Gobeille Date: Sat Oct 19 23:46:12 2019 +0000 Separate the filesystem portion of cache1d.cpp and move it into vfs.cpp Yes, the engine tools (kextract, etc) still compile. From-SVN: r8199 commit ac35304e133508af0960c24ede032e014d8a336e Author: Richard Gobeille Date: Sat Oct 19 23:46:04 2019 +0000 Fix misplaced files in VS solution filters From-SVN: r8198 commit 6dfad9800a79bce7ea8e92b9f02ccb42a19d7299 Author: Richard Gobeille Date: Sat Oct 19 23:46:00 2019 +0000 audiolib: pull memory for vorbis_data struct from cache1d This gets rid of one calloc() and free() per vorbis voice playback, and most of the time allows reuse of the block from cache1d across multiple uses of the VoiceNode. From-SVN: r8197 commit 006b448d6558e8f2979d036c63e9370583bc7369 Author: Richard Gobeille Date: Sat Oct 19 23:45:56 2019 +0000 Add CACHE1D_ENTRY_FREE and CACHE1D_ENTRY_PERMANENT enums From-SVN: r8196 commit e5f19941f286d42cef7d410c5ae58133adf37d52 Author: Richard Gobeille Date: Sat Oct 19 23:45:49 2019 +0000 Wait to run G_MoveLoop() until a frame has just been rendered This should give G_MoveLoop() a better chance to not run past the time when another frame is to be drawn. From-SVN: r8195 commit 373fa128faf1420a1e4390bc8c75b58e6723dec8 Author: Richard Gobeille Date: Sat Oct 19 23:45:45 2019 +0000 Silence a warning From-SVN: r8194 commit fa455072b2721c01ba390e92fccd2f5fc9600c2c Author: Richard Gobeille Date: Sat Oct 19 23:45:41 2019 +0000 Replace usages of deprecated LZ4_decompress_fast() API with LZ4_decompress_safe() as recommended by current LZ4 documentation From-SVN: r8193 commit 1c1bb06a35858c0fed16ad4ffe937ba4bf590227 Author: Richard Gobeille Date: Sat Oct 19 23:45:36 2019 +0000 Add #pragma once to debugbreak.h and remove it from separate inclusion in a couple of translation units as we're including it directly in compat.h now From-SVN: r8192 commit bdb9bbe810198b1c1479b6b8823af161659a22c8 Author: Richard Gobeille Date: Sat Oct 19 23:45:31 2019 +0000 Add fatal_exit(), a slightly different method of terminating the process upon error On Windows, this writes an event to the system event log for later retrieval. From-SVN: r8191 commit fe68c9859716a0d538c36f427fe24000f837946a Author: Richard Gobeille Date: Sat Oct 19 23:45:24 2019 +0000 Use EXIT_FAILURE and EXIT_SUCCESS from stdlib.h when calling exit() From-SVN: r8190 commit 3c4d7a7032afb9cfcd8a44bbab96fd96d6f63f97 Author: Richard Gobeille Date: Sat Oct 19 23:45:18 2019 +0000 Use zpl_virtual_memory_page_size() to implement our Bgetpagesize() From-SVN: r8189 commit f84c69e604962534b110b9ff232512c8f50afff6 Author: Richard Gobeille Date: Sat Oct 19 23:45:14 2019 +0000 Make Bgetsysmemsize() return size_t From-SVN: r8188 commit 04bc2876f052f9ecc8b2f43f286fb13ffe9e9017 Author: Richard Gobeille Date: Sat Oct 19 23:45:10 2019 +0000 Use zpl_vm (backed by VirtualAlloc or mmap) for larger memory chunks From-SVN: r8187 commit 3fe144655a2079e2265cde6a257e26ae7b73778a Author: Richard Gobeille Date: Sat Oct 19 23:45:06 2019 +0000 Update LZ4 to e8baeca51ef2003d6c9ec21c32f1563fef1065b9 From-SVN: r8186 commit 4ff06e99d00f14b00c762eca161ff35c4bc81be6 Author: Richard Gobeille Date: Sat Oct 19 23:45:01 2019 +0000 Update xxHash to 1ea98d6a38300f7224869de856a876a2050cdf78 From-SVN: r8185 commit 08fc7374c418bc807ae17809d15aa3d5dcb07016 Author: Richard Gobeille Date: Sat Oct 19 23:44:57 2019 +0000 Add const to dest parameter of MV_Reverb() From-SVN: r8184 commit 3e7caa1eb8c254edb62c0543de31dcabdffa47f8 Author: Richard Gobeille Date: Sat Oct 19 23:44:53 2019 +0000 Use templates for audiolib mixing functions Patch from NY00123. From-SVN: r8183 commit e2ae54a0cc94e6723165f39fa85afbf45714e0d4 Author: Richard Gobeille Date: Sat Oct 19 23:44:48 2019 +0000 This lets sys_timer mode 4 (rdtsc) work on ARM ...probably From-SVN: r8182 commit d15e400b42b9f6cd1a46070c02acfe2d2d078c18 Author: Richard Gobeille Date: Sat Oct 19 23:44:45 2019 +0000 Fix issue with crouch toggle and jetpack From-SVN: r8181 commit d1682304487b0da1cf4db769400b45c44f0940e5 Author: Richard Gobeille Date: Sat Oct 19 23:44:41 2019 +0000 Explicitly yield audio data fill thread when work is finished From-SVN: r8180 commit 58cdcca1534839c726922aa5d31dd2ec5fb1b90a Author: Richard Gobeille Date: Sat Oct 19 23:44:36 2019 +0000 Add portions of the ZPL library, a public domain collection of useful helper functions and structures See https://github.com/zpl-c/zpl I'm not including all of it, but I have plans for some of what is there. From-SVN: r8179 commit 4dc2d5bab4bd3ef621aed8ffbaa3935d46a4bdd7 Author: Richard Gobeille Date: Sat Oct 19 23:44:30 2019 +0000 Remove limit of MAXCACHEOBJECTS in favor of dynamic allocation/expansion of the cache index Somewhat based on a patch from Doom64hunter. From-SVN: r8178 commit ecc6240c97cdf6b62fa7117b96a65a59c75c1619 Author: Richard Gobeille Date: Sat Oct 19 23:44:26 2019 +0000 Make the lock ptr the first member of the cactype struct as it's the most accessed From-SVN: r8177 commit 7605a9a0bd5e1d301dc565d3bc6bb595cb31ee31 Author: Richard Gobeille Date: Sat Oct 19 23:44:22 2019 +0000 These changes are on top of the enet.h from the previous commit and are what I needed to build under MSYS2 without warnings or errors From-SVN: r8176 commit 466fe5d57d64acf880819d2ef1463910a1683dbc Author: Richard Gobeille Date: Sat Oct 19 23:44:15 2019 +0000 Swap out our old deprecated version of ENet for a single-file header-based fork, including features like IPv6 support From-SVN: r8175 commit b7637b896fe8218cbe343402f308d23f54fb39a9 Author: Richard Gobeille Date: Sat Oct 19 23:44:03 2019 +0000 Significant reworks to everything in winbits.cpp Important cvars after this commit: sys_timer win_systemtimermode win_priorityclass From-SVN: r8174 commit 9be534671ca686dd94dd1a0489307c2dcbdf349b Author: Richard Gobeille Date: Sat Oct 19 23:43:55 2019 +0000 Add missing header to VS project From-SVN: r8173 commit 3b6ce2dc86854ae6798e1540212ffbed0ac63d5f Author: Richard Gobeille Date: Sat Oct 19 23:43:51 2019 +0000 Add cvar to control ntdll.dll timer voodoo From-SVN: r8172 commit 947f3052c223a58e0dda9c74f0cd22767d1814d1 Author: Richard Gobeille Date: Sat Oct 19 23:43:46 2019 +0000 Implement sys_timer cvar with several different choices of timers to control frame pacing From-SVN: r8171 commit d8db202ba3d18a71c07c4e1df42268f7bdd0c1ea Author: Richard Gobeille Date: Sat Oct 19 23:43:38 2019 +0000 This is useless From-SVN: r8170 commit 6e8e9ae3520f3a2cd318cd7e09f85a7260d6df24 Author: Richard Gobeille Date: Sat Oct 19 23:43:35 2019 +0000 Rename timerUpdate() and timerGetRate() to timerUpdateClock() and timerGetClockRate(), because they both only apply to totalclock From-SVN: r8169 commit 2d391932cafc793b67d1763af76f5a7f46e3cc3a Author: Richard Gobeille Date: Sat Oct 19 23:43:30 2019 +0000 Use nanosleep instead of usleep From-SVN: r8168 commit 82e889d19ad87c13a4b8556189f92c4785d39738 Author: Richard Gobeille Date: Sat Oct 19 23:43:26 2019 +0000 Patch from Doom64hunter to address a couple of issues with per-map art From-SVN: r8167 commit a64907383beb6ac0715769679c32b2adc211cd3d Author: Richard Gobeille Date: Sat Oct 19 23:43:22 2019 +0000 Renderer sprite sorting patch from Nuke.YKT From-SVN: r8166 commit 384c5308d7c6f509704043ea3c84af011417aab1 Author: Richard Gobeille Date: Sat Oct 19 23:43:18 2019 +0000 Explicitly implement timerGetTicksU64() with chrono::high_resolution_timer and use chrono::steady_clock for regular timerGetHiTicks() and totalclock From-SVN: r8165 commit beb63551dc19da7637f2dc768fa358423c0fb90b Author: Richard Gobeille Date: Sat Oct 19 23:43:15 2019 +0000 Recalculate frame limiter delay every time a frame is drawn This is an attempt to work around issues that arise when timerGetTicksU64() isn't monotonic. Timing situations like that shouldn't happen, but some systems have pretty messed up configurations. From-SVN: r8164 commit c9fea109efc31dc56a6cc93f0993849c7ede53eb Author: Richard Gobeille Date: Sat Oct 19 23:43:11 2019 +0000 Let's try something different for r_swapcomplete From-SVN: r8163 commit fd32a67cdecc315578bfc570de88f06c79464e1b Author: Richard Gobeille Date: Sat Oct 19 23:43:07 2019 +0000 Remove obsolete win_uninit() function From-SVN: r8162 commit fb371e876ff875e0cea704ca473ac4b7d9e0318f Author: Richard Gobeille Date: Sat Oct 19 23:43:02 2019 +0000 Disable SDL's built-in signal handler From-SVN: r8161 commit 6a0824c93a72f09a712a19eb37a3bdb47ec76ae0 Author: Richard Gobeille Date: Sat Oct 19 23:42:59 2019 +0000 Call debug_break() from attach_debugger_here() in builds with DEBUGGINGAIDS enabled From-SVN: r8160 commit b5c7b94289eef988d8d386ba6dff7ae370b3519b Author: Richard Gobeille Date: Sat Oct 19 23:42:55 2019 +0000 This old 3dfx and SiS hardware isn't capable of running our GL renderer and never will be From-SVN: r8159 commit b1a6c61085842014bacaedba14557bb1a76bf0af Author: Richard Gobeille Date: Sat Oct 19 23:42:51 2019 +0000 Equivalent to jfbuild commit b6a666745cea21c6f8193b046bcdd0636fb7c166 From-SVN: r8158 commit ba63b70176ba1da6b7b1db527bcf8ddf93b26bf6 Author: Richard Gobeille Date: Sat Oct 19 23:42:47 2019 +0000 Simplify SDL subsystem init a little From-SVN: r8157 commit 9fa96f9049d0d806b1c20056934469ede541da01 Author: Richard Gobeille Date: Sat Oct 19 23:42:44 2019 +0000 Rename BUILD_xxx debug env vars to EDUKE32_xxx Add EDUKE32_NO_NVIDIA_THREADED_OPTIMIZATIONS for Linux and EDUKE32_NO_XINPUT for Windows From-SVN: r8156 commit a9d0128d7c4089214ad7bd8fb57fb6b08ef895fa Author: Richard Gobeille Date: Sat Oct 19 23:42:39 2019 +0000 Don't send a mouse event when clicking to re-focus the game window From-SVN: r8155 commit 159039c31a00146d1961c1d3f51e8ce77ee0874f Author: Richard Gobeille Date: Sat Oct 19 23:42:36 2019 +0000 Fix oversight where the check for whether the loaded version of SDL is new enough was never updated for SDL2 From-SVN: r8154 commit d98f16b66aed7771505d2a2d8785f3613694f15f Author: Richard Gobeille Date: Sat Oct 19 23:42:32 2019 +0000 GLU isn't loaded with SDL, so calling SDL_GetError() here is pretty useless From-SVN: r8153 commit 20760fbc3e480a77e3da2633c2841e83ed174e75 Author: Richard Gobeille Date: Sat Oct 19 23:42:28 2019 +0000 Use aligned allocation for the block gamecontrollerdb.txt is read into I know, unnecessary. From-SVN: r8152 commit 6cfc9048790fdc837d70b3dd1120cad0935ca294 Author: Richard Gobeille Date: Sat Oct 19 23:42:24 2019 +0000 SDL_free() is not for pointers to SDL_RWops structures... From-SVN: r8151 commit ba2e0a803781fc7637b8091a23f1addb1d97360f Author: Richard Gobeille Date: Sat Oct 19 23:42:21 2019 +0000 Don't use the SDL joystick API with SDL2, just the updated one for game controllers From-SVN: r8150 commit 2c6acc4a4eee45487492ad7f02440a34cf90e0cb Author: Richard Gobeille Date: Sat Oct 19 23:42:17 2019 +0000 Add optional duration parameter to idle() From-SVN: r8149 commit e58dc46bd1d2b018974fb95e03eacaa524622275 Author: Richard Gobeille Date: Sat Oct 19 23:42:13 2019 +0000 Clamp nextPageDelay in G_FPSLimit() to 0.0 - g_frameDelay From-SVN: r8148 commit 37308a95cf770b74e62c5f927ac08a0d79a79451 Author: Richard Gobeille Date: Sat Oct 19 23:42:10 2019 +0000 Increase timer resolution on Windows From-SVN: r8147 commit d29dd4de80dd0d273bdb22d5d2754c9c88f58901 Author: Richard Gobeille Date: Sat Oct 19 23:42:05 2019 +0000 Remove win_allowtaskswitching() We weren't ever calling win_allowtaskswitching(0) anywhere, and when I tried it, it did not work. Broken functionality to try and block alt + tab is not necessary. From-SVN: r8146 commit b30f3a52d70186bcb824af34e3ca6f3074b5145b Author: Richard Gobeille Date: Sat Oct 19 23:42:01 2019 +0000 Use timeGetTime() to implement timerGetTicks() on Windows From-SVN: r8145 commit 2487f2709b2fdcadb1f0efaad9dc2145a653c071 Author: Richard Gobeille Date: Sat Oct 19 23:41:58 2019 +0000 Remove dead function declarations From-SVN: r8144 commit 83d65ec606c70cc4d51cf7af78e8683d51a55e7f Author: Richard Gobeille Date: Sat Oct 19 23:41:54 2019 +0000 This function declaration was in the wrong header From-SVN: r8143 commit e80860a4456a81270ab756282d6146a2e00a8ec6 Author: Richard Gobeille Date: Sat Oct 19 23:41:50 2019 +0000 Update xxHash to git commit cd0f5c22095c49c35104dca86620322801f14893 From-SVN: r8142 commit d95e83907673cb81e655ceb906c5144a81cab03a Author: Richard Gobeille Date: Sat Oct 19 23:41:44 2019 +0000 Use timerGetHiTicks() instead of timerGetTicks() for timing in osdfunc_fileinfo() From-SVN: r8141 commit 5efdaa93c854d9285b3074b3e5b1e114caf43572 Author: Richard Gobeille Date: Sat Oct 19 23:41:40 2019 +0000 G_HandleAsync() -> gameHandleEvents() From-SVN: r8140 commit 8ca82ec7ea089e5f00df7689939805c56fcaa3bc Author: Richard Gobeille Date: Sat Oct 19 23:41:35 2019 +0000 Partial timer cleanup After this revision, the only place timerUpdate() is called is from within handleevents(). S_Cleanup(), MUSIC_Update(), and G_HandleSpecialKeys() are now called from a timer callback set with timerSetCallback(). This more or less deprecates the usage of faketimerhandler() in EDuke32 and Mapster32, but other games still rely on the functionality. From-SVN: r8139 commit a321ad7bd3b13c34b2e2d4b2b7d7801e61b978d1 Author: Richard Gobeille Date: Sat Oct 19 23:41:29 2019 +0000 Reword stupid error message that has probably never even been seen From-SVN: r8138 commit 7461e7a325b43b358aee6d86277c021d0e362923 Author: Richard Gobeille Date: Sat Oct 19 23:41:26 2019 +0000 ifdef DEBUGGINGAIDS for this quick exit crap this is more like regular AIDS than DEBUGGINGAIDS though From-SVN: r8137 commit f00d3686570f70fa5c362bd9ce6d1762b0cf36de Author: Richard Gobeille Date: Sat Oct 19 23:41:22 2019 +0000 Use tabledivide64() in timerUpdate() From-SVN: r8136 commit b5a35d4f479757bdd2a51db1b4626d4e84329dc7 Author: Richard Gobeille Date: Sat Oct 19 23:41:18 2019 +0000 Ugh, apparently we rely on this for FURY From-SVN: r8135 commit 6ed0fae0dec32333a1185e50b33dc8fc45ccc27d Author: NY00123 Date: Sat Oct 19 07:28:17 2019 +0000 startgtk.game.cpp edits: 1. Fix USE_OPENGL=0 builds. 2. Don't ignore the user's choice of BPP. 3. If eduke32.cfg has Polymer set to 1 and ScreenBPP set to 8 (e.g., the user changed from Polymer to Classic), don't tick Polymer and don't select an OpenGL mode. From-SVN: r8134 commit d713f0d5541a0a5751e1fc8987118abef9bba3b5 Author: Richard Gobeille Date: Fri Sep 20 06:42:42 2019 +0000 Derp From-SVN: r8133 commit dd86318e14f78f2e428e747aa4c3dcfb360b1204 Author: Richard Gobeille Date: Fri Sep 20 06:41:07 2019 +0000 Update libxmp-lite From-SVN: r8132 commit 7272195026d6379597d6c8311c0debe5e182059e Author: Evan Ramos Date: Fri Sep 20 00:13:04 2019 +0000 Use -fvisibility=hidden for Voidwrap on Linux From-SVN: r8131 commit 69413e87c054294b19b7844c17b1384c1b46bc11 Author: Richard Gobeille Date: Thu Sep 19 14:55:08 2019 +0000 Fix issue where the borderless windowed mode menu option wasn't starting out reflecting the current value From-SVN: r8130 commit 6001458a4fb4a8620bae63a6b33d609931eed969 Author: Richard Gobeille Date: Thu Sep 19 12:02:19 2019 +0000 EDUKE32_STANDALONE does, however, need this From-SVN: r8129 commit ce9b87e38d877ecbbc84918e91676c95eb08355b Author: Richard Gobeille Date: Thu Sep 19 12:02:16 2019 +0000 EDUKE32_STANDALONE doesn't need this From-SVN: r8128 commit c6e1680aacd9b65db83f91e4a081a5fcc5192534 Author: Richard Gobeille Date: Thu Sep 19 12:02:11 2019 +0000 "digital axis shit based on mouse movement should be eliminated" From-SVN: r8127 commit 963358881419845570810be87e8b59227121c158 Author: Richard Gobeille Date: Thu Sep 19 12:02:00 2019 +0000 Hook CONTROL_MouseAxesScale[] up to mousex/mousey in ControlInfo From-SVN: r8126 commit 9f7d1f3fbf973fad4144d9a1fe8bcd0ee4d5d210 Author: Richard Gobeille Date: Wed Sep 18 06:10:57 2019 +0000 Remove the EDUKE32_STANDALONE guards from around the definition of EVENT_CAPIR (but not the implementation) From-SVN: r8125 commit ca238329a19c2f67f1c6af4ea571222e9b852916 Author: Richard Gobeille Date: Wed Sep 18 06:10:47 2019 +0000 Remove "VWCONTROLLER" stuff from voidwrap This API has already been deprecated by Steam, and we have SDL2 controller support now. Anything we might need to interact with Steam for regarding controllers can be done through the ISteamInput interface that is currently supported in the SDK. From-SVN: r8124 commit c6fde0374f40f9f832413e2a67dd8b0bddf78819 Author: Richard Gobeille Date: Tue Sep 17 10:11:08 2019 +0000 Steam wrapper fixes From-SVN: r8123 commit 0282d770f08d451ba397a18153004666a40e991c Author: Richard Gobeille Date: Tue Sep 17 05:36:16 2019 +0000 Linux voidwrap build fixes From-SVN: r8122 commit df5bd84dc0162d5d37523d103bb477a19dc4ca9d Author: Richard Gobeille Date: Tue Sep 17 05:36:12 2019 +0000 Drop .0 extension from libvoidwrap_steam.so Filenames with ABI versioning information are generally used for actual shared libraries that get installed system-wide and potentially upgraded independently from the binaries that utilize them, but this is local stuff that only ever sits in a directory with the binary that needs it. From-SVN: r8121 commit 43970f244a81dbf39ec4f9d513e118e09c005708 Author: Richard Gobeille Date: Tue Sep 17 03:21:21 2019 +0000 Statically link voidwrap with the CRT to drop the dependency on VCRUNTIME140.dll and friends From-SVN: r8120 commit 54e67e4bd146e9ba1856fbb28295f8db1c15e63c Author: Richard Gobeille Date: Tue Sep 17 03:21:17 2019 +0000 This should help with some of the player movement fuckery This fixes the bug that let you jump through the ticket booth window in E1L1 and the problems jumping into vents when run mode is disabled. From-SVN: r8119 commit 02380bde71228fce8f9aed67a40bad6bd3f38df4 Author: Richard Gobeille Date: Tue Sep 17 03:21:14 2019 +0000 Fix bugged height check in cliptestsector() From-SVN: r8118 commit d8be6964fa81e98ef370c82a2127d1381373950f Author: Richard Gobeille Date: Tue Sep 17 03:21:10 2019 +0000 This fixes the shrinker in E1L4 I wonder what it breaks! :D From-SVN: r8117 commit 5b81fe29f75aba72106745f328520a3c5159ed95 Author: Richard Gobeille Date: Tue Sep 17 03:21:06 2019 +0000 Silence dogshit -Wcast-function-type warning From-SVN: r8116 commit 4e725ae315107de058e18d6225ec85ea18669697 Author: Richard Gobeille Date: Tue Sep 17 03:21:03 2019 +0000 EDUKE32_STANDALONE EVENT_CAPIR From-SVN: r8115 commit 7b63cb5632bca9064dd16a7d5f4b05643f0bfc96 Author: Richard Gobeille Date: Tue Sep 17 03:20:58 2019 +0000 Add menu option to reset achievement data for EDUKE32_STANDALONE builds From-SVN: r8114 commit 4fc9ab09232d1f6f74d42f4187402e530c70e2b0 Author: Richard Gobeille Date: Tue Sep 17 03:20:55 2019 +0000 Add communityApiEnabled() and communityApiGetPlatformName() From-SVN: r8113 commit fe270b264cdc6a1973295fcf978de6f03229772f Author: Richard Gobeille Date: Tue Sep 17 03:20:50 2019 +0000 Add Voidwrap_Steam_ResetStats() to reset achievements From-SVN: r8112 commit 993f4b016da7db3e876d38ccab1cf425ecf88740 Author: Richard Gobeille Date: Tue Sep 17 03:20:45 2019 +0000 Add missing EDUKE32_STANDALONE ifdef From-SVN: r8111 commit b951c7003e0fa882a87fc4d889305b120c847b34 Author: Richard Gobeille Date: Tue Sep 17 03:20:42 2019 +0000 Remove getzsofslope_player() and use yax_getzsofslope() and getcorrectzsofslope() to determine the player's .truecz and .truefz values From-SVN: r8110 commit ebd46ba739fe15b20af7450d409da3bf397b4e38 Author: Richard Gobeille Date: Tue Sep 17 03:20:38 2019 +0000 Add yax_getzsofslope(), based on getzsofslope_player() From-SVN: r8109 commit 8264b95ac21f231f8e964a87e2bfb2610e28056d Author: Richard Gobeille Date: Tue Sep 17 03:20:34 2019 +0000 Fix polymost_dorotatesprite() clipping From-SVN: r8108 commit 77749ce60c8e3018c8c9d3dd9c6b2e5e04c97567 Author: Richard Gobeille Date: Tue Sep 17 03:20:30 2019 +0000 Fix bug dating back to the DOS version where actors on sector lines would sometimes fail to shoot hitscan projectiles From-SVN: r8107 commit d6587d115c47cbcf6d75a339884f78a565123fa5 Author: Richard Gobeille Date: Tue Sep 17 03:20:27 2019 +0000 Fix bug with SFLAG_NOWATERSECTOR in EDUKE32_STANDALONE (Fury) builds From-SVN: r8106 commit 8252e3d3da0a2b79b2b5931316662e27ea0dbb12 Author: Richard Gobeille Date: Tue Sep 17 03:20:23 2019 +0000 Fix issue where baselayer.h was accidentally included within an extern C block in mouse.h From-SVN: r8105 commit 9e58785f6e4646dc71a41ef785fd5dee2c1f003a Author: Richard Gobeille Date: Tue Sep 17 03:20:20 2019 +0000 Just formatting... From-SVN: r8104 commit 3c9c0ec3f6de83309ce96a60f33dd2c3509a0d49 Author: Richard Gobeille Date: Tue Sep 17 03:20:16 2019 +0000 Expose control over the list of statnums that hitradius will damage to CON From-SVN: r8103 commit 20e5ad4236cf78f507810613f29cd8f3745ba1f8 Author: Richard Gobeille Date: Tue Sep 17 03:20:11 2019 +0000 Fix a couple remaining issues with crouch toggle From-SVN: r8102 commit bf5fa55e349be8eef2fbc7bdbd3b72c40d166eed Author: Richard Gobeille Date: Tue Sep 17 03:20:08 2019 +0000 Take slope heights into account in A_RadiusDamage() From-SVN: r8101 commit cfcc9a25be3cde01e5118199b8386165af691de7 Author: Richard Gobeille Date: Tue Sep 17 03:20:04 2019 +0000 This theoretically helps with cases in which the player is squished by geometry From-SVN: r8100 commit 34ce6dc2abfa683ec80bcde5a09f5033aedb09d5 Author: Richard Gobeille Date: Tue Sep 17 03:20:00 2019 +0000 Eliminate another goofy holdover from the old version of A_RadiusDamage() From-SVN: r8099 commit eb776a9d2c9f0a8ff68e06e0f4375437c15b0cd0 Author: Richard Gobeille Date: Tue Sep 17 03:19:56 2019 +0000 Add missing abs() call to z check before EVENT_JUMP From-SVN: r8098 commit 5e8175c0cfe2e255a30393738fd9e374da9addae Author: Alex Dawson Date: Mon Sep 16 00:17:11 2019 +0000 polymost.cpp: fix buffer overflow issue in uploadpalswap() & correct the code to initialize an extra row of black pixels From-SVN: r8097 commit fbcc3813e0db491e826f57451134e8d015b7d37c Author: Evan Ramos Date: Thu Sep 12 03:35:26 2019 +0000 cheev From-SVN: r8096 commit 3c51bb2f2f4c18597725a9b01bc2bfb2786f3af2 Author: Evan Ramos Date: Tue Sep 10 23:35:07 2019 +0000 Avoid a truncation warning in compat.h From-SVN: r8095 commit 478ba113642030ed6c81eb8592671cfb7766dbe7 Author: Evan Ramos Date: Tue Sep 10 23:35:03 2019 +0000 Add Voidwrap, by Striker and NY00123. Heavily reorganized by me. From-SVN: r8094 commit 1bc82720ff036043df918d338f727a30dde105ea Author: Evan Ramos Date: Tue Sep 10 23:34:54 2019 +0000 Makefile: Separate -Wl,--dynamicbase into its own variable so it can be disabled independently. For some reason it breaks my GDB. From-SVN: r8093 commit 8ad57f57f37af860622d9e254e7fcbd5e3641a52 Author: Evan Ramos Date: Tue Sep 10 23:34:51 2019 +0000 Fix warning in clip.cpp From-SVN: r8092 commit 478ceb224030e69395bb2692a0f75ff96bff22c4 Author: Evan Ramos Date: Tue Sep 10 23:34:46 2019 +0000 Make sjson its own object From-SVN: r8091 commit dfc16b0882fe6ed03aa3e9c7d4948a9ad309f23a Author: Richard Gobeille Date: Sun Sep 8 13:51:16 2019 +0000 Fix dumbass problem with A_RadiusDamage() From-SVN: r8090 commit 0a626be715920f7bea6475273b413d6a788d8a0b Author: Richard Gobeille Date: Sun Sep 8 13:51:12 2019 +0000 EDUKE32_STANDALONE stuff From-SVN: r8089 commit dd46bc368eb184bb58f07d4e45ef8b2b91f32840 Author: Richard Gobeille Date: Sun Sep 8 13:51:07 2019 +0000 Fix qradarang calculation From-SVN: r8088 commit b115910426101d34b02e82f52699d14993ecf1ed Author: Richard Gobeille Date: Sun Sep 8 01:01:40 2019 +0000 Fix relative aligned floor/ceiling texture wiggling Patch from Nuke.YKT. From-SVN: r8087 commit 8d532fc733a8fe829e5ba419ba3558e1b7b02e4e Author: Richard Gobeille Date: Sun Sep 8 01:01:37 2019 +0000 Relax SKIPWALLCHECK enforcement with SHRINKSPARK projectile in Duke3D From-SVN: r8086 commit 25ac8a40a642e9ced0ffe0380ed7043fd504ccfa Author: Richard Gobeille Date: Sun Sep 8 01:01:33 2019 +0000 More A_RadiusDamage() work From-SVN: r8085 commit 4991a819c9246905e0ef80864f44697677794d17 Author: Richard Gobeille Date: Sun Sep 8 01:01:30 2019 +0000 Add borderless windowed mode options to menu From-SVN: r8084 commit 0b407b0a62a3f7db3eb119410174d61c97a80806 Author: Richard Gobeille Date: Sun Sep 8 01:01:26 2019 +0000 EDUKE32_STANDALONE crap From-SVN: r8083 commit c4a80459652f3ac5c4db779249442b13e029399d Author: Richard Gobeille Date: Sun Sep 8 01:01:22 2019 +0000 Fix USE_OPENGL=0 builds From-SVN: r8082 commit 2a57929218cd2a18230456d3ca8390a0a82704e6 Author: Richard Gobeille Date: Sun Sep 8 01:01:17 2019 +0000 Fix obscure animlib bug From-SVN: r8081 commit 70e58906b53891a8a8c4d7fdbdfe34fba174de8d Author: Richard Gobeille Date: Sun Sep 8 01:01:13 2019 +0000 Change A_DamageWall() parameter from pointer to reference because we don't write to it From-SVN: r8080 commit 71a790d25d748838d6f8773a1fc445bf5f5d2fc4 Author: Richard Gobeille Date: Sun Sep 8 01:01:09 2019 +0000 Fast A_RadiusDamage() From-SVN: r8079 commit 710f15e781cb8f3511b14b1ab50eec6866ed3e41 Author: Richard Gobeille Date: Sun Sep 8 01:01:05 2019 +0000 VS project updates From-SVN: r8078 commit 100e7dc1ee05389112960462d7c27a4fff191ff4 Author: Richard Gobeille Date: Sun Sep 8 01:01:02 2019 +0000 Bump BMAXPAGESIZE to 16384 x86 stuff will only ever return 4096, but 64-bit ARM supports 16K. From-SVN: r8077 commit f93d37839a1e1126eb164bdf313479695f6cb17e Author: Richard Gobeille Date: Sun Sep 8 01:00:57 2019 +0000 Fix npot sky rendering in Polymost Patch from Nuke.YKT. From-SVN: r8076 commit b35c1c28615c9e1853a526657033fbf0d633520d Author: Richard Gobeille Date: Tue Sep 3 04:09:29 2019 +0000 At some point these two lines got removed from CON_IFCANSHOOTTARGET From-SVN: r8075 commit 41aedf5d8f8623a8a6d87458c163c1e13607f34d Author: Richard Gobeille Date: Tue Sep 3 04:09:25 2019 +0000 Flat parallax skies in Polymost Patch from Nuke.YKT. From-SVN: r8074 commit 85c41736454e230f72afdd33a344279e181c257d Author: Richard Gobeille Date: Tue Sep 3 04:09:20 2019 +0000 Change a couple of memcpys to just clear the whole size of the array instead of computing the size at runtime From-SVN: r8073 commit 8e6f49cd0266a9a31c91d982cc3bb3e9ad439711 Author: Richard Gobeille Date: Mon Sep 2 05:55:32 2019 +0000 Align cache1d memory blocks to system page size From-SVN: r8072 commit 852474d7c2b6ee88a29ec37b99452a7386690bc6 Author: Richard Gobeille Date: Mon Sep 2 05:55:27 2019 +0000 Use multiples of 5 for the HUD scale option and cap the range at 50-100 From-SVN: r8071 commit c3f0fc51253beed02be1012970171899c51e8e66 Author: Richard Gobeille Date: Mon Sep 2 05:55:23 2019 +0000 uint64_t in G_FPSLimit() From-SVN: r8070 commit 5f7ff4a009da29351a674d165c2846125c40a3ba Author: Richard Gobeille Date: Mon Sep 2 05:55:19 2019 +0000 Use integer math for Polymost rotatesprite Patch from Nuke.YKT. From-SVN: r8069 commit a03d90681cad99a0dfdabcf79934249b1532a1af Author: Richard Gobeille Date: Mon Sep 2 05:55:15 2019 +0000 Allow up to fov 140 from console From-SVN: r8068 commit b537ace33f890d5e0c416371005b8b582ff0f5d0 Author: Richard Gobeille Date: Mon Sep 2 05:55:12 2019 +0000 Bind medkit to mouse3 by default From-SVN: r8067 commit 8e41ecdbb3217182afdd2e4ccb7e8add49768f87 Author: Richard Gobeille Date: Mon Sep 2 05:55:08 2019 +0000 Remove C as alternate default bind for regular gamefunc_Crouch From-SVN: r8066 commit a3aff976bbf9db68a2fd10a969d55617ffe63a16 Author: Richard Gobeille Date: Mon Sep 2 05:55:04 2019 +0000 Move r_borderless and r_displayindex definitions out of polymost.cpp and into baselayer From-SVN: r8065 commit ca4ea462c9243e327a0dd3ee13cdd3304f4bb558 Author: Alex Dawson Date: Fri Aug 30 06:05:06 2019 +0000 clockticks.hpp: Fix issue where higher precision comparisons would cause unexpected behaviour with game loop code due to ototalclock being incremented rather than set to totalclock (causing a lack of subtick precision and potential doubled up/dropped game updates). Provide compareHighPrecision() for any code that needs higher precision comparisons. From-SVN: r8064 commit 73a373ddfd40d83ff60937719134afba230aae6a Author: Richard Gobeille Date: Thu Aug 29 20:06:31 2019 +0000 Support fullscreening to the correct display in multiple monitor configurations From-SVN: r8063 commit 375e2bc39dc85ef267518684738c280dc15dbf6c Author: Richard Gobeille Date: Thu Aug 29 19:01:00 2019 +0000 Fix critical TROR map corruption bug in the editor Patch from Nuke.YKT. From-SVN: r8062 commit e556c4470f4b139bd82d80cf176c4cd1f743ce32 Author: Richard Gobeille Date: Thu Aug 29 19:00:56 2019 +0000 More gamefunc_Toggle_Crouch improvements From-SVN: r8061 commit a0c4ee6676387fda9f1d500d1b1c5e0b90c93e7c Author: Richard Gobeille Date: Thu Aug 29 19:00:52 2019 +0000 Fix SDL borderless windowed mode for real this time Introduces r_borderless cvar. 0: never borderless, 1: always borderless, 2: borderless if resolution matches desktop resolution (default). From-SVN: r8060 commit 3a0e2a40f0a1bc804b61a191c2e32faead976784 Author: Richard Gobeille Date: Thu Aug 29 19:00:47 2019 +0000 Rename gamefunc_Crouch_Toggle to gamefunc_Toggle_Crouch to match the only existing similarly named gamefunc, gamefunc_Toggle_Crosshair Now bound to C by default. From-SVN: r8059 commit 69417a7e2c60206293f2b11732f935fdbba31561 Author: Richard Gobeille Date: Thu Aug 29 19:00:42 2019 +0000 Use a sound's volume offset parameter as the max distance if the explosion flag is set From-SVN: r8058 commit 899ff3a5ed6edb68bc7be864361ba269a155d267 Author: Richard Gobeille Date: Thu Aug 29 05:15:07 2019 +0000 Rework crouch toggle This is almost entirely contained in P_GetInput() now. It still uses two separately mappable buttons but you can get away with only gamefunc_Crouch_Toggle. From-SVN: r8057 commit c7219e4da62b2f10e45016734f942cc959b3b745 Author: Richard Gobeille Date: Thu Aug 29 05:15:03 2019 +0000 clockticks header fix From-SVN: r8056 commit 1ce618d2576fd4a2237e3ad84e8cc4761f59d9ab Author: Richard Gobeille Date: Thu Aug 29 05:14:59 2019 +0000 Set actor .bpos after A_GetZLimits() in A_Spawn() From-SVN: r8055 commit 1e895d0dbc57d1cc5c702654396d868ab9e1003b Author: Richard Gobeille Date: Thu Aug 29 01:21:05 2019 +0000 Only use --high-entropy-va on x86_64 From-SVN: r8054 commit 9ee62aff327f430c1521e72c5781f79bde707b7d Author: Richard Gobeille Date: Thu Aug 29 01:21:02 2019 +0000 Fix MSVC build From-SVN: r8053 commit d5053e8d3ed9c4bc6b81eaf73bba6f88407cfcdb Author: Richard Gobeille Date: Wed Aug 28 04:40:45 2019 +0000 Fix synthesis From-SVN: r8052 commit 0b059dca0d4225f61ac14aaa54496ff7d5e0fc46 Author: Alex Dawson Date: Tue Aug 27 13:40:00 2019 +0000 kenbuild/src/game.cpp: Fix compilation issue due to removal of sqr() from pragmas.h in r7597 From-SVN: r8051 commit 6911e67416058065ede52c65daaccff21def4a8a Author: Alex Dawson Date: Tue Aug 27 13:39:54 2019 +0000 Change some clocks to support sub-tick precision using a new class, ClockTicks. Using that higher precision, interpolate at a higher granularity. Further, truncate the target interpolation time to vertical blank boundaries to avoid producing temporal artifacts. Fix issues caused by interpolation calculations being handled differently in multiple places (and fix cases where smoothratios were being thrown away only to be redone without checking all proper conditions). Ensure ClockTicks changes do not break other targets (EKenBuild, VoidSW), but note any interpolation there is not similarly updated. From-SVN: r8050 commit a4221c951364c6a24e27a337d6d2516b64a73060 Author: Richard Gobeille Date: Tue Aug 27 06:52:46 2019 +0000 Fix W_GCC_9 in Common.mak From-SVN: r8049 commit 3a5188cc7ff37fd87ff8dd92b519ca42ee467b23 Author: Richard Gobeille Date: Tue Aug 27 06:52:42 2019 +0000 Ultra minor clipping stuff From-SVN: r8048 commit 8d274685c5333f4ea3eded998a5628759051a6e8 Author: Richard Gobeille Date: Tue Aug 27 06:52:38 2019 +0000 Don't consider CLIPCURBHEIGHT for ceiling clipping From-SVN: r8047 commit e4fd0241905525ac7095355fc3ba96aadc0fe91a Author: Richard Gobeille Date: Tue Aug 27 06:52:34 2019 +0000 This should be MAXSECTORS From-SVN: r8046 commit 9c3349e5db66de824414cc32c421da55e0542d36 Author: Richard Gobeille Date: Tue Aug 27 06:52:30 2019 +0000 Remove EDUKE32_PREDICT_ macro usage in clip.cpp so the game doesn't stall if a weird clipping malfunction occurs From-SVN: r8045 commit 2797f4fa144b0745737000fc99911d130ae1262e Author: Evan Ramos Date: Wed Aug 21 05:55:25 2019 +0000 Make building Fury easier with FURY=1 From-SVN: r8044 commit 9c060d24e41a00e26cde7b665eb64a88d6b92443 Author: Evan Ramos Date: Wed Aug 21 03:18:23 2019 +0000 Fix mouse buttons 4 and 5 on Linux with SDL2, at least for 2.0.9 and up From-SVN: r8043 commit 06d314c2c22e47a2d4fc60a509f18eaff4494d37 Author: Evan Ramos Date: Wed Aug 21 03:02:15 2019 +0000 VS project fixes from Striker. From-SVN: r8042 commit 4a77b09f57c8e1f56f6f98f9eb14b53a5ca3a9b8 Author: Evan Ramos Date: Wed Aug 21 03:02:10 2019 +0000 Fix "bind showkeys" crash From-SVN: r8041 commit bb1daa23ec13c64f945cb85b7eb3ec38b81c4f01 Author: Richard Gobeille Date: Mon Aug 19 02:06:05 2019 +0000 Yeahhhhhh, this wasn't a great idea From-SVN: r8040 commit e2fba4ab8b55957f1d9aa68d203a480a34168797 Author: Evan Ramos Date: Sat Aug 17 22:38:22 2019 +0000 I don't know why I read this diff backwards. From-SVN: r8039 commit 4ceaf9530ddf4da7fd57786dcb7e752942c58188 Author: Evan Ramos Date: Sat Aug 17 22:33:36 2019 +0000 Remove fav priority weapon switch setting from menu, still available as a cvar From-SVN: r8038 commit 5c2c76137706562301bb3971a3022edf886b8d0d Author: Evan Ramos Date: Sat Aug 17 22:33:33 2019 +0000 Re-enable mouse dead zone and mouse bias in input code, follow-up to r8028 From-SVN: r8037 commit 17653181097aac0b0c0a1fb66fe721a01cb2e0d3 Author: Richard Gobeille Date: Fri Aug 16 15:57:20 2019 +0000 I impress myself sometimes From-SVN: r8036 commit 24be7467544ecf861f9331a6bbde3c4a94add87e Author: Richard Gobeille Date: Fri Aug 16 15:57:16 2019 +0000 Reduce stencil buffer size Revert if it causes issues in anything. From-SVN: r8035 commit 6062957a72f622b914529ffe01f837ac6ab1f537 Author: Richard Gobeille Date: Fri Aug 16 12:05:29 2019 +0000 Ignore cstat 32768 sprites in map view From-SVN: r8034 commit bb2c8cf9c2565d4b8db59ce38ddac587b95126ed Author: Richard Gobeille Date: Fri Aug 16 12:05:26 2019 +0000 Tweak weapon autoswitch menu option text From-SVN: r8033 commit e4a5b733b1a665ae4a0ecccc164abc2566c60867 Author: Richard Gobeille Date: Fri Aug 16 12:05:21 2019 +0000 Don't spawn TRANSPORTERSTAR if FURY From-SVN: r8032 commit 738073cfd284476fc51983f79a3d22a4d872e7f9 Author: Richard Gobeille Date: Fri Aug 16 09:11:22 2019 +0000 Add r_swapcomplete cvar to control what happens after SDL_GL_SwapWindow() 0: do nothing 1: glFinish() 2: busy loop until currentVBlankInterval 3: glFlush() From-SVN: r8031 commit 11f101e6b28e5aa2bd2f7a9a679ac1ab0463578b Author: Richard Gobeille Date: Fri Aug 16 04:58:51 2019 +0000 Add console/log output for when the player is killed by various internal things, to aid in debugging From-SVN: r8030 commit c66c8666de7aa297c65b694e5d7d2727b2df2a93 Author: Richard Gobeille Date: Fri Aug 16 04:58:47 2019 +0000 Use a vec3_t instead of separate vars to hold temporary position data in G_HandleMirror() From-SVN: r8029 commit cdf1fa77248874b7975075199386c794156ae63e Author: Richard Gobeille Date: Fri Aug 16 04:58:43 2019 +0000 if out the in_mousebias and in_mousedeadzone cvars From-SVN: r8028 commit 2405371507bb8fd14f57625c0baab2f8d6243ca5 Author: Evan Ramos Date: Fri Aug 16 04:54:12 2019 +0000 Menus: Add warning message when the user has the in-game VSync option enabled From-SVN: r8027 commit 1c51335cb6bddb513ceae614578f799e951332fd Author: Evan Ramos Date: Fri Aug 16 00:30:28 2019 +0000 Revert r8024 From-SVN: r8026 commit 12150f4f3f87c77387621ac7a92dd8104d4f6906 Author: Evan Ramos Date: Fri Aug 16 00:20:52 2019 +0000 Input: Separate everything in AdvanceTrigger into a new TextSubmit except Space so it doesn't submit text fields such as savegames From-SVN: r8025 commit 3acc5282fde67eb8700e3da53960b79ab0d1bf8b Author: Evan Ramos Date: Fri Aug 16 00:20:48 2019 +0000 Rename Silent protagonist to Protagonist speech From-SVN: r8024 commit d88bafa940b91e269a3f0ae7beb50b8c439b92bd Author: Evan Ramos Date: Fri Aug 16 00:20:45 2019 +0000 Menus: Move weapon switching to Control Setup From-SVN: r8023 commit af78d208898bb5e92f729840f8e9b5d8f3f49928 Author: Richard Gobeille Date: Thu Aug 15 16:57:34 2019 +0000 Add option to disable the game side framerate limiter back into the menu From-SVN: r8022 commit 9069c13f81a22d6ad7e85b207d54f7735cd57ee8 Author: Richard Gobeille Date: Thu Aug 15 16:57:30 2019 +0000 Add toggle for always run back to the menu From-SVN: r8021 commit fdce1cbfe4c6b5b5213db233ed4c01d1bf4d4464 Author: Richard Gobeille Date: Thu Aug 15 16:57:26 2019 +0000 Fix borderless windowed fullscreen mode From-SVN: r8020 commit c684e30bb4171d56031e861fdd491b1491707794 Author: Evan Ramos Date: Thu Aug 15 10:18:17 2019 +0000 Mapster32: Check for "m32_usecwd" in the filesystem and activate -usecwd if found From-SVN: r8019 commit 6199151007cdac5274e1f3d70e49b7d23762e06f Author: Alex Dawson Date: Thu Aug 15 07:14:46 2019 +0000 timer.cpp: fix order of operations issue with timerUpdate() From-SVN: r8018 commit 4ed2fcfcae8f5596336da5d3badd66b843e4187c Author: Richard Gobeille Date: Thu Aug 15 06:51:56 2019 +0000 Change skill alignment if FURY From-SVN: r8017 commit 0e73869271aed8bb0db801893ba5c4ed9fcf7252 Author: Evan Ramos Date: Thu Aug 15 04:39:46 2019 +0000 Don't clobber E1L8 for user maps From-SVN: r8016 commit 689174c17d8cbaccbc767450c0eb0fd4ee091848 Author: Evan Ramos Date: Thu Aug 15 04:39:42 2019 +0000 Return to the main menu after completing a user map From-SVN: r8015 commit 5a7a73184f4480cdd4f42706b6972b86feff99eb Author: Evan Ramos Date: Thu Aug 15 04:39:38 2019 +0000 Menus: Fix Y/N options with three lines From-SVN: r8014 commit c6e650b1f1b2327b864879c2e89e50e22825ee03 Author: Evan Ramos Date: Thu Aug 15 04:39:35 2019 +0000 Menus: Fix the Sound and Music Volume options in a way that works for Duke too, using indentation From-SVN: r8013 commit 50ab6deb84c39aaa5d2505b656e37b16d14d4dff Author: Evan Ramos Date: Thu Aug 15 04:39:31 2019 +0000 Menus: Disable the gamepad axes and buttons menus if opening them would cause an abort due to having no items From-SVN: r8012 commit cd94c220c2da32b3fc365696d0263740474756ac Author: Alex Dawson Date: Thu Aug 15 04:38:12 2019 +0000 timer.cpp: avoid using floating point arithmetic in timerUpdate() From-SVN: r8011 commit 87f0fb5dee8139f09f633252c75b2b3ab5150934 Author: Alex Dawson Date: Thu Aug 15 04:38:09 2019 +0000 sdlayer.cpp: use glFinish() to synchronize with the buffer swap From-SVN: r8010 commit bbdcdb0f288a371c9cc4233f8de516e8aedf4ad3 Author: Alex Dawson Date: Wed Aug 14 21:42:30 2019 +0000 timer.cpp: improve cross-platform & cross-compiler issues relating to precision & period. Handle timerlastsample such that we don't throw away time & run slow in certain cases. Ensure when calculating n, we do the double division first before multiplying for sake of floating point precision. From-SVN: r8009 commit a520bc7dd09bc8c1823f06a3d8f41dd9a20086cd Author: Evan Ramos Date: Wed Aug 14 17:15:34 2019 +0000 Amend r7987 to only clear input if actually in the menu From-SVN: r8008 commit 1e2025daa24d42901db053fd4d270617b01b7bd7 Author: Evan Ramos Date: Wed Aug 14 16:11:58 2019 +0000 Update md3_vox_calcmat_common to solve a sporadic voxel flickering issue Patch by Nuke.YKT. From-SVN: r8007 commit c866bab7aec574133fdfc9b12aa7b886fe8b8abb Author: Evan Ramos Date: Wed Aug 14 16:11:55 2019 +0000 Fix use of wrong macros for game controller buttons in game-side input.cpp From-SVN: r8006 commit e9528e0fde7a20f141688a8419ff87aa7c32a55b Author: Richard Gobeille Date: Wed Aug 14 15:28:59 2019 +0000 Revert "This should be enough for SDL controller hotplug support but I haven't tested it" From-SVN: r8005 commit e88486aecadf3d2aa2b53887554c3c726daea68b Author: Richard Gobeille Date: Wed Aug 14 15:28:53 2019 +0000 Revise r8001 From-SVN: r8004 commit c6343b2ab4acd10a7cce567ce20138880aeca5c1 Author: Richard Gobeille Date: Wed Aug 14 14:26:53 2019 +0000 This should be enough for SDL controller hotplug support but I haven't tested it From-SVN: r8003 commit 6c98208f2010387f2651ddd9343dcf45aacd1089 Author: Richard Gobeille Date: Wed Aug 14 14:26:48 2019 +0000 This timing stuff actually works It doesn't help when it turns out the compiler is broken and implementing std::chrono::high_resolution_clock as something that only counts in ms instead of properly aliasing it to std::chrono::steady_clock! From-SVN: r8002 commit d810b0aeddef3473bd37df275b8d468a4449eccd Author: Richard Gobeille Date: Wed Aug 14 14:26:42 2019 +0000 Call A_GetZLimits() for sprites in the map at load time From-SVN: r8001 commit 19cbf645ede949690beffedb8c9c138d0908a081 Author: Evan Ramos Date: Wed Aug 14 09:02:54 2019 +0000 Apply the BUILDART patch at long last. From-SVN: r8000 commit b2d2d326472a0032fdeb27094e7c9483cb874102 Author: Evan Ramos Date: Wed Aug 14 09:02:12 2019 +0000 Menus: Open the User Map menu to a folder named "usermaps" if one exists. From-SVN: r7999 commit 9a5e4d6560e0c8616855553b49005588235be710 Author: Evan Ramos Date: Wed Aug 14 09:02:07 2019 +0000 newgamechoices: usercontent flag From-SVN: r7998 commit cef00c301fed419646267a59673d5d517c138243 Author: Evan Ramos Date: Wed Aug 14 06:55:21 2019 +0000 Don't adjust analog turning because of the Run gamefunc From-SVN: r7997 commit 014efc7b738767873bf832ca7e6369d4a2220232 Author: Evan Ramos Date: Wed Aug 14 05:38:42 2019 +0000 Amend r7993 From-SVN: r7996 commit 6836dce75f39856f5b0569966cfafc4b74fc1912 Author: Evan Ramos Date: Wed Aug 14 05:25:34 2019 +0000 CON: Add userdef .gamepadactive From-SVN: r7995 commit 5053dbf97d9ea69c3337f4eaf102b2cde1be1860 Author: Evan Ramos Date: Wed Aug 14 05:25:31 2019 +0000 Menus: Use gamepad button names for Y/N prompts when most recently active From-SVN: r7994 commit 473ac16fee38b61a048ba5ffd54500c29efdc1c0 Author: Evan Ramos Date: Wed Aug 14 05:25:27 2019 +0000 CON: Add getgamefuncbind From-SVN: r7993 commit ac97afefdd1cc548df89d968b9d84757381eed27 Author: Evan Ramos Date: Wed Aug 14 05:25:22 2019 +0000 Track whether keyboard or gamepad input was last received From-SVN: r7992 commit c9564c180cefc8111eafaa2b0f8836d5abef2c0d Author: Evan Ramos Date: Wed Aug 14 03:49:45 2019 +0000 Replace implementation of crouch toggle in a way that won't interfere with other uses of the crouch key, such as swimming and jetpacking. TODO: Make this work over the network. From-SVN: r7991 commit 35194b2f7e1a588f216f073c8cc7990d54ecf7c5 Author: Evan Ramos Date: Wed Aug 14 03:04:11 2019 +0000 Fix grpinfo reading in Mapster32 Thanks to Doom64hunter. From-SVN: r7990 commit dc1c604b4adef011bd1a3f7aead45979f3e49a2a Author: Evan Ramos Date: Wed Aug 14 03:04:08 2019 +0000 Disable drawing sprite arrows and borders in the automap in FURY mode From-SVN: r7989 commit 71c34e2d28157e117fe8e6176990ff77fb8e2dbb Author: Evan Ramos Date: Wed Aug 14 03:04:04 2019 +0000 Allow gamepads to accept text entry fields From-SVN: r7988 commit 404076c32dda6f71f24143aa0d2e81e13b0c74b2 Author: Evan Ramos Date: Wed Aug 14 03:04:01 2019 +0000 Fix gamepad analogs not working in menus when in game From-SVN: r7987 commit d4f9bbd4c4851250bef9cee4667251a468edc12e Author: Evan Ramos Date: Wed Aug 14 03:03:57 2019 +0000 Add gamepad axis inversion toggles From-SVN: r7986 commit d1b6308871a858cabb7e65eb5ce1fd2f29642f10 Author: Evan Ramos Date: Wed Aug 14 03:03:52 2019 +0000 Rescan for controllers when toggling gamepads back on From-SVN: r7985 commit 074e347bfcade8102d36908016d020175ceb895f Author: Evan Ramos Date: Wed Aug 14 03:03:47 2019 +0000 Menus: Improve the "Status bar" option when there are only two settings and one is None From-SVN: r7984 commit d366968eecd3e046579aa2506e665eb36cc71655 Author: Evan Ramos Date: Wed Aug 14 03:03:44 2019 +0000 Menus: Fix the names of the Sound and Music Volume options From-SVN: r7983 commit 17764eb2666a63ffcb549c42bbb26407e5c87032 Author: Evan Ramos Date: Wed Aug 14 03:03:41 2019 +0000 Menus: Add Enable Gamepad toggle From-SVN: r7982 commit eaad461081f485be6bc63bad5cc915900c0486fa Author: Evan Ramos Date: Wed Aug 14 03:03:38 2019 +0000 Remix the gamepad layouts From-SVN: r7981 commit a39cdf9cdfcfa98001556f5baceb6c2b34b8f0b0 Author: Evan Ramos Date: Wed Aug 14 03:03:34 2019 +0000 Make use of fix16 for controller aiming From-SVN: r7980 commit d8eb9e7a9e1683341f8147496dccdc48f99c6410 Author: Evan Ramos Date: Wed Aug 14 03:03:31 2019 +0000 Fix analog turning rate being half of what it should be From-SVN: r7979 commit 1155f54664e1e8a7cf17002cef798afea4dea31e Author: Evan Ramos Date: Wed Aug 14 03:03:27 2019 +0000 Add Crouch Toggle gamefunc From-SVN: r7978 commit a258813a48ad7b45910e3d8a12cd1c3fd657bb77 Author: Richard Gobeille Date: Tue Aug 13 15:05:31 2019 +0000 Re-introduce functionality removed in r7975, with improved timing From-SVN: r7977 commit 7dd86045236da7d9c62bae3c07f7e4736e61333a Author: Richard Gobeille Date: Tue Aug 13 14:44:16 2019 +0000 Replace separate timer implementations in SDL and Winlayer with a shared implementation based on std::chrono From-SVN: r7976 commit 21df9aa7478efaa41b24db626d30f886747d5175 Author: Richard Gobeille Date: Tue Aug 13 14:44:09 2019 +0000 There's no way this is correct. From-SVN: r7975 commit e29b3de9c8f96f20e2dec071331a1363e290e7c2 Author: Richard Gobeille Date: Tue Aug 13 14:44:05 2019 +0000 Name fix, I guess? From-SVN: r7974 commit dca2d62831f15adf488ed2b539abdc9bd9b34596 Author: Richard Gobeille Date: Tue Aug 13 14:44:00 2019 +0000 Fix remaining casts to vec2_t/vec3_t From-SVN: r7973 commit fa4a55a0b3e60458035b07d9becccad91da5fe51 Author: Evan Ramos Date: Tue Aug 13 10:25:35 2019 +0000 Rename "Joystick" to "Gamepad" in menus From-SVN: r7972 commit 3d1c92cfd0da488bc2a4a41f9c83b3174e6bbd5f Author: Evan Ramos Date: Tue Aug 13 09:16:02 2019 +0000 Add verification screens to color correction, keyboard, and joystick resetting options From-SVN: r7971 commit 217e17881b57cee513b86ce9c68fddd996a170fa Author: Evan Ramos Date: Tue Aug 13 09:15:58 2019 +0000 Implement contoller analog 0 in menus very hackishly From-SVN: r7970 commit fca89cee766e8a4f55640878c0f7a1155298d33c Author: Evan Ramos Date: Tue Aug 13 09:15:53 2019 +0000 Replace "Joystick" config strings with "Controller" to reset defaults From-SVN: r7969 commit 7acefacb32684f068cfacbca250267f9aa15c725 Author: Evan Ramos Date: Tue Aug 13 09:15:49 2019 +0000 Implement controller defaults From-SVN: r7968 commit 480bd93bff381acd25eb7dc9c6f229d543444491 Author: Evan Ramos Date: Tue Aug 13 09:15:43 2019 +0000 Add Third Person View gamefunc From-SVN: r7967 commit 3a8c19869540a12edf9b2d04e287bd660a02d1bd Author: Evan Ramos Date: Tue Aug 13 02:53:54 2019 +0000 VS made me change these newlines to CR LF From-SVN: r7966 commit a8a92da3cf730491c06a78f2685c016d0a63a671 Author: Evan Ramos Date: Tue Aug 13 02:53:51 2019 +0000 Add SetupAPI.lib to VS build system for SDL 2.0.10 From-SVN: r7965 commit f8a8913040d453875c1345f6963a24313570f03a Author: Evan Ramos Date: Tue Aug 13 02:53:48 2019 +0000 VS: Disable manifest file generation on all platforms From-SVN: r7964 commit 8af7ad3ff9e5e95b8233a5312dc56e8b278f8e26 Author: Evan Ramos Date: Tue Aug 13 02:53:44 2019 +0000 Add VS2019 detritus to .gitignore From-SVN: r7963 commit 638cfb407fb660f3df8d599b15a27da677833adf Author: Evan Ramos Date: Tue Aug 13 02:53:41 2019 +0000 VS made me update the platform toolset here From-SVN: r7962 commit 576bf7b05287d8c776e52b96c8ae3ccc360c8939 Author: Evan Ramos Date: Tue Aug 13 02:53:38 2019 +0000 Add voxels option to menu, if at least one has been defined From-SVN: r7961 commit 8dfe944abc31fee3b4de12282c00b85477721612 Author: Evan Ramos Date: Tue Aug 13 02:53:34 2019 +0000 Fix RENDERTYPE=WIN build From-SVN: r7960 commit ac8134a35cef47d82b1ac853854c61e5a002ffcc Author: Evan Ramos Date: Mon Aug 12 15:36:36 2019 +0000 Menus: Move auto aim option to Control Setup From-SVN: r7959 commit be8421035b40e8fcfd147c5825baa9c129107960 Author: Evan Ramos Date: Mon Aug 12 15:23:15 2019 +0000 Make use of SDL2's Game Controller API. Thanks to JonoF for his take on this. From-SVN: r7958 commit ccc61fef3b4deda1b3884fd784c2f496b5db9b9a Author: Evan Ramos Date: Mon Aug 12 15:23:11 2019 +0000 Fix binding joystick digital axes in the menu From-SVN: r7957 commit 6370f8bc3997626edd8b9bdf35f1d24fd9993f48 Author: Evan Ramos Date: Mon Aug 12 15:23:07 2019 +0000 Report 16-bit analog axis precision to the game instead of arbitrarily truncating it to ~14.3 bits. From-SVN: r7956 commit 7d3056050deb9e3ca952dcf234ff27f6639ded6e Author: Richard Gobeille Date: Mon Aug 12 03:15:32 2019 +0000 Fix bug where "standing" on top of a sprite structure underwater would cause the player to act as if they were no longer underwater From-SVN: r7955 commit a609aef436023cd4212854691a0fd2dfd83c6796 Author: Richard Gobeille Date: Mon Aug 12 03:15:29 2019 +0000 Another attempt at improving/fixing the fps limiter From-SVN: r7954 commit c69eb53c0f8760914d70595bb753156f051268b3 Author: Richard Gobeille Date: Mon Aug 12 03:15:25 2019 +0000 Add automapping var to Gv_RefreshPointers() From-SVN: r7953 commit fcceb108aaffec73dc92c47f0f558b21997dae1e Author: Richard Gobeille Date: Mon Aug 12 03:15:21 2019 +0000 Better behaved falling actors From-SVN: r7952 commit 0c3a2469232c3639e96472dd952951ca5dafc533 Author: Richard Gobeille Date: Mon Aug 12 03:15:17 2019 +0000 Change actor/player context of EVENT_SCREEN From-SVN: r7951 commit 8e3c3e6852bccf130b311374ef3548ce8808b87a Author: Richard Gobeille Date: Mon Aug 12 03:15:14 2019 +0000 Fix some undefined behavior From-SVN: r7950 commit e3b4b298f54da771fbc872e64e4d6a2bd08ef553 Author: Richard Gobeille Date: Mon Aug 12 03:15:10 2019 +0000 This can overflow From-SVN: r7949 commit 62070a30353b18b99ad6de3754c36834d02d6871 Author: Richard Gobeille Date: Mon Aug 12 03:15:06 2019 +0000 Remove dead declaration From-SVN: r7948 commit df0e6461df59194e67ae5003195fe2bd6bbc56c4 Author: Evan Ramos Date: Sun Aug 11 20:52:50 2019 +0000 Fix how analog axis values are used by the game code, part 2: aiming. Mouse movement is no longer funneled through analog axis handling. From-SVN: r7947 commit 1ba80bf14ce5b05a75080eba31b5786e0e9319a5 Author: Evan Ramos Date: Sat Aug 10 23:29:31 2019 +0000 Fix how analog axis values are used by the game code, part 1: movement. Turning and looking will require me to disentangle CONTROL_GetMouseDelta from the rest of CONTROL_PollDevices. From-SVN: r7946 commit 85ce79f1d44bd5cfd66dd5b1c6bf1cc8e8081dd7 Author: Evan Ramos Date: Sat Aug 10 23:29:27 2019 +0000 Fix mouse and joystick menu slider scales From-SVN: r7945 commit c7873c97d2ebff19d51e42c602a25b97d2235d80 Author: Evan Ramos Date: Sat Aug 10 23:29:24 2019 +0000 Blank out old-style joystick defaults because they're irrelevant in 2019. From-SVN: r7944 commit 3d2cb25cb0b607680b44273e539aec26d0bbd5d4 Author: Evan Ramos Date: Sat Aug 10 23:29:20 2019 +0000 Fix bugs with unbound mouse and joystick controls not saving properly. From-SVN: r7943 commit 8edf0f7714f0a48a775123df62e882ee776dffde Author: Evan Ramos Date: Sat Aug 10 23:29:16 2019 +0000 Enable joysticks by default because better that than figuring out how to parse settings.cfg multiple times without breaking something. From-SVN: r7942 commit f3350b9c8ab3b868b75149c9374acdf0c015130f Author: Alex Dawson Date: Sat Aug 10 13:03:31 2019 +0000 sounds.cpp: fix infinite loop caused by removal of "else" in r7939 From-SVN: r7941 commit 42b30873bcfd5eef2cce5ec8484b5719f05dcbd8 Author: Richard Gobeille Date: Fri Aug 9 11:00:34 2019 +0000 Fix sound issue From-SVN: r7940 commit 8213eb4a6468d350f8f3a907d8d6ac0236a9396c Author: Richard Gobeille Date: Fri Aug 9 10:06:59 2019 +0000 Oops From-SVN: r7939 commit 9c2b114d3402d81623145f01b2e4cb54eb207fa5 Author: Evan Ramos Date: Fri Aug 9 09:41:05 2019 +0000 Fix skipping to the end of def blocks From-SVN: r7938 commit 57240b9230146cc9cccd2f021207d99f22d01f82 Author: Richard Gobeille Date: Fri Aug 9 09:28:42 2019 +0000 M-M-M-MUTEX MADNESS From-SVN: r7937 commit 09ee9960191ddfd921bc310389b6cb19910709e5 Author: Richard Gobeille Date: Fri Aug 9 09:28:38 2019 +0000 Remove lockclock from mapstates From-SVN: r7936 commit 679058845b260ceef60f8a73f93e42e8c93c6a00 Author: Richard Gobeille Date: Fri Aug 9 09:28:34 2019 +0000 Improve frame limiter logic From-SVN: r7935 commit 714fde5964fb190d212ff1c397d9e13c3caebc52 Author: Richard Gobeille Date: Fri Aug 9 09:28:30 2019 +0000 Run savegame events as myconnectindex instead of screenpeek This doesn't really matter right now, but it's wrong. From-SVN: r7934 commit 9ff895e373909ee91bba2e5afeeeb5d67a1b842f Author: Richard Gobeille Date: Fri Aug 9 09:28:27 2019 +0000 Happier try_facespr_intersect() I'm prejudiced against 30-line functions with statements nested 5 levels deep. From-SVN: r7933 commit d3ce7acf2417ca0c49e964cdc0bc4e0f226edc9f Author: Richard Gobeille Date: Fri Aug 9 09:28:22 2019 +0000 Attempt to work around odd behavior when attempting to use stuff like wall aligned sprites with the new version of clipmove The behavior was always "wrong" as clipmove does not handle movement of lines, just movement of clip boxes against lines and face sprite points, but the newer version of clipmove actively bounces sprites away from lines they would otherwise clip into. This was causing wall-aligned sprites that called any functions that ended up calling clipmove to get pushed away from the wall unintentionally. From-SVN: r7932 commit 45a197a2ee2198a3563b19735636b53ecd396688 Author: Richard Gobeille Date: Fri Aug 9 09:28:18 2019 +0000 Add ifdef guard From-SVN: r7931 commit 1004dbf46368c54aa0db9a95eea831ad72e0a616 Author: Evan Ramos Date: Fri Aug 9 08:21:19 2019 +0000 newgamechoices From-SVN: r7930 commit 135937ac32900eb8cc783cb4de9d18defab23a55 Author: Alex Dawson Date: Thu Aug 8 23:00:02 2019 +0000 Fix issue with indexed colour textures where in the case that tiles entered the texcache while !waloff[picnum] & were later (re)loaded, the earlier pth pointing to the tilesheet containing the blank tile would never be properly replaced with an updated gl texture. From-SVN: r7929 commit aa4f89fca9d79445ae7e5998ed88d067f4b0094c Author: Evan Ramos Date: Thu Aug 8 22:49:39 2019 +0000 Revert r7908 because it introduces a race on dabuf From-SVN: r7928 commit 230f9851951881537e45e22c5f57241d729e22f7 Author: Richard Gobeille Date: Thu Aug 8 03:52:19 2019 +0000 Fix build error From-SVN: r7927 commit c0f4a949bb183a994ada42f2cd1e26118d7923eb Author: Richard Gobeille Date: Thu Aug 8 02:22:16 2019 +0000 Change audiolib's SDL driver's mutex stuff to use our implementation From-SVN: r7926 commit 6eb3d011cfb1e06dedd6cabc001df5f188e2cf38 Author: Richard Gobeille Date: Thu Aug 8 02:22:10 2019 +0000 Tiny error message cleanup From-SVN: r7925 commit 632cf0a810e67995f92adcfffb5cd11df984ca42 Author: Evan Ramos Date: Thu Aug 8 01:58:04 2019 +0000 save name in exts From-SVN: r7924 commit 9605addc8a832313dade6c8e47f3f8936cb9b0d4 Author: Evan Ramos Date: Thu Aug 8 01:57:21 2019 +0000 Add fallthrough__ in gameexec From-SVN: r7923 commit 97d1d563530341564896590e0999cd5cb0ba034f Author: Richard Gobeille Date: Thu Aug 8 01:49:00 2019 +0000 Reverse the order video modes are sorted in From-SVN: r7922 commit 2159e53ddb34a93124872b2fbf240f1c3ec27f5d Author: Richard Gobeille Date: Thu Aug 8 01:48:55 2019 +0000 Tweak the fatal engine initialization error and game already running dialog boxes a bit From-SVN: r7921 commit 874d58b2bb5a0fc385f4c7e9d324d89aa4de4532 Author: Richard Gobeille Date: Thu Aug 8 01:15:31 2019 +0000 Fix linking with SDL 2.0.10 From-SVN: r7920 commit e34582efaaa40e15eaeee4c59e16a2e6da9813d0 Author: Evan Ramos Date: Wed Aug 7 23:51:31 2019 +0000 Windows: SDL 2.0.10 From-SVN: r7919 commit dba67aab3f1bed1c9b11eccb98c903a7b628345a Author: Richard Gobeille Date: Wed Aug 7 22:44:41 2019 +0000 Audiolib housekeeping From-SVN: r7918 commit f84214e2addae7d13e60dfe3971972efa07b0391 Author: Richard Gobeille Date: Wed Aug 7 22:44:37 2019 +0000 Use a LUT instead of a switch to handle choosing which audiolib mixer function to use for a voice From-SVN: r7917 commit 0dc1a8dd842f6a9b62f455ffe529bfb9b698118c Author: Richard Gobeille Date: Wed Aug 7 22:44:33 2019 +0000 Polymost projection changes to correct the perspective in widescreen and ultrawide resolutions. Patch from Nuke.YKT and Fox. From-SVN: r7916 commit 12ef5729a40a31c960c5fa9ece4c2472608f811c Author: Richard Gobeille Date: Wed Aug 7 22:44:29 2019 +0000 Sound cleanups From-SVN: r7915 commit 1571e6746b4f3c75a62e47d3bab2d936cfded442 Author: Richard Gobeille Date: Wed Aug 7 22:44:25 2019 +0000 New feature: combine SF_GLOBAL and SF_DTAG definesound flags to get Duke3D explosion sound behavior From-SVN: r7914 commit 70decccbde3071a7ebe1c350724211cc9c1151b8 Author: Richard Gobeille Date: Wed Aug 7 22:44:20 2019 +0000 Add S_SetProperties() function to handle repetitious setting of a few sound structure members From-SVN: r7913 commit 6b51e6db6f675fb9560c8c56194f146c1d9351b9 Author: Richard Gobeille Date: Wed Aug 7 22:44:17 2019 +0000 Tweak how the semaphore used to detect multiple running copies of the game is utilized From-SVN: r7912 commit ee81483f5142cb3f26391240916cec03e603c4b8 Author: Richard Gobeille Date: Wed Aug 7 22:44:12 2019 +0000 Add FURY checks for some EDUKE32_STANDALONE stuff From-SVN: r7911 commit 957ca00b2ff4eb261e65acd081362165dd49216a Author: Richard Gobeille Date: Wed Aug 7 22:44:08 2019 +0000 Tweak DirectSound error From-SVN: r7910 commit b325044fda7384db47a9c4f845d5c33c5bf057b7 Author: Richard Gobeille Date: Wed Aug 7 22:44:04 2019 +0000 Replace some of the mutex usage in the DirectSound driver with our own implementation From-SVN: r7909 commit e2c0913e71b7f95ab405cc45cac9146a4872ef5d Author: Richard Gobeille Date: Wed Aug 7 22:44:00 2019 +0000 Improve usage of initprintf mutex From-SVN: r7908 commit a6bc810faab6a4ae57a4808061f7ca90a9a58e28 Author: Richard Gobeille Date: Wed Aug 7 22:43:57 2019 +0000 Re-implement our mutex_lock() family of functions using SDL's atomic spinlocks From-SVN: r7907 commit 20fcbe66028fc8ccd9724f6018814f2ae36c9d29 Author: Richard Gobeille Date: Wed Aug 7 22:43:53 2019 +0000 'If' out a couple of instances of g_soundlocks[] manipulation I somehow missed during my first pass From-SVN: r7906 commit 62171757b5c7c2f1e3b812bbb4e52ceb84133c70 Author: Richard Gobeille Date: Wed Aug 7 22:43:48 2019 +0000 Eliminate pos_as_vec2 from anything that had it From-SVN: r7905 commit b0967942be4f3166e9118efe5149fd86d13dbd16 Author: Richard Gobeille Date: Wed Aug 7 22:43:42 2019 +0000 Fix Mapster32 bug with 2d3d mode ambient sounds From-SVN: r7904 commit 28b9e51709a50ecb589af7bdc360716e1664a843 Author: Richard Gobeille Date: Wed Aug 7 22:43:38 2019 +0000 Fix issue clipping against sloped ceilings From-SVN: r7903 commit 425424cf6d7ccf5a7a73d3060c9d526718489c05 Author: Evan Ramos Date: Wed Aug 7 22:36:20 2019 +0000 Tweak map start message printed to the log From-SVN: r7902 commit b3cc9fe695cd00e2c8b5286d0bfea7c60940d024 Author: Evan Ramos Date: Wed Aug 7 22:36:16 2019 +0000 ext updates From-SVN: r7901 commit 4d1b0ec478d5cb484ccd7189232fa94970245d53 Author: Alex Dawson Date: Wed Aug 7 20:28:28 2019 +0000 game.cpp: move check for quitevent during start-up so that if start-up is cancelled during definitions parsing, the game won't continue to play in a half-loaded state. From-SVN: r7900 commit 2ec517a2534c82c02d0f7c9e8ac3c429566761b2 Author: Evan Ramos Date: Wed Aug 7 20:06:30 2019 +0000 Allow MOUSEINACTIVECONDITIONAL when out of menu. Fixes left clicking screens. From-SVN: r7899 commit 54727bd0f97d6f06711ca26f7e40df6c9c5b589f Author: Evan Ramos Date: Wed Aug 7 20:06:27 2019 +0000 Add CONTROL_ClearAllButtons From-SVN: r7898 commit aee6267e259fa57b0b4b931980f46929ecb3c072 Author: Evan Ramos Date: Wed Aug 7 20:06:22 2019 +0000 Remove RTS names from standalone builds From-SVN: r7897 commit 28e61eb938f549dd0826006643cf522374b0d945 Author: Evan Ramos Date: Wed Aug 7 19:12:15 2019 +0000 definecheatdescription From-SVN: r7896 commit b789a56b2b073b8e93ada0ec1da659547c643ab5 Author: Evan Ramos Date: Wed Aug 7 19:12:11 2019 +0000 Move cheat descriptions from menus.cpp to cheats.cpp From-SVN: r7895 commit a73ce9eea7ec21a9d94c8093dc8af7ef7da4de3c Author: Evan Ramos Date: Wed Aug 7 19:12:07 2019 +0000 Add I_GeneralTrigger as a combination of Advance and Return and use it for skipping screens so that Esc works. From-SVN: r7894 commit 74c230066b9c2f85f676e636b749cd249cc41e4d Author: Alex Dawson Date: Wed Aug 7 16:46:52 2019 +0000 gameexec.cpp: allow G_ShowView() to execute regardless of the state of g_screenCapture. This fixes skyboxes not rendering in TILE_SAVESHOT. From-SVN: r7893 commit 298d80a2c3f082b5380d88b08c586348757073cd Author: Alex Dawson Date: Wed Aug 7 16:19:03 2019 +0000 tiles.cpp: backup & restore picsiz, walock, & waloff alongside other per tile arrays in artClearMapArt() and artSetupMapArt() This fixes an issue with viewscreens as tiles that are setup game-side after a map is loaded could have their sizes reset to 0 while not being properly cleared from walock/waloff From-SVN: r7892 commit 12a5014d401ef963e8d2b5fa44bf1ab671767a9d Author: Alex Dawson Date: Wed Aug 7 16:19:00 2019 +0000 sector.cpp: ensure that if scripts have told us not to render normally to the tile, that we still handle restoring our target & setting up the tile appropriately for what the script may have rendered From-SVN: r7891 commit 1a18eadde60667697ddb367609f3c48232bd8c39 Author: Alex Dawson Date: Wed Aug 7 16:18:57 2019 +0000 engine.cpp: make renderSetTarget() more robust so that passing an xsiz or ysiz <= 0 is not accepted and can't cause a segmentation fault From-SVN: r7890 commit ea382ad76cd0107cea13f0866004a481cff59457 Author: Alex Dawson Date: Wed Aug 7 06:54:37 2019 +0000 polymer.cpp: fix issue where assert could fail due to HUD model sprites having an owner >= MAXSPRITES From-SVN: r7889 commit d6e1b8defcc9d2e221bfcd2c50461e6072323490 Author: Alex Dawson Date: Mon Aug 5 02:14:19 2019 +0000 polymost.cpp: Fix issue where tiles whose dimensions had grown would not have their sizes updated in GL and could fail to update their texture data From-SVN: r7888 commit 6719bf0ab854f63f8e5cc6922d9e126b7c59496c Author: Alex Dawson Date: Mon Aug 5 02:14:16 2019 +0000 polymost.cpp: If a tile in the tilesheet is large enough to fit a redefined tile, use that space rather than allocating a new texture From-SVN: r7887 commit 8b27487a0536e10d60b71a1bf6f5e300a98c6841 Author: Alex Dawson Date: Mon Aug 5 02:14:07 2019 +0000 polymost.cpp: if an indexed colour tile is being reloaded, changed dimensions, and no longer matches the calculated tilesheets, generate a separate texture for it. Similarly, if the tile does match the calculated tilesheets but was a separate texture, delete the texture and load the tile back into the tilesheet. From-SVN: r7886 commit 8c5e6daea02c05bbbee961307dc992446a7cd7a1 Author: Alex Dawson Date: Sun Aug 4 06:31:30 2019 +0000 build.vcxproj: Execute custom build tools & step before BuildGenerateSources From-SVN: r7885 commit f788e8b5a54387a48df0e7e31abed36a35b5b2c4 Author: Richard Gobeille Date: Sun Aug 4 02:52:21 2019 +0000 Oops From-SVN: r7884 commit 1f3ef892812a9bd2e751fdcff2f40a0d137f9d62 Author: Richard Gobeille Date: Sun Aug 4 02:52:18 2019 +0000 Fix crashes when passing invalid variable names to a couple of debugging commands in the console From-SVN: r7883 commit 87e2e8377da39b559b631e032ca61d54756c507e Author: Richard Gobeille Date: Sun Aug 4 02:52:14 2019 +0000 Don't attempt to draw TILE_LOADSHOT unless it's already in memory This works around a flaw in the .ext loading logic that I don't have time to debug right now. From-SVN: r7882 commit 8a42a63dca3443dc960aba5c7bcc440288a35a45 Author: Richard Gobeille Date: Sun Aug 4 02:52:10 2019 +0000 Fix automapping not working when looking at the textured map mode From-SVN: r7881 commit f51206a6cd60aaa2766523db98d59c51236f7859 Author: Richard Gobeille Date: Sun Aug 4 02:52:06 2019 +0000 Skip drawing invalid polygons in polymost_drawpoly() From-SVN: r7880 commit b4536e55c82b191728a2fba3894276200d2a7548 Author: Richard Gobeille Date: Sun Aug 4 02:52:03 2019 +0000 Fix warning From-SVN: r7879 commit 5b2a43bb22fee10d726e52b5c9c0b46a7766b1ba Author: Richard Gobeille Date: Sun Aug 4 02:51:59 2019 +0000 getwalldist() tweak From-SVN: r7878 commit efa75374d8b7a4a4b13e30a5a054046b3d3fa909 Author: Richard Gobeille Date: Sun Aug 4 02:51:55 2019 +0000 Use I_AdvanceTrigger() instead of I_CheckAllInput() for the skip condition in Anim_Play() From-SVN: r7877 commit eddd7bffe632fd13a6352c6c041a8331738b1e1f Author: Richard Gobeille Date: Sun Aug 4 02:51:50 2019 +0000 Replace runtime pow2 calculations with pow2char LUT usage I don't know that this is any faster, but there's something to be said for standardization and consistency. I will be making most of this stuff use bitmap_set/test/clear() soon. From-SVN: r7876 commit de913b7e54939f4dbcd38aba8c82930dbe8cca3e Author: Richard Gobeille Date: Sun Aug 4 02:51:40 2019 +0000 Sanitize walock[] usage From-SVN: r7875 commit 98b1f23378664adfd93ae4da60d354f78ed95191 Author: Richard Gobeille Date: Thu Aug 1 07:10:16 2019 +0000 Fix issue with sounds being expired from cache From-SVN: r7874 commit 4f5e35c58fcf8002b08a2b58f1b1426893b8d7f5 Author: Richard Gobeille Date: Thu Aug 1 06:50:56 2019 +0000 This adds back in the engine's old automapping feature This was removed a long time ago because Duke3D and Shadow Warrior don't use it. From-SVN: r7873 commit 354f20f1725e839d792c7eeb845996f07c796fc7 Author: Richard Gobeille Date: Thu Aug 1 06:50:50 2019 +0000 Make most things in screens.cpp use I_AdvanceTrigger() instead of I_CheckAllInput() From-SVN: r7872 commit f07abacdc0654d590206d94edc383430baa887f3 Author: Richard Gobeille Date: Thu Aug 1 06:50:46 2019 +0000 Fix silly branching logic in engineLoadBoard() From-SVN: r7871 commit ebdb45e528aa9af06ad4f152f49dcf3375b3a20c Author: Richard Gobeille Date: Thu Aug 1 06:50:42 2019 +0000 Don't blow away wall cstat bit 14 for use as a temp flag in the editor Patch from Nuke.YKT. From-SVN: r7870 commit 4e1069c7884525da1a924474df8886e16f502eed Author: Richard Gobeille Date: Thu Aug 1 06:50:37 2019 +0000 Work around an issue with far plane clipping with voxels without mipmaps in software mode Patch from Nuke.YKT. From-SVN: r7869 commit 8a321ec25af45be0862929f0ade2a4039d84082c Author: Richard Gobeille Date: Thu Aug 1 06:50:33 2019 +0000 Emulate slope overflow in Polymost in order to match the rest of the engine's slope algorithms Patch from Nuke.YKT. From-SVN: r7868 commit 8618d89508eae29bda89e390bb5aec0133d5140f Author: Richard Gobeille Date: Thu Aug 1 06:50:29 2019 +0000 Hopefully work around more Polymost polygon leakages Patch from Nuke.YKT. From-SVN: r7867 commit 02eef21c2a714dad7d2f6e9f5da376643ca3df9f Author: Richard Gobeille Date: Thu Aug 1 06:50:26 2019 +0000 Cache the distrecip[] table Patch from Nuke.YKT. From-SVN: r7866 commit d0d9df0bbe0f09a829660e86ceb04e050652ffdd Author: Richard Gobeille Date: Thu Aug 1 06:50:21 2019 +0000 "Another dumb polymost optimization. Probably worth few fps in heavy scenes" Patch from Nuke.YKT From-SVN: r7865 commit 7a185f126b0c0d09ca562b3e88b3a6206ab868c7 Author: Richard Gobeille Date: Thu Aug 1 06:50:17 2019 +0000 Make ksgn() return int instead of int32_t From-SVN: r7864 commit 868b0e1543a674ac1353a6207287e1eafb1b3fa4 Author: Richard Gobeille Date: Thu Aug 1 06:50:13 2019 +0000 if 0 out our klabs() function and just define it as abs() The compiler generates much better code for this now. From-SVN: r7863 commit a02cd3712be60df4903bf723c6791fa1c469add8 Author: Richard Gobeille Date: Thu Aug 1 06:50:09 2019 +0000 Untabify a couple of headers From-SVN: r7862 commit 1aeef80daba89d3e70345067c9bc33efd0536b36 Author: Richard Gobeille Date: Thu Aug 1 06:50:04 2019 +0000 I'm not aware of any particular issues this change fixes, but I definitely don't intend this hack to ever affect anything while the player is on the ground From-SVN: r7861 commit f35c25cb1eb77010af57a55fe453e5338752f919 Author: Richard Gobeille Date: Thu Aug 1 06:50:01 2019 +0000 Apply "reset object trackers on savegame load" patch From-SVN: r7860 commit 6096b148f02d4a2da0126ca94db438d9d4e20a1d Author: Richard Gobeille Date: Thu Aug 1 06:49:54 2019 +0000 Wahhh, I'm MSVC and I cry about applying unary negation to a boolean From-SVN: r7859 commit 63c9eed8906aa765fdd7a208875b161ae56241f8 Author: Richard Gobeille Date: Thu Aug 1 06:49:50 2019 +0000 Fix issue rendering TROR when the camera's z coordinate is right on the portal From-SVN: r7858 commit 2c45b3cf1905fd34f7a7551ea211951ef3438b6c Author: Richard Gobeille Date: Thu Aug 1 06:49:47 2019 +0000 Another clipping fix From-SVN: r7857 commit da5778b0ae54677043d770003babd21e3ecc3f27 Author: Richard Gobeille Date: Thu Aug 1 06:49:43 2019 +0000 Add sc_Space to I_AdvanceTrigger() and I_AdvanceTriggerClear() From-SVN: r7856 commit 0019871f46e9f020a6ae97b8309ec412c648ab00 Author: Richard Gobeille Date: Thu Aug 1 06:49:38 2019 +0000 Switch fadepal() and fadepaltile() over to using I_CheckAllInput()/I_ClearAllInput() instead of checking for the spacebar exclusively From-SVN: r7855 commit 90e0aba9ee256b9624cce30c5c26a6f9f398cdaf Author: Alex Dawson Date: Thu Aug 1 00:08:05 2019 +0000 polymost_scansector(): avoid using a culling method not designed for voxels when handling 1-sided wall aligned sprites that have voxel replacements From-SVN: r7854 commit df5684d015963b8e2880f47ab02e74521fcdbc41 Author: Alex Dawson Date: Thu Aug 1 00:08:02 2019 +0000 Fix mixing offscreenrendering (render targets) and mirrors. Don't allow recursing beyond 1 level of mirroring through multiple levels of render targets. From-SVN: r7853 commit eac35ba3e6d4ddfaa11ba4ceeee398ea461e710d Author: Alex Dawson Date: Thu Aug 1 00:08:00 2019 +0000 Fix rendering skyboxes to a tile by altering renderSetTarget() & renderRestoreTarget() to set & reset xdim & ydim so that G_ShowView() can render while a render target is set, and additionally modifying G_SetupCamTile() to call EVENT_DISPLAYROOMSCAMERATILE after calling renderSetTarget() From-SVN: r7852 commit 8892cd71d4290062b4ef8768c9f0a1b935b15cab Author: Alex Dawson Date: Thu Aug 1 00:07:55 2019 +0000 tilepacker.cpp: enclose macro substituted values in parenthesis From-SVN: r7851 commit 851b12f0bf1b47df685558ad970b521baf4a4f23 Author: Evan Ramos Date: Wed Jul 31 03:39:30 2019 +0000 ext loading From-SVN: r7850 commit 4848d916c3022b4e3428289c92819a4031d51f7a Author: Richard Gobeille Date: Fri Jul 26 23:11:25 2019 +0000 Fix bad tilepacker preprocessor definition From-SVN: r7849 commit e8c0950f2ace7fd5422e806c240df0b7512b3a92 Author: Richard Gobeille Date: Fri Jul 26 23:11:20 2019 +0000 Fix for emerging from TROR water From-SVN: r7848 commit 008275d6a57b21f80038835eb2eddae1b7f242d7 Author: Richard Gobeille Date: Fri Jul 26 21:54:52 2019 +0000 Revise r7838 again From-SVN: r7847 commit 463e3b4a9c556e0c267a6c7ebc61dd37dee63852 Author: Richard Gobeille Date: Fri Jul 26 21:54:48 2019 +0000 Patch from Nuke.YKT to work around precision-based inaccuracy problems in Polymost TROR From-SVN: r7846 commit 0c02a3873bdd87f63008afd5da17ba582c26dc6d Author: Richard Gobeille Date: Fri Jul 26 21:54:45 2019 +0000 Add MERGE_NODES macro for Polymost... this will be used in the following commit From-SVN: r7845 commit 54b8f65ccfd85469adb915bd01cae17976bab718 Author: Richard Gobeille Date: Fri Jul 26 21:54:41 2019 +0000 Patch from Nuke.YKT to clip bunches to screen boundaries in Polymost From-SVN: r7844 commit b5e9c9ba0fbccb3f2613b4f91cbdf103999e030a Author: Richard Gobeille Date: Fri Jul 26 21:54:37 2019 +0000 Patch from Nuke.YKT to fix sloped floor and ceiling textures wiggling around in Polymost From-SVN: r7843 commit dcdd0683d12fe8a9f2ba7b1a43c5593725319a5d Author: Richard Gobeille Date: Wed Jul 24 18:06:10 2019 +0000 Revise r7838: one less dumbass typo From-SVN: r7842 commit c0f4677977f03763b930e430c3ff41f8ce35433a Author: Richard Gobeille Date: Wed Jul 24 18:06:06 2019 +0000 Make it easier to jump into vents From-SVN: r7841 commit cb189fee5f5dd34daf976a7bf4858c765d901e40 Author: Richard Gobeille Date: Wed Jul 24 18:06:02 2019 +0000 Remember to delete .esv.ext file when deleting .esv file itself From-SVN: r7840 commit 2aeb79276ac6d33f8388142c19ecc57d76bf0c7f Author: Richard Gobeille Date: Wed Jul 24 15:00:49 2019 +0000 Automatic source file dependency generation for GNUmakefile This automatically saves the dependencies used for a given object file during the first compilation, then uses the generated data for each subsequent compile to determine if the object needs to be rebuilt. Why? Because if I see one more warning about the C++ One Definition Rule, I'm going to fucking snap. From-SVN: r7839 commit b3c68b94a70fdf40378aea0b769dd7ec608904da Author: Richard Gobeille Date: Wed Jul 24 12:56:44 2019 +0000 Revise r7835: instead of not testing wall sprites, we'll just ignore the side blockers From-SVN: r7838 commit 937500e4e17b4ea8814c0b65db42aaacaf998875 Author: Richard Gobeille Date: Wed Jul 24 12:56:41 2019 +0000 Move RCtrl keybind for gamefunc_Fire to slot 1 instead of 2 From-SVN: r7837 commit a40ad58136e9e4ebdb8b7463faaec9d81158c2fe Author: Richard Gobeille Date: Wed Jul 24 12:56:37 2019 +0000 Fix issue with the autorun key when resetting controls to defaults, and give gamefunc_Last_Used_Weapon a default key binding of X From-SVN: r7836 commit 2c6792d462520d3154cc805b4233b7f63bb0cf84 Author: Richard Gobeille Date: Wed Jul 24 10:56:24 2019 +0000 Don't check clip objects for sprites in the keepaway() loop in clipmove() This prevents some hilarious issues with deadly wall decorations. The "side blocker" clip lines that already exist for these sprites should already prevent the kinds of clipping issues this loop is intended to address, anyway. From-SVN: r7835 commit 763fa4e22e0e5963c3fbf181b06c4361733bfb5a Author: Richard Gobeille Date: Wed Jul 24 10:56:20 2019 +0000 OK, this is just a bit too restrictive From-SVN: r7834 commit 148d1439c4e9f12d5caffb7c7854bfa4a2e6ef89 Author: Richard Gobeille Date: Wed Jul 24 05:23:48 2019 +0000 Fix clipping issue with jumping From-SVN: r7833 commit 5f50a454a65c2e8ecd11ad9aedf6623893ce2f6c Author: Richard Gobeille Date: Wed Jul 24 05:23:43 2019 +0000 Fix additional clipmove() issue From-SVN: r7832 commit 8c1f7ecfc4806a806e68ca801b53d326c9486443 Author: Richard Gobeille Date: Wed Jul 24 01:38:08 2019 +0000 Clean up raytrace() and rename it to cliptrace() From-SVN: r7831 commit aa6d136b64441102acc1c90779b3c92c33a640c5 Author: Richard Gobeille Date: Wed Jul 24 01:38:05 2019 +0000 Allow reading vec3_whatever_t as vec2 directly It's a union in a struct in a union in a struct. Oh god, what have I done. From-SVN: r7830 commit 4c9e2706939ee341c938efe4532717a511499b28 Author: Richard Gobeille Date: Wed Jul 24 01:38:01 2019 +0000 Additional clipmove() reworks This fixes a LOT of clipping errors but needs thorough testing. From-SVN: r7829 commit 540e1bffd8cf3a5165257c42285eb753a6a7f889 Author: Richard Gobeille Date: Wed Jul 24 01:37:57 2019 +0000 Switch a few iterators in clipmove() from int to native_t From-SVN: r7828 commit 376ea90aa332d225e8cefb253902394c2bd432d7 Author: Richard Gobeille Date: Wed Jul 24 01:37:54 2019 +0000 clipmove() patch from Nuke.YKT: "In some edge cases posx/y might be 'inside' of neighbor sector. I've added double check for this case" From-SVN: r7827 commit 269841df3c2659fb2dc47925928397f6ee066590 Author: Richard Gobeille Date: Wed Jul 24 01:37:50 2019 +0000 Add divscale64() From-SVN: r7826 commit ffaea9b3c9f2643082853c629f2a3d3238caf65f Author: Richard Gobeille Date: Wed Jul 24 01:37:47 2019 +0000 Minor pushmove() cleanup From-SVN: r7825 commit 878be1954c4baccbe6c1864969392d2788c6d26a Author: Richard Gobeille Date: Wed Jul 24 01:37:43 2019 +0000 Replace check_floor_curb() with cliptestsector() From-SVN: r7824 commit 0328ded399c538c984b15fc576afd91eda274846 Author: Richard Gobeille Date: Wed Jul 24 01:37:39 2019 +0000 Use corrected slope heights in getzrange() and pushmove() From-SVN: r7823 commit 147345d1534c855842a092dfd93780ccf4f8230c Author: Richard Gobeille Date: Wed Jul 24 01:37:35 2019 +0000 Add getcorrectzsofslope() From-SVN: r7822 commit 2dbddaac3c2228bf4958cf1db8a1035c502d48dc Author: Richard Gobeille Date: Wed Jul 24 01:37:32 2019 +0000 Fix an issue where looping sound effects would play at full volume for a tic after playback began, regardless of distance to the sound From-SVN: r7821 commit a78e49c2352faf1c7895502c57a7b8bef1698dcc Author: Richard Gobeille Date: Wed Jul 24 01:37:28 2019 +0000 Promote divisor argument to tabledivide64 to int64_t and replace a couple of 64-bit divides in rintersect() and inflineintersect() From-SVN: r7820 commit f659ceba05e5f92211ba830c3a4b1f9f602aaa52 Author: Richard Gobeille Date: Wed Jul 24 01:37:23 2019 +0000 Minor _clang-format tweaks From-SVN: r7819 commit 1c3b870a319e884254517cf57d468cfcac9793f4 Author: Richard Gobeille Date: Wed Jul 24 01:37:20 2019 +0000 Reorder #includes in build.cpp From-SVN: r7818 commit 9fc369a0f7912c23de32594e0f9ecbbdaefab8ea Author: Evan Ramos Date: Mon Jul 22 03:24:43 2019 +0000 update esv exts From-SVN: r7817 commit 08948cbd0becab2d8a8cb15c4f432f44e9484b69 Author: Evan Ramos Date: Mon Jul 22 03:24:39 2019 +0000 new special purpose gamevar flag From-SVN: r7816 commit e68412690f49c10b173007eee8b5fa2f9ddf1c68 Author: Evan Ramos Date: Mon Jul 22 03:24:35 2019 +0000 Don't lock out cheats in skill 4 if FURY From-SVN: r7815 commit 2dc5b6c7d8808c0f5e1e323e24895dd0049fc3be Author: Evan Ramos Date: Fri Jul 19 09:49:18 2019 +0000 This may be my worst commit ever. From-SVN: r7814 commit fb66e50c747d732cb33d2f8e364f5a8687751004 Author: Evan Ramos Date: Fri Jul 19 09:49:15 2019 +0000 Fix warnings in sjson From-SVN: r7813 commit 7fee57762302b8ed970fef6021dcae02187549e5 Author: Evan Ramos Date: Fri Jul 19 09:49:11 2019 +0000 Add sjson to project From-SVN: r7812 commit 9604c731d6e8cd8952371fc6a78eaee73f553739 Author: Richard Gobeille Date: Fri Jul 19 03:14:53 2019 +0000 Amend r7805 'Murica. From-SVN: r7811 commit 380f306e5d914c1a7d724fd9ea0a98e001a880a7 Author: Richard Gobeille Date: Fri Jul 19 01:49:37 2019 +0000 Throw a warning when attempting to use CON_DEFINESOUND with a sound index that has already been defined From-SVN: r7810 commit 759036b91e8e8081c000c7e32091a9a0be40011e Author: Richard Gobeille Date: Fri Jul 19 01:49:34 2019 +0000 Fix mirrors in Polymer From-SVN: r7809 commit 9495e686cef0e368be27fd61afa0c6dca7d55613 Author: Richard Gobeille Date: Fri Jul 19 01:49:29 2019 +0000 Rename IONMAIDEN -> FURY From-SVN: r7808 commit a139abb5b41b3272d0f3fc0ea3a46f143ef218ff Author: Richard Gobeille Date: Fri Jul 19 01:49:24 2019 +0000 Try walldist + 8 instead of walldist << 1 in clipupdatesector() From-SVN: r7807 commit df9bb01a2bca5b8d9f423f8127577c14f960a6a4 Author: Richard Gobeille Date: Fri Jul 19 01:49:19 2019 +0000 Fix another bunch of improperly sized bitmap arrays From-SVN: r7806 commit ad31f766f57e02a661ff92e5e8f7c45b835a3e48 Author: Alex Dawson Date: Fri Jul 19 01:46:32 2019 +0000 Add updatesectorneighbour() and updatesectorneighbourz() and make them accessible to CON to allow searching for nearby neighbouring sectors from a known sector. These updatesector counterparts are more performant for tasks that require determining whether nearby sectors exist at a point as they will not exhaustively search the map. This also leads to more correct behaviour when sectors are disjoint, as queries will breadth-first search neighbouring sectors rather than risk accidentally stumbling first across accomodating disjoint sectors. From-SVN: r7805 commit ad85f45f7ab6cc8f120cfe74d1ac4a0e53aac98e Author: Evan Ramos Date: Thu Jul 18 03:06:47 2019 +0000 Expose the current episode and skill selection in ud.m_volume_number and ud.m_player_skill while in their respective menus From-SVN: r7804 commit 1e1531e8ec27d2b2697925b8efbfa9af8a0758c2 Author: Alex Dawson Date: Thu Jul 18 01:33:32 2019 +0000 Fix edge case where mirrors & TROR could interact and render over skyboxes in the classic software renderer From-SVN: r7803 commit ef393cdc2190eb8fd8c166fd056401fcc221d5c3 Author: Evan Ramos Date: Thu Jul 18 01:25:33 2019 +0000 Implement "usermap" music definition slot From-SVN: r7802 commit ccbb00d25f697d991a593dc31f32600e93d72744 Author: Evan Ramos Date: Thu Jul 18 01:25:29 2019 +0000 CON_MUSIC: Accept "." as meaning "do nothing to this slot" From-SVN: r7801 commit 2c61cf8acce237a1dd22b4801150c2855e075b43 Author: Evan Ramos Date: Tue Jul 16 09:35:13 2019 +0000 Print extern declaration when generating .cpp from .glsl From-SVN: r7800 commit aaca29588a7ee8216ac8beeab41df2f2c45b17be Author: Evan Ramos Date: Tue Jul 16 09:35:09 2019 +0000 Use std::numeric_limits instead of float.h From-SVN: r7799 commit 2262662aa09f18d50e96e63a532251d537d0d893 Author: Evan Ramos Date: Tue Jul 16 08:38:34 2019 +0000 polymost1Frag.glsl: Fix warning C7572: OpenGL requires extension names to begin with 'GL_' From-SVN: r7798 commit 816c5623b18dde507796f3f9f309183a060e82d9 Author: Evan Ramos Date: Tue Jul 16 08:38:28 2019 +0000 Tweak build process messages when building objects from .glsl files From-SVN: r7797 commit d024b46862f37a8c55bc9a1a215d01e4b351081f Author: Evan Ramos Date: Tue Jul 16 08:38:25 2019 +0000 Fix compilation of linklist.h in C++11 mode with clang From-SVN: r7796 commit 85d8d1061b68b8bc449bd8931953b44561bc7629 Author: Evan Ramos Date: Tue Jul 16 08:38:21 2019 +0000 Tweak previous commit so clipmove takes precedence over getzrange From-SVN: r7795 commit 2c3a8ecc82d919f373aa483599dae932da2ab6e7 Author: Evan Ramos Date: Tue Jul 16 07:00:24 2019 +0000 Fix an OG Duke bug where projectiles would bounce off the tops of sprites instead of registering a hit From-SVN: r7794 commit 679b13eb86551959fe2d0dd51675c13b71024612 Author: Alex Dawson Date: Sun Jul 14 01:48:23 2019 +0000 Fix parallel build by switching to generating .obj files from .glsl files and treat the shader source as an externed global resolved at link time. Additionally, remove the no longer necessary shader generated headers folder from .gitignore From-SVN: r7793 commit 09b93f311086a450bc184d1e4c7a3de63d8029ff Author: Richard Gobeille Date: Sat Jul 13 21:26:10 2019 +0000 Fix translucent masked wall sorting issue in Polymost From-SVN: r7792 commit 660234be67b960dc208596fc70c64d4842482b08 Author: Richard Gobeille Date: Sat Jul 13 21:26:06 2019 +0000 Voxel fix From-SVN: r7791 commit 17692576bd21861075264e6c889e653320e7dd16 Author: Richard Gobeille Date: Sat Jul 13 21:26:02 2019 +0000 Rename "autosaves" to "checkpoints" in menu From-SVN: r7790 commit 76660d7933425651745c8175217f147e1a39b57e Author: Richard Gobeille Date: Sat Jul 13 03:20:21 2019 +0000 Fix stupid bug with sprite shadows in Polymost From-SVN: r7789 commit 136c5c9708d2f7d0e692573dd4adad65692c4b48 Author: Richard Gobeille Date: Sat Jul 13 03:20:17 2019 +0000 Voxel fixes from Nuke From-SVN: r7788 commit 9a53a9af4d60b810fe7cc8f75d7273f06c57f5ae Author: Evan Ramos Date: Sat Jul 13 01:33:00 2019 +0000 Fix issue with shader compilation From-SVN: r7787 commit 8d7c74dd36729c73408000eca4343fe760962605 Author: Evan Ramos Date: Sat Jul 13 00:12:46 2019 +0000 Fix sequential GNUmakefile build From-SVN: r7786 commit ccf9c951ee3beb323549cedb5a35cdb570433d7e Author: Alex Dawson Date: Fri Jul 12 08:44:46 2019 +0000 Support separate .glsl shaders in Windows MSVC builds From-SVN: r7785 commit 35a0408ce30982f286464f0c6c5bab841e2f3230 Author: Alex Dawson Date: Fri Jul 12 08:44:43 2019 +0000 osdfuncs.cpp: fix OSD background sometimes not rendering with the correct gl state From-SVN: r7784 commit 5bfcd830abb98b8299427fc766f11ebba9fc2475 Author: Alex Dawson Date: Fri Jul 12 08:44:40 2019 +0000 Support clamping in polymost1Frag.glsl and use it for sprites From-SVN: r7783 commit 420b4306889570b362cce9969a25bbc3c33dfd95 Author: Alex Dawson Date: Fri Jul 12 08:44:36 2019 +0000 Separate out polymost1Frag and polymost1Vert shaders from polymost.cpp and add rules for building in the GNUmakefile. Additionally, git ignore the shader's generated headers folder. From-SVN: r7782 commit 2b559e0eb3889a2d08fd843a8e941cacbb50af95 Author: Alex Dawson Date: Fri Jul 12 08:44:32 2019 +0000 polymost.cpp: Adjust shaders to use texture2DGradARB() if available From-SVN: r7781 commit 1b8d028110657fc92d62d7c6193d4d2d429ae682 Author: Richard Gobeille Date: Tue Jul 9 05:42:23 2019 +0000 Fix volume slider bug introduced in r7773 From-SVN: r7780 commit 4ac931cef85ff650e641f53a3a4aaf0b024bc22e Author: Richard Gobeille Date: Tue Jul 9 05:42:19 2019 +0000 QOL change: print save filename to console for manual savegames, too, not just ones generated through the script From-SVN: r7779 commit 24266a50087381e01a4ae64af3ebc7105eaeabc0 Author: Richard Gobeille Date: Tue Jul 9 05:42:15 2019 +0000 Voxel fixes from Nuke.YKT From-SVN: r7778 commit 872de1c3b364a890008b8c48fa2dc34ef06cdcbd Author: Richard Gobeille Date: Tue Jul 9 05:42:10 2019 +0000 Don't attempt to animate sprites drawn as voxels by picnum From-SVN: r7777 commit eb7b9002c50e9a6801c7348bff73a37fa142de3e Author: Richard Gobeille Date: Mon Jul 8 00:41:25 2019 +0000 This is just syntax and formatting No functional changes. From-SVN: r7776 commit 4496f512976c13e743e0c61a3d4bcb1892b098c9 Author: Richard Gobeille Date: Mon Jul 8 00:41:17 2019 +0000 Rename stupid structure member I probably named when I was high From-SVN: r7775 commit f0aa5aec3f88a6838cf00f0ab70a6df5306e8ad9 Author: Richard Gobeille Date: Mon Jul 8 00:41:12 2019 +0000 Stop trying to make CTRL-ALT-DEL happen It's not going to happen. From-SVN: r7774 commit df6ef0b75622fff85f39076f7e5020ca70dd2d01 Author: Richard Gobeille Date: Mon Jul 8 00:41:08 2019 +0000 Patch from Nuke.YKT to replace audiolib's volume table with floating point calculations This fixes an issue where rapidly changing the player's angle could result in the audio "popping" due to the sudden change to a new position in the volume table, and the resulting difference in volume between one sample and the next. This also fixes a DC offset issue when applying the volume level to certain sample types. From-SVN: r7773 commit 403ce9c99ef6814b8ef9bb000fddd0c90139ef96 Author: Richard Gobeille Date: Mon Jul 8 00:41:03 2019 +0000 Untie EVENT_ALTFIRE from the conditions required to trigger EVENT_FIRE From-SVN: r7772 commit 0a8bc37a393bdf6e552489d5ad1d7df1a7d8a179 Author: Richard Gobeille Date: Sat Jul 6 19:04:59 2019 +0000 Add gamefunc_Alt_Weapon and EVENT_ALTWEAPON back in From-SVN: r7771 commit 68e2a0d477168d0afac24afc89f6aec60a308ea0 Author: Richard Gobeille Date: Sat Jul 6 19:04:54 2019 +0000 Make shadows on voxels in Polymost look like they do in classic From-SVN: r7770 commit 8ba87102ee5a69e4112d8abdda6b88741a155cb1 Author: Richard Gobeille Date: Sat Jul 6 19:04:50 2019 +0000 Even more minor fix to previous commit From-SVN: r7769 commit fb281b720a97188c0bb5fa4bd98fe849c0a5ddd5 Author: Richard Gobeille Date: Sat Jul 6 17:57:46 2019 +0000 Minor fix to last commit From-SVN: r7768 commit 7344f91a4a21489c6f8671cc985408d5cdce4a79 Author: Richard Gobeille Date: Sat Jul 6 17:54:43 2019 +0000 Add tilehasmodelorvoxel() function and fix instances where voxels for multi-sided sprites would get flipped based on the viewing angle From-SVN: r7767 commit 43df8ce5e912d5c7c8d04804a6d47214c7ea4e77 Author: Richard Gobeille Date: Sat Jul 6 17:54:38 2019 +0000 Fix audio position updating in automap mode From-SVN: r7766 commit af2fba55eda48188f6a195e61b9c6ea6de61c638 Author: Richard Gobeille Date: Sat Jul 6 16:30:58 2019 +0000 Prevent addlogvar from accepting constants, which causes a crash From-SVN: r7765 commit 97436d97570269ee8920163beb3a4ae5537d107f Author: Richard Gobeille Date: Sat Jul 6 16:30:54 2019 +0000 Make cache1d try a little harder to find a suitable block before bailing with "CACHE SPACE ALL LOCKED UP!" From-SVN: r7764 commit 646e079ec3dd11b61b07724224d88ec3953c8e7e Author: Richard Gobeille Date: Sat Jul 6 16:30:51 2019 +0000 Make cacheAgeEntries() do a more consistent amount of work per frame From-SVN: r7763 commit ff3f27852f51e9fe9e749938e1ac85f6c790dc02 Author: Richard Gobeille Date: Sat Jul 6 16:30:47 2019 +0000 Swap indexes for gamefunc_AutoRun and gamefunc_Alt_Fire Normally I wouldn't be in favor of changing indexes that are already exposed to scripts around, but gamefunc_AutoRun is a locally handled key that doesn't have any script events associated with it, and gamefunc_Alt_Fire is pretty important to have up near the top wherever gamefuncs are listed. From-SVN: r7762 commit 40acfdf3ce1ce1d8c42cdb2251f1e4ab257c8841 Author: Richard Gobeille Date: Sat Jul 6 16:30:43 2019 +0000 Replace gamefunc_Alt_Weapon with a gamefunc_Alt_Fire that works as expected From-SVN: r7761 commit fcf6009628a2ab967eca8998e57881353623ffc5 Author: Richard Gobeille Date: Sat Jul 6 16:30:37 2019 +0000 Fix edge case in clipupdatesector() From-SVN: r7760 commit 8d3cd50572cbf6b19a5d9ce3bf38b2e088bd7177 Author: Richard Gobeille Date: Sat Jul 6 16:30:34 2019 +0000 Prevent uninitialized access to hitwalls[] in clipmove() From-SVN: r7759 commit 520f57257cd474eaf674db0733a79ce793f461d3 Author: Richard Gobeille Date: Sat Jul 6 16:30:30 2019 +0000 Move cacheAllSounds() out of G_CacheMapData() and into G_Startup() From-SVN: r7758 commit 513dd482fdd5fc297309b4cf9ba51e1983bc1a57 Author: Richard Gobeille Date: Sat Jul 6 16:30:26 2019 +0000 Bump MAXCACHEOBJECTS from 9216 to 16384 This is actually the first time we've increased this limit in the entire time the engine source has been available. From-SVN: r7757 commit 27d32c7c56ee609f5b121fc890dc7769642d1589 Author: Richard Gobeille Date: Sat Jul 6 16:30:23 2019 +0000 One of those stupid optimizations you notice the potential for when scrolling through code looking for something From-SVN: r7756 commit 0b22a7a1eff6245cb9e0eca49454d30eb5284fd3 Author: Richard Gobeille Date: Sat Jul 6 16:30:18 2019 +0000 Floating point grouscan() patch from Nuke.YKT, worth a couple of fps in classic mode in slope-heavy scenes From-SVN: r7755 commit d054724daa764577baa602dc3fb9b471a18fe9f7 Author: Alex Dawson Date: Fri Jul 5 21:17:54 2019 +0000 Improve depth fighting by pushing out the near plane and improve near plane clipping by depth clamping. Suggest reducing SCISDIST when there's time to debug SCISDIST issues. From-SVN: r7754 commit 4e0126f6bfc7c08fa268e806faad1d5dd10e5f54 Author: Alex Dawson Date: Fri Jul 5 21:17:52 2019 +0000 If GL_ARB_clip_control & GL_ARB_depth_clamp are available, reflect that in glinfo From-SVN: r7753 commit c654ddcf8fe46b6736a9526f1ec117e69227bc2c Author: Alex Dawson Date: Fri Jul 5 21:17:47 2019 +0000 Update GLAD to 0.1.30 and add GL_ARB_clip_control, GL_ARB_depth_clamp, and GL_ARB_shader_texture_lod extensions From-SVN: r7752 commit 4d494e29e060eb4cc1caa8614a0d6c4d41f4c8b5 Author: Alex Dawson Date: Sat Jun 29 18:45:44 2019 +0000 game.cpp: temporarily limit A_Spawn() owner changes from r7738 to locators From-SVN: r7751 commit 89bc6d0310c289fa94b8d10a55901896c2546ec9 Author: Richard Gobeille Date: Wed Jun 26 05:45:12 2019 +0000 Mapster32 Polymost cursor selection omission From-SVN: r7750 commit c7472452e502c88d75a62219291ce69475690e43 Author: Alex Dawson Date: Wed Jun 26 04:49:50 2019 +0000 Disable -malign-double on i386 as libraries would need to be compiled with it. From-SVN: r7749 commit 8127d84e041161bcccf2a7d9cb850b3ebae73bf8 Author: Alex Dawson Date: Wed Jun 26 02:36:40 2019 +0000 Fix 32-bit Polymost issues by enabling SSE instructions and setting GCC to use SSE floating point math exclusively. Additionally, enable SSE2 to better match 64-bit builds and use -malign-double for the potential performance benefit. From-SVN: r7748 commit b3cbaef50c49a73967b2e4ffbd0e2974874a81ad Author: Richard Gobeille Date: Tue Jun 25 21:51:47 2019 +0000 Gump redux From-SVN: r7747 commit 58942b947928a9de3fd8eafdbf8c3c719d6e6c6c Author: Richard Gobeille Date: Tue Jun 25 20:47:09 2019 +0000 Fix builds on platforms other than win32--oops From-SVN: r7746 commit d68eba5231a90f2af354434e6c1b79fd6c2c65f9 Author: Richard Gobeille Date: Tue Jun 25 20:47:04 2019 +0000 Clarify incompatible savegame log message From-SVN: r7745 commit 248b0e6ca2bc174ebe56459f027588c22cb0e0b7 Author: Richard Gobeille Date: Tue Jun 25 19:30:48 2019 +0000 I am not a smart man From-SVN: r7744 commit 8b2a1e5ca6118a990584b7efecdc1a90ead75542 Author: Richard Gobeille Date: Tue Jun 25 19:25:22 2019 +0000 Fix building with GCC 8 From-SVN: r7743 commit 0ae1765d3acfb200f0ee2869b155b2af0c18aa66 Author: Richard Gobeille Date: Tue Jun 25 18:59:05 2019 +0000 Reintroduce mouse selection patch from Nuke.YKT From-SVN: r7742 commit 7089627b0cc27a937bcd8651ad740451998f8b69 Author: Richard Gobeille Date: Tue Jun 25 18:53:29 2019 +0000 Revert "Patch from Nuke.YKT to improve mouse selection in the editor in Polymost" Looks like commits made to public SVN after this commit in my local tree resulted in a merge error From-SVN: r7741 commit 12330045097e21f3da8d993ae434c433f341c71d Author: Richard Gobeille Date: Tue Jun 25 18:50:42 2019 +0000 Patch from Nuke.YKT to improve mouse selection in the editor in Polymost From-SVN: r7740 commit 6035507b5fc0544d8d99e78719f39b32e60a6845 Author: Alex Dawson Date: Tue Jun 25 18:35:24 2019 +0000 actors.cpp: Change demo camera path following behaviour to search for locators based on a hitag channel to avoid locator lotag contention. Now, destination and subject locators should be assigned one hitag channel. Destination locators will be visited starting from lotag 0 and counting upward. Subject locators can have any lotag within the same hitag channel, and may also be a destination if the lotag is not separated from the destination locator ids. Destination locators must now specify their subject locator in their owner field by lotag. From-SVN: r7739 commit e1309e337a9361d4729300bf3d76a118c367a48b Author: Alex Dawson Date: Tue Jun 25 18:35:22 2019 +0000 game.cpp: When A_Spawn() is spawning from an already existing sprite, do not reset the owner field if it has been overridden from the default. From-SVN: r7738 commit 6e52e6bcf6570a1ca192c8e87f4d3dff80a2107b Author: Alex Dawson Date: Tue Jun 25 18:35:19 2019 +0000 polymost.cpp: Fix polymost_domost() issue with COMBINE_STRIPS where in certain cases, merging with the viewport nodes caused accidental reading of sentinel node values. Additional debug code is included for visualizing the state of the vsp data structure. Further, fix issue in drawpoly where it would access out of bounds of dpxy if fewer than 3 vertices were passed in and fix issue where multiple calls to polymost_setVisibility() were repeatedly setting the visibility factor to the same value. From-SVN: r7737 commit e18c561fc27acfc1614dba2e25a4c47a6ad2cbe5 Author: Alex Dawson Date: Tue Jun 25 18:35:16 2019 +0000 Use stencil buffer in Polymost to restrict mirrors to only render within the region of the screen occupied by the mirror wall. Additionally, raise minimum number of stencil buffer bits to accomodate future use of the stencil buffer. From-SVN: r7736 commit 7eb387e4a7b339ac4c2537700f163e98192716c6 Author: Alex Dawson Date: Tue Jun 25 18:35:11 2019 +0000 winlayer.cpp: fix videoBeginDrawing() to return an intptr_t to mirrorBuffer when inpreparemirror From-SVN: r7735 commit f056d7806849f85b31aaf59cbdfb1073bdd296c7 Author: Alex Dawson Date: Tue Jun 25 18:35:08 2019 +0000 Add EVENT_RESETGOTPICS which gives scripts the chance to reset gotpics (and similar effects trackers) for effects that run in EVENT_DISPLAYROOMS. EVENT_RESETGOTPICS is called after the last call to EVENT_DISPLAYROOMS in a frame, but before any engine-side calls to renderDrawRoomsQ16() From-SVN: r7734 commit 5bc0157d761c27719453dd6ef4f71ca16a9a3ce4 Author: Alex Dawson Date: Tue Jun 25 18:35:05 2019 +0000 Fix TROR & skyboxes to work with mirrors in Software & Polymost From-SVN: r7733 commit cb0ef92a73e45c757c662984ed92aae19374d2d1 Author: Alex Dawson Date: Tue Jun 25 18:35:01 2019 +0000 game.cpp: fix issue where tilt angle was not being reset to 0 at times when it should have been disabled From-SVN: r7732 commit 5890d8dea377dfb11d06b879ac920519d2e5aa52 Author: Alex Dawson Date: Tue Jun 25 18:34:59 2019 +0000 game.cpp: improve G_FPSLimit() to be more stable with regard to floating point precision. Additionally, prefer rendering early and compensating with a late frame due to clock precision rather than the other way around so that we are more consistently within a target vblank period. From-SVN: r7731 commit eb962cb18c1f4ecf8c2c9e8f4e540db36b60523b Author: Alex Dawson Date: Tue Jun 25 18:34:56 2019 +0000 Fix latency issue introduced by G_FPSLimit() handling of videoNextPage() that was causing frames to be delayed presentation until after the next frame is prepared. videoNextPage() is now called immediately after preparing the frame for drawing, outside of G_FPSLimit() but on the condition that its return value is true. From-SVN: r7730 commit e29c070296c5fb4e1c9bc31f43af454ae76cb85d Author: Alex Dawson Date: Tue Jun 25 18:34:52 2019 +0000 Add benchmarkmode cvar which allows putting demo cameras in the map which can be used for automatic benchmarking of performance & correctness testing From-SVN: r7729 commit 066427711356833c91a48d2c8cdcb7f28f0dbcf5 Author: Alex Dawson Date: Tue Jun 25 18:34:49 2019 +0000 game.cpp: change camera sprite yvel limits to clamp to min/max angle when beyond the min/max rather than when beyond 0 and 199 From-SVN: r7728 commit cdf5802f689ceecc9fb60808d861d98fefc2fa96 Author: Alex Dawson Date: Tue Jun 25 18:34:45 2019 +0000 actors.cpp: Add additional demo camera behaviours. Allow the demo camera to be used while not playing back a recorded demo. Add the ability for the camera to follow paths specified by locators. From-SVN: r7727 commit 72367f7320525e9f0331ac80bea3ac0faabc9aa9 Author: Richard Gobeille Date: Tue Jun 25 11:30:38 2019 +0000 Player duct walking sound fix From-SVN: r7726 commit 70bf21d8b6f9fecdf8617ee0ffd33f7b3dd1e466 Author: Richard Gobeille Date: Tue Jun 25 11:30:35 2019 +0000 libdivide fixup From-SVN: r7725 commit a1f40e5fe04d03e0bad8cae767ab34e8f34f5ef5 Author: Richard Gobeille Date: Tue Jun 25 11:30:31 2019 +0000 Call S_PauseSounds(false) from Menu_Close() From-SVN: r7724 commit a1eb182919d4ac196d2c9fbcd2031dd155ef56e7 Author: Richard Gobeille Date: Tue Jun 25 11:30:27 2019 +0000 Patch from Nuke.YKT to add support for the cstat flip bits to voxels in both software and Polymost From-SVN: r7723 commit 3dc9aee01b8125badee14f39fcdaafeef6b37247 Author: Richard Gobeille Date: Tue Jun 25 11:30:22 2019 +0000 Replace DO_TILE_ANIM() macro with tileUpdatePicnum() function From-SVN: r7722 commit ba1cefc6a20527d8367de08bb1d305720257829d Author: Richard Gobeille Date: Tue Jun 25 11:30:17 2019 +0000 Use default argument values of -1 for the sprite and player indexes passed to VM_OnEvent() From-SVN: r7721 commit c91f25ac5662aef3af0c30099ee82a24601063f8 Author: Richard Gobeille Date: Tue Jun 25 11:30:13 2019 +0000 Templatized linked list functions From-SVN: r7720 commit 5c6df0a98e381257d1d65052c4cc6d68eefb2c70 Author: Richard Gobeille Date: Tue Jun 25 11:30:08 2019 +0000 Use remove_pointer_t instead of regular std::remove_pointer and add a definition for it for CXX11 builds From-SVN: r7719 commit 1b6b03d2dff311c222f367a31da5721c925b248b Author: Richard Gobeille Date: Tue Jun 25 11:30:03 2019 +0000 Add SLOPTABLESIZ preprocessor definition From-SVN: r7718 commit 4ef089938852bf65a65878005c439ccc7b8b95c3 Author: Richard Gobeille Date: Tue Jun 25 11:29:59 2019 +0000 Patch from Nuke.YKT to increase the size of sloptable[] From-SVN: r7717 commit 0fb6cd68cdd64b882774ce47fbad3460511f7072 Author: Richard Gobeille Date: Tue Jun 25 11:29:55 2019 +0000 EDuke32-specific libdivide customizations From-SVN: r7716 commit 7ea50f3b0461444ab8c029bc43a572f1a6b39259 Author: Richard Gobeille Date: Tue Jun 25 11:29:50 2019 +0000 Update libdivide from git From-SVN: r7715 commit e5f6130dcbc7cd58ea09dd981dc603c1fadda2fd Author: Richard Gobeille Date: Tue Jun 25 11:29:46 2019 +0000 Patch from Nuke.YKT to improve the appearance of slopes in software mode From-SVN: r7714 commit bc8b06b9d54ccb6d44932cca8ed046ad3e3401da Author: Richard Gobeille Date: Tue Jun 25 11:29:42 2019 +0000 Patch from Nuke.YKT to implement q16 angle and horiz in software mode From-SVN: r7713 commit 6f34afdd4c2b2fefdfd3d389bf273baead01620c Author: Richard Gobeille Date: Tue Jun 25 11:29:38 2019 +0000 Patch from Fox: Polymost visibility: compensate for the classic mode "truncating" the lookup shades by moving the fog ramp by the equivalent of 1/2 shade Fix some issues with negative shade in GL fog. From-SVN: r7712 commit bec044e79fdb507e41fef294af42e5854b1a0d2e Author: Richard Gobeille Date: Tue Jun 25 11:29:34 2019 +0000 Use #if DEBUGGINGAIDS>=2 for the assertions in the structure trackers From-SVN: r7711 commit 828f1624600ce52d0654908a9c4e78582914eb6b Author: Richard Gobeille Date: Tue Jun 25 11:29:31 2019 +0000 Don't force APLAYER to have the default action when shown through a viewscreen in EDUKE32_STANDALONE builds From-SVN: r7710 commit ab3abf6449f28e08bc51671dad54617dcee5a082 Author: Richard Gobeille Date: Tue Jun 25 11:29:27 2019 +0000 Cosmetic change From-SVN: r7709 commit 82ac51559cbaa4b9871a7747b082c57d45a59253 Author: Richard Gobeille Date: Tue Jun 25 11:29:23 2019 +0000 Get rid of DYNALLOC_ARRAYS It's garbage and the "functionality" it provided is something that will be able to be achieved in a better way in a future commit. From-SVN: r7708 commit 54fc33c5e42b464443e87ce3fd37265c5496ded3 Author: Richard Gobeille Date: Tue Jun 25 11:29:19 2019 +0000 Remove FIXMATH_NO_64BIT This codebase doesn't work on any platforms where int64_t isn't even a type. From-SVN: r7707 commit ce31b14dc39e4145119a28db8ee14ef118db574e Author: Richard Gobeille Date: Tue Jun 25 11:29:15 2019 +0000 It looks like this works in MSVC From-SVN: r7706 commit d21d9f8b7dac758560932454c0510ea18b109de3 Author: Richard Gobeille Date: Tue Jun 25 11:29:08 2019 +0000 Added Xfree() function to accompany the Xmalloc() family of functions and change all uses of Bfree() to Xfree() This was necessary because everything is already allocated with the Xmalloc() functions, but a future commit will make blocks allocated with those functions no longer compatible with the system implementation of free(), which Bfree() wraps. From-SVN: r7705 commit 0813f24f507cadd14fab31a116ff269b5f47fc78 Author: Richard Gobeille Date: Tue Jun 25 11:28:53 2019 +0000 Set asksave in fixrepeats() in the editor From-SVN: r7704 commit 68519f239e753783a840eb0624b79d2255a30c7d Author: Richard Gobeille Date: Tue Jun 25 11:28:49 2019 +0000 Update miniz from 2.0.8 to 2.1.0--not much of a change From-SVN: r7703 commit e8f0953a745dbaf445d7202b78500c7258eb840d Author: Richard Gobeille Date: Tue Jun 25 11:28:44 2019 +0000 Fix bug with sprite heights and autoaim targeting From-SVN: r7702 commit df9c191aadc8b48ceb8dac26b768b42d93a72d1d Author: Richard Gobeille Date: Tue Jun 25 11:28:40 2019 +0000 Fix integer overflows in rintersect() and optimize a bit of the logic Some of the variable initialization ordering may look counterintuitive at first, but it's intended to avoid read-after-write memory access penalties. From-SVN: r7701 commit 8a9f68480e3efd846dd38d6e10e494774bd85b91 Author: Richard Gobeille Date: Tue Jun 25 11:28:37 2019 +0000 Minor pragmas.h cleanups From-SVN: r7700 commit a7033bed0604003f8ce7a3e42d48c43a63b5324d Author: Richard Gobeille Date: Tue Jun 25 11:28:33 2019 +0000 Remove ifdef'd out Gv_DivVar() generation with VM_GAMEVAR_OPERATOR macro because LIBDIVIDE_ALWAYS is going away From-SVN: r7699 commit b31261d27c289feb27a7275a7246954c7bea99f0 Author: Richard Gobeille Date: Tue Jun 25 11:28:29 2019 +0000 "Fix" editor clipping bug allowing movement into null space This doesn't so much fix the issue as band-aid over it--it appears to be an OG BUILD bug that has happened since long before I ever began improving the clipping, I don't know what causes it, and I don't want to fuck everything up trying to fix it right now. From-SVN: r7698 commit 63f72ee3d2c9d3b259c6f716cf0579490c3e7312 Author: Richard Gobeille Date: Tue Jun 25 11:28:25 2019 +0000 Replace manual casts of sprite and wall pointers to vec2/3_t with use of the anonymous union From-SVN: r7697 commit 054626d5f1a5979ca55a73bddef6f88f24d69348 Author: Richard Gobeille Date: Tue Jun 25 11:28:18 2019 +0000 Fix alpha blending bug when switching from Polymost to software mode From-SVN: r7696 commit 967f492ce753ad34953ac3b8547466368297ae3f Author: Richard Gobeille Date: Tue Jun 25 11:28:14 2019 +0000 Rename STRUCT_TRACKERS_ENABLED preprocessor definition to USE_STRUCT_TRACKERS This may also fix a minor performance regression introduced in Polymer sometime after we switched to building as C++, caused by confusion between STRUCT_TRACKERS_ENABLED and UNTRACKED_STRUCTS. UNTRACKED_STRUCTS is now named UNTRACT_STRUCTS__ to dissuade use outside of buildtypes.h. From-SVN: r7695 commit 875a76c1fd962066be32d390d2d79d80f1650aa9 Author: Richard Gobeille Date: Tue Jun 25 11:28:09 2019 +0000 Rename vec2s_t to vec2_16_t From-SVN: r7694 commit e53880627c72270629aea5a8e5e14f9a4fc1612e Author: Richard Gobeille Date: Tue Jun 25 11:28:04 2019 +0000 Add anonymous union between separate coordinate variables and vec2/3_t in basic map structs From-SVN: r7693 commit 5649a4d04bc3cfe157800c4c703021b6602e4763 Author: Richard Gobeille Date: Tue Jun 25 11:28:00 2019 +0000 Add missing ifdef From-SVN: r7692 commit 4bfef1fc39a7bf42d2bd98efe4e5815014b95354 Author: Richard Gobeille Date: Tue Jun 25 11:27:56 2019 +0000 This benchmarks as just the tiniest bit faster on my machine From-SVN: r7691 commit 75b89607b968286ebe957b6ccb4cffebf35536bd Author: Richard Gobeille Date: Tue Jun 25 11:27:52 2019 +0000 Simplify map structure tracker overloads Due to less branching, this is actually faster than trying to be clever. From-SVN: r7690 commit 2c06d1fe21d0fe481b3f3b9890475974af4538fb Author: Richard Gobeille Date: Tue Jun 25 11:27:47 2019 +0000 EDUKE32_STANDALONE crap From-SVN: r7689 commit 794947a5b0b5e1f083ab12dc024fbb0f51920465 Author: Evan Ramos Date: Sat Jun 1 18:42:27 2019 +0000 Fix macOS -Wdeprecated-declarations warnings From-SVN: r7688 commit d2bb8cfad3919209c4297853ba171e6006be5c39 Author: Evan Ramos Date: Mon May 27 22:30:42 2019 +0000 Add support for E0LXY to game defs music token From-SVN: r7687 commit 0acf6c4610bd0ef7430fa1981f965607becd572f Author: Evan Ramos Date: Mon May 27 05:45:45 2019 +0000 Fix OOB access in polymost_spriteHasTranslucency From-SVN: r7686 commit 2434228e9b0383d98561905dd40f3f993683537a Author: Evan Ramos Date: Mon May 27 05:45:41 2019 +0000 Fix OOB access in clipmove From-SVN: r7685 commit f3ed6abf8e0f14abbe4af8c03ef178a8b6d9b673 Author: Evan Ramos Date: Mon May 27 05:45:38 2019 +0000 Audiolib: Fix use-after-frees in Vorbis, FLAC, XA decoding From-SVN: r7684 commit 73809c76fa64ffe6a0001c1202f4ecbf5567a84f Author: Evan Ramos Date: Mon May 27 05:45:33 2019 +0000 Audiolib: Clean up samples handling From-SVN: r7683 commit e653ec3a1066ac2ecf5b6a6141d71373a82ac58d Author: Alex Dawson Date: Sat May 25 14:59:14 2019 +0000 polymost.cpp: fix issue where GL_ALPHA_TEST could be enabled in certain instances when executing polymost_drawrooms() and better handle when we are drawing without a texture in polymost_drawpoly() From-SVN: r7682 commit 1e72fa818219131e24d0d8369596a206632622c4 Author: Alex Dawson Date: Sat May 25 14:59:09 2019 +0000 Add GL debugging event annotations for Polymost functions From-SVN: r7681 commit 02b7c88526099bacafd9b160309213c3098e09b0 Author: Evan Ramos Date: Sun May 19 20:02:05 2019 +0000 ! From-SVN: r7680 commit ad25fa0106875340e398fd459b7b0ba45899df26 Author: Evan Ramos Date: Sun May 19 20:02:02 2019 +0000 Restore file loading From-SVN: r7679 commit 4cbd064cd6f12ff5b1cb41896b714b03e347c1c5 Author: Evan Ramos Date: Sun May 19 20:00:17 2019 +0000 Revert "Improve file loading" This reverts commit bfc6b7589e8238351986499fb830c7ab274344bc. From-SVN: r7678 commit 29837c5d9c708e586077ea8c634a03c72bd09573 Author: Evan Ramos Date: Sun May 19 19:57:10 2019 +0000 Allow CON-specified actions to override hardcoded tsprpicnum behavior of PLAYERONWATER, CAMERA1, and RAT From-SVN: r7677 commit 0478f389364e8b6d5a149b8b6207c64eb2165ff8 Author: Richard Gobeille Date: Sun May 19 03:56:29 2019 +0000 Move S_Update() out of game loop and into Net_GetPackets() This improves, but doesn't fix, the issue with sound popping when the player angle changes. From-SVN: r7676 commit 43f820f544bcc0eb038e461b561a8ff1cae4d875 Author: Richard Gobeille Date: Sun May 19 03:56:24 2019 +0000 "horizon offset should not be affected by projection hack" From-SVN: r7675 commit 0a49b91580fc909e6d6974d0c9e1c473b80ca700 Author: Richard Gobeille Date: Sun May 19 03:56:20 2019 +0000 Gamevar system maintenance This removes some of the error handling for gamevar reads and writes and trades it for simpler code and a small-but-benchmarkable performance increase. From-SVN: r7674 commit 559965e71930924041401d9c515e1368836e2ac3 Author: Richard Gobeille Date: Sun May 19 03:56:13 2019 +0000 Convert loops using unsigned integers as iterators to use regular signed ints instead https://kristerw.blogspot.com/2016/02/how-undefined-signed-overflow-enables.html Doing this as cleanly as possible involved demoting several function parameters concerning object sizes and counts from size_t to int--I'm fine with this change as the functions in question are not actually capable of handling input with sizes larger than what can be stored in a signed 32-bit integer, making the use of size_t here misleading at best. From-SVN: r7673 commit 247c8feb69987a1ac8819ea40679b7af212d19f4 Author: Richard Gobeille Date: Sun May 19 03:56:02 2019 +0000 Move call to S_Update() to after G_MoveLoop() From-SVN: r7672 commit a46e118e758dee2f4391107eb5e1310a309e7a60 Author: Richard Gobeille Date: Sun May 19 03:55:56 2019 +0000 Enable a couple of additional useful -W flags for newer versions of GCC From-SVN: r7671 commit ef9be9794329afe7d098a4444364dc19a7453405 Author: Richard Gobeille Date: Sun May 19 03:55:53 2019 +0000 Better stupid names for stupid macros in stupid function From-SVN: r7670 commit 8d90a021ccc6a58c48a3743d6e31713915cdb8ce Author: Richard Gobeille Date: Sun May 19 03:55:49 2019 +0000 Sanitize A_GetFurthestAngle() return value From-SVN: r7669 commit e6e0671139e5811849b9181ae993108494d9a618 Author: Richard Gobeille Date: Sun May 19 03:55:44 2019 +0000 Patch from Fox to access the player's subweapon member as a bitfield "Add 'bsubweapon' player structure. Same as 'subweapon', except that it writes a bit for each weapon. For example, 'ife player[].bsubweapon GROW_WEAPON 1' has the same result as 'ifand player[].subweapon 2048'." From-SVN: r7668 commit d2ae7f80efb6364866d0917f782f0f34328d5ce7 Author: Richard Gobeille Date: Sun May 19 03:55:40 2019 +0000 Fix actor z position update bug From-SVN: r7667 commit 758f960e75ddc27af186379cbb2bf989b09d2cac Author: Richard Gobeille Date: Sun May 19 03:55:36 2019 +0000 EDUKE32_STANDALONE stuff From-SVN: r7666 commit 14ef39ee943d8114a7a8b98c9b6e09d2934263db Author: Richard Gobeille Date: Sun May 19 03:55:31 2019 +0000 Add GAMEVAR_RAWQ16PTR, functioning the same as GAMEVAR_INT32PTR From-SVN: r7665 commit 9a7082f3ad68f8f99a375b50e31f5b098a7001c4 Author: Richard Gobeille Date: Sun May 19 03:55:27 2019 +0000 Make CLIPMASK0 and CLIPMASK1 regular defined tokens instead of read-only gamevars I don't remember if there was any particular reason they were added as gamevars in the first place. From-SVN: r7664 commit 610977cb4ea80b5253f74b5f1a91090a5f6390ae Author: Richard Gobeille Date: Sun May 19 03:55:23 2019 +0000 Minor optimization to avoid read-after-write in Gv_DivVar() From-SVN: r7663 commit d0219572c0931cf551f58eff19275bf0d6b5b10e Author: Richard Gobeille Date: Sun May 19 03:55:19 2019 +0000 Promote `display_mirror` from char to int32_t and remove GAMEVAR_UINT8PTR handling since nothing else was using it From-SVN: r7662 commit a556cd53cc324e447b1624c9b3f648773c481742 Author: Richard Gobeille Date: Sun May 19 03:55:14 2019 +0000 Tweak EDUKE32_PRE_XALLOC thing used when DEBUGGINGAIDS is defined From-SVN: r7661 commit a22ba6e7c991c4b9d6769e5dc56dda28da77dc07 Author: Richard Gobeille Date: Sun May 19 03:55:10 2019 +0000 Add EDUKE32_PREDICT_TRUE to our *alloc macros and flip the condition around so the true branch is first From-SVN: r7660 commit e4fec32c22e1951e56d2b87e7120b36b77d68a37 Author: Richard Gobeille Date: Sun May 19 03:55:06 2019 +0000 Add preprocessor check for __OPTIMIZE__ to EDUKE32_PREDICT_TRUE and EDUKE32_PREDICT_FALSE From-SVN: r7659 commit b66308b30b6c519183a37096e80fa3b507ab6add Author: Richard Gobeille Date: Sun May 19 03:55:01 2019 +0000 CON VM maintenance From-SVN: r7658 commit 4a52dc2f08db94492179874a07b30f4a0bb5692d Author: Richard Gobeille Date: Sun May 19 03:54:56 2019 +0000 CON_USE_COMPUTED_GOTO eval macro micro-optimization This is almost as fast as ditching the bounds check here entirely. From-SVN: r7657 commit 592e1522cfa1a35ae40cb4b7b69e1affbc9f8f9c Author: Richard Gobeille Date: Sun May 19 03:54:52 2019 +0000 Neat Polymost y-shearing patch from Nuke.YKT From-SVN: r7656 commit 16c6133434019c5a5ff5f29e48230c41930d36b0 Author: Richard Gobeille Date: Sun May 19 03:54:48 2019 +0000 Fix old issue with VM_CONDITIONAL macro From-SVN: r7655 commit fc402dba90e5a602481afcebd7ef7072955c3948 Author: Richard Gobeille Date: Sun May 19 03:54:44 2019 +0000 Rename Gv_GetArrayCountFromFile() to Gv_GetArrayCountForAllocSize() From-SVN: r7654 commit 63707dc0ed13583ac94626e5aeb5ec93cffb0b31 Author: Richard Gobeille Date: Sun May 19 03:54:40 2019 +0000 Rename Gv_SetVarX() to Gv_SetVar() (overloaded) From-SVN: r7653 commit 5f84737248de62758bf8b7e2b5d227781238e6b3 Author: Richard Gobeille Date: Sun May 19 03:54:35 2019 +0000 Rename Gv_GetVarX() to Gv_GetVar() (overloaded) From-SVN: r7652 commit 3a9f0aef41c480e88b3eaefde235d1abfae60f89 Author: Richard Gobeille Date: Sun May 19 03:54:29 2019 +0000 Fix a bunch of boolean cvars that weren't flagged as CVAR_BOOL, preventing them from working with the "toggle" console command From-SVN: r7651 commit 0d481b77c236bf97c4f74d3c4ade3f7ff6a31bff Author: Richard Gobeille Date: Sun May 19 03:54:24 2019 +0000 Polymost shade table interpolation patch from Nuke.YKT From-SVN: r7650 commit cd2e7f841be1e106db12dde3b2379432482d5ad4 Author: Richard Gobeille Date: Sun May 19 03:54:21 2019 +0000 Fix buffer overflow in polymost_drawrooms From-SVN: r7649 commit 242c815fe26b7da39dd4df91c94ddc5a2ec8ea63 Author: Richard Gobeille Date: Sun May 19 03:54:17 2019 +0000 const correctness that I didn't have another commit to squash into From-SVN: r7648 commit b0886f3b3cc9944f145b94c2b998e360da569bba Author: Richard Gobeille Date: Sun May 19 03:54:12 2019 +0000 Rename "loopcnt" to "vm_execution_depth" and CON_DIRECT_THREADING_DISPATCH to CON_USE_COMPUTED_GOTO Also removes a redundant "break" statement in builds not using CON_USE_COMPUTED_GOTO. From-SVN: r7647 commit e2edc716efc8d4a5d1451810880da70f277e8e58 Author: Richard Gobeille Date: Sun May 19 03:54:08 2019 +0000 Simplify the beginning of VM_Execute() This also moves the loop control stuff into #ifndef CON_DIRECT_THREADING_DISPATCH blocks, since we don't actually need a loop anymore when using the computed goto stuff. From-SVN: r7646 commit f74c2ba43243093b4a42ecc89b89fd2c6b39d15f Author: Richard Gobeille Date: Sun May 19 03:54:04 2019 +0000 Minor changes similar to the VM_Execute() maintenance commit No user-facing changes. From-SVN: r7645 commit a47eb721c642c8c475bc0ce05c633a097dd47bd6 Author: Richard Gobeille Date: Sun May 19 03:54:00 2019 +0000 Fix a potentially funny bug in the CON parser I don't think anyone actually ran into this. From-SVN: r7644 commit 179e9fa1ec09d4a0851f44f22e1224ee6a50fef0 Author: Richard Gobeille Date: Sun May 19 03:53:56 2019 +0000 Organize Polymost cvars a little bit This intentionally adds CVAR_NOSAVE to r_npotwallmode so that the recently added mode 2 can be more thoroughly tested by users with existing configuration files. From-SVN: r7643 commit ec88027b4fd9d5c36cd868ba76bac24c11e0b96c Author: Richard Gobeille Date: Sun May 19 03:53:52 2019 +0000 VS project file updates From-SVN: r7642 commit 524d5c536d9a45109deaf1049fe1133455b632b7 Author: Richard Gobeille Date: Sun May 19 03:53:46 2019 +0000 Simplify CON_FINDNEARACTOR family of functions and restore the original behavior of returning the nearest sprite instead of any sprite that satisfies the condition From-SVN: r7641 commit ba4225b2033f50bff6816ceac8f9195839f704f0 Author: Richard Gobeille Date: Sun May 19 03:53:42 2019 +0000 Fix errant "continue" found remaining in the CON_FINDNEARACTOR family of functions From-SVN: r7640 commit 2e9c48199ca015bb1de5265272ce499f006540d6 Author: Richard Gobeille Date: Sun May 19 03:53:38 2019 +0000 Replace a handful of accesses to sprite[vm.spriteNum] with accesses to vm.pSprite It looks like these were simply missed when vm.pSprite was initially added. From-SVN: r7639 commit 0278df48908eeba293c64ec56012d118197515c4 Author: Richard Gobeille Date: Sun May 19 03:53:34 2019 +0000 Add VM_ASSERT() macro for handling VM error conditions This is for errors that simply check a condition (surrounded with EDUKE32_PREDICT_FALSE) and bail out with CON_ERRPRINTF() and abort_after_error(). Not everything that fits this description has been transitioned to use the new macro yet. From-SVN: r7638 commit 2a858972b664c64d3d42314af10e7cfe5948984d Author: Richard Gobeille Date: Sun May 19 03:53:30 2019 +0000 Tweak inlined VM_OnEvent() internals, biggest change being the removal of two instances of EDUKE32_PREDICT_FALSE From-SVN: r7637 commit dbbf4468ebca068a564b9eeb7df016ef02ce556e Author: Richard Gobeille Date: Sun May 19 03:53:25 2019 +0000 Use function overloading to clean up some of the CON event execution function names From-SVN: r7636 commit ea3659cea770754fb31962e4b987dbdef13133b0 Author: Richard Gobeille Date: Sun May 19 03:53:20 2019 +0000 Optimize A_Execute() control flow From-SVN: r7635 commit 09e1b5fbb015bfa916345c3354236d56eba611b2 Author: Richard Gobeille Date: Sun May 19 03:53:16 2019 +0000 Better VM_DummySprite() From-SVN: r7634 commit 70296c658e74d23ec4b2504677ca1bb63bd4d15e Author: Richard Gobeille Date: Sun May 19 03:53:11 2019 +0000 Clean up Lunatic stuff in VM_AlterAng()/VM_Move()/VM_UpdateAnim()/A_Execute() From-SVN: r7633 commit d5dc492aa0fb08b89647e0e48c9af753c33d5b70 Author: Richard Gobeille Date: Sun May 19 03:53:07 2019 +0000 Add EDUKE32_PREDICT_FALSE to EVENT_ANIMATESPRITES check in G_SaveMapState() and G_RestoreMapState() From-SVN: r7632 commit 7b4f01655012056d355aa8a18a8551f6aa2b5d60 Author: Richard Gobeille Date: Sun May 19 03:53:03 2019 +0000 Minor VM_Execute() maintenance From-SVN: r7631 commit e4718a68fee4d30ded4afeedf30854b67c02fc95 Author: Richard Gobeille Date: Sun May 19 03:52:59 2019 +0000 Temporary voxel VBO fix From-SVN: r7630 commit 5d1e236bf714a7ccb2df7351f0579b39937cc94b Author: Richard Gobeille Date: Sun May 19 03:52:54 2019 +0000 Templatize bfirst_search_init() and bfirst_search_try() so they can be used with types other than int16_t From-SVN: r7629 commit dabe19b270b9b6640823eda4af842b23eb8da9eb Author: Richard Gobeille Date: Sun May 19 03:52:47 2019 +0000 This is more efficient This commit brought to you by 4/20. From-SVN: r7628 commit f90efbd784ba9bfda1a70b3b838bf9e7573a377b Author: Alex Dawson Date: Mon May 6 21:53:46 2019 +0000 engine.cpp: fix sprite sorting/adjustment issue introduced in r7612 that caused sprites with the same y value at the end of the sorted array to not be adjusted properly From-SVN: r7627 commit 7b85a1e9635b19cf0120e7193246e87b64e7bc4b Author: Alex Dawson Date: Mon May 6 21:53:44 2019 +0000 polymost.cpp: Fix issue where state would not be reset properly in polymost_drawmaskwall() when rendering translucent maskwalls with no texture From-SVN: r7626 commit c4aefa9f1f795908f3d122af1095e58789c4fcda Author: Alex Dawson Date: Mon May 6 21:53:41 2019 +0000 polymost.cpp: fix polymost_dorotatesprite() alpha test/blend issue introduced in r7619 From-SVN: r7625 commit b57a114d16591518de1b79dde01db2f5c6128c9b Author: Alex Dawson Date: Fri May 3 15:02:44 2019 +0000 polymost.cpp: fix issue where floors & ceilings with DAMETH_MASKPROPS were not being blended From-SVN: r7624 commit ae0ce6c6b0aa6623c60d8b52eeff20d8167aedf1 Author: Alex Dawson Date: Tue Apr 30 20:09:23 2019 +0000 engine.cpp: fix bug in killsprite where sprites were not being removed properly after sorting changes From-SVN: r7623 commit fbc0f5628b8f01efba8dc64aa291f57f22df0e49 Author: Alex Dawson Date: Tue Apr 30 18:48:09 2019 +0000 Fix Polymer skybox bug introduced in r7620 From-SVN: r7622 commit 99286a3bf4a40c036dee9ddf34e03069603b0be4 Author: Alex Dawson Date: Tue Apr 30 11:12:30 2019 +0000 Fix polymost_drawtilescreen() to not be improperly affected by globalshade. From-SVN: r7621 commit 9a013ef6a17f939d026e37db82278d13a5852192 Author: Alex Dawson Date: Tue Apr 30 11:12:21 2019 +0000 Remove enabling/disabling of deprecated GL_TEXTURE_2D in Polymost. For Polymer, temporarily workaround coupling with Polymost and usage of the fixed-function pipeline. Additionally, fix typo in polymost_printtext256(). From-SVN: r7620 commit 143d5ff29d4c4ae2de2279797630bd1f8da7937a Author: Alex Dawson Date: Tue Apr 30 11:12:16 2019 +0000 Reduce state changes and fix translucent maskwall depth buffer issue From-SVN: r7619 commit 901913ef0726a0923720c882bdaf5b9316c30c3a Author: Richard Gobeille Date: Sat Apr 20 21:57:05 2019 +0000 This is a few less instructions From-SVN: r7618 commit de02ab9858db5b83b4402bbd20b228242c358d21 Author: Richard Gobeille Date: Sat Apr 20 21:57:02 2019 +0000 Fix TROR clipping issue From-SVN: r7617 commit 6555b4fc3455f662c9f8adfd4de4fd92f4c97003 Author: Richard Gobeille Date: Sat Apr 20 21:56:54 2019 +0000 Update VS solution and project files From-SVN: r7616 commit c6ce48587be082e85f3c61b019491f6935c43057 Author: Alex Dawson Date: Sat Apr 20 04:07:52 2019 +0000 Fix maskwall array indirection bug and two if conditional oversights from r7612 From-SVN: r7615 commit 84dff5967f1e0e2f5e32179e05669a00e9a862d2 Author: Richard Gobeille Date: Fri Apr 19 22:31:43 2019 +0000 Fix longstanding player hitscan and decal z coordinate offset bug This one traces back to the original DOS code. From-SVN: r7614 commit f92c16b609fb91cb64a501f83d7e9da64a71e525 Author: Alex Dawson Date: Fri Apr 19 21:45:26 2019 +0000 polymost.cpp: switch from writing gl_FragColor to writing gl_FragData[0] in order to reduce VGPR usage on AMD cards From-SVN: r7613 commit df3d9ccada8f9a38f2953b90005bc91b55b66f83 Author: Alex Dawson Date: Fri Apr 19 21:45:22 2019 +0000 Fix depth buffer issue causing translucent sprites to not render properly in Polymost. Use polymost_spriteHasTranslucency() and polymost_maskWallHasTranslucency() to determine if a sprite has translucency. Optimize sprite rendering when in Polymost by only sorting sprites with translucency. From-SVN: r7612 commit 8cd656071f9f3ee37021b3bc599da87bd72044de Author: Richard Gobeille Date: Fri Apr 19 08:31:54 2019 +0000 Improve check_floor_curb() This should fix several remaining clipping bugs. From-SVN: r7611 commit 4574b32da45e3c41099b4c17d15fedbbba3de51c Author: Richard Gobeille Date: Fri Apr 19 08:31:50 2019 +0000 Fix SOS check in clipmove() From-SVN: r7610 commit 84716bf236ca9757107f783a5e4c46be9debd579 Author: Richard Gobeille Date: Fri Apr 19 08:31:47 2019 +0000 Add support for returning the closest point in the sector to getsectordist() From-SVN: r7609 commit be08eb2a85f0fd058ab089239090bd74027f4c2f Author: Richard Gobeille Date: Fri Apr 19 08:31:42 2019 +0000 Add new findwallbetweensectors() function and change sectoradjacent() to use it From-SVN: r7608 commit feee233fcaa747fb3f3d3b57acbfd0ec5a3287e5 Author: Richard Gobeille Date: Thu Apr 18 17:25:42 2019 +0000 Add *.grp, *.rts, *.art, and the current names for the texture cache files to .gitignore From-SVN: r7607 commit 26d5658c9ea34879eba77a1482f12f6f0c7d58e9 Author: Richard Gobeille Date: Thu Apr 18 17:25:38 2019 +0000 Piddly fart bullshit changes that don't really do anything From-SVN: r7606 commit 50f8e3be422e6e44c31a3ebb346b07ed0ab8679d Author: Richard Gobeille Date: Thu Apr 18 17:25:34 2019 +0000 Exclude vfs.cpp from VS project to suppress linker warning about an object without symbols From-SVN: r7605 commit 1db5b170ac16f19e0e6b5942ed1b2a03d9e48a63 Author: Richard Gobeille Date: Thu Apr 18 17:25:30 2019 +0000 Add SFLAG_QUEUEDFORDELETE, to handle detection and manipulation of things like decal sprites marked for deletion From-SVN: r7604 commit b63525e1b43719568811086a142041ff23f0a713 Author: Richard Gobeille Date: Thu Apr 18 17:25:24 2019 +0000 Utilize the types added in the previous commit This patch is a bit large. From-SVN: r7603 commit dfc4c9e0177aea16e8b20a3f17441dd6f9fa3255 Author: Richard Gobeille Date: Thu Apr 18 17:25:14 2019 +0000 Introduce a few "new" types for convenience when dealing with pointers to sprites, walls, and sectors that bypass the StructTracker stuff From-SVN: r7602 commit 23d78a10077da31045ec7e68d301e72e724f6dad Author: Richard Gobeille Date: Thu Apr 18 17:25:11 2019 +0000 This should fix updatesector/updatesectorz performance while retaining the benefits of breadth-first search From-SVN: r7601 commit 65e9cd8c739aabc840d654ce9acf501f173094e5 Author: Richard Gobeille Date: Thu Apr 18 17:25:07 2019 +0000 Add optional output parameter to getwalldist(), to return the coordinates of the closest point on the wall From-SVN: r7600 commit 5aa0d04ad82b85d1b7111b0850093873124d3e8a Author: Richard Gobeille Date: Thu Apr 18 17:25:02 2019 +0000 Fix EDUKE32_STANDALONE crash when calling G_DeleteOldSaves() at startup in debug builds From-SVN: r7599 commit 1054030e2752ed59d25a6c3b3a348f5149f73e76 Author: Richard Gobeille Date: Thu Apr 18 17:24:59 2019 +0000 Whitespace From-SVN: r7598 commit 52e749446a7a06c53f21120c62ded53262188c3a Author: Richard Gobeille Date: Thu Apr 18 17:24:55 2019 +0000 Remove useless unused "sqr" function From-SVN: r7597 commit 14da80ef238cd9e5344c47d4629e6cf9bfce24d4 Author: Richard Gobeille Date: Thu Apr 18 17:24:51 2019 +0000 Make editor no longer mask off sprite cstat bits when set from script From-SVN: r7596 commit f1acdabf6735c4bb201a2cf303840473b6fff72b Author: Richard Gobeille Date: Thu Apr 18 17:24:48 2019 +0000 Update libdivide.h with a couple of fixes for obscure problems from their git repo From-SVN: r7595 commit a3402f8b2b95a2bd598f24d4dce6c26747d612be Author: Richard Gobeille Date: Thu Apr 18 17:24:43 2019 +0000 Fix a bunch of improperly defined bitmap arrays From-SVN: r7594 commit 8aa2709c1cf7aa2e9f8d9b0a506e33bc7f5164c8 Author: Richard Gobeille Date: Thu Apr 18 17:24:37 2019 +0000 Add bounds checking for renderSetTarget() I'm not aware of this problem actually occurring anywhere, but too many consecutive calls to renderSetTarget() without the appropriate calls to renderRestoreTarget() between them would overflow 5 different arrays. From-SVN: r7593 commit e7b5c3222317386276aaeb5fbcde1b523f8fa970 Author: Richard Gobeille Date: Thu Apr 18 17:24:34 2019 +0000 This version of equation() compiles into fewer instructions From-SVN: r7592 commit 2957882848d222b58a0d71e839928caae165ac8c Author: Richard Gobeille Date: Thu Apr 18 17:24:30 2019 +0000 Replace yax_getclosestpointonwall() with getclosestpointonwall_internal() and use it in both yax_walldist() and getwalldist() This commit also adds a getsectordist() but we aren't using it anywhere yet. From-SVN: r7591 commit 7081b3ab1d0ab2890fb33bd1dfc94e56004c7f29 Author: Richard Gobeille Date: Thu Apr 18 17:24:26 2019 +0000 Move NEXTWALL and POINT2 macros into build.h From-SVN: r7590 commit 4bbca314a738abc99c9f250a51cede0aed158a98 Author: Richard Gobeille Date: Thu Apr 18 17:24:22 2019 +0000 Remove obsolete "msinttypes" headers From-SVN: r7589 commit ad619e0871c02c52424eac8b8d47051038ffdda9 Author: Richard Gobeille Date: Thu Apr 18 17:24:17 2019 +0000 Use FORCE_INLINE and CONSTEXPR where appropriate in the Q16 fixed point math library From-SVN: r7588 commit 553c2daaaffd183c79e26e7c11c1ca54fcc43a96 Author: Richard Gobeille Date: Thu Apr 18 17:24:10 2019 +0000 auto/const/constexpr bullshit From-SVN: r7587 commit 3bd4b26382535477e7b508d75a79310ce885ce5b Author: Richard Gobeille Date: Thu Apr 18 17:24:05 2019 +0000 Rename clipwalldist() to getwalldist() and move both it and sectoradjacent() to engine.cpp From-SVN: r7586 commit b957d955f692ffee4e5c4185f9f7f6a4acc683bc Author: Richard Gobeille Date: Thu Apr 18 17:24:01 2019 +0000 clip.cpp usectortype cleanup From-SVN: r7585 commit cbfda0efc02198657b94128197467fefd8785a43 Author: Richard Gobeille Date: Thu Apr 18 17:23:57 2019 +0000 Fix a really stupid bug in r7574 From-SVN: r7584 commit 5c484f8ef02ce472f2026dab09e6d0f8bf462461 Author: Richard Gobeille Date: Thu Apr 18 17:23:53 2019 +0000 Make getceilzofslopeptr/getflorzofslopeptr/getzsofslopeptr not invoke the structure trackers From-SVN: r7583 commit 5c6de60238c72d749e1f023a06b6efb0c5e76edb Author: Richard Gobeille Date: Thu Apr 18 17:23:50 2019 +0000 Add a distance check to clipupdatesector() to prevent traversing through portals that are outside the wall distance passed to clipmove() From-SVN: r7582 commit 6b8992cbb861eff999c6f8c1ca171a3c828bf6f1 Author: Richard Gobeille Date: Thu Apr 18 17:23:46 2019 +0000 Expose yax_getclosestpointonwall() for use outside of engine.cpp From-SVN: r7581 commit 001d3e015b5ca597cbc5afae4f8d8c863e8af997 Author: Richard Gobeille Date: Thu Apr 18 17:23:42 2019 +0000 Fix addclipsect() accidentally being nested under #ifdef HAVE_CLIPSHAPE_FEATURE From-SVN: r7580 commit 7d7200497ab516d69c5acb937ccbe8d7bde70b3d Author: Richard Gobeille Date: Thu Apr 18 17:23:38 2019 +0000 CON_UPDATESECTOR/CON_UPDATESECTORZ: only use sprite[vm.spriteNum].sectnum if the initial value of the input/output parameter is outside the range of 0 - MAXSECTORS-1 From-SVN: r7579 commit 3e917dc1f5c8612e1ff0f6c9d8a7cfd520bb3e92 Author: Richard Gobeille Date: Thu Apr 18 17:23:35 2019 +0000 Use uwalltype in inside() to avoid invoking the struct trackers From-SVN: r7578 commit 9541f6a077c0e4d436065e103bb1903d2cf9b1e8 Author: Richard Gobeille Date: Thu Apr 18 17:23:30 2019 +0000 Revert "Clean up clip.cpp struct casting including but not limited to r7466 changes" From-SVN: r7577 commit e8325f44412ebfa7ac7939fedeac48c402d398fb Author: Evan Ramos Date: Sun Apr 14 03:44:44 2019 +0000 Clean up clip.cpp struct casting including but not limited to r7466 changes From-SVN: r7576 commit ffda38542b7f085de0c26c71a35a902a04092a0d Author: Evan Ramos Date: Sun Apr 14 03:44:40 2019 +0000 Fix clipshape regression in r7466 From-SVN: r7575 commit 65ff82f19c161c2d69bd3bae303fa996e8cac3ea Author: Richard Gobeille Date: Wed Apr 10 09:31:12 2019 +0000 Replace manual search of clipsectorlist[] in clipmove() and friends with a bitmap From-SVN: r7574 commit 8fd1b4b8ec775769a1108daee3b45f958b38ef6f Author: Richard Gobeille Date: Wed Apr 10 09:31:09 2019 +0000 Fix clipupdatesector() From-SVN: r7573 commit 37839f7198024d53fea5fd4d0646bcce311a68a6 Author: Richard Gobeille Date: Wed Apr 10 09:31:05 2019 +0000 Improve warnings spewed by clipmove() when attempting to consider too many things for clipping From-SVN: r7572 commit 65a1fec6cd5011a395ee122b69095e8fba2147c1 Author: Richard Gobeille Date: Wed Apr 10 09:31:01 2019 +0000 Clean up clip.h and declare a bunch of stuff in clip.cpp static From-SVN: r7571 commit 44d7247b93fbd4273ac5550b837e6fc71adea76b Author: Richard Gobeille Date: Wed Apr 10 09:30:52 2019 +0000 Reduce MAXCLIPSECTORS to 512 From-SVN: r7570 commit db14221a044a11e48cea8e99daccdb6158be840c Author: Richard Gobeille Date: Wed Apr 10 09:30:49 2019 +0000 Limit lastwall() to 'numwalls' iterations instead of MAXWALLS From-SVN: r7569 commit 0af2291fee2879ad2090a2f231411798f8089aa7 Author: Richard Gobeille Date: Wed Apr 10 09:30:45 2019 +0000 Simplify conditions in bfirst_search_try() From-SVN: r7568 commit 145ff0bb961a081703e5f2ec068d40c0dd8944e3 Author: Richard Gobeille Date: Wed Apr 10 09:30:41 2019 +0000 clipmove/pushmove parameter const correctness From-SVN: r7567 commit 4749fe5d95c6163387abb42e599499e27987a807 Author: Evan Ramos Date: Wed Apr 10 01:01:30 2019 +0000 Duke: Fix -Wparentheses From-SVN: r7566 commit 36715862a2eaa1f814c4a97bfe5673e010d175da Author: Evan Ramos Date: Wed Apr 10 01:01:22 2019 +0000 KenBuild: Fix -Wuninitialized From-SVN: r7565 commit 90bf057f40dda2346cbd93fae2fa17d36cd109b7 Author: Evan Ramos Date: Wed Apr 10 01:01:19 2019 +0000 KenBuild: Fix -Wlto-type-mismatch From-SVN: r7564 commit a9a1a79d9b5fd66f53eed21528601c684866c321 Author: Evan Ramos Date: Wed Apr 10 01:01:15 2019 +0000 SW, KenBuild: Populate the default resolution values from the current desktop settings From-SVN: r7563 commit 050c30e0d780f59f5248404f9da75b6a6eeedb3b Author: Evan Ramos Date: Wed Apr 10 01:01:07 2019 +0000 SW: Fix -Waggressive-loop-optimizations From-SVN: r7562 commit 3aee02bfa84d68ae517da3d43f7aff475db996d9 Author: Evan Ramos Date: Wed Apr 10 01:01:03 2019 +0000 SW: Fix -Wrestrict From-SVN: r7561 commit 9e857390563239d43dbfa3ae7191804e4593ab28 Author: Evan Ramos Date: Wed Apr 10 01:00:55 2019 +0000 SW: Fix more -Wformat-overflow From-SVN: r7560 commit 7dd3b709ff45398643440b6f577924d1ca86aa8a Author: Evan Ramos Date: Wed Apr 10 01:00:50 2019 +0000 compat.h: Factor some repeated conditional_t statements into a new take_sign_t From-SVN: r7559 commit 98473db035d1de618e737d336cb713dd08a5b788 Author: Evan Ramos Date: Wed Apr 10 01:00:42 2019 +0000 Fix newly exposed -Wtautological-constant-out-of-range-compare in kplib From-SVN: r7558 commit c17701b5ebd2e55a61920b4d7297c2d7f14dccf7 Author: Evan Ramos Date: Wed Apr 10 01:00:38 2019 +0000 Replace `#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)` with `#ifdef HAVE_CXX11_HEADERS` From-SVN: r7557 commit 3e10e12f100e867dc93f314ac7ee0eac9451a978 Author: Evan Ramos Date: Wed Apr 10 01:00:35 2019 +0000 SW: Fix -Wabsolute-value From-SVN: r7556 commit 1c5e60d12f8f828ffdd6ea78f4e17a64d82e0dbd Author: Evan Ramos Date: Wed Apr 10 01:00:32 2019 +0000 SW: Fix -Wpointer-bool-conversion From-SVN: r7555 commit cf42f091e59dfff83a1002e157c5911e2d3cfbe0 Author: Evan Ramos Date: Wed Apr 10 01:00:24 2019 +0000 SW: Fix -Warray-bounds From-SVN: r7554 commit 378dd3731dd0535802ed14cd1078b69050d1c3be Author: Evan Ramos Date: Wed Apr 10 01:00:15 2019 +0000 SW: Fix -Wformat-security From-SVN: r7553 commit 19e32253447c03eba330e702b0c2a0a433730ba0 Author: Alex Dawson Date: Tue Apr 9 21:42:52 2019 +0000 polymost.cpp: fix fragment shader issue where fullbrights in a texture could affect rendering when u_useColorOnly was enabled From-SVN: r7552 commit 509da922cb10f87cca2f566f73aa5027bf154302 Author: Richard Gobeille Date: Tue Apr 9 19:21:40 2019 +0000 Fix warnings with TrackedType From-SVN: r7551 commit dc062e704d8471816cf0a75ec842c3b3e8bfb9f6 Author: Richard Gobeille Date: Tue Apr 9 19:21:37 2019 +0000 Fix potential future issues with cursectnum exceeding numsectors after a sector delete operation in the editor From-SVN: r7550 commit 8782112c0c733b6758afc5a45026bf98a61cb00b Author: Richard Gobeille Date: Tue Apr 9 19:21:33 2019 +0000 Fix crash when passing updatesectorz() an invalid sector number > numsectors and < MAXSECTORS From-SVN: r7549 commit 845ee18b82fc4ae45086132a7e8ca3e6cfa6fe31 Author: Richard Gobeille Date: Tue Apr 9 19:21:29 2019 +0000 Fix issue where "unbound" without a control name afterward would end up in settings.cfg when dealing with disabled gamefuncs From-SVN: r7548 commit b54cb6b249340131f0f921011e5040f952c1f3c1 Author: Richard Gobeille Date: Tue Apr 9 19:21:26 2019 +0000 Fix issue with G hotkey in editor sound list (F2) where the input field value was clamped to the total number of defined sounds instead of the highest index a sound is defined at From-SVN: r7547 commit 0578cac245d92a3d889ed03d5acfc3b226c7b201 Author: Richard Gobeille Date: Tue Apr 9 19:21:22 2019 +0000 Add clipupdatesector(), a special version of updatesector() that only searches and returns results that are already in clipsectorlist[] From-SVN: r7546 commit 337afdeea77dd0236c3585b9b5b5fc683819ff72 Author: Richard Gobeille Date: Tue Apr 9 19:21:17 2019 +0000 Fix TROR wall blocking issue From-SVN: r7545 commit 0bf8cfddac8348bf66d173f35faee616d56cc69b Author: Richard Gobeille Date: Tue Apr 9 19:21:13 2019 +0000 Fucking tabs From-SVN: r7544 commit 9af943002cd047e33ab8d743e39b9e490aec19c5 Author: Evan Ramos Date: Mon Apr 8 06:29:27 2019 +0000 Fix extern "C" error in kplib.h affecting the Build tools From-SVN: r7543 commit a338852e7f0061e8f9804a72c120b01b17efd7ec Author: Evan Ramos Date: Mon Apr 8 06:29:24 2019 +0000 Fix compilation failure in wad2map.cpp From-SVN: r7542 commit d1bbc334b146fb34c582fa685e8b7708536fae12 Author: Evan Ramos Date: Mon Apr 8 06:29:15 2019 +0000 KenBuild: Fix startup crashes From-SVN: r7541 commit c9e837ad4cd9b7eba0053b52a37cc033a684ccfc Author: Evan Ramos Date: Mon Apr 8 06:29:11 2019 +0000 KenBuild: Engine function rename casualties From-SVN: r7540 commit 379d2243baf087b199cf1ceb4956113e63fe0b41 Author: Evan Ramos Date: Mon Apr 8 06:29:06 2019 +0000 SW: Take a crack at the editor's ExtPostStartupWindow From-SVN: r7539 commit 15a09bca7d6bdab910a6f23ba813d488af8927cf Author: Evan Ramos Date: Mon Apr 8 06:28:58 2019 +0000 SW: Copy editor function stubs from KenBuild From-SVN: r7538 commit 675a52ef53060b26a84595200801a5c3e4503e91 Author: Evan Ramos Date: Mon Apr 8 06:28:54 2019 +0000 Update some program names From-SVN: r7537 commit ba5c0cbc663afe8f0f89f35b9220b266eaf462a0 Author: Evan Ramos Date: Mon Apr 8 06:28:43 2019 +0000 SW: Fix -Wlogical-op From-SVN: r7536 commit ff3c0e487d680ecc3ee8ca519b023a7b92c02eb1 Author: Evan Ramos Date: Mon Apr 8 06:28:39 2019 +0000 SW: Fix -Wsizeof-pointer-memaccess From-SVN: r7535 commit 5f7f63860ffdb988ecb1302a580f2e5466bc3df3 Author: Evan Ramos Date: Mon Apr 8 06:28:31 2019 +0000 SW: Fix -Wformat-overflow and -Wstringop-overflow From-SVN: r7534 commit 842387612567f776551406d422388f16dd30cc69 Author: Evan Ramos Date: Mon Apr 8 06:28:26 2019 +0000 SW: Fix -Wimplicit-fallthrough From-SVN: r7533 commit 4fbc012c59dc5e27761181326be5b0af2301d386 Author: Evan Ramos Date: Mon Apr 8 06:28:18 2019 +0000 SW: Fix -Wmisleading-indentation From-SVN: r7532 commit aaffd9ca4d9306c8375adcee212cde7b41c5d473 Author: Evan Ramos Date: Mon Apr 8 06:28:15 2019 +0000 SW: Fix -Wint-to-pointer-cast From-SVN: r7531 commit 354989361cc9a47bafc8f5bfd9eba3e9bd569bcc Author: Evan Ramos Date: Mon Apr 8 06:28:06 2019 +0000 SW: Fix remaining -Wcast-qual warnings From-SVN: r7530 commit f678a6d7f40fd1da0f254a7d23578acb7f6ab7f9 Author: Evan Ramos Date: Mon Apr 8 06:27:58 2019 +0000 SW: Fix hilarious -Wlogical-not-parentheses warning that accidentally worked as intended owing to numerical values of the MIRRORSTATE enum From-SVN: r7529 commit 55034307d267ed128786c90116c81de193c8668d Author: Evan Ramos Date: Mon Apr 8 06:27:55 2019 +0000 SW: Fix -Wcast-qual in grpscan From-SVN: r7528 commit 1455daee9b2099f021251de6e8d2b60e20decc8f Author: Evan Ramos Date: Mon Apr 8 06:27:51 2019 +0000 SW: Fix -Wnarrowing warning From-SVN: r7527 commit bb668f2f8379e1755c9052d24c2515b1d35ff968 Author: Evan Ramos Date: Mon Apr 8 06:27:48 2019 +0000 SW: Address -Woverflow warnings resulting from the struct tracker templates being too restrictive From-SVN: r7526 commit 9a537ea753a0fab59e52c84cae42333bb92cdb66 Author: Evan Ramos Date: Mon Apr 8 06:27:39 2019 +0000 SW: More TrackerCast From-SVN: r7525 commit bbed37ae464b845e52aa1253ccacf36b3edce27a Author: Evan Ramos Date: Mon Apr 8 06:27:35 2019 +0000 SW: Fix -Wnarrowing errors in grpscan From-SVN: r7524 commit 6886285fbf641e0ca3a039fb23522146723dfda4 Author: Evan Ramos Date: Mon Apr 8 06:27:31 2019 +0000 SW: Fix -fpermissive function pointer type errors From-SVN: r7523 commit 034fed58de3bb64f4cdce8cacc2d28bfa7c2da8a Author: Evan Ramos Date: Mon Apr 8 06:27:28 2019 +0000 SW: #ifdef'd out supportdir and user_profiles_disabled stuff for now. Patch from Striker. From-SVN: r7522 commit 6704cb7093f4beb09e8c223a8f5ff623574977af Author: Evan Ramos Date: Mon Apr 8 06:27:24 2019 +0000 SW: Hacks to input code just to get it to compile. Patch from Striker. From-SVN: r7521 commit 672e3953925cbfccc257d971f2bae0dc870febdd Author: Evan Ramos Date: Mon Apr 8 06:27:15 2019 +0000 SW: Added dummy M32RunScript/G_Polymer_UnInit/app_crashhandler/osdcmd_restartvid calls. Patch from Striker. From-SVN: r7520 commit 465a3171c0a76176c1452adf0884ed064958f0e6 Author: Evan Ramos Date: Mon Apr 8 06:27:12 2019 +0000 SW: Made a slight stylistic change to GetSyncInfoFromPacket declaration to match actual function. Patch from Striker. From-SVN: r7519 commit 05d207d428e84c2d291318afa818d43a4129697f Author: Evan Ramos Date: Mon Apr 8 06:27:09 2019 +0000 SW: Added 1.f to floating point volume parameter of FX_Play(3D) calls, will need a proper implementation at some point. Patch from Striker. From-SVN: r7518 commit 0a98bde22004dcc85c48ad0e6accd68e53d3f8df Author: Evan Ramos Date: Mon Apr 8 06:27:05 2019 +0000 Dummy functions for mmulti.h for now until OldMP's mmulti is ported Patch from Striker. From-SVN: r7517 commit ed6c277234caccc02ff744db88ac6cccab063f2f Author: Evan Ramos Date: Mon Apr 8 06:27:02 2019 +0000 SW: Put a temporary shim in to get the length of an anm file to pass to ANIM_LoadAnim. Patch from Striker. From-SVN: r7516 commit 5b5a8409934f8ccaa6746dfb87318853ba067477 Author: Evan Ramos Date: Mon Apr 8 06:26:58 2019 +0000 Move structs out of animlib.cpp and into animlib.h. Patch from Striker. From-SVN: r7515 commit b7d0d9a2dd67d968e5932df339dd678a94a57b4b Author: Evan Ramos Date: Mon Apr 8 06:26:54 2019 +0000 SW: Get the log file working and avoid crashing due to not doing so Patch from Striker. From-SVN: r7514 commit 58b7f4cbc12e4130d969b3bcb13e2a79541b4a82 Author: Evan Ramos Date: Mon Apr 8 06:26:50 2019 +0000 SW: Get grpscan.cpp compiling by fixing declaration and initialization of grpfiles/foundgrps Patch from Striker. From-SVN: r7513 commit 5b34d0b736e14ff222d9df867b2525d8d826b624 Author: Evan Ramos Date: Mon Apr 8 06:26:47 2019 +0000 SW: Fix overflow in password member of "GAME_SET gs" struct. Patch from Striker. From-SVN: r7512 commit bd83260db6ce684557c37f12cb84f79c9c592c25 Author: Evan Ramos Date: Mon Apr 8 06:26:44 2019 +0000 SW: Add includes of config.h where needed Patch from Striker. From-SVN: r7511 commit 03e0e491ad8eb7633fd3c160767dbe6589375847 Author: Evan Ramos Date: Mon Apr 8 06:26:40 2019 +0000 SW: Replace old crc32 functions with Bcrc32, mirroring how it's used in Duke's grpscan.cpp. Patch from Striker. From-SVN: r7510 commit 069a82549424bc832bc6a071d1b624b140ee046e Author: Evan Ramos Date: Mon Apr 8 06:26:36 2019 +0000 SW: Update calls to functions that have been renamed. Patch from Striker. From-SVN: r7509 commit 23c282976169c63f2ea1fbcb6da7d2c59abca3b4 Author: Evan Ramos Date: Mon Apr 8 06:26:29 2019 +0000 SW: Comment bad free calls to pointers that are never heap allocated. Patch from Striker. From-SVN: r7508 commit 1e7a5664d7e4084e085c6b468a8254061f54d562 Author: Evan Ramos Date: Mon Apr 8 06:26:21 2019 +0000 SW: Replace void* with decltype(o) in TRAVERSE define. Patch from Striker. From-SVN: r7507 commit 97bbd1d48f3ba0383bd94376bf8c01b463769c0a Author: Evan Ramos Date: Mon Apr 8 06:26:17 2019 +0000 SW: Make the function GetSyncInfoFromPacket in sync.cpp match the declaration in net.cpp. Fixed signed-ness of lumplockbyte to stop unresolved externals. Patch from Striker. From-SVN: r7506 commit 925b94b85193a8038b96ef56442577fb3d9461eb Author: Evan Ramos Date: Mon Apr 8 06:26:08 2019 +0000 SW: Remove very bad externs. Patch from Striker. From-SVN: r7505 commit a4c342d3b4e3346ee63ff7f2e549ec5ea5a822c4 Author: Evan Ramos Date: Mon Apr 8 06:26:03 2019 +0000 SW: Deal with how C++ does not implicitly convert enums to or from ints Typedef Voc3D_Flags and Voc_Flags to int, and turn typedef'd enums into normal enums. Patch from Striker. From-SVN: r7504 commit 8a43b384c56222ed3f2956d00a6dd6ce6b11ff61 Author: Evan Ramos Date: Mon Apr 8 06:25:59 2019 +0000 SW: Add casts to void pointers where needed Patch from Striker. From-SVN: r7503 commit b4db20fb0af94d8bf2e6268cf3300f7d512576e0 Author: Evan Ramos Date: Mon Apr 8 06:25:51 2019 +0000 SW: Fix questionable function pointer typecasts Patch from Striker. From-SVN: r7502 commit a9d7f368a62ba54080b22c5e4bc2dcfbd29adbfa Author: Evan Ramos Date: Mon Apr 8 06:25:42 2019 +0000 SW: Fix types of min/max statements Patch from Striker. From-SVN: r7501 commit c0e25d5500787f6b3f0e606f7fcc55b800444427 Author: Evan Ramos Date: Mon Apr 8 06:25:33 2019 +0000 SW: Add TrackerCast where needed for printf. Patch from Striker. From-SVN: r7500 commit 0399a4176f894c6e47ee04cc4bf29cb34215ebee Author: Evan Ramos Date: Mon Apr 8 06:25:22 2019 +0000 SW: Fix const correctness issues. Patch from Striker. From-SVN: r7499 commit df5683930b066acf58e430f4b3f73e73cc5a633a Author: Evan Ramos Date: Mon Apr 8 06:25:09 2019 +0000 Add VoidSW VS project files. Patch from Striker. From-SVN: r7498 commit b36402e2dcc7fac0b3a6869af02b374620230da2 Author: Evan Ramos Date: Sun Apr 7 20:56:51 2019 +0000 Patch from NY00123: Fix the black editor cursor in Polymost bug From-SVN: r7497 commit a05d6b4e43a3f5ca54df2fdf9bf6037c4c4e1907 Author: Evan Ramos Date: Sun Apr 7 20:56:48 2019 +0000 Patch from NY00123: Fix for transparency in the tile selection view, in Polymost From-SVN: r7496 commit 6a15e66426e0da59a09608eea410c5c7eb67c049 Author: Evan Ramos Date: Sun Apr 7 20:56:45 2019 +0000 Patch from NY00123: Fix sprite insertions in the 2D-3D editor window From-SVN: r7495 commit c6649ce353cb02d437cd9715dfac144afd4edf8e Author: Evan Ramos Date: Sun Apr 7 20:56:42 2019 +0000 Patch from Nuke.YKT: Allocate voxel VBOs on video mode change From-SVN: r7494 commit b1719f692ffc5ce68d9e966d5733e87cf0d6a736 Author: Evan Ramos Date: Sun Apr 7 20:56:38 2019 +0000 Patch from Nuke.YKT to fix TROR rendering in mirrors in Polymost Includes "Fix screen tilt regression on mirror rendering" From-SVN: r7493 commit d1cfedb547fe9b3c238e0d41901a99564b175155 Author: Evan Ramos Date: Sun Apr 7 20:56:35 2019 +0000 Patch from Nuke.YKT to fix a TROR in Polymost issue Report by oasiz: It only occurs when you try to sandwich surfaces and kind of punch through. It seems similar to the kind of behavior that the pre-TROR fixes did (where you had to stand on the TROR sector for things to work). This seems to work if the weird wall is punching IN on your sector but not OUT to another. From-SVN: r7492 commit 9182635d92d3b0e47a2a6e9dad788afada3fff23 Author: Evan Ramos Date: Sun Apr 7 20:56:31 2019 +0000 Tiny performance cleanup in G_ShowView From-SVN: r7491 commit 855c2a987fc4a36b3d259382e4e5ee8ff71de334 Author: Richard Gobeille Date: Sat Apr 6 06:59:11 2019 +0000 Fix dumbass problem with r7463 that screwed up projectiles From-SVN: r7490 commit 77a0682e7a6cbfd13e3653fef558439a368ce3a1 Author: Richard Gobeille Date: Sat Apr 6 06:38:31 2019 +0000 Patch from Fox adding SFLAG_NOWATERSECTOR, to prevent certain sprites from moving into water From-SVN: r7489 commit 422afced12d75b29e96dbf5c0aa5bb7ed920e5e7 Author: Richard Gobeille Date: Sat Apr 6 06:38:26 2019 +0000 More player clipping fixes From-SVN: r7488 commit ff171f6b73e563588ea81982f2378dd6445b94cc Author: Richard Gobeille Date: Sat Apr 6 06:38:22 2019 +0000 Update VS projects to the VS2019 platform toolset From-SVN: r7487 commit cda8cfee1d19e6ebc432736b42be2a7cf6c04dd0 Author: Richard Gobeille Date: Sat Apr 6 06:38:17 2019 +0000 We probably don't want to be bailing out here when handling a clipshape From-SVN: r7486 commit 29bfc423fa64a7117023e2b0036bf29beabbbb12 Author: Richard Gobeille Date: Sat Apr 6 06:38:14 2019 +0000 Fix potential OOB memory access if the player's curr_weapon member is set out of range from CON From-SVN: r7485 commit eca7133ef9397418424bca74de42a57dfb2c2615 Author: Richard Gobeille Date: Sat Apr 6 06:38:10 2019 +0000 Retire the original naive updatesector() and updatesectorz() in favor of the breadth-first versions From-SVN: r7484 commit 40caa383ba7dcd2b4f11131d674e4d68988a7d88 Author: Richard Gobeille Date: Sat Apr 6 06:38:04 2019 +0000 Fix player bumping their head on the ceiling during a jump... again... From-SVN: r7483 commit b17c755c803b3e10dcdc5bdb3977b67fb6b8e995 Author: Richard Gobeille Date: Sat Apr 6 06:38:00 2019 +0000 Add updatesectorbreadthz(), change pushmove() to use updatesectorbreadth(), and modify updatesectorbreadth() to include the early inside_p() return regular updatesector() has From-SVN: r7482 commit 0917f8f0436ca8bf6262615a9b103405446fb9ca Author: Richard Gobeille Date: Sat Apr 6 06:37:57 2019 +0000 This seems to work a little better to allow the player to jump into places they expect to be able to jump into From-SVN: r7481 commit cdcc13e836ce9595e5323ea738f4f3ebfcb9dde4 Author: Richard Gobeille Date: Sat Apr 6 06:37:53 2019 +0000 Use updatesectorbreadth() in clipmove() From-SVN: r7480 commit d1a16e326b16a875dea798e2918f022708b368b3 Author: Richard Gobeille Date: Sat Apr 6 06:37:46 2019 +0000 Minor cleanup for updatesectorbreadth() From-SVN: r7479 commit cf652edee2dd08efab31974fdf3469ab0ba9d38b Author: Richard Gobeille Date: Sat Apr 6 06:37:42 2019 +0000 const correctness for parameters passed to the updatesector family of functions From-SVN: r7478 commit 2008700c553478c0c0459e1b9a616b5e435c4a60 Author: Richard Gobeille Date: Sat Apr 6 06:37:38 2019 +0000 Use bitmap manipulation functions for "bitptr" From-SVN: r7477 commit 26f4c108772b5041507f9333fde4ddd0f06be4a0 Author: Richard Gobeille Date: Sat Apr 6 06:37:32 2019 +0000 Minor cleanup of breadth-first search functions From-SVN: r7476 commit ba5c261b5e47a0191cc1fbca5c118f60da272f21 Author: Richard Gobeille Date: Sat Apr 6 06:37:22 2019 +0000 Add simple bitmap manipulation functions From-SVN: r7475 commit 2d04ebfb908be20522e3431188f5feb43f67c6be Author: Alex Dawson Date: Fri Apr 5 20:41:04 2019 +0000 engine.cpp: lintersect(): use klabs() instead of abs() From-SVN: r7474 commit 5b0cf262af990dd79a9f167b0ccc2e7e80dba9d0 Author: Alex Dawson Date: Fri Apr 5 17:45:22 2019 +0000 Fix issue where swingdoors would refuse to open or close if an enemy was in front of the door in an overlapping but unrelated/disjoint sector From-SVN: r7473 commit 56f3b66d646b49097ca06d5bec8e843694d6b720 Author: Alex Dawson Date: Fri Apr 5 17:45:19 2019 +0000 engine.cpp: lintersect(): fix integer overflow and negative case issue From-SVN: r7472 commit 61d3fc41b390d91c5814d1c4bc487fe5b9a3bda7 Author: Alex Dawson Date: Fri Apr 5 17:45:16 2019 +0000 Re-introduce earlier lintersect() work that was reverted. engine.cpp/.h: clean up & fix lintersect(). Additionally, add support for finding intersections of collinear line segments. This reverts r7290. From-SVN: r7471 commit 1e203ddc24c978237abb93dd67809f3dbaec72f0 Author: Richard Gobeille Date: Sat Mar 30 21:12:07 2019 +0000 Fix another clipping problem underwater From-SVN: r7470 commit 3a640632c14fbdf29129c6ad271a72bc5636d990 Author: Richard Gobeille Date: Sat Mar 30 20:57:56 2019 +0000 This is a better version of r7468 From-SVN: r7469 commit 5240da96699381a8dc7c37db3d55de8aaf927d33 Author: Richard Gobeille Date: Sat Mar 30 20:46:07 2019 +0000 Fix underwater player clipping issue From-SVN: r7468 commit 188e85c6b769602a1efe0c38087bf750e09de0dd Author: Richard Gobeille Date: Sat Mar 30 19:36:32 2019 +0000 Fix editor clipping issue From-SVN: r7467 commit 50dcd39d135754ee8da948075ee1471a354c7b64 Author: Richard Gobeille Date: Sat Mar 30 19:36:29 2019 +0000 usectortype/uwalltype cleanup in clip.cpp From-SVN: r7466 commit e11b503c0481da0b4b114ed79e9f8ec3ca3977c3 Author: Richard Gobeille Date: Sat Mar 30 19:36:25 2019 +0000 Fix crash in editor tile selector From-SVN: r7465 commit c1874d799aee08398d9b9a6ebe8184c4662bb5e0 Author: Richard Gobeille Date: Sat Mar 30 19:36:21 2019 +0000 Add bounds checking for populating clipsectorlist[], use preprocessor labels for sprite cstats From-SVN: r7464 commit 26522cff33753d8e300015336bf974185e276580 Author: Richard Gobeille Date: Sat Mar 30 19:36:18 2019 +0000 Partially refactor clipmove() From-SVN: r7463 commit 136bf1b31a605220c9cf9c5ea7dc2a3fb11d1502 Author: Richard Gobeille Date: Sat Mar 30 19:36:14 2019 +0000 The BUILD documentation says that pushmove() is supposed to be used to push players away from walls to avoid clipping problems, but Duke3D has never passed the correct parameters to pushmove() This commit fixes that. From-SVN: r7462 commit 48d1db9362f42ee2839d5ea4b178159d4e44ec54 Author: Richard Gobeille Date: Sat Mar 30 19:36:10 2019 +0000 Fix stupid bug in r7409 From-SVN: r7461 commit 2f29a9f02cb636f578eb7cf23d8557ba5cab1779 Author: Richard Gobeille Date: Sat Mar 30 19:36:07 2019 +0000 Improve player z clipping height detection From-SVN: r7460 commit bdc6853bf24e393e3697dc279b52dc74c5a3f217 Author: Richard Gobeille Date: Sat Mar 30 19:36:03 2019 +0000 Reduce MAXCLIPNUM to 2048 again and introduce MAXCLIPSECTORS, with a value of 1024 From-SVN: r7459 commit 0c54594963b7b2b75195a9bd7acc225c54f9f5b5 Author: Richard Gobeille Date: Sat Mar 30 19:35:58 2019 +0000 Patch from Nuke to use indexed color for voxels in Polymost From-SVN: r7458 commit cb17e10d9459aef716056b04dc954c8a67e4e6f3 Author: Richard Gobeille Date: Sat Mar 30 19:35:54 2019 +0000 clipmove() improvements This reverts some of the previous clipmove() changes in favor of implementing explicit rejection of movement in cases where clipping has somehow failed. From-SVN: r7457 commit 0529bdb0cf67d6fc75e75c7d0fbd95185552e4ee Author: Richard Gobeille Date: Sat Mar 30 19:35:50 2019 +0000 Make updatesectorz() fall back to updatesector() in cases where it would have returned -1 Note that both functions will still return -1 when x or y coordinates are out of bounds. From-SVN: r7456 commit 2541deda68142df1ea23961fc2ca203790c26528 Author: Richard Gobeille Date: Sat Mar 30 19:35:46 2019 +0000 This is just a little bit of work on making Ion Maiden run properly with regular EDuke32 binaries From-SVN: r7455 commit 93b4700ad611d58fb59c9c723c4518c06b0344d4 Author: Richard Gobeille Date: Sat Mar 30 19:35:42 2019 +0000 Guard more Duke-specific behavior behind EDUKE32_STANDALONE From-SVN: r7454 commit ca9288e4950f15346ae729befe49a76efa7c7ca0 Author: Richard Gobeille Date: Sat Mar 30 19:35:39 2019 +0000 Disable Duke3D-specific r_drawweapon behavior in standalone builds From-SVN: r7453 commit a86e4d92c99dc45a10e952142f2908a394b361c8 Author: Richard Gobeille Date: Sat Mar 30 19:35:34 2019 +0000 Additional TROR patch from Nuke From-SVN: r7452 commit afaa209527df1afd5a6a3dca6fbc342fa0e0b4c8 Author: Richard Gobeille Date: Sun Mar 24 00:43:28 2019 +0000 Temporarily comment out r_texfilter cvar definition until filtering works again From-SVN: r7451 commit 3f3ce8f185267f0a59d72c8e11008db38df14b78 Author: Richard Gobeille Date: Sun Mar 24 00:43:25 2019 +0000 Further clipmove() improvements to better deal with sector-over-sector There's still something wrong here, but this at least fixes Duke3D E1L2. From-SVN: r7450 commit 9804fd0c51b2f3bce415fd0c6d46a63097a5e790 Author: Richard Gobeille Date: Sun Mar 24 00:43:21 2019 +0000 Fix Duke3D underwater movement speed From-SVN: r7449 commit fd771f23f4e7f0f04879a5ed0ede964be8118fee Author: Richard Gobeille Date: Sun Mar 24 00:43:17 2019 +0000 Revert change to enemy step heights that wasn't working out From-SVN: r7448 commit 354e6d5da77c414acc0b0d2ee75e20f47ac56e49 Author: Richard Gobeille Date: Thu Mar 21 09:28:01 2019 +0000 Fix crash in situations where rendering a scene would overrun all of the MAXBUNCHES sized arrays in both classic and polymost From-SVN: r7447 commit 7758f7a3c501e676bb275f1f38d4030b448a59c0 Author: Richard Gobeille Date: Thu Mar 21 09:27:57 2019 +0000 Revert "Lower MAXWALLSB" From-SVN: r7446 commit cfcb85c20ab49f451f2fdb81ff5b8881fecb2b80 Author: Richard Gobeille Date: Thu Mar 21 09:27:53 2019 +0000 Fix return types of osdcmd_dumpmapstate() and osdcmd_playerinfo() From-SVN: r7445 commit a2a1595921fea7700ce1756c672f27c00b353a65 Author: Richard Gobeille Date: Thu Mar 21 09:27:43 2019 +0000 Group stuff affected by NETCODE_DISABLE together in osdcmds.cpp--no functional changes From-SVN: r7444 commit 22eb030e11aded64a35c097eecf06112405d5dbb Author: Evan Ramos Date: Thu Mar 21 02:24:19 2019 +0000 Rename net.* to network.* From-SVN: r7443 commit 2f69e5ece25d35269885b208b0ec2059528d1cbe Author: Richard Gobeille Date: Wed Mar 20 11:24:25 2019 +0000 Fix issue where controls intentionally bound to no keys would be reset to default at startup From-SVN: r7442 commit 5cc6d89809ed07f5d4d9de2be6648aa3141ce80a Author: Richard Gobeille Date: Wed Mar 20 11:24:19 2019 +0000 Fix "spriteshadow" on voxels in Polymost From-SVN: r7441 commit 1a6a987acb9bff4e71441f4978857c9c343ee137 Author: Richard Gobeille Date: Tue Mar 19 22:09:26 2019 +0000 Fix crash when starting E2L1 From-SVN: r7440 commit a9c3bd89bfc346fa8f49bb9ea7fd1acc6e0c1761 Author: Richard Gobeille Date: Tue Mar 19 21:29:18 2019 +0000 Fix Duke's head bouncing off the ceiling when jumping From-SVN: r7439 commit b729c953a703500348094ff536744489fbb8306b Author: Richard Gobeille Date: Tue Mar 19 18:22:06 2019 +0000 Work around issue where player sticks to the ceiling after jumping From-SVN: r7438 commit a81fd5fddb3200f97887d14e6b40cac90c566ad6 Author: Richard Gobeille Date: Tue Mar 19 17:10:21 2019 +0000 Bump MAXCLIPNUM to 3072 because IM was still hitting it with 2048 From-SVN: r7437 commit 1eb955995b2e7daec091f0f12b7904448901facb Author: Richard Gobeille Date: Tue Mar 19 17:10:17 2019 +0000 This should fix most of the remaining issues with projectiles colliding with ledges they shouldn't be hitting From-SVN: r7436 commit f924d054bf2e722ec1c43787d55bea6b39b27a66 Author: Richard Gobeille Date: Tue Mar 19 17:10:13 2019 +0000 Allow disabling undo in editor 3d mode from cfg file From-SVN: r7435 commit f32c911931f176bae8a087f30602400fc438db22 Author: Richard Gobeille Date: Tue Mar 19 17:10:08 2019 +0000 Replace some individual assignments of structure members with whole structure assignments From-SVN: r7434 commit b39381705383ab132db0fa679655852b2dbe577d Author: Richard Gobeille Date: Tue Mar 19 17:10:04 2019 +0000 Polymost voxel rendering VBO patch from Nuke From-SVN: r7433 commit 2fcfe35e6d4b3e55e49a65099a58f61dbe1dbb08 Author: Richard Gobeille Date: Tue Mar 19 17:09:59 2019 +0000 Adjust projection matrix depending on SCISDIST From-SVN: r7432 commit be6e76417a06814343ecca02ca188d3d22753915 Author: Richard Gobeille Date: Tue Mar 19 17:09:55 2019 +0000 Mapster32 will now load "editor.def" if it exists From-SVN: r7431 commit e49ca1a7183974c31ee18b153f49f93a1314aaa3 Author: Richard Gobeille Date: Tue Mar 19 17:09:51 2019 +0000 Replace hard-coded literal "777" for player crack_time member with preprocessor define From-SVN: r7430 commit 0098972760911f234d16b143fcbab5cf53da5b9c Author: Richard Gobeille Date: Tue Mar 19 17:09:47 2019 +0000 EDUKE32_STANDALONE stuff From-SVN: r7429 commit d060ca95aaf9bb368e45003c413f0a331b40fb11 Author: Richard Gobeille Date: Tue Mar 19 17:09:44 2019 +0000 Fix irritating Duke clipping bugs, including where the player walks up on to wall oriented sprites This also fixes getting through floor gaps that are too small by pressing jump while holding crouch. These changes are absolutely going to break certain maps, and cause new bugs, at which point additional required fixes will be made on a case-by-case basis. From-SVN: r7428 commit afa3476fa7ce6b6161f08bad77fa2aecc90eec93 Author: Richard Gobeille Date: Tue Mar 19 17:09:40 2019 +0000 Hoist comparison of const variable outside of loop in getzrange() From-SVN: r7427 commit 5ed5f8482b3032dac1f9aac8d4c5aefe872128bd Author: Richard Gobeille Date: Tue Mar 19 17:09:36 2019 +0000 Fix stupid typo in hardcoded Duke3D actor From-SVN: r7426 commit 2f15d04cd65ef7c5ee6b592c6623b6267eb91484 Author: Richard Gobeille Date: Tue Mar 19 17:09:32 2019 +0000 Fix hang when setting r_maxfps to 0 while r_maxfpsoffset is a negative value From-SVN: r7425 commit 58b334c0e7a2214153da0bb6a262f3da86d561f4 Author: Richard Gobeille Date: Tue Mar 19 17:09:28 2019 +0000 Don't bother with fog calculations for things without hightile replacements From-SVN: r7424 commit 4e8e8b71333a9713b5dd02a6a7b90cb0781f182e Author: Richard Gobeille Date: Tue Mar 19 17:09:24 2019 +0000 Fix "findnearactor" family of CON functions From-SVN: r7423 commit 1ad1d6cd0d857c5aecba43b83ed98fb66e8c8212 Author: Richard Gobeille Date: Tue Mar 19 17:09:20 2019 +0000 Fix r_polygonmode cvar From-SVN: r7422 commit 02719eca6bc5b99f615500cd8a84fb0ebfcfef4f Author: Richard Gobeille Date: Tue Mar 19 17:09:16 2019 +0000 Clean up polymost.cpp includes From-SVN: r7421 commit e0a06b0452206453a2e60dc6b719c5257450a03e Author: Richard Gobeille Date: Tue Mar 19 17:09:12 2019 +0000 Remove r_usetileshades--GLOBAL_NO_GL_TILESHADES flag for DN64 not affected This also locks the texture filtering options in the menu behind ifdef guards until they're fixed. From-SVN: r7420 commit 8350aa3983e4ffff18d8e7208433831e0a0dc9ac Author: Richard Gobeille Date: Tue Mar 19 17:09:06 2019 +0000 Minor cleanup of some Polymost shader program support functions From-SVN: r7419 commit 4ba8c24bfb4713344b82965c275b87b59ae281fe Author: Richard Gobeille Date: Tue Mar 19 17:09:03 2019 +0000 "This adds masked texture rendering support for slopes in classic renderer" From-SVN: r7418 commit 825ed210ea5e052f25407aa7d44059051343ddc6 Author: Richard Gobeille Date: Tue Mar 19 17:08:59 2019 +0000 Move some clipping related stuff out of engine.cpp and into clip.cpp From-SVN: r7417 commit fc79dd270da8926766e071aa5139d2fa078d4e70 Author: Richard Gobeille Date: Tue Mar 19 17:08:54 2019 +0000 Allow lowering fov to 60 from the console From-SVN: r7416 commit 74b3c44e7242ef56e92ce4b0690bfb05f608106d Author: Richard Gobeille Date: Tue Mar 19 17:08:51 2019 +0000 Polymost sky Z buffer hack from Nuke.YKT From-SVN: r7415 commit c5a7c6dd65349b6c4ab1543c91d34d31028c1c17 Author: Richard Gobeille Date: Tue Mar 19 17:08:47 2019 +0000 Limit Polymost tile sheet size to 8192 when building with MSVC From-SVN: r7414 commit c3990fe27089b8b59ab10f3b24dce387e4b29353 Author: Richard Gobeille Date: Tue Mar 19 17:08:43 2019 +0000 Polymost NPOT texture patch from Nuke.YKT From-SVN: r7413 commit ef692ce97783e09e4b0d7ce47b754be197073178 Author: Richard Gobeille Date: Tue Mar 19 17:08:39 2019 +0000 Patch from Nuke.YKT to use the shade tables for distance shading in Polymost This makes the shading in Polymost more or less 1:1 with classic mode. From-SVN: r7412 commit 6fc6b7d5dae9747f4fe5ffb5899f839ff7cd016e Author: Richard Gobeille Date: Tue Mar 19 17:08:35 2019 +0000 Polymost relative texture alignment patch from Nuke This "fixes" relative texture alignment for floors and ceilings in Polymost to match classic mode. "Fix" is in quotes because this actually means the alignment is less correct in terms of proper scaling than before, but more correct in terms of accuracy to classic mode. From-SVN: r7411 commit f2652af71d9e4005826c989a934bebe54bcfb468 Author: Richard Gobeille Date: Tue Mar 19 17:08:31 2019 +0000 ifdef EDUKE32_STANDALONE something for hardcoded Duke projectiles From-SVN: r7410 commit 2b599b4a671010e5073f4fdfbd1fef587f37187c Author: Richard Gobeille Date: Tue Mar 19 17:08:27 2019 +0000 Improve collision for projectiles This does a few things: -projectiles now use clipmovex() instead of clipmove() (this is like CON_CLIPMOVENOSLIDE) -the z distances passed to clipmove() are now calculated from the sprite's size instead of being hard-coded -projectiles now move as if they had SFLAG_NOCLIP applied for the first tic after spawning From-SVN: r7409 commit 5f8474a9024074e5bfa2bb668f17e3b79d766b69 Author: Richard Gobeille Date: Tue Mar 19 17:08:23 2019 +0000 Fix Polymost HOM From-SVN: r7408 commit 9ff7ce5e69a173c87b983a9c2c2bac8831b5b965 Author: Richard Gobeille Date: Tue Mar 19 17:08:19 2019 +0000 Use correct type in range-based loop From-SVN: r7407 commit be6e628a6e98ddd0177233530c2d62136e6d9c6c Author: Richard Gobeille Date: Tue Mar 19 17:08:16 2019 +0000 Remove a couple of blocks in A_MoveSpriteClipdist() from standalone builds and call setsprite() unconditionally before doing any movement From-SVN: r7406 commit e1e50aec0e85d5d8cf3ba40a047a57a821ed4ac3 Author: Richard Gobeille Date: Tue Mar 19 17:08:12 2019 +0000 Allow passing a null pointer to spriteheightofsptr() for the height return value From-SVN: r7405 commit 39fea5a7ac365e20654684c12ff9b42af8779e08 Author: Richard Gobeille Date: Tue Mar 19 17:08:08 2019 +0000 This fixes a bug in clipmove() where clipping against sprites above you was wrong Because this is a check for sprites above the sprite being moved and not a check for sprites below, the height of the sprite should not be taken into account at all here and the base of the sprite should be used instead. From-SVN: r7404 commit cabb06d4ce22548c6d2c8be7afdcda8ec0cf8191 Author: Richard Gobeille Date: Tue Mar 19 17:08:05 2019 +0000 Calculate texture coordinates as double since we're storing them that way anyway This isn't really intended to fix any specific issue, but to shut up Visual Studio whining about arithmetic overflows. From-SVN: r7403 commit b6cedf8f28112de90d340cfa53fbe76ebbff324e Author: Richard Gobeille Date: Tue Mar 19 17:08:00 2019 +0000 Rename "player speech" menu option in standalone builds From-SVN: r7402 commit 34d3af923b3617d28f94cd1eff4fe60b0dc6aea5 Author: Richard Gobeille Date: Tue Mar 19 17:07:57 2019 +0000 Patch from Nuke.YKT to work around a Polymost glitch with slopes From-SVN: r7401 commit cea3f845ed0985b1df220ddb2081b6459e02b09b Author: Richard Gobeille Date: Tue Mar 19 17:07:53 2019 +0000 Another Polymost TROR patch from Nuke.YKT This one should bring Polymost TROR into parity with classic mode. From-SVN: r7400 commit 524c5e597873a5d827ca900fbb76e7135c85906a Author: Richard Gobeille Date: Tue Mar 19 17:07:48 2019 +0000 Formatting From-SVN: r7399 commit 374bdaaa0442b677073361b93a9ea00f86c9cbba Author: Richard Gobeille Date: Tue Mar 19 17:07:45 2019 +0000 clipmove() improvements This fixes an issue with clipmove() caused by sectors behind walls which were candidates for clipping not being added to the list of sectors that definitely clip the player, forcing the function to fall back to a slow, sector-by-sector brute force approach. This brute force approach has also been removed in favor of something more efficient. From-SVN: r7398 commit 35dd08f8b8008ffd4585475a86b262859d1f38a0 Author: Richard Gobeille Date: Tue Mar 19 17:07:41 2019 +0000 Bump MAXCLIPNUM to 2048 From-SVN: r7397 commit 5f5c8d52701cdb0ae4b956aecb24ebf4b9563e1f Author: Richard Gobeille Date: Tue Mar 19 17:07:37 2019 +0000 Revert r7388 because it just wasn't working out From-SVN: r7396 commit 01e2c4033009928f28c7c3da25218a1034ac8c7c Author: Evan Ramos Date: Mon Mar 11 06:06:51 2019 +0000 Fix some GL ES compilation issues in polymost.cpp From-SVN: r7395 commit 2e32e5095081f802f216a65ca677b5ca0f942cc2 Author: Evan Ramos Date: Mon Mar 11 06:06:47 2019 +0000 Add buildvfs_fopen_write_text Long-term we will need to replace all uses of "\n" in string literals printed to disk. From-SVN: r7394 commit 7b04925f41c12120d36514914f9df44611e4f181 Author: Evan Ramos Date: Mon Mar 11 06:06:43 2019 +0000 Add CLEAR and KP_CLEAR to the SDL key translation table as synonyms for KP_5 From-SVN: r7393 commit 51ab733adc19cc3814f5cc8209616380b5f42c1f Author: Richard Gobeille Date: Mon Mar 4 23:49:11 2019 +0000 Polymost TROR patch from Nuke.YKT--nice! From-SVN: r7392 commit 5d6e3fee544bde7c3ffa9b3472fb7a601330700f Author: Richard Gobeille Date: Mon Mar 4 23:49:07 2019 +0000 It looks like this is OK to remove now! From-SVN: r7391 commit 3b814c5a8515f32cbbe1700b781d408cc51ce6a6 Author: Richard Gobeille Date: Mon Mar 4 23:49:03 2019 +0000 Patch from Nuke.YKT to clip Polymost spans to screen borders From-SVN: r7390 commit 5cb222448cb54a6f6bdda1148cdda8be83d6b92d Author: Richard Gobeille Date: Mon Mar 4 23:48:59 2019 +0000 Add Nuke.YKT to thanks section in credits and move pogokeen to active developers This also cleans up the code for MENU_CREDITS4 so that it's significantly easier to alter in the future if needed. From-SVN: r7389 commit 8c3e78bc3b6fec317227d81d5d3e45752221e283 Author: Richard Gobeille Date: Mon Mar 4 23:48:55 2019 +0000 This seems to help with some polygon drawing issues in Polymost for now From-SVN: r7388 commit be5d4e48a44179800eeca2e8206531b0618ad65f Author: Richard Gobeille Date: Mon Mar 4 23:48:50 2019 +0000 Fix compilation with winlayer There are still a bunch of warnings, but fixing warnings in deprecated code that only one guy uses anymore isn't an efficient use of time. From-SVN: r7387 commit d76c6f87a09b2069f0bfe75138e2570cabbed274 Author: Richard Gobeille Date: Sun Mar 3 11:15:20 2019 +0000 Well, that didn't take long :D From-SVN: r7386 commit 722265749c92476cffe3f3e9fe721dbc86f3e70a Author: Richard Gobeille Date: Sun Mar 3 11:15:16 2019 +0000 Add vfs.cpp and vfs.h to the VS projects From-SVN: r7385 commit 631327c3c26a115b42824d64eeb63227d40ba3a1 Author: Richard Gobeille Date: Sun Mar 3 11:15:12 2019 +0000 I forgot to remove this comment in r7376 From-SVN: r7384 commit de96fe1e99ef42dfaec3f48558a56b166fc5d668 Author: Richard Gobeille Date: Sun Mar 3 11:15:08 2019 +0000 As if you couldn't already tell from Ion Maiden, I like shitty one liners From-SVN: r7383 commit 40061704b2c58e7729d46f6c0a71fe0f0ab9a30a Author: Richard Gobeille Date: Sun Mar 3 11:15:01 2019 +0000 Rename "INCOMPLETE_STRUCT_ACCESS" to CON_DISCRETE_VAR_ACCESS as it was neither incomplete nor anything to do with access to structs However, it's remaining disabled because even with the new dispatch method it still doesn't improve performance any. From-SVN: r7382 commit 832c8030fd58675caffb2d0751886396f6d8a21f Author: Richard Gobeille Date: Sat Mar 2 23:52:50 2019 +0000 Fix saving to %APPDATA% on Windows... From-SVN: r7381 commit d8c52310f72cd860134c0b8113fb2aee7e0822b5 Author: Richard Gobeille Date: Sat Mar 2 23:35:43 2019 +0000 Fix compilation error in texcache From-SVN: r7380 commit f4e1911fe54e5ad74ce22b70442e7b365ef832bc Author: Richard Gobeille Date: Sat Mar 2 23:22:12 2019 +0000 A curious Polymost optimization from Nuke.YKT This bails out of drawing any domost spans that seem to be entirely outside of the range of the screen coordinates. Since this seems so obvious, I have to wonder if Polymost is supposed to be doing this elsewhere already... From-SVN: r7379 commit f61d650fade3b8c9b23d080118a29731a93fb81c Author: Richard Gobeille Date: Sat Mar 2 23:22:08 2019 +0000 Fix CON issues introduced in r7357 and r7358 From-SVN: r7378 commit fa1ea65be9704f0a46350eec101e4abfabb39ded Author: Richard Gobeille Date: Sat Mar 2 23:22:04 2019 +0000 Am I missing something here? From-SVN: r7377 commit 877495d89199f7650505dad413cf94b6f53d396d Author: Richard Gobeille Date: Sat Mar 2 23:22:00 2019 +0000 Remove reference pointing to vm.pPlayer because it seems incompatible with the new dispatch method From-SVN: r7376 commit 5fefa1a931032be94d0d3fbf70d124953fbd8c11 Author: Richard Gobeille Date: Sat Mar 2 23:21:56 2019 +0000 This might not be needed anymore after the previous commit From-SVN: r7375 commit d5930c2ccfd7dd84d639e8e52673fb13370ad918 Author: Richard Gobeille Date: Sat Mar 2 23:21:52 2019 +0000 Work around floating point precision issues in Polymost causing problems when rendering certain geometry from particular angles From-SVN: r7374 commit b5ecbdfcc7b44e8d1a6f8d3d81f1d0485629043e Author: Richard Gobeille Date: Sat Mar 2 23:21:48 2019 +0000 Lower MAXWALLSB From-SVN: r7373 commit 2931696c02527bca3c14b1d728793d512eaad922 Author: Richard Gobeille Date: Sat Mar 2 23:21:44 2019 +0000 Don't include the system SDL headers on Windows From-SVN: r7372 commit 5fa26dbab69ae164e3c74967d11e14d2d9d4c343 Author: Richard Gobeille Date: Sat Mar 2 23:21:41 2019 +0000 Free inthash tables used by the CON compiler using the contents of inttables[] instead of listing them explicitly in C_Compile() From-SVN: r7371 commit 0681938a08edce0ceda481210fb87bf2f08ec54f Author: Richard Gobeille Date: Sat Mar 2 23:21:37 2019 +0000 Patch from Striker to allow selective tile redefinition in .def files based on the crc of the original tile This only works for "tilefromtexture" for now. From-SVN: r7370 commit 59f392e6558a4078ab12fe5c9c4fe3748cbff96f Author: Richard Gobeille Date: Sat Mar 2 23:21:32 2019 +0000 Rework previous commit to use a little less floating point math From-SVN: r7369 commit 97e3043f8bc6a47ffc5ff18b5b2ce74d42f9896b Author: Richard Gobeille Date: Sat Mar 2 23:21:29 2019 +0000 Patch from Nuke.YKT to fix voxel rotation in Polymost From-SVN: r7368 commit 93a8c6f61b64dc21b630bfd6b0c9295cb1c86691 Author: Richard Gobeille Date: Sat Mar 2 23:21:25 2019 +0000 Marginally less sucky version of a function that completely sucks From-SVN: r7367 commit a8f4f90230dc19a6a4ad7d8cb081be5048c31b84 Author: Richard Gobeille Date: Sat Mar 2 23:21:21 2019 +0000 Clean up a few uses of the hash table functions to account for hash_findcase() working properly now From-SVN: r7366 commit 3d45f765ae85b4ec778bbc27424a798e9a06d40e Author: Richard Gobeille Date: Sat Mar 2 23:21:16 2019 +0000 Fix a crash when trying to access cvars through typing the name into the console with the wrong case From-SVN: r7365 commit 6bc45271a724e63a85fbe4ebf433ddf2913cf1bd Author: Richard Gobeille Date: Sat Mar 2 23:21:13 2019 +0000 Use lowercase when computing hashes in hash_getcode() It turns out hash_findcase() has never worked properly because the correct bucket would never have been searched. From-SVN: r7364 commit 3118e3abe9230879340669a9ecccea4a551f21e8 Author: Richard Gobeille Date: Sat Mar 2 23:21:09 2019 +0000 This was slightly faster here From-SVN: r7363 commit b3dab5eec3d68e7ecd9a3ea01662bda4baf3b6c8 Author: Richard Gobeille Date: Sat Mar 2 23:21:05 2019 +0000 Optimize nonpow2_mhline and nonpow2_thline by replacing divide operation by cheaper multiplication Patch from Nuke.YKT. From-SVN: r7362 commit 27ced9361f2c8e9cef110d6d3f28629efde99173 Author: Richard Gobeille Date: Sat Mar 2 23:21:01 2019 +0000 Clean up DirectSound driver in audiolib This includes a small patch from Nuke.YKT as well. From-SVN: r7361 commit 9dd8cc64180a6ba668592585e39e73e0dcce7ed2 Author: Richard Gobeille Date: Sat Mar 2 23:20:56 2019 +0000 Remove a "cheap fix" from multivoc that is no longer needed and should never have been needed in the first place From-SVN: r7360 commit e28b00cec3fb6165783c0b8402f4681e8a19f607 Author: Evan Ramos Date: Fri Mar 1 08:51:50 2019 +0000 Add buildvfs, abstraction layer for file I/O. Currently it passes calls through to the system libraries as before. Also adds an incomplete implementation on PhysFS. From-SVN: r7359 commit 031ddb1837f0459682e1b4e3750ba28413fc441b Author: Evan Ramos Date: Thu Feb 28 07:21:49 2019 +0000 CON: Implement a new VM dispatch method using an explicit jump table Most of this patch is by pogokeen. From-SVN: r7358 commit f1e9d08aedaec36a1616fc7b68accecb61f04172 Author: Evan Ramos Date: Thu Feb 28 07:21:43 2019 +0000 CON: Macro-ize CON keyword tokens in gamedef.h and gameexec.cpp Most of this patch is by pogokeen. From-SVN: r7357 commit d60018ce73770b95e87549a0615a8894bec67214 Author: Evan Ramos Date: Thu Feb 28 07:21:40 2019 +0000 CON: Move five missed opcodeless keywords down in gamedef.h From-SVN: r7356 commit 810f8440f69a70966b39db8b84bfd62600b4a1bd Author: Evan Ramos Date: Thu Feb 28 07:21:37 2019 +0000 CON: #ifdef out deactivated stuff that should not be half-in, half-out From-SVN: r7355 commit 6c1015551c9cda2552b21e640e08e9ea5a673c8b Author: Evan Ramos Date: Thu Feb 28 07:21:33 2019 +0000 Clean up unused warnings From-SVN: r7354 commit 614dae4eb387d58de23091492de95dda4ecc45e8 Author: Evan Ramos Date: Thu Feb 28 07:21:30 2019 +0000 Fix net.cpp compilation failure under clang From-SVN: r7353 commit cc53c656b8a8a0abfa511e6dbd7fdcabd8aa970c Author: Richard Gobeille Date: Sat Feb 23 05:10:59 2019 +0000 Fix autoaim bug introduced in r6942 From-SVN: r7352 commit 1a137da5788d1543f09463a6d30c1a6cc7cae67e Author: Richard Gobeille Date: Fri Feb 22 20:26:38 2019 +0000 Fix a crash when accessing SECTOR_WALLPTR with CON_SETSECTOR From-SVN: r7351 commit 5fdbb7a4102d30046720257bdcd38e26c9011c98 Author: Richard Gobeille Date: Fri Feb 22 18:35:37 2019 +0000 Use existing viewingrange and yxaspect for showview so it matches that of the main view This fixes fov when using showview in EVENT_DISPLAYROOMS to do layered rendering, but it might not be right for uses of showview that simply display picture-in-picture stuff on screen. From-SVN: r7350 commit 667cdeb19925cf0906b7ed03207b7000d635e28d Author: Richard Gobeille Date: Fri Feb 22 18:35:33 2019 +0000 Clean up a little bit of yxaspect and viewingrange variable cruft in G_DrawRooms() From-SVN: r7349 commit 3119738cb671327bfc8922d50f9bc3387509fac5 Author: Richard Gobeille Date: Fri Feb 22 18:35:28 2019 +0000 Display value next to FOV slider and allow dropping FOV to 70 From-SVN: r7348 commit 42f533764c315817b8d696b56002ddf444fc3f48 Author: Evan Ramos Date: Fri Feb 22 03:40:49 2019 +0000 Rename "textures" to "texturecache" and "textures.cache" to "texturecache.index" This avoids conflicts with folders named "textures", such as in World Tour. Thanks to enderandrew for the observation. From-SVN: r7347 commit 5183f560692b5e7cbf7bbe5667c7e0cd768f3d4a Author: Richard Gobeille Date: Thu Feb 21 19:36:47 2019 +0000 Fixes an issue with the automap From-SVN: r7346 commit bce74b5a4939d0689dcf20969bedc11f0677439e Author: Richard Gobeille Date: Thu Feb 21 00:58:33 2019 +0000 Round computed horiz instead of potentially truncating From-SVN: r7345 commit b526d8176e10d86d63d15c9d54cd18b48ce3db5e Author: Richard Gobeille Date: Thu Feb 21 00:58:28 2019 +0000 Scale both mouse axes the same in CONTROL_GetMouseDelta() From-SVN: r7344 commit a9745eabf6a6edb809ddb905f5b8c922450a6b0f Author: Richard Gobeille Date: Wed Feb 20 21:33:04 2019 +0000 PI -> fPI From-SVN: r7343 commit db9749d0c4628fef0d9be057b47b8cf4ade25cf6 Author: Richard Gobeille Date: Wed Feb 20 21:33:00 2019 +0000 Improve vertical mouse aim This improves vertical mouse aim in two ways: the Y axis is normalized to match the sensitivity of the X axis, and horiz adjustment has been corrected so that the player's pitch is operated on as an angle instead of as the tangent of said angle. Based on a patch from Fox. From-SVN: r7342 commit 00b150a4d283baa500b57f86a71a910160cc4026 Author: Richard Gobeille Date: Wed Feb 20 21:32:56 2019 +0000 Save mouse and joystick analog scales, dead zones, and saturation values to .cfg whether they're the defaults or not This fixes an issue where changing one of these values would result in the value being written to the .cfg, but changing the value back to the default would leave the old value in the .cfg. From-SVN: r7341 commit dd8c24f897ff6d00e31c323807ac11b46e92c005 Author: Richard Gobeille Date: Wed Feb 20 21:32:52 2019 +0000 Increase MAXANGVEL for player input per tic from 512 to 1024 From-SVN: r7340 commit 969a53de433b49a7c5fcee62be191dce558c6e56 Author: Richard Gobeille Date: Wed Feb 20 21:32:48 2019 +0000 atan2 -> atan2f From-SVN: r7339 commit 1b0810de5860730b0ca3afa1b1b98fa2dc82b205 Author: Richard Gobeille Date: Wed Feb 20 21:32:44 2019 +0000 Change scope of sdlayer lastSwapTime variable From-SVN: r7338 commit f702be7bdbf71ba10e5b37ce784d050aae897e4d Author: Richard Gobeille Date: Wed Feb 20 21:32:39 2019 +0000 Don't crash when attempting to define quotes at indexes that exceed MAXQUOTES From-SVN: r7337 commit e5418f6c4453c3a099d63f0a25552ac58b2cd0b2 Author: Richard Gobeille Date: Wed Feb 20 21:30:11 2019 +0000 Fix typo From-SVN: r7336 commit 274238a01a38fae82b6bc5b3035702aa87d49d7b Author: Evan Ramos Date: Tue Feb 19 05:26:53 2019 +0000 Fix a mistake in r7322 Patch from Fox. From-SVN: r7335 commit 4312b462f59c5cc85b10adee77bcc619ece9f6d6 Author: Evan Ramos Date: Tue Feb 19 05:26:49 2019 +0000 Menus: Fix the cursor being affected by viewport-annexing status bar sizes From-SVN: r7334 commit 1a90a6aecceaa476244c477119ff89efac4a6457 Author: Richard Gobeille Date: Mon Feb 18 22:02:50 2019 +0000 Fix system memory check From-SVN: r7333 commit 2f33646770385e45145d7a8830b7ca59e2392d83 Author: Richard Gobeille Date: Mon Feb 18 22:02:46 2019 +0000 Patch from Fox to fix positioning of SCUBAMASK tile with the full status bar From-SVN: r7332 commit dbe5eef5fec4d3f5e33c39667d14455636121044 Author: Richard Gobeille Date: Mon Feb 18 22:02:42 2019 +0000 Fix the automap glitch in the region around the full status bar in Polymost From-SVN: r7331 commit 1b92a5bbd43277f706d55a10879fac1e15042150 Author: Richard Gobeille Date: Mon Feb 18 22:02:38 2019 +0000 Fix the direction which the shadow is cast in "modern" status bar ammo icon From-SVN: r7330 commit afdc7b5267863f324cc787847bc23368f2bc2393 Author: Richard Gobeille Date: Mon Feb 18 22:02:33 2019 +0000 Patch from Fox: Add a FOV option in the menu. Range from 75 to 120 degrees (at 4:3 resolution), default is 90. New userdef "fov". Equals the FOV in 360 degrees. Update Polymost projection hack, so it compensates for the FOV or height of the game view. Fix FOV in Polymer when the full status bar is visible. Now the FOV depends of the width of the game view instead of the height. From-SVN: r7329 commit 4503d2547dd7dfb21d2764e3960669d7e93af715 Author: Richard Gobeille Date: Mon Feb 18 22:02:27 2019 +0000 Remove 3 lines of audiolib header cruft From-SVN: r7328 commit 4ec6a24031f09886fd3936c4b207ee6337d4f73f Author: Richard Gobeille Date: Mon Feb 18 22:02:22 2019 +0000 Remove read only bit from SPRITE_SECTNUM and SPRITE_STATNUM in m32script From-SVN: r7327 commit 4e1aad854d39c8ada3bc57e87fc39381b7dc78bb Author: Richard Gobeille Date: Sat Feb 2 23:24:36 2019 +0000 Mapster32: fix use of uninitialized values From-SVN: r7326 commit bfb5b6f628fc44f567358595b45a08172fc81cca Author: Richard Gobeille Date: Sat Feb 2 23:24:32 2019 +0000 Fix a couple minor issues with 90 degree wall texture rotation From-SVN: r7325 commit f9eee2e68df68d5a22fc62023082bbe000705b8b Author: Richard Gobeille Date: Wed Jan 30 09:36:56 2019 +0000 Add mousebits gamevar to m32script for querying mouse button states From-SVN: r7324 commit ddbbe123dbf08765f8c60cf564a4b10e10c6647e Author: Richard Gobeille Date: Wed Jan 30 09:36:52 2019 +0000 Fix issue where a useless error would be printed to the log and bad memory reads could occur when compiling a CON script with an invalid structure member passed as gamevar structure access shortcut shorthand From-SVN: r7323 commit 704a28a108e8ff4162edfd279f284effa0930f2c Author: Richard Gobeille Date: Wed Jan 30 09:36:47 2019 +0000 screentext alignment patch from Fox From-SVN: r7322 commit f694500a0c012e4fc112e4591b6b40265f062fd3 Author: Richard Gobeille Date: Wed Jan 30 00:19:56 2019 +0000 rotatesprite hack from Fox From-SVN: r7321 commit af504324af0c51bf0507e078f416ae9f6f830a98 Author: Richard Gobeille Date: Wed Jan 30 00:13:05 2019 +0000 CON access to raw q16 values for player horiz and ang etc From-SVN: r7320 commit 4bc54e429980f889a32361f1ecc8907286113c50 Author: Richard Gobeille Date: Wed Jan 30 00:13:00 2019 +0000 Work around weird issue with Bgetsysmemsize() that occurs on exactly one system we've tested From-SVN: r7319 commit c1b74d440ba715647bd62aabfd4d9a1e41f58e8f Author: Richard Gobeille Date: Wed Jan 23 23:00:03 2019 +0000 Revert "SDL 2.0.9" From-SVN: r7318 commit 6f106f006ee353b0fd41c3d3e1d47ccc6239b506 Author: Richard Gobeille Date: Wed Jan 23 00:21:52 2019 +0000 Fix issue with definegamefuncname and undefinegamefunc From-SVN: r7317 commit 52c90ae3c86aaedc4d085e0214f41306441f9292 Author: Richard Gobeille Date: Tue Jan 22 22:51:08 2019 +0000 Add error message for SDL_SetGammaRamp() failures in videoSetGamma() From-SVN: r7316 commit ed24446b031ac9b739c895bf941bf690185dfe57 Author: Richard Gobeille Date: Tue Jan 22 22:51:04 2019 +0000 Add C as a secondary binding for crouch and remove the mouse look and crosshair toggles from the default key bindings--they can still be bound manually if desired. From-SVN: r7315 commit a493054e8d22bf52a64f70a66f6ea1505d89756e Author: Evan Ramos Date: Tue Jan 22 17:56:37 2019 +0000 Fix missing/invalid palswaps and shades in automap with Polymost Patch from Nuke.YKT. From-SVN: r7314 commit 4aa0ddf822d992d161a192f45e073f7777285c2c Author: Evan Ramos Date: Tue Jan 22 17:56:34 2019 +0000 CON: Add EVENT_DISPLAYROOMSCAMERATILE From-SVN: r7313 commit bacb87b15c596e660488aa82fafe9d1c1ea4d2e1 Author: Evan Ramos Date: Tue Jan 22 17:56:30 2019 +0000 Menus: Make the gamma slider move in increments of 0.05 instead of 0.1 From-SVN: r7312 commit 033dd3cebb0a02899a76f5a94e557dd8a59d3f85 Author: Richard Gobeille Date: Sun Jan 13 23:26:54 2019 +0000 Mapster32: add wall point delete hotkey. Press shift+delete or the d key in 2d mode to delete a wall point without dragging it. From-SVN: r7311 commit b387da16ccde3fb5a61e9301e4d1dcf207339317 Author: Richard Gobeille Date: Sun Jan 13 23:26:50 2019 +0000 Add mutex to protect against S_Callback() being called from more than one thread at the same time From-SVN: r7310 commit 6cde800f5eaee51f7bde842f3d42a5b9041f68ab Author: Richard Gobeille Date: Sat Jan 12 00:22:14 2019 +0000 I honestly can't remember why I wrote this like this, but it's problematic so I'm changing it. From-SVN: r7309 commit 9d4a0966cf865b0e504fe675f6ab5926d0b5b143 Author: Richard Gobeille Date: Sat Jan 12 00:22:10 2019 +0000 Make the time period between averaging the min and max values shown with r_showfps 2+ user configurable with r_showfpsperiod From-SVN: r7308 commit 44c7256c4299ce632611bb477a39f77afdab6ebf Author: Richard Gobeille Date: Sat Jan 12 00:22:05 2019 +0000 Create new MV_CleanupVoice() function to handle most of what was in MV_StopVoice() plus the MV_CallBackFunc() functionality From-SVN: r7307 commit b2b08b2d10814cd0d9fae9622dc3373f0de66f94 Author: Richard Gobeille Date: Sat Jan 12 00:22:02 2019 +0000 Slightly revise multivoc locking logic From-SVN: r7306 commit 1bda7e1cf5207b92f5d68d44f6dae778af972527 Author: Richard Gobeille Date: Sat Jan 12 00:21:58 2019 +0000 Fix an infinite loop in S_StopEnvSound() that could occur if the audio thread happened to finish playing a voice in between checking if g_sounds[].voices[].id > FX_Ok and calling FX_StopSound(), exacerbated by improper std::atomic usage From-SVN: r7305 commit aca0c55fe538c33ad5541e562fac58e92b52f8ce Author: Richard Gobeille Date: Sat Jan 12 00:21:53 2019 +0000 Slightly revise framerate limiter and r_showfps 2 display From-SVN: r7304 commit f2249020083a14108d8e5a3f15a8e8619429171e Author: Richard Gobeille Date: Sat Jan 12 00:21:48 2019 +0000 Change the hotkeys for adjusting the camera horiz in Mapster32 3d mode from ctrl + a / z to alt + a / z to avoid conflicts with the undo hotkey From-SVN: r7303 commit e84633be48963093cbf03ec4e021163bb724900a Author: Richard Gobeille Date: Sat Jan 12 00:21:44 2019 +0000 Fix buffer overrun From-SVN: r7302 commit 0ced5ab1cf1a4398f2f04668dd31fa16b38de45f Author: Richard Gobeille Date: Sat Jan 12 00:21:40 2019 +0000 Enable undo/redo in Mapster32 3d mode. Not incredibly well tested. From-SVN: r7301 commit dfd1b4c4cacc751c9ed7ef377472fc56f95efa21 Author: Richard Gobeille Date: Sat Jan 12 00:21:36 2019 +0000 Add 75, 100, and 240 as options for the FPS limiter From-SVN: r7300 commit 19fd1d7dcadaddaaac99f126183a567a2e20798b Author: Richard Gobeille Date: Sun Dec 23 23:23:50 2018 +0000 Re-add something I didn't intend to remove with r7297 From-SVN: r7299 commit 03cced6154ac55c91523723721a86ecc3b11eb7b Author: Richard Gobeille Date: Sun Dec 23 23:23:46 2018 +0000 Remove 'none' as an option for the frame limiter in the menu and fix a bug with the slider for the offset From-SVN: r7298 commit 475a23e03cab25123050c7c62fb872c300cc9586 Author: Richard Gobeille Date: Fri Dec 21 01:12:53 2018 +0000 Re-enable -fno-strict-aliasing because apparently many versions of GCC across many platforms are still producing warning spew without it From-SVN: r7297 commit ffaa25ef5365ed79a6385a528cf727461e427fd3 Author: Richard Gobeille Date: Sun Dec 16 23:28:09 2018 +0000 MSVC build fix From-SVN: r7296 commit a44b3cca14db745a1d783c0f16ee400778ed4d55 Author: Richard Gobeille Date: Sat Dec 15 22:33:15 2018 +0000 Fix NETCODE_DISABLED builds. We should probably rename Net_GetPackets() to something else, because it does other required things. From-SVN: r7295 commit 29edaad74ea94fabeb8cb595ad54c2812e714f5b Author: Richard Gobeille Date: Sat Dec 15 22:33:09 2018 +0000 Fix loading screen tile From-SVN: r7294 commit f9e93ff23f40a8f914820d0523e156d6fb368b4b Author: Richard Gobeille Date: Sat Dec 15 21:35:03 2018 +0000 Fix issue where the option to enable or disable Polymer wasn't being saved properly From-SVN: r7293 commit 9889ac45e1151f0c5e2112bc8e3468aa6fd4995b Author: Richard Gobeille Date: Sat Dec 15 21:34:57 2018 +0000 Fix issue where the player's pistol isn't removed when they spawn on HURTRAIL/FLOORSLIME/FLOORPLASMA From-SVN: r7292 commit d9e88338fdd93e970fd89f8c77bacb11be8e7c7c Author: Richard Gobeille Date: Sat Dec 15 20:17:03 2018 +0000 macOS build fix. DONT_BUILD. From-SVN: r7291 commit b1682ca6f131e55e9e32b5f077070583d49395a4 Author: Richard Gobeille Date: Sat Dec 15 01:40:31 2018 +0000 Revert "engine.cpp/.h: clean up & fix lintersect(). Additionally, add support for finding intersections of collinear line segments." This reverts r6886. From-SVN: r7290 commit 7f477c7c7ce22b757b51c15229313ca277ae4c13 Author: Richard Gobeille Date: Sat Dec 15 01:40:26 2018 +0000 Fix issue with editor not allowing wall and floor aligned sprites to be resized in 2d mode without textured view mode enabled From-SVN: r7289 commit c37b3de78751d87a60a6702ffee591e311e0b581 Author: Richard Gobeille Date: Sat Dec 15 01:40:20 2018 +0000 This should fix the too many sprites spawned issue in single player From-SVN: r7288 commit 2b11b84a4f7cb636c87f5ff2dca9bea4cbdbd118 Author: Richard Gobeille Date: Sat Dec 15 01:40:14 2018 +0000 Expand the list of options available for the framerate limiter, and add a separate option that controls an offset added to the limiter. This should allow the menu to cover all of the important use cases involving G-SYNC, FreeSync, and "Fast Sync". From-SVN: r7287 commit 7a36a01cbfdc15839b4bdd0c4d072cd293885181 Author: Richard Gobeille Date: Sat Dec 15 01:40:08 2018 +0000 Fix net.cpp line endings From-SVN: r7286 commit b7e42871835a3dfbb8b8a63d3dcabdb89998585b Author: Richard Gobeille Date: Sat Dec 15 01:40:03 2018 +0000 Change audiolib mixing functions to just use a return value instead of setting a global to indicate the new mixing buffer position From-SVN: r7285 commit 8b5c59febeb19b3fdcc4367b8d0030704d34c6d3 Author: Richard Gobeille Date: Sat Dec 15 01:39:57 2018 +0000 Slight cleanup to MV_GetVorbisCommentLoops(). The biggest change here is swapping calls to atol to our Batol macro, which is actually backed by strtol instead of atol. From-SVN: r7284 commit 6364993708e72ad88e086cf0c2a2fd4dbc90cff4 Author: Richard Gobeille Date: Sat Dec 15 01:39:51 2018 +0000 Hendricks and I discussed "auto *" and we've come to the conclusion that it's bad form, so this corrects that. From-SVN: r7283 commit 1f2f2f643ab9651dd6d97719d4ecdf0276f4fb8b Author: Richard Gobeille Date: Sat Dec 15 01:39:41 2018 +0000 Reduce vorbis read block size from 32k to MV_MIXBUFFERSIZE. Despite requiring more calls into libvorbis, this should be faster on slower CPUs in cases where more copies of the same .ogg sound are attempting to be played at once than are allowed, e.g large explosion scenes in Ion Maiden. From-SVN: r7282 commit 6b4b5f0976824c6ba525cecbc89c1341f81e944f Author: Richard Gobeille Date: Sat Dec 15 01:39:36 2018 +0000 I don't see a reason for these operations to be separated From-SVN: r7281 commit a1ef414b0bb2a6a90576c309e52a90e8f1716379 Author: Richard Gobeille Date: Sat Dec 15 01:39:31 2018 +0000 Fix function that some sadist formatted with 3 spaces From-SVN: r7280 commit bc962bfc3590c79e06feba2095f04c07a76e14bd Author: Richard Gobeille Date: Sat Dec 15 01:39:25 2018 +0000 This fixes S_CheckSoundPlaying() and makes CON_IFSOUND work correctly in scripts that run during menus. These changes together fix the exchange between Duke and Lani at the end of episode 3 of Duke3D. From-SVN: r7279 commit 24f2c5092c6e685d6ff04cdf37127d94778303c9 Author: Richard Gobeille Date: Sat Dec 15 01:39:19 2018 +0000 This makes the output from r_showfps 3, cl_showcoords 1, and what is printed after DNDEBUG all happily coexist. The display of g_moveActorsTime and g_moveWorldTime has also been moved from cl_showcoords to r_showfps. From-SVN: r7278 commit 6d915af303813f16954ec672261d040ab06e2513 Author: Richard Gobeille Date: Sat Dec 15 01:39:14 2018 +0000 Fix CON commands leaving useless extra values in the bytecode. They were only valid outside of executable blocks so it was never noticed. From-SVN: r7277 commit aefd0109f936fabb3c18f7ba623f827a503c6967 Author: Richard Gobeille Date: Sat Dec 15 01:39:08 2018 +0000 Fix CON compiler line number accounting problem introduced with the optimization that transforms CON_SETVARVAR -> CON_SETVAR if the second parameter is a constant From-SVN: r7276 commit 30defd86722a1f19d5731b17b39a57561723aa79 Author: Richard Gobeille Date: Sat Dec 15 01:39:03 2018 +0000 Change A_AddToDeleteQueue() to call A_DeleteSprite() on sprites it removes from the queue directly, as sprites with statnums other than STAT_ACTOR and STAT_MISC are not deleted automatically when their xrepeat is 0. This fixes using CON_INSERTSPRITEQ with sprites of statnums other than STAT_ACTOR and STAT_MISC. From-SVN: r7275 commit 1067a1458b2a905d1bede80cefe4edceacd88d5d Author: Richard Gobeille Date: Sat Dec 15 01:38:58 2018 +0000 This is never going to work. When it was first programmed, it was done under the assumption that dividing an integer by a power of 2 was always the same as shifting it. It turns out that this isn't the case and I'm a dumbass. :D From-SVN: r7274 commit 712e4ca968abbd84c9d94b03c96ad481f262f6f0 Author: Richard Gobeille Date: Sat Dec 15 01:38:53 2018 +0000 Move the debug_break() call in the default case of VM_Execute() to after the call to VM_ScriptInfo(). From-SVN: r7273 commit ed171d10785594142ac59c57e4a3b8251c2ef837 Author: Richard Gobeille Date: Sat Dec 15 01:38:48 2018 +0000 Fix error building the transpal utility From-SVN: r7272 commit 4609f045700ff27d44e4eb2c05aadc98368ef6a3 Author: Richard Gobeille Date: Sat Dec 15 01:38:43 2018 +0000 After some refactoring, several CON error checks done at runtime stood out as things that could be determined at script compile time. They have been moved. From-SVN: r7271 commit 904c0474b9025572c123ccedfaae9e855c27dad8 Author: Richard Gobeille Date: Sat Dec 15 01:38:38 2018 +0000 Attempting to compile a CON with something stupid like "mul var 0" or "div var 0" in it now throws an error From-SVN: r7270 commit ec67a9205ccbafa0626df7aca493ff3ffcb09552 Author: Richard Gobeille Date: Sat Dec 15 01:38:32 2018 +0000 cmenu console command now opens the menu if it isn't already open From-SVN: r7269 commit efc5cb3cb4e569c7bdf08cbabe6ed66827e035bf Author: Richard Gobeille Date: Sat Dec 15 01:38:27 2018 +0000 Comment out actor and player versions of gamevar manipulation opcodes as they aren't performant with our current switch-based method of processing instructions. This also tweaks the beginning of VM_Execute() to gain a little more performance. From-SVN: r7268 commit bcdd598189992f42086cf37422755b92a629d392 Author: Richard Gobeille Date: Sat Dec 15 01:38:22 2018 +0000 WIP work on fixing CON_DIVVAR/CON_MULVAR optimization From-SVN: r7267 commit 32557e2d7ec08d4b4af502db4d4547e1f977b0ee Author: Richard Gobeille Date: Sat Dec 15 01:38:16 2018 +0000 Implement individual opcodes for all the gamevar if checks and the functions that do math on vars From-SVN: r7266 commit d3212e7b08cf67376fb9e6e7ca49dede035d5cb2 Author: Richard Gobeille Date: Sat Dec 15 01:38:10 2018 +0000 Global var opcodes for common conditional statements. Decent performance gain! From-SVN: r7265 commit 750f9544143245d59ed7133acf26fcb14677c8ba Author: Richard Gobeille Date: Sat Dec 15 01:38:05 2018 +0000 Change goofy check for g_errorCnt and g_warningCnt in gamedef From-SVN: r7264 commit 2c36a1baf5fca7351e2f6fd01bdcb4f4502399cf Author: Richard Gobeille Date: Sat Dec 15 01:38:00 2018 +0000 Use separate instructions in the bytecode for manipulating global variables versus more complex variable types. The optimization that transforms CON_DIVVAR and CON_MULVAR into CON_SHIFTVARR and CON_SHIFTVARL plus CON_INV has been disabled for now until I can debug a problem with it. From-SVN: r7263 commit 1b55f70f08c54bb9d051a374d8c344f2729d13d2 Author: Richard Gobeille Date: Sat Dec 15 01:37:54 2018 +0000 Replace pointer with reference in VM_Execute() From-SVN: r7262 commit 3243177978caf56032047d3b9736574737c31feb Author: Richard Gobeille Date: Sat Dec 15 01:37:49 2018 +0000 CON cleanup/tweaks. This improves the game update time by about 5% in some of my test scenarios. From-SVN: r7261 commit c1c4b045e5ac9d4d0ee7362e7928331e54abc14f Author: Richard Gobeille Date: Sat Dec 15 01:37:44 2018 +0000 Use reference to clean up CON_QSPRINTF From-SVN: r7260 commit db41718c722f2b73c9f6ccc5af272a2aa8ec3c43 Author: Richard Gobeille Date: Sat Dec 15 01:37:39 2018 +0000 CON cleanups From-SVN: r7259 commit 02f7cbbd183e64512ac6bb73f339f5ccb4f1e2d9 Author: Richard Gobeille Date: Sat Dec 15 01:37:34 2018 +0000 Fix setvar console command, and add a line of output so you know it did something From-SVN: r7258 commit e6e0cbdf004cce55abca8f0278622b9efb2219a9 Author: Richard Gobeille Date: Sat Dec 15 01:37:29 2018 +0000 This just shuffles some things around and these aren't (or shouldn't be) functional changes. From-SVN: r7257 commit 30a9bf6bbb647a24804f52e2b326bf40b22e42d2 Author: Richard Gobeille Date: Sat Dec 15 01:37:24 2018 +0000 Set AllowShortCaseLabelsOnASingleLine to false and AlignAfterOpenBracket to Align in _clang-format From-SVN: r7256 commit a35ee2ea465faaac8684eb41918b471c46e6429a Author: Richard Gobeille Date: Sat Dec 15 01:37:19 2018 +0000 Initialize rottile values to -1 with a loop like this instead, because doing it the C++ way increases the binary size by like 120KB From-SVN: r7255 commit daf80b2011d43aa4d7dddc7aef6225bcab715e90 Author: Richard Gobeille Date: Sat Dec 15 01:37:13 2018 +0000 This is a cool CON compiler optimization that replaces all of the "varvar" commands and conditional checks in the compiled code with the "var" version if the value supplied to the function is a constant From-SVN: r7254 commit 7c6209b5781c0bf49e85b4a7b3a47e717e1dbebf Author: Richard Gobeille Date: Sat Dec 15 01:37:08 2018 +0000 I'm pretty sure this is a bug From-SVN: r7253 commit 88caefe928bc9fd3e8983cd6fa07fe63cfdbe556 Author: Richard Gobeille Date: Sat Dec 15 01:37:03 2018 +0000 Move CON_STARTTRACK in gamedef.cpp so it isn't in between the related CON_IFXXX stuff nearby From-SVN: r7252 commit 1e5f0a36ee74513e91065cb9c82d30303b4b2005 Author: Richard Gobeille Date: Sat Dec 15 01:36:58 2018 +0000 Include build.h from player.h to satisfy the need for MAXPLAYERS and compat.h stuff that build.h pulls in From-SVN: r7251 commit c1efa12fe5b6f14f388beec017a7f517e1c5c3eb Author: Richard Gobeille Date: Sat Dec 15 01:36:53 2018 +0000 Bump MAXANGVEL and MAXHORIZ From-SVN: r7250 commit 3da53dfaa6cd7b93648f9cd3e413e1554990fe97 Author: Richard Gobeille Date: Sat Dec 15 01:36:48 2018 +0000 Use LINE_NUMBER macro in gamedef.cpp From-SVN: r7249 commit afb416f4813969f8da0af10ffc10bbde242134b7 Author: Richard Gobeille Date: Sat Dec 15 01:36:42 2018 +0000 More minor CON parser cleanup. This commit is not incredibly meaningful. From-SVN: r7248 commit b4ed58680fb7720f783583e753e6ee2debc0800c Author: Richard Gobeille Date: Sat Dec 15 01:36:37 2018 +0000 This fixes a small oversight with r7238 From-SVN: r7247 commit 7ad12aee746d5c66f68961cf9de5c85724b79352 Author: Richard Gobeille Date: Sat Dec 15 01:36:32 2018 +0000 Add bounds check to C_GetNextLabelName(). This isn't really necessary because the extra writes to the label buffer are immediately overwritten by the next label found, but I could see it causing a crash in an edge case where somehow the maximum number of labels had been defined. From-SVN: r7246 commit f3fdec37eb5d6a89dbfc6a8e88126585b13721e7 Author: Richard Gobeille Date: Sat Dec 15 01:36:27 2018 +0000 Convert *(g_scriptPtr-x) syntax in gamedef.cpp to g_scriptPtr[-x], as it should ultimately be more readable and less prone to programming errors. From-SVN: r7245 commit 38aa75915478d69b066ec5377cc3ef593c9e8f8e Author: Richard Gobeille Date: Sat Dec 15 01:36:21 2018 +0000 This was worth a couple fps in classic mode for me with particularly heavy CON scripts From-SVN: r7244 commit 9bff3edfbe47b2cc6ea3cc8a0cb0060c79298ffe Author: Richard Gobeille Date: Sat Dec 15 01:36:15 2018 +0000 Remove unnecessary spriteNum argument from P_Submerge() and P_Emerge() From-SVN: r7243 commit f87a3854542b82e4a60cf1a86f5aa24fed91c4dc Author: jwaffe Date: Sat Dec 8 00:40:39 2018 +0000 - Packet code implementation (merge from private c/s repo), world updates are now synced through snapshots. See tag SVN_SyncPoint_Dec2018 on master of the other repo. - "Scratch pad" sprites implementation, to avoid desyncs in sprite indexes, clients will insert temporary sprites which are cleared out when they receive the next snapshot from the server. - Patches from Striker which fix player stomping frag counts, the accept button when hosting a game through the menu, and a "noffire" command line parameter. - Patches from NY00123: t_data sync optimizations to improve some jittery behavior on the client side. From-SVN: r7242 commit 31defca8753b93d1df22052b914498eb5182aa5d Author: Richard Gobeille Date: Sun Nov 18 21:25:44 2018 +0000 macOS build fix From-SVN: r7241 commit 06024b1845266cbd66d57e2ab83f8a915e030a62 Author: Richard Gobeille Date: Sun Nov 18 21:17:59 2018 +0000 Fix oversight with wall texture rotation on tile 0 From-SVN: r7240 commit 8b3505e3562fb34bb6a197f4f90fdb7ac7b95480 Author: Richard Gobeille Date: Sun Nov 18 19:03:40 2018 +0000 Fix issue with a couple symbols from cmdline.h sometimes picking up different linkage due to accidental double definition in game.h From-SVN: r7239 commit 285d8ba40338ba520f7fcc18293641c4d2525b01 Author: Richard Gobeille Date: Sun Nov 18 18:14:54 2018 +0000 CON syntax extension: the empty "[]" shortcut for accessing a struct at index THISACTOR can now be omitted. This allows cleaner syntax such as "geta .x temp", "ife sprite.x temp", etc. From-SVN: r7238 commit 8433dc5d2fe01b08754bf0013ca7e737e2fb48b0 Author: Richard Gobeille Date: Sun Nov 18 18:14:49 2018 +0000 Add unsigned access to actor .htmovflag through actor .htumovflag From-SVN: r7237 commit 6d7436e084ad6f1ffc1fec41858166d32864dd7d Author: Richard Gobeille Date: Sun Nov 18 18:14:43 2018 +0000 Misc CON fixups From-SVN: r7236 commit 30544a9c78779ecc91efe8c02e578ccdf42b66ca Author: Richard Gobeille Date: Sun Nov 18 18:14:38 2018 +0000 Further clean up C_SetScriptSize(). This also fixes a bug in the function where when expanding the buffer size, most of the extra space was left uninitialized due to bad parameters passed to memset(). From-SVN: r7235 commit 18bb718059adcee01404b242455c16312dcd20c1 Author: Richard Gobeille Date: Sun Nov 18 18:14:33 2018 +0000 Clean up A_InsertSprite() and the beginning of A_Spawn() From-SVN: r7234 commit 7d6c471b141cbd3148a432db2591ea55201a599a Author: Richard Gobeille Date: Sun Nov 18 18:14:26 2018 +0000 Shuffle things around so most of the script structure access stuff actually resides in gamestructures.cpp From-SVN: r7233 commit aa4fd7396ca7940f2e82781b89dfb26ee4303ad9 Author: Richard Gobeille Date: Sun Nov 18 18:14:20 2018 +0000 Minor CON compiler cleanup From-SVN: r7232 commit 9ba5bb49ac565a563590488bec316af1b651280e Author: Richard Gobeille Date: Sun Nov 18 18:14:15 2018 +0000 This should improve the reliability of CON_SWITCH, and maybe allow nesting them to work. From-SVN: r7231 commit b71e7134a793c1f30d00cfed63bdb4e42562c0f5 Author: Richard Gobeille Date: Sun Nov 18 18:14:10 2018 +0000 Small cleanup in gameexec From-SVN: r7230 commit e38aeb71ddeb50ddea24108fd4a6f92098946d79 Author: Richard Gobeille Date: Sun Nov 18 18:14:05 2018 +0000 This is a little bit more readable From-SVN: r7229 commit 349766fca6e99dc8522b81997576a2f7b2ab2c97 Author: Richard Gobeille Date: Sun Nov 18 18:14:00 2018 +0000 Fix Gv_GetArrayOrStruct() error message From-SVN: r7228 commit 99678b668be36100f5938520a82ae250abf92bba Author: Richard Gobeille Date: Sun Nov 18 18:13:55 2018 +0000 EDUKE32_STANDALONE guard some more Duke3D-specific behavior From-SVN: r7227 commit 366a02abf27fd3c1ad2a096819964e62827d49bc Author: Richard Gobeille Date: Sun Nov 18 18:13:48 2018 +0000 WIP wall texture rotation bit From-SVN: r7226 commit 6b18a05d190579d8c44423be761689b4ce4f9d8f Author: Richard Gobeille Date: Sun Nov 18 18:13:40 2018 +0000 Update libcompat-to-msvc.a for 32-bit so we can link against SDL 2.0.9 From-SVN: r7225 commit 37afead3c7522d4a996e66f4b63095d7d64fbc50 Author: Richard Gobeille Date: Sun Nov 18 18:13:33 2018 +0000 Compile without -fno-strict-aliasing. From-SVN: r7224 commit 1a48df5f58927db69f8ac5b0475116bd774453ce Author: Richard Gobeille Date: Sun Nov 18 18:13:25 2018 +0000 This one is for Hendricks From-SVN: r7223 commit 93a0780f856283fc0bc4eaa0a3d904aec29aa2bd Author: Richard Gobeille Date: Sun Nov 18 18:13:19 2018 +0000 Was checking something out for a mapper and noticed this block of code should be nested deeper. From-SVN: r7222 commit 188cb07beef239ebaf67f6aca4d0e036eb4f723b Author: Richard Gobeille Date: Sun Nov 18 18:13:14 2018 +0000 Improve selection of a failsafe video mode if videoSetGameMode() fails at game startup From-SVN: r7221 commit 6c45d76e860580d8b0f510c21b78168a22ca6910 Author: Richard Gobeille Date: Sun Nov 18 18:13:09 2018 +0000 Mapster32: stop playing sounds when entering the tile selector in 3d mode From-SVN: r7220 commit 1f3cf6eb59ad899a1d6d8dd9f4264a555aef6b32 Author: Richard Gobeille Date: Sun Nov 18 18:13:02 2018 +0000 Minor start window cleanup. This ended up touching a bunch of other files due to variable renaming, but there are zero functional changes to anything but the startup window in this commit. From-SVN: r7219 commit 703918e565f6057ff4e0c6d9cae0c3b807542216 Author: Richard Gobeille Date: Sun Nov 18 18:12:54 2018 +0000 Fix whitespace in gameres.rc From-SVN: r7218 commit 0566a257267d17b1572bd80d607696080a0e245a Author: Richard Gobeille Date: Sun Nov 18 18:12:49 2018 +0000 Fix Polymer checkbox not showing up in the startup window in Visual Studio builds From-SVN: r7217 commit 92a341ac715cb0494d0aae22dbf9e86dfb1ee7b9 Author: Richard Gobeille Date: Sun Nov 18 18:12:43 2018 +0000 Use clamp in mact LIMITCONTROL macro From-SVN: r7216 commit 939f6d5f9ec941f8f682a58f7617b446693c32a5 Author: Richard Gobeille Date: Sun Nov 18 18:12:38 2018 +0000 These changes aren't particularly meaningful From-SVN: r7215 commit 19821e53c205539ee1335dc0f9564183b6ade2c8 Author: Richard Gobeille Date: Sun Nov 18 18:12:33 2018 +0000 Moved a few things in mact around while I stared at it thinking about what to do with it From-SVN: r7214 commit acaf1cc985be451d5734891848124e68a400451c Author: Richard Gobeille Date: Sun Nov 18 18:12:28 2018 +0000 Move hash_getcode() and inthash_getcode() to hash.h so they can be used in places other than hash.cpp From-SVN: r7213 commit b0eaead93ce1186dd1b3a035084eff8e91308db7 Author: Richard Gobeille Date: Sun Nov 18 18:12:21 2018 +0000 After parsing the cfg, fill in the default bindings for any control functions that are completely missing, with function unbound and key unused by anything else. From-SVN: r7212 commit 71cd5a18b33116e28a4c3c55b2172c56158fd9e9 Author: Richard Gobeille Date: Sun Nov 18 18:12:16 2018 +0000 Convert some unwieldly g_player[myconnectindex].ps->gm crap to references From-SVN: r7211 commit 1c5050a91d9d4e3c88cb6f7325ffcc739ef09ce2 Author: Richard Gobeille Date: Sun Nov 18 18:12:11 2018 +0000 Slightly simplify S_OpenAudio()... From-SVN: r7210 commit 94cd3828d035bc7c788247a5f6a340a09b50954e Author: Richard Gobeille Date: Sun Nov 18 18:12:06 2018 +0000 Use MODE_RESTART in osdcmd_map() when already in a game From-SVN: r7209 commit ac6c0d8475fa6c9bc54cbdaf47783ab6c431b8e6 Author: Richard Gobeille Date: Sun Nov 18 18:12:01 2018 +0000 Rename Gv_GetSpecialVar() to Gv_GetArrayOrStruct() and fix what would be a bug in Gv_GetVarDataPtr() if we were using it for something more than the single thing we use it for now From-SVN: r7208 commit ab83f7f6a1cf5b3297e0c53c68b9e6721f936759 Author: Richard Gobeille Date: Sun Nov 18 18:11:56 2018 +0000 Prevent crash in the editor if newnumwalls and numwalls are both somehow -1 From-SVN: r7207 commit 703bf72addf2ed085d0284c42294ddef8a01d688 Author: Richard Gobeille Date: Sun Nov 18 18:11:50 2018 +0000 Fix crash when attempting to load a corrupt map From-SVN: r7206 commit e0faeeb4f69442057f7fa169645790a7208ce398 Author: Richard Gobeille Date: Sun Nov 18 18:11:44 2018 +0000 Switch VM_EventCommon to use references From-SVN: r7205 commit 3851fc832395ad330fd6dced8ed4533792793b25 Author: Richard Gobeille Date: Sun Nov 18 18:11:38 2018 +0000 sdlayer: pass SDL_WINDOW_FULLSCREEN_DESKTOP to SDL_SetWindowFullscreen() when setting a windowed mode that matches the desktop resolution From-SVN: r7204 commit 89887325df289ff4d93db702db3f699dc4845159 Author: Richard Gobeille Date: Sun Nov 18 18:11:32 2018 +0000 Convert the Gv_GetVar and Gv_SetVar family of functions into something similar to the setup for VM_OnEvent, where multiple versions of the functions are generated by the compiler via forced inlining. This makes the functions much easier to maintain. From-SVN: r7203 commit 288392bd370894cf8eaa73a69114ced84065beb9 Author: Richard Gobeille Date: Sun Nov 18 18:11:27 2018 +0000 Tiny cleanups From-SVN: r7202 commit b483d6a725b4e96213affedb78358e4d62233910 Author: Richard Gobeille Date: Sun Nov 18 18:11:21 2018 +0000 Direct struct access for tsprite, and break special gamevar access out of Gv_GetVar() and into a separate function like it already was with Gv_GetVarX() From-SVN: r7201 commit ea5749872303b8d226ff4aff3c92de8086fdaf2e Author: Richard Gobeille Date: Sun Nov 18 18:11:14 2018 +0000 Clean up Gv_AddSystemVars() and Gv_RefreshPointers() From-SVN: r7200 commit 1dea9fc4030df08ab9889847bfa2f9bd87856dde Author: Richard Gobeille Date: Sun Nov 18 18:11:09 2018 +0000 Add LAST_LABEL macro From-SVN: r7199 commit 8e3ba360fa87b83fa16d9accad1044079e7f1e0e Author: Richard Gobeille Date: Sun Nov 18 18:11:04 2018 +0000 Direct access for the actor structs From-SVN: r7198 commit 203337238b378ebac01a47dc1b2d4560aca6a73f Author: Richard Gobeille Date: Sun Nov 18 18:10:57 2018 +0000 gamedef.cpp and friends: use preprocessor defines instead of hard-coded values for gamevar IDs that are really constants or arrays or structs From-SVN: r7197 commit 612736750d16b75dd0ddc4ef40935365696594e7 Author: Richard Gobeille Date: Sun Nov 18 18:10:51 2018 +0000 Clean up VM array handling with references From-SVN: r7196 commit f9e26c5a6631e5d633537668a80fee2af72561aa Author: Richard Gobeille Date: Sun Nov 18 18:10:45 2018 +0000 Refine CON VM error handling behavior. Old behavior: when an operation failed, execution attempted to continue from the next command as if nothing had happened. This behavior was poorly defined and often had unintended consequences; e.g a "random" sprite being operated on because an operation that was supposed to place a sprite id in a gamevar failed, and the previous value was taken as a sprite id instead. New behavior: execution of the state/actor/event halts. Failure of a particular actor is more immediately obvious and unwanted trampling on other parts of the game state does not occur. From-SVN: r7195 commit c06444caf608006b5df943a093bc415890245e8d Author: Richard Gobeille Date: Sun Nov 18 18:10:39 2018 +0000 WIP: direct CON read/write access to structure members via pointer and offset instead of translation function. This is only enabled for wall and sector structure members in this commit. From-SVN: r7194 commit 2f653fa5af0577e27b65eb9ee88c014ce419f68b Author: Richard Gobeille Date: Sun Nov 18 18:10:32 2018 +0000 Remove CON ERROR_OPENBRACKET and ERROR_CLOSEBRACKET and add ERROR_NOTTOPLEVEL From-SVN: r7193 commit 141c364238c74a7ab29fef8ff971494e72076540 Author: Richard Gobeille Date: Sun Nov 18 18:10:27 2018 +0000 Add a couple missing headers to build.vcxproj From-SVN: r7192 commit aee899e73888150f5542a1b22be130cb48b92333 Author: Richard Gobeille Date: Sun Nov 18 18:10:21 2018 +0000 Minor gamedef.cpp cleanup From-SVN: r7191 commit e9269887aef988dff13f8ae3b4e2f25a9c9c2355 Author: Richard Gobeille Date: Sun Nov 18 18:10:15 2018 +0000 Formatting From-SVN: r7190 commit 4fb2700777b83de2c85f2112f9f5606ef8bf1c86 Author: Richard Gobeille Date: Sun Nov 18 18:10:10 2018 +0000 Use reference in G_DoGameStartup(). From-SVN: r7189 commit 4c3d88c1d4be45b7428a5fd17e591aa878aa86d3 Author: Richard Gobeille Date: Sun Nov 18 18:10:04 2018 +0000 Add a new member to memberlabel_t to hold the offset of a structure member for CON access. This will be used in a future commit. From-SVN: r7188 commit 5078b55abd3b9de3ab5dc9c0dcc0ed9e28ed7087 Author: Richard Gobeille Date: Sun Nov 18 18:09:58 2018 +0000 Sorting and formatting for [names|sound]dyn.[cpp|h] From-SVN: r7187 commit 2cfc257993e26d47cc9c18efe93facd040a2ad53 Author: Richard Gobeille Date: Sun Nov 18 18:09:48 2018 +0000 Cleanup includes From-SVN: r7186 commit a392e236343c1aca0e51f0bc87bc09aa9183f546 Author: Richard Gobeille Date: Sun Nov 18 18:09:27 2018 +0000 SDL 2.0.9 From-SVN: r7185 commit 20e6a3303d0ea0aa2bbe25f3220a4229dec6f7ca Author: Richard Gobeille Date: Sun Nov 18 18:09:09 2018 +0000 Use references in G_UpdatePlayerFromMenu() and G_BackToMenu() for readability From-SVN: r7184 commit 1b932f92b8c49dd97de1900242df6b38ec1d8314 Author: Richard Gobeille Date: Sun Nov 18 18:09:04 2018 +0000 This does nothing but fix indentation of a single block of code From-SVN: r7183 commit 541012150a3af825f706117c25e2a50795cf1a62 Author: Richard Gobeille Date: Sun Nov 18 18:08:59 2018 +0000 Remove dead code that once opened a browser to the store page for Duke Nukem 3D: Megaton Edition on Steam From-SVN: r7182 commit 20335dbffe1632b000850e5e2db07832a2cb82c7 Author: Richard Gobeille Date: Sun Nov 18 18:08:53 2018 +0000 More control/input cleanup From-SVN: r7181 commit dda56ce93a857527361c1dd3c8fde2eb7e1a5763 Author: Richard Gobeille Date: Sun Nov 18 18:08:44 2018 +0000 Clean up some of the remaining stuff in duke3d/src/config.cpp a bit. Not very meaningful changes... just things I saw when trying to decide how to tackle some of this mess. From-SVN: r7180 commit a1c211af0470f9b0524fddcf4c41b7e5a632b8af Author: Richard Gobeille Date: Sun Nov 18 18:08:38 2018 +0000 Remove the "ConsoleKeys[]" array from osdcmds.cpp in favor of accessing mact's sctokeylut[] From-SVN: r7179 commit 174f3f210d21aa209fb98c513dcc96d83d2366a4 Author: Richard Gobeille Date: Sun Nov 18 18:08:32 2018 +0000 Move sctokeylut[] in mact to keyboard.h from keyboard.cpp From-SVN: r7178 commit 46e617d8db57d13ceeb3ac6778d3b10e403591ce Author: Richard Gobeille Date: Sun Nov 18 18:08:26 2018 +0000 Remove several unused player struct members and bump BYTEVERSION From-SVN: r7177 commit 15bb264a507275b8237e400f6d7a7c963fc7087e Author: Richard Gobeille Date: Sun Nov 18 18:08:20 2018 +0000 Split some of the title screen display stuff into separate functions From-SVN: r7176 commit e16acdd260b87d88706faaaf03304a2d60078129 Author: Richard Gobeille Date: Sun Nov 18 18:08:14 2018 +0000 More premap cleanup From-SVN: r7175 commit 36c41832bd5dd104c4881386ded0b61cccb607cd Author: Richard Gobeille Date: Sun Nov 18 18:08:08 2018 +0000 This is starting to feel like distilling diarrhea into grey water From-SVN: r7174 commit a68589c0d44bc1a6725793896b4844d4b4e1a90e Author: Richard Gobeille Date: Sun Nov 18 18:08:02 2018 +0000 Add the formats supported by libxmp-lite to the list of extensions to check for in G_SetupFilenameBasedMusic() From-SVN: r7173 commit a4bc1d1c024c568a46860cf401813e2c9d02e604 Author: Richard Gobeille Date: Sun Nov 18 18:07:57 2018 +0000 Introduce some more meaningful function names and structure to the code touched in the last commit From-SVN: r7172 commit 1d15ec6e4084adcf98c00f65d5af82cfb9d74e98 Author: Richard Gobeille Date: Sun Nov 18 18:07:51 2018 +0000 Clean up some of the level initialization and player value reset functions that live in premap.cpp From-SVN: r7171 commit b070645696b43d5f1bc4a0d846da1b7bc2d9fd1a Author: Richard Gobeille Date: Sun Nov 18 18:07:44 2018 +0000 Derp From-SVN: r7170 commit 3a3f94fd0e0f4daddb136cdc8b2536b9dabc2acb Author: Richard Gobeille Date: Sun Nov 18 18:07:38 2018 +0000 CON structure member access readability cleanup From-SVN: r7169 commit 5ce7b3c71fc5da8fa67aa44489047708a9e403a8 Author: Richard Gobeille Date: Sun Nov 18 18:07:30 2018 +0000 Replace A_ResetVars() with a simpler version and tweak GAMEVAR_Q16PTR handling in VM_GAMEVAR_OPERATOR macro. The other couple things aren't functional changes at all. From-SVN: r7168 commit 5cb8003aaa79da1b6481365c08da606420ea1b9d Author: Richard Gobeille Date: Sun Nov 18 18:07:25 2018 +0000 This is supposed to fix some errors with HIGH_PRECISION_SPRITE reported by a static analyzer, wherein 32-bit values were shifted and truncated as 32-bit before being widened to a 64-bit type, which didn't seem like the intended behavior. This is the commit to look at if anything is suddenly fucked up in the classic software renderer. From-SVN: r7167 commit 2a35c162b47a9e8d8190858919817756179c633d Author: Richard Gobeille Date: Sun Nov 18 18:07:20 2018 +0000 Fix a couple of issues that cropped up after some of the previous OSD refactoring commits From-SVN: r7166 commit 8c70feea431b9e144a029987d8b1319c590240c9 Author: Richard Gobeille Date: Sun Nov 18 18:07:15 2018 +0000 OSD warning fix From-SVN: r7165 commit 88ed3dac1e9b6d3acf146b9ac50f3342256b7580 Author: Richard Gobeille Date: Sun Nov 18 18:07:10 2018 +0000 The most minor of minor changes From-SVN: r7164 commit 95a759e6d433417ebf6e901616ba3e9aa1f2789c Author: Richard Gobeille Date: Sun Nov 18 18:07:04 2018 +0000 Set XMP_PLAYER_INTERP to XMP_INTERP_SPLINE as it seems to sound better than the default setting From-SVN: r7163 commit a49106e2618dd26f8b4c2892d3a15c474ee444cc Author: Richard Gobeille Date: Sun Nov 18 18:06:58 2018 +0000 Fix a null pointer dereference in G_GameExit() so we don't crash while we're crashing From-SVN: r7162 commit 16ea7f45be851438b41afd99539b9bb6c69585f8 Author: Richard Gobeille Date: Sun Nov 18 18:06:53 2018 +0000 This bounds check is useless From-SVN: r7161 commit 00e6d32ffd4ffd4955dcf0ca9630d2d35c5db0f5 Author: Richard Gobeille Date: Sun Nov 18 18:06:48 2018 +0000 Use auto in ldist() and dist() because it looks nicer than vec3_t const *const From-SVN: r7160 commit 2ece1edaae0df1911d6dbbe6de56d328aed2d16d Author: Richard Gobeille Date: Sun Nov 18 18:06:43 2018 +0000 Move g_defaultVideoModes[] and g_keyAsciiTable[] from baselayer.cpp to baselayer.h and make them constexpr From-SVN: r7159 commit 194d04cb465bfc037347d2420cb91b0196ec4ba3 Author: Richard Gobeille Date: Sun Nov 18 18:06:38 2018 +0000 Just cleaning up a dump(er) From-SVN: r7158 commit e55d0c460def0e321c74ab2cbff81e419fb88fc5 Author: Richard Gobeille Date: Sun Nov 18 18:06:33 2018 +0000 Use tabledivide64() in Gv_GetArrayCountFromFile() From-SVN: r7157 commit 060b4dbf101fde5ffba3a4976f0d50b10fa90bd3 Author: Richard Gobeille Date: Sun Nov 18 18:06:27 2018 +0000 Same shit, different diff From-SVN: r7156 commit c1d6fe3169628db2c5c21dc1e4a261c49a0de063 Author: Richard Gobeille Date: Sun Nov 18 18:06:21 2018 +0000 Another bunch of non-functional cleanup changes to the OSD From-SVN: r7155 commit 416f4ce2ae8e630d682cb3994226a5a603fbc7c4 Author: Richard Gobeille Date: Sun Nov 18 18:06:15 2018 +0000 "using osdcmdptr_t = osdfuncparm_t const * const" because I'm tired of seeing it everywhere From-SVN: r7154 commit 824322dd9f9ea6ae84578c0a12a8a95ae5380c0e Author: Richard Gobeille Date: Sun Nov 18 18:06:07 2018 +0000 More incremental improvements to horrible decade-old OSD code From-SVN: r7153 commit f2b66ec77e98f2e0e496274712412aecfd80be22 Author: Richard Gobeille Date: Sun Nov 18 18:06:01 2018 +0000 Fix up osdfunc_exec() From-SVN: r7152 commit f04d6b3288449d2a8f26672507427fb9f14096ea Author: Richard Gobeille Date: Sun Nov 18 18:05:56 2018 +0000 Reduced buffer size used for scanning GRPs to display in the startup window from 8MB to 64K, in line with the previous commit that changed osdfunc_fileinfo(). I benchmarked this several times and could not find a case in which the 8MB buffer was faster. From-SVN: r7151 commit 883872823bdf6ffdf62e6bc9efa1f1f8fb76bbbe Author: Richard Gobeille Date: Sun Nov 18 18:05:51 2018 +0000 Rework osdfunc_fileinfo() From-SVN: r7150 commit d4f1e7aefce6dc8663d675000168513563185285 Author: Richard Gobeille Date: Sun Nov 18 18:05:45 2018 +0000 Use "int" for OSD command return values and a few trivial globals. Our current usage of the return values would have even worked with bool, but we might want to add error conditions or something later. From-SVN: r7149 commit 420f2cbe92bf5e5dfbb44943ff19ea5a2fc4342d Author: Richard Gobeille Date: Sun Nov 18 18:05:37 2018 +0000 Rename a couple of things in osd.cpp. There should be no change to functionality. From-SVN: r7148 commit 6c0b8ba0a24c0f42d1efc0ad1a66a3f371fff850 Author: Richard Gobeille Date: Sun Nov 18 18:05:32 2018 +0000 Small cleanups to OSD and game keybinding code before larger changes. Everything still works at this point. From-SVN: r7147 commit 6830a07bfb545bd60eb371c7cf3a698f56e994bb Author: Richard Gobeille Date: Sun Nov 18 18:05:26 2018 +0000 Move pow2char and pow2long to build.h and make them constexpr From-SVN: r7146 commit d8b9e892498e2596ea2b0ae0d58eaf14d4cb62d2 Author: Richard Gobeille Date: Sun Nov 18 18:05:20 2018 +0000 Rename the implementation of _lrotl() found at the top of kplib.cpp to klrotl() and use it unconditionally on platforms other than Win32 (it's only used in .bmp rendering). From-SVN: r7145 commit 2c431b8f2e5111cdf903bda14d9dbc12159130fa Author: Richard Gobeille Date: Sun Nov 18 18:05:15 2018 +0000 Improve P_GetInput() a little From-SVN: r7144 commit c880cf8c332c6c59e45079e98d98f9352ca03a2c Author: Richard Gobeille Date: Sun Nov 18 18:05:10 2018 +0000 Improve OSD_Dispatch() a little From-SVN: r7143 commit 776352dbde1a7b544e8e485a647d150077c7fc6d Author: Richard Gobeille Date: Sun Nov 18 18:05:03 2018 +0000 Improve CONTROL_GetMouseDelta() From-SVN: r7142 commit 91721f9ee150ef63337185b86da6084700206975 Author: Richard Gobeille Date: Sun Nov 18 18:04:57 2018 +0000 Remove some effectively dead code that handled loading from duke3d.cfg if eduke32.cfg was not found. This has been useless for about a decade. From-SVN: r7141 commit 0596f8fa0dc2902f0a95cc4e5228500b8ade7ae0 Author: Evan Ramos Date: Mon Nov 5 07:28:07 2018 +0000 Move the LZW compression functions out of cache1d.cpp into their own object, klzw.cpp. This eliminates the hackiness of libcache1d.so (now libkzlw.so) and CACHE1D_COMPRESS_ONLY. From-SVN: r7140 commit 1927df9d863a1c8015a1676881d660634509c061 Author: Evan Ramos Date: Mon Nov 5 07:28:01 2018 +0000 Refresh BUILDLIC copyright headers From-SVN: r7139 commit 243bb7024556de2f062a033d45be5acc997f4863 Author: Evan Ramos Date: Mon Oct 29 06:34:25 2018 +0000 ifdef out all use of libc's FILE in libxmp-lite From-SVN: r7138 commit 18c3f2ef10ebdfaa11b14a1baf6a380f1bb1fd8d Author: Evan Ramos Date: Mon Oct 29 06:34:19 2018 +0000 Fix a big fail in my implementation of CON_DIVR and CON_DIVRU. From-SVN: r7137 commit d5103d54a84bafa54d922b7cb5dc4425ac6200d8 Author: Richard Gobeille Date: Thu Oct 25 23:34:15 2018 +0000 Drop C++ standard used in Visual Studio builds from C++17 to C++14, to be more consistent with our GNU makefile. From-SVN: r7136 commit d7278e735d7ad995f14c42532f94e01f652706e8 Author: Richard Gobeille Date: Thu Oct 25 23:34:08 2018 +0000 Move CONTROL_ProcessBinds() call to P_GetInput() From-SVN: r7135 commit 5acd3080ad3f8a191d2f1e13f12ae7ee911285db Author: Richard Gobeille Date: Thu Oct 25 23:34:03 2018 +0000 Fix usages of tab characters that slipped into menus.h at some point, and fix declaration of function Menu_Change() to match its definition From-SVN: r7134 commit a0cb0ecd9283320ab9ee62ebb127bf2f1db4a26a Author: Richard Gobeille Date: Thu Oct 25 23:33:58 2018 +0000 Very (very) slightly less terrible G_CheckPlayerColor() function. From-SVN: r7133 commit fddc00f67e777c74f7eb756c138cfa787529486f Author: Richard Gobeille Date: Thu Oct 25 23:33:52 2018 +0000 Additional const and constexpr usage in compat.h and pragmas From-SVN: r7132 commit 9f3defcbc719a8415ccb55561f166feb2bab76c9 Author: Richard Gobeille Date: Thu Oct 25 23:33:47 2018 +0000 Using automatic typing here improves the readability of this code. From-SVN: r7131 commit 1c106eeaf091d88a09435e5667b724a98b99e680 Author: Richard Gobeille Date: Thu Oct 25 23:33:40 2018 +0000 Use range-based loops for simplicity From-SVN: r7130 commit 222e3a260ff860760c5398962a4f75b7b0bc7659 Author: Richard Gobeille Date: Thu Oct 25 23:33:32 2018 +0000 Add CSTAT_SPRITE_ALIGNMENT_MASK. It's identical to CSTAT_SPRITE_ALIGNMENT_SLAB, but should be used in cases where you're checking either CSTAT_SPRITE_ALIGNMENT_WALL or CSTAT_SPRITE_ALIGNMENT_FLOOR rather than checking for a slab (voxel). From-SVN: r7129 commit 62a61ff9ab25e55ead0393b197d1566f370b0418 Author: Richard Gobeille Date: Thu Oct 25 23:33:26 2018 +0000 Mark libdivide constructors explicit From-SVN: r7128 commit 04d3f87d0504cde8f2df9cf882f0c1e1bd7befb6 Author: Richard Gobeille Date: Thu Oct 25 23:33:21 2018 +0000 The last of my audiolib changes for now. These change no functionality. From-SVN: r7127 commit e61873c0bb684b11b924d9eb8d29db4746558e19 Author: Richard Gobeille Date: Thu Oct 25 23:33:14 2018 +0000 Fix screwed up spacing in a few audiolib files. No functional changes. From-SVN: r7126 commit c594ea3f0a0c2bd8ed3277c098ce046f8e37df7a Author: Richard Gobeille Date: Thu Oct 25 23:33:09 2018 +0000 This precaching stuff doesn't belong in EDUKE32_STANDALONE builds From-SVN: r7125 commit 963085d373d0b4171d020325f00125811cbbfb9c Author: Richard Gobeille Date: Thu Oct 25 23:33:04 2018 +0000 Remove unnecessary "Playing" member of VoiceNode struct From-SVN: r7124 commit fe4c32ce9ed19a617bfcc21d8604abb2b7da49af Author: Richard Gobeille Date: Thu Oct 25 23:32:57 2018 +0000 Lower DEFAULTMOUSESENSITIVITY to 4 From-SVN: r7123 commit 821d9e3e7443680121fd06a6f4c2b4cabf089d54 Author: Richard Gobeille Date: Thu Oct 25 23:32:50 2018 +0000 Rework volume control to not completely suck From-SVN: r7122 commit 43609d68891c344ad6421b5093392c01cb961314 Author: Richard Gobeille Date: Thu Oct 25 23:32:41 2018 +0000 Make ASS's mixing functions take a pointer to a voice instead of passing a bunch of parameters separately From-SVN: r7121 commit 1d1dda12aa6331851ccc84fedc93b2a18c45248e Author: Richard Gobeille Date: Thu Oct 25 23:32:35 2018 +0000 Mixer function fixups from H266 From-SVN: r7120 commit 135225ad776fa70b670fdcc087b8ef0819d5b988 Author: Richard Gobeille Date: Thu Oct 25 23:32:29 2018 +0000 More sound work From-SVN: r7119 commit 0b1c39738650ed77c5f5e327bb26cb7dcaf932f6 Author: Richard Gobeille Date: Thu Oct 25 23:32:21 2018 +0000 Move editor headers into correct VS project From-SVN: r7118 commit b6a7ee1691620d503d8d87b338a1aae0332c6d5b Author: Richard Gobeille Date: Thu Oct 25 23:32:14 2018 +0000 Add per-sound volume support to audiolib. This allows you to control the volume of sounds independently from the distance-based system exposed through CON. To use this, you must define your sounds via the .def syntax and set the "volume" property--default is 1.0. From-SVN: r7117 commit 1e396d34d479f266afd58cdf647244d55230d2bc Author: Richard Gobeille Date: Thu Oct 25 23:32:05 2018 +0000 Add support for defining all sound parameters through the .def syntax, instead of just the filename From-SVN: r7116 commit 8402212dcae63b4316829ce640f95417667ca4ae Author: Richard Gobeille Date: Thu Oct 25 23:32:00 2018 +0000 sdlayer: don't add windowed modes that are larger than the monitor's actual resolution From-SVN: r7115 commit fa89e95d82a532d91c0cdfc21ccc25d3588c0164 Author: Richard Gobeille Date: Thu Oct 25 23:31:54 2018 +0000 Don't use size_t for loop iterators (or other things not counted in bytes, realistically) From-SVN: r7114 commit a6f6ee44842602c57c0c1f71436c4f7144457535 Author: Richard Gobeille Date: Thu Oct 25 23:31:49 2018 +0000 Fix issue with Bgetsysmemsize() on some platforms after the changeover to ::min and ::max. From-SVN: r7113 commit 5132b41f56663f1a523e72beedcaf56bbaa92573 Author: Richard Gobeille Date: Thu Oct 25 23:31:45 2018 +0000 Savegame cleanup From-SVN: r7112 commit d899a2a57c3751cb1322309f40a6c8d2841df562 Author: Richard Gobeille Date: Thu Oct 25 23:31:40 2018 +0000 Fix HIGH_PRECISION_SPRITE, broken when switching to std::min and std::max. From-SVN: r7111 commit 1cbd64c882c287eb4d512c545e5004c95a5a1351 Author: Richard Gobeille Date: Thu Oct 25 23:31:35 2018 +0000 Clean up a few functions in mact scriplib From-SVN: r7110 commit e2974e0aec6bbd5df4b084c6a6f868cff4fbfe54 Author: Richard Gobeille Date: Thu Oct 25 23:31:30 2018 +0000 This commit is useless From-SVN: r7109 commit 630a0890c185620c988501c59a52b48e7a195f41 Author: Richard Gobeille Date: Thu Oct 25 23:31:25 2018 +0000 Make tabledivide64 actually return an int64_t... From-SVN: r7108 commit 5e038ef10092173e512af1dbf8c9267c125868d8 Author: Richard Gobeille Date: Thu Oct 25 23:31:20 2018 +0000 userbytever is uint32_t and needs %u instead of %d From-SVN: r7107 commit 3333573573dda9ac13ea890f23f5eab6be474ff1 Author: Richard Gobeille Date: Thu Oct 25 23:31:15 2018 +0000 Fix derpy menu bug From-SVN: r7106 commit 274933683f8522934d36c0d664fbfee2a913202b Author: Richard Gobeille Date: Thu Oct 25 23:31:10 2018 +0000 Use _strlwr and _strupr with MSVC From-SVN: r7105 commit 478afe7d918450d9108a519f14d0a2274348f080 Author: Richard Gobeille Date: Thu Oct 25 23:31:05 2018 +0000 Fix bounds checks occurring after array access in tessectrap() and polymost_precache() with very minor cleanup of surrounding lines. From-SVN: r7104 commit 7bfff4c9b64188342fb32ff9d08649e9519c9c26 Author: Richard Gobeille Date: Thu Oct 25 23:31:01 2018 +0000 Small cleanups to fogcalc() and fogcalc_old() From-SVN: r7103 commit 25adc106a18ad12303766db04e39d306ddca338c Author: Richard Gobeille Date: Thu Oct 25 23:30:56 2018 +0000 Slightly simplify TrackedType operator stuff From-SVN: r7102 commit b3a8495c5b938b1b13576d52f63063ae467d18ea Author: Richard Gobeille Date: Thu Oct 25 23:30:51 2018 +0000 pitch.cpp cleanup. From-SVN: r7101 commit f05ada3254bf49810dcff5df68b982f3d0e294cf Author: Richard Gobeille Date: Thu Oct 25 23:30:46 2018 +0000 Untabify minidumper From-SVN: r7100 commit 41f849c75d99617887d4a44784062193fca4d805 Author: Richard Gobeille Date: Thu Oct 25 23:30:41 2018 +0000 Shut up a warning about potentially passing a null ptr to strlen() by way of a bad FILE ptr. The condition wasn't actually possible, but this is just as or more correct than it was before. This sure is a long commit message for something that only adds an 'else'. From-SVN: r7099 commit 4a5c3aed3ab996070e97a9cae65ccf03368332b1 Author: Richard Gobeille Date: Thu Oct 25 23:30:37 2018 +0000 Remember to free library in minidumper From-SVN: r7098 commit 6b62e61a290854009ca67a0778aac4c8fbd4e47e Author: Richard Gobeille Date: Thu Oct 25 23:30:32 2018 +0000 Update miniz to 3616bf804b1e7b9be5e2769b1e4a7d74d575b13c From-SVN: r7097 commit d349a23b61fe9fd6f5a3523c427a7d7fea18a63c Author: Richard Gobeille Date: Thu Oct 25 23:30:27 2018 +0000 Fix printf format specifier mismatches in G_PrintFPS() From-SVN: r7096 commit e929c9f5e40fd853bc60a157110a56edf8948cb6 Author: Richard Gobeille Date: Thu Oct 25 23:30:22 2018 +0000 This looks dumb as fuck, but it tells static analysis tools that our memory allocation functions literally never return a null pointer From-SVN: r7095 commit 236719fffc9b473db33eb3ba399df66724caaf9e Author: Richard Gobeille Date: Thu Oct 25 23:30:17 2018 +0000 Clean up Bgethomedir() and a few of the other directory functions From-SVN: r7094 commit 68870fcc08d901405243b7572ce207fbd9aa57ed Author: Richard Gobeille Date: Thu Oct 25 23:30:12 2018 +0000 Return invalid keyword string instead of null when passing a bad ID to VM_GetKeywordForID() From-SVN: r7093 commit d9c595ff92cde6468e28e32bcad745f3a2b94910 Author: Richard Gobeille Date: Thu Oct 25 23:30:08 2018 +0000 Replace player number check with equivalent null pointer check From-SVN: r7092 commit e2502c8e6b556e87f9d5316aa84aca5a6e033e34 Author: Richard Gobeille Date: Thu Oct 25 23:30:03 2018 +0000 Useless warning silencing From-SVN: r7091 commit a3270bcd9111b9f5a27eae5168cbb72ce2d206db Author: Richard Gobeille Date: Thu Oct 25 23:29:58 2018 +0000 Minor update to _clang-format From-SVN: r7090 commit 7a89659919806b8a275ea43fc0d4e46b0cee0ebf Author: Richard Gobeille Date: Thu Oct 25 23:29:54 2018 +0000 imo auto is cleaner here because the cast of the rvalue makes the resulting type explicitly clear From-SVN: r7089 commit fcfc0e3cc9e82c3b757af1dedaba5d101068af58 Author: Richard Gobeille Date: Thu Oct 25 23:29:49 2018 +0000 Completely unused struct...? From-SVN: r7088 commit 94137727de47fac41591e5c365af6a4f95a52a4d Author: Richard Gobeille Date: Thu Oct 25 23:29:44 2018 +0000 Add debug_break() to default case in VM_Execute() From-SVN: r7087 commit 560503967b13dbfa7356fca0bf2b66b03ffb29f6 Author: Richard Gobeille Date: Thu Oct 25 23:29:38 2018 +0000 Remove some dead statements, useless assigments, etc From-SVN: r7086 commit c6ddf9a247ada72bc9d4d67519d1c503ea32b184 Author: Richard Gobeille Date: Thu Oct 25 23:29:30 2018 +0000 polymost_setTexturePosSize() and polymost_setHalfTexelSize(): pass vec4f_t and vec2f_t by const reference instead of by value From-SVN: r7085 commit c0d11e1b4229bdad2ea9a205d7f1417330b3467e Author: Richard Gobeille Date: Thu Oct 25 23:29:25 2018 +0000 Fix double free in osdcmd_do() and clean up the variable definitions while we're there From-SVN: r7084 commit ef365b13bd53abab120dcde451806653d3941202 Author: Richard Gobeille Date: Thu Oct 25 23:29:20 2018 +0000 sscanf format parameter fixups From-SVN: r7083 commit 8f8eae7cc085eaa06d42f4fef15c4b463e2bc21b Author: Richard Gobeille Date: Thu Oct 25 23:29:13 2018 +0000 Fix downmix_int_8bit() in libxmp-lite assuming char is a signed type From-SVN: r7082 commit 3a83627e30baf41bf0bbd9019de63191aa843c0c Author: Richard Gobeille Date: Thu Oct 25 23:29:08 2018 +0000 macOS build fix From-SVN: r7081 commit 6755c7406b299483011cf03cef6c8910ee66fd28 Author: Richard Gobeille Date: Thu Oct 25 23:29:04 2018 +0000 Fix potential buffer overruns in sdlayer From-SVN: r7080 commit a7ecb484e61ce1bba9dca2565f91a524c7394c82 Author: Richard Gobeille Date: Thu Oct 25 23:28:56 2018 +0000 Replace remaining instances of regular malloc/calloc/realloc/strdup with our memory error handler versions From-SVN: r7079 commit 5297a5f36738c870d914b4124bf18735fecb37d7 Author: Richard Gobeille Date: Tue Oct 16 06:09:54 2018 +0000 Use std::min and std::max instead of min and max macros. From-SVN: r7078 commit 420313e1650aa02698baf3c3eb27a7f351e0e6d2 Author: Richard Gobeille Date: Tue Oct 16 06:09:42 2018 +0000 Remove redundant assignments From-SVN: r7077 commit 2cc98db9dbe3f7065fa7a877a6d1668752400316 Author: Richard Gobeille Date: Tue Oct 16 06:09:37 2018 +0000 Bump BYTEVERSION for previous change From-SVN: r7076 commit 9c341d1b2f7fd1de6a279d94ab3cec77cd6248aa Author: Richard Gobeille Date: Tue Oct 16 06:09:32 2018 +0000 The LZ4 versions of kdfread and kdfwrite don't have the size limitations that the LZW versions have From-SVN: r7075 commit 1157b3773bca2aec228521ad868a7f6805049fe2 Author: Richard Gobeille Date: Tue Oct 16 06:09:26 2018 +0000 Remove duplicated line From-SVN: r7074 commit 71a1ddac253f289d4e39da43efacd1f03df1ffc8 Author: Richard Gobeille Date: Tue Oct 16 06:09:20 2018 +0000 Update engine headers so that argument names in function declarations match the actual function definitions. This also removes const from function declarations in cases when it isn't meaningful. From-SVN: r7073 commit 73ac24a6bf14c5a1c36e2e9a6207d2dbd6ed540c Author: Richard Gobeille Date: Tue Oct 16 06:09:09 2018 +0000 Same sort of thing as the previous commits, but for the engine. Forward declaration cleanup and constification. From-SVN: r7072 commit d2951b476e7c141252739e452d59657651baa1f6 Author: Richard Gobeille Date: Tue Oct 16 06:08:58 2018 +0000 Update duke3d headers so that argument names in function declarations match the actual function definitions. This also removes const from function declarations in cases when it isn't meaningful. From-SVN: r7071 commit be5388e2bf838459485b877d414ed835b457891f Author: Richard Gobeille Date: Tue Oct 16 06:08:50 2018 +0000 Remove a few useless forward declarations and const-ify a couple of function parameters. Yawn. From-SVN: r7070 commit 0b17483cfa56515380802d21ac8be1e83bad301d Author: Richard Gobeille Date: Tue Oct 16 06:08:42 2018 +0000 Remove redundant return statements From-SVN: r7069 commit 6871a9f1dcbb659be6c143bdffc7ae9749a95066 Author: Richard Gobeille Date: Tue Oct 16 06:08:36 2018 +0000 Convert a couple of strings with escaped characters to raw string literals From-SVN: r7068 commit 8d6e005fad3c389e55262051b1e8137281597df3 Author: Alex Dawson Date: Wed Oct 10 21:04:42 2018 +0000 engine.cpp: fix crash when calling `setrendermode 3` where PolymostProcessVoxels would be called before Polymost is initialized. PolymostProcessVoxels would call videoNextPage during processing which would attempt to render the OSD and lead to a segfault due to Polymost not being properly initialized. From-SVN: r7067 commit c3b4a6b9f8f4745d132481550f9accbae2962046 Author: Richard Gobeille Date: Wed Oct 10 19:15:38 2018 +0000 Remove redundant statements. This commit doesn't actually do anything. From-SVN: r7066 commit 72e716ba28c6a24b09719c1996f6e68a042313f0 Author: Richard Gobeille Date: Wed Oct 10 19:15:33 2018 +0000 P_UpdateScreenPal() seems to belong here instead From-SVN: r7065 commit 50e6952ef47723a9879832f8eca95a6d473f5a44 Author: Richard Gobeille Date: Wed Oct 10 19:15:28 2018 +0000 Increase size of text buffer used for editor 3d mode info display--it was possible to overflow it From-SVN: r7064 commit 81a7127cd42bbec1a3a07920a1d2bf2401722d80 Author: Richard Gobeille Date: Wed Oct 10 19:15:22 2018 +0000 Prevent g_sounds[] buffer overflow when attempting to define a sound with an index higher than MAXSOUNDS-1. This reduces the number of sound definitions available by 1 as the last slot is now reserved for the error condition. From-SVN: r7063 commit 8c54c3e21b836a57120cd6aa3d761508fe789c0e Author: Richard Gobeille Date: Wed Oct 10 19:15:17 2018 +0000 Remove redundant assignment and null ptr check From-SVN: r7062 commit 8c4dd6518727dd3c2ef3200cc40de46949dd5ca9 Author: Richard Gobeille Date: Wed Oct 10 19:15:12 2018 +0000 Fix usage of pointer to stack allocated array outside of the scope the array was declared in From-SVN: r7061 commit 8ac01f13dcf278aae57db03db82052d32c2c3982 Author: Richard Gobeille Date: Wed Oct 10 19:15:06 2018 +0000 Fix huge bug in CON_COPY From-SVN: r7060 commit 0af5ac36e27955f78a4ea12c5f5649f0ccac9aff Author: Richard Gobeille Date: Wed Oct 10 19:15:01 2018 +0000 Clarify assignment in ternary condition as not a bug From-SVN: r7059 commit dfb1d9b2b795c812cf11e8afe0a1af59321eaa6c Author: Richard Gobeille Date: Wed Oct 10 19:14:56 2018 +0000 Replace error condition in rejectQueue_remove() with an assertion, because the NULL pointer it would return if something was fucked up would be unconditionally dereferenced in kdtree_add(). From-SVN: r7058 commit da7e1676928399f2445e8e625566cf1053958ea7 Author: Richard Gobeille Date: Wed Oct 10 19:14:51 2018 +0000 Static analyzer says this condition is never true From-SVN: r7057 commit c2feb6e77b69b800ebc98b348ac2b66e4a082a8f Author: Richard Gobeille Date: Wed Oct 10 19:14:46 2018 +0000 Revert r7017. I misread the code mismeasured the result. From-SVN: r7056 commit 5f05b6f6b8c856357c0a877483fa24152e169b9a Author: Richard Gobeille Date: Wed Oct 10 19:14:41 2018 +0000 Clean up error handling in shitty G_GetVersionFromWebsite() function From-SVN: r7055 commit 8603e21228278e19b0d6a7aef498a8d82018f485 Author: Richard Gobeille Date: Wed Oct 10 19:14:36 2018 +0000 Add missing ifdef guards to namesdyn.h From-SVN: r7054 commit 4753a8f84b7c779a85f62c25eb4d5ff4319a0d87 Author: Richard Gobeille Date: Wed Oct 10 19:14:31 2018 +0000 Revert part of r7031 and fix the issue a different way From-SVN: r7053 commit 066e1e14a7be6b4e419ab2098157d7181e30658b Author: Richard Gobeille Date: Wed Oct 10 19:14:26 2018 +0000 Fix memory leaks in editor sound list From-SVN: r7052 commit 1954a4e66311869f5c6370a733c9181b2b4159ef Author: Richard Gobeille Date: Wed Oct 10 19:14:20 2018 +0000 Add missing ifdef guards to soundsdyn.h From-SVN: r7051 commit cb0ea26392582a6f1f972ff30e361d1e65533f7e Author: Alex Dawson Date: Wed Oct 10 15:08:08 2018 +0000 polymost.cpp: temporarily disable experimental r_enablepolymost2 cvar From-SVN: r7050 commit 382cef184fcb0fb77561ec10d599d9a076173500 Author: Alex Dawson Date: Wed Oct 10 14:37:06 2018 +0000 polymost.h: fix order of parameters to match polymost.cpp From-SVN: r7049 commit 03f7937a73f3d84fae6f89a017acbbaf56090afb Author: Alex Dawson Date: Wed Oct 10 14:37:03 2018 +0000 polymost.cpp: fix lockup bug that would occur with polymost_waitForSubBuffer() when glClientWaitSync consistently returned GL_WAIT_FAILED on certain hardware/drivers. Additionally, fix conditional check for r_persistentStreamBuffer requirements in polymost_glinit(). From-SVN: r7048 commit 8958378f01ae18817e299d090605fd049f2ac2c6 Author: Richard Gobeille Date: Sun Oct 7 05:23:53 2018 +0000 Remove dead code branch from RECON (logic oversight) and get rid of a useless fallthrough__ From-SVN: r7047 commit b43b937a053949c45c77db17a5f68ac44c65d125 Author: Richard Gobeille Date: Sun Oct 7 05:23:48 2018 +0000 Fix off-by-one error in currently not very useful dedicated server text console input From-SVN: r7046 commit 2e1e5f5005b87cf43c03ecc027b47904e2eb5627 Author: Richard Gobeille Date: Sun Oct 7 05:23:44 2018 +0000 Useless yet innocuous sdlayer fixes From-SVN: r7045 commit 0228eb9df4ae6a67dd8098b153e9f7a78ac365f4 Author: Richard Gobeille Date: Sun Oct 7 05:23:39 2018 +0000 Use a local variable in SDL_GL_ATTRIBUTES macro instead of relying on it being declared in the function calling the macro From-SVN: r7044 commit f23fc8bbe9bdc5075830c814dd378fbdc7699190 Author: Richard Gobeille Date: Sun Oct 7 05:23:34 2018 +0000 Fix MV_GetNextWAVBlock() to no longer check if the unsigned BlockLength value is less than 0. From-SVN: r7043 commit 2d3be8041a6e4b75ef03c9a5312fa3b26a41f61e Author: Richard Gobeille Date: Sun Oct 7 05:23:29 2018 +0000 Correct some fuckery in inflineintersect() From-SVN: r7042 commit 8d3ae18d36c0e3487991105484fa83497f39d68b Author: Richard Gobeille Date: Sun Oct 7 05:23:25 2018 +0000 Further revise a couple of null pointer checks in Polymost From-SVN: r7041 commit 7f257ecba83c0b550572b3f707704ad74c40f96b Author: Richard Gobeille Date: Sun Oct 7 05:23:20 2018 +0000 OSD strtoken maintenance From-SVN: r7040 commit fcdf8f8d50b8b9c132794515ce124a0449a11d55 Author: Richard Gobeille Date: Sun Oct 7 05:23:15 2018 +0000 Remove nonexistent file lzwnew.h from VS project From-SVN: r7039 commit 75eda0d760f729007f6d77db9a0c78d49cadc028 Author: Richard Gobeille Date: Sun Oct 7 05:23:10 2018 +0000 Variable scope reductions From-SVN: r7038 commit 8f8149d03dd3d1603ac3d5e2add4938ffbea7fbf Author: Richard Gobeille Date: Sun Oct 7 05:23:05 2018 +0000 Fix some weirdness in osdcmd_setactorvar() and remove an unused counter var from osdcmd_map() From-SVN: r7037 commit 1c85c41384ee48f64f304060778c1abf80179e9c Author: Richard Gobeille Date: Sun Oct 7 05:23:00 2018 +0000 Parentheses around ternary conditions so CppCheck will stfu From-SVN: r7036 commit 3e3ba03c28922fb290c497e1bb91c1b26867fa1d Author: Richard Gobeille Date: Sun Oct 7 05:22:55 2018 +0000 Tweak gamevar struct shortcut error handling From-SVN: r7035 commit a8bcffad7445e3a19368fc8c4cf4ef1e53867cea Author: Richard Gobeille Date: Sun Oct 7 05:22:51 2018 +0000 Remove unused g_skipKeywordCheck From-SVN: r7034 commit 42d082c235666997afc6a26a5c9c5fa7c384a1e6 Author: Richard Gobeille Date: Sun Oct 7 05:22:46 2018 +0000 Fix off-by-one error in CON_DEFINESOUND and null pointer arithmetic in CON_CASE and CON_DEFAULT (!) From-SVN: r7033 commit ea80ce019b4af8d70ae03e97ee71552800faba47 Author: Richard Gobeille Date: Sun Oct 7 05:22:41 2018 +0000 Variable scope reduction. This commit is boring as fuck. From-SVN: r7032 commit b5baf631f05d93ae487f47e54223300033adb754 Author: Richard Gobeille Date: Sun Oct 7 05:22:36 2018 +0000 Fix more possible null pointer dereferences in mdsprite From-SVN: r7031 commit 75f59acaf553f45f5bef2181b3329aaeb72dbc97 Author: Richard Gobeille Date: Sun Oct 7 05:22:32 2018 +0000 Mostly useless const-ifying and minor variable scope reduction in cache1d From-SVN: r7030 commit bfa87ffdc4ea76dee69d710825fb6711b6c0d497 Author: Richard Gobeille Date: Sun Oct 7 05:22:27 2018 +0000 Fix filename string bounds check in kzipopen() From-SVN: r7029 commit c1bef679563d38b97471559a43ba7b6618b8b1ff Author: Richard Gobeille Date: Sun Oct 7 05:22:22 2018 +0000 Fix leaked sockets when failing to check for updates From-SVN: r7028 commit 734ecedfa2e8defcea4611263e021ba29949eaff Author: Richard Gobeille Date: Sun Oct 7 05:22:17 2018 +0000 Pass vec2_ts to get_screen_coords() by reference instead of by value From-SVN: r7027 commit d5cf93b32fa85ca03ac5b5e9813958e998f168f8 Author: Richard Gobeille Date: Sun Oct 7 05:22:13 2018 +0000 Prevent OOB array access when EVENT_INVENTORYLEFT or EVENT_INVENTORYRIGHT returns a bad value From-SVN: r7026 commit 5900cbf2c1ab808cbb40012fa1bae18b37984982 Author: Richard Gobeille Date: Sun Oct 7 05:22:08 2018 +0000 Hoist strlen() outside loop in kzopen() From-SVN: r7025 commit 1d3955e6c2bbe554b078ecde85fda6ea76ffb3f3 Author: Richard Gobeille Date: Sun Oct 7 05:22:03 2018 +0000 Hoist strlen() outside loop in osdfunc_listsymbols() From-SVN: r7024 commit eae5347e1ab695a38553bb0d2ede3699a07d754d Author: Richard Gobeille Date: Sun Oct 7 05:21:58 2018 +0000 Fix potential OOB spriteext[] access when checking SPREXT_NOTMD to determine whether or not to render a sprite's model, if available From-SVN: r7023 commit 04be61b2bb4e2793fb57657ce56d487556222fbd Author: Richard Gobeille Date: Sun Oct 7 05:21:53 2018 +0000 Oh look, the first 3 arguments passed to parascan() are completely useless From-SVN: r7022 commit 73873b42ff85e00fa5f2b798fe024c3869e23403 Author: Richard Gobeille Date: Sun Oct 7 05:21:49 2018 +0000 Silence warning about truncating the result of memcmp From-SVN: r7021 commit 509fe021b982f62e28a1d1e28310c77566c0462b Author: Richard Gobeille Date: Sun Oct 7 05:21:43 2018 +0000 Tweak osdfunc_setrendermode() to report whether the classic renderer is the C or ASM version From-SVN: r7020 commit b1d8ea17cf68f4840dcc272a4b974f16303fe5e2 Author: Richard Gobeille Date: Sun Oct 7 05:21:39 2018 +0000 Fix null pointer deference when attempting to load a model with improper or missing skin definitions From-SVN: r7019 commit a2df7ed47a9ea56911263e928aab94d44382faff Author: Richard Gobeille Date: Sun Oct 7 05:21:34 2018 +0000 Untabify kplib.cpp From-SVN: r7018 commit 71e34191db11098624d7f7716c78444d91afe718 Author: Richard Gobeille Date: Sun Oct 7 05:21:29 2018 +0000 Fix overcomputation in the classic renderer due to a bug caused by a previous optimization attempt From-SVN: r7017 commit 7cb58e1ff6f92bc229a21878468089263d1c9c7e Author: Richard Gobeille Date: Sun Oct 7 05:21:24 2018 +0000 Slightly reorganize Bdirent struct for efficiency. Despite being "Bdirent", this struct in no way matches the system provided dirent struct. From-SVN: r7016 commit 199e2e49487bd95095e5319dcda75a3eb5b351b7 Author: Richard Gobeille Date: Sun Oct 7 05:21:20 2018 +0000 Add debug_break() to the top of handle_memerr() From-SVN: r7015 commit 636af81c60d917b54d784ad171174f9bcd6b9c00 Author: Richard Gobeille Date: Sun Oct 7 05:21:15 2018 +0000 Fix false positive buffer overflow report in PVS-Studio From-SVN: r7014 commit c9325420516d9b9643dc57ce45ab3193c9321893 Author: Richard Gobeille Date: Sun Oct 7 05:21:10 2018 +0000 Fix types of vars passed into sscanf() for use as return values From-SVN: r7013 commit de1f3806ffe1f9f577d33e9634beceeae7d71680 Author: Richard Gobeille Date: Sun Oct 7 05:21:06 2018 +0000 Fix issue in the C version of the classic renderer where someone had attempted to negate a bool From-SVN: r7012 commit e1c98bfc01e3bd0cb12c5686b4cdff96e4bcdfcb Author: Richard Gobeille Date: Sun Oct 7 05:21:01 2018 +0000 Fix bad logic for kill counter in G_DisplayRest() From-SVN: r7011 commit 6883cdced05da461b5f3df13f133f35b191b05e1 Author: Richard Gobeille Date: Sun Oct 7 05:20:56 2018 +0000 Fix accidental double assignment of pPlayer->jetpack_on in P_ResetStatus() From-SVN: r7010 commit 3e6631943e60fa7f2217f8b3a75e016ec20aeaba Author: Richard Gobeille Date: Sun Oct 7 05:20:52 2018 +0000 Untabify polymost.h From-SVN: r7009 commit c8e38232883bc642a3ec5954150838aadc01ecef Author: Richard Gobeille Date: Sun Oct 7 05:20:47 2018 +0000 Slightly increase efficiency of osd_findsymbol() (this is the slow one that has to handle partial matches) From-SVN: r7008 commit 549b1bfa10360d304e89c436243082edd7bd2849 Author: Richard Gobeille Date: Sun Oct 7 05:20:42 2018 +0000 Comment out bad entry in SDL keycode translation table From-SVN: r7007 commit a1d429c0f4e8040596eb4754bf19038cd970496b Author: Richard Gobeille Date: Sun Oct 7 05:20:37 2018 +0000 Replace APLAYER picnum check in A_ShootWithZvel() with null pointer check From-SVN: r7006 commit 1fb84fd6156df5079fab95cc8abf377221def117 Author: Richard Gobeille Date: Sun Oct 7 05:20:33 2018 +0000 Replace spritenum check with ptr check in VM_ScriptInfo() From-SVN: r7005 commit 779db130c59134f674b7a1463bc71644cd0d3747 Author: Richard Gobeille Date: Sun Oct 7 05:20:28 2018 +0000 Fix potential null pointer dereferencing From-SVN: r7004 commit 218e30ea1bc73492f50d0917e20149f721b66aa9 Author: Richard Gobeille Date: Sun Oct 7 05:20:23 2018 +0000 Fix minor bug where a null pointer was passed into free() unconditionally From-SVN: r7003 commit 7371cc8b0312f5aa2dea598f87115ef2da57c6d2 Author: Richard Gobeille Date: Sun Oct 7 05:20:19 2018 +0000 Fix potential texcache issue with HICTINT_IN_MEMORY and HICTINT_APPLYOVERALTPAL due to a mistake involving operator precedence From-SVN: r7002 commit 73053dd033b3284d2bc710613a06c18e9e98dd88 Author: Richard Gobeille Date: Sun Oct 7 05:20:14 2018 +0000 Fix potential uninitialized use of highlightx/y/1/2 in the editor and convert them to vec2_t in the process From-SVN: r7001 commit fe7dddf89bad5cec33731ca8d78e37aecb3b7aa0 Author: Richard Gobeille Date: Sun Oct 7 05:20:09 2018 +0000 Fix potential dereference of null pointer when calling polymost_bindPth() From-SVN: r7000 commit 688e03d1ece83b2a84d1efbc63b8fbab0473ad31 Author: Richard Gobeille Date: Sun Oct 7 05:20:04 2018 +0000 Fix potential null pointer dereference in S_DefineAudioIfSupported() when passing filenames without extensions From-SVN: r6999 commit e546e2c1cfcfe3f15ac45b2e770ee9c008ed1ea1 Author: Richard Gobeille Date: Sun Oct 7 05:20:00 2018 +0000 Move SE40 floor/ceilingstat and Z coordinate backups to global variables instead of allocating them on the stack. From-SVN: r6998 commit f84152c099fb70c8e504d95120f9d36171de09e9 Author: Richard Gobeille Date: Sun Oct 7 05:19:55 2018 +0000 Fix potential null pointer dereferences when rendering a model with no animations (?) From-SVN: r6997 commit d4fd727402edc3405fee82b951b9d0c73ca505d5 Author: Richard Gobeille Date: Sun Oct 7 05:19:50 2018 +0000 Fix potential null pointer dereference From-SVN: r6996 commit 57f6c32bc3ddae835d29b723072bd28efa166953 Author: Richard Gobeille Date: Sun Oct 7 05:19:45 2018 +0000 Fix a couple of things with the dreaded crosshair coloration functions. ;) From-SVN: r6995 commit 63b917bee3984f900d3efe2da4a51f3ef05c9cb7 Author: Richard Gobeille Date: Sun Oct 7 05:19:39 2018 +0000 Trying to silence a warning at link time in VS. DONT_BUILD. From-SVN: r6994 commit 0c903a35088d08bec0faf1c30557368690faa1fc Author: Richard Gobeille Date: Sun Oct 7 05:19:32 2018 +0000 VS build fix. DONT_BUILD. From-SVN: r6993 commit 2aacf285a2f457bedfbacedcc149ee25462a9a70 Author: Richard Gobeille Date: Thu Oct 4 20:28:15 2018 +0000 This seems to fix debug builds in Visual Studio. DONT_BUILD. From-SVN: r6992 commit 14c9a2867c2390cd6a5ff0be8bed9df7ffb63aec Author: Richard Gobeille Date: Thu Oct 4 04:19:53 2018 +0000 VS project changes. DONT_BUILD. From-SVN: r6991 commit a3f458a41163a5e3639b70f9937cfdfe3bfb9a0c Author: Richard Gobeille Date: Thu Oct 4 04:19:46 2018 +0000 Add debugbreak.h from https://github.com/scottt/debugbreak From-SVN: r6990 commit c0b38897f74067c8b73b0fae6d52a8e3c203b95d Author: Richard Gobeille Date: Wed Oct 3 00:43:31 2018 +0000 https://imgur.com/N2v8kjU From-SVN: r6989 commit 3d979b0b1afa52f3f8b825fc3a76cf1078b93ee3 Author: Richard Gobeille Date: Sat Sep 29 01:54:58 2018 +0000 "@Dick can you make it so that its impossible to pan the floor texture in 2d mode if the texture isnt visible?" From-SVN: r6988 commit 67d07dc467a1cb6f47ec4e0eec8766dfcf385327 Author: Richard Gobeille Date: Sat Sep 29 01:54:52 2018 +0000 Actually fix savegame crash... probably. From-SVN: r6987 commit 73cd2c5a2b3c41226fc44e6693fa2bfb4935e925 Author: Richard Gobeille Date: Fri Sep 28 07:07:04 2018 +0000 Fix embarrassing Windows-centric fuckup From-SVN: r6986 commit 6727387af80a521e27f042a1e313ae95e6deaccf Author: Richard Gobeille Date: Fri Sep 28 04:28:00 2018 +0000 VS project properties From-SVN: r6985 commit 0c0cd12e24e89a4b6b417a6028e201679aabc89f Author: Richard Gobeille Date: Fri Sep 28 04:27:53 2018 +0000 Fix VS warning From-SVN: r6984 commit 6779d313e3aca4df3f97993c7ee478c03f73e050 Author: Richard Gobeille Date: Fri Sep 28 04:27:48 2018 +0000 Fix savegame crash issue From-SVN: r6983 commit 3a421d33c55e5499b3ef63ca5a0f4a056340c8fe Author: Richard Gobeille Date: Fri Sep 28 04:27:42 2018 +0000 Minor fixups needed to build as a native VS project From-SVN: r6982 commit 829f14335887084d65dca41723a250f3baa9e533 Author: Richard Gobeille Date: Fri Sep 28 04:27:35 2018 +0000 New native Visual Studio solution and projects, based on a set made by icecoldduke. From-SVN: r6981 commit c2fc54cfefadbce2ffbc11acdf5003e3263c41bf Author: Richard Gobeille Date: Fri Sep 28 04:27:23 2018 +0000 EDUKE32_STANDALONE stuff From-SVN: r6980 commit 06d079f9c32e7fde053c580610a436cf44284176 Author: Richard Gobeille Date: Fri Sep 28 04:27:17 2018 +0000 Remove apScriptEvents from savegames From-SVN: r6979 commit 09034563ba0cadf76bcf272a024fdba92a5c6a8a Author: Richard Gobeille Date: Thu Sep 6 19:07:02 2018 +0000 Revise r6974 From-SVN: r6978 commit cd855647fcaaaa732a3959ab911c7e054b875e73 Author: Richard Gobeille Date: Thu Sep 6 19:06:55 2018 +0000 Fix parameter aliasing warning in G_LoadGroups() From-SVN: r6977 commit 884e5310253f9a61af4d60bdf5e63e9d783c044b Author: Richard Gobeille Date: Tue Sep 4 05:57:41 2018 +0000 Replace a bunch of fall-through comments with our fallthrough__ macro. From-SVN: r6976 commit 7110fcbdef67687bc1f88efae9195f4635144479 Author: Richard Gobeille Date: Sat Sep 1 19:36:20 2018 +0000 Disable a few more hard-coded sounds in EDUKE32_STANDALONE builds From-SVN: r6975 commit 67d7416e292390a8adcf47b1f7c1ea4bbb466437 Author: Richard Gobeille Date: Sat Sep 1 19:36:15 2018 +0000 Add PROJECTILE_RPG_IMPACT_DAMAGE flag for projectiles, 0x00400000. This makes PROJECTILE_RPG_IMPACT function more or less how it did prior to late 2016 when an issue involving the damage was identified and fixed, and moves the damage to the new flag. From-SVN: r6974 commit 28e55869f662dfa1e5c5fc1bd74fec893f511c36 Author: Richard Gobeille Date: Sat Sep 1 19:36:10 2018 +0000 Don't invalidate saves based on the compiled script CRC if the script hasn't been compiled yet From-SVN: r6973 commit f87d064fd242acabf678c1b9917410d8985e7d6c Author: Richard Gobeille Date: Sat Sep 1 19:36:05 2018 +0000 Xmalloc() -> Xrealloc() in C_AllocProjectile() From-SVN: r6972 commit 3be14b5f6f7b79c0d69896903d9f1ea3f6b0f1ae Author: Richard Gobeille Date: Sat Sep 1 19:36:01 2018 +0000 Apply the same autoaim Z position offsetting logic used on GREENSLIME and ROTATEGUN to any sprite with CSTAT_SPRITE_YCENTER set From-SVN: r6971 commit 7dd8abf00f2f6c35865e52db940ba201796dbe41 Author: Richard Gobeille Date: Sat Sep 1 19:35:55 2018 +0000 Reword error message displayed at startup when game data is missing From-SVN: r6970 commit e72c6e5203dffc5241f7d07065d131aa063172b0 Author: Richard Gobeille Date: Thu Aug 9 16:07:14 2018 +0000 Silence less stupid fucking warning From-SVN: r6969 commit bf6aff1455d98fbb7d6a220b39980966d02d66fa Author: Richard Gobeille Date: Thu Aug 9 16:07:09 2018 +0000 Silence stupid fucking warnings From-SVN: r6968 commit 72afeb943ba1985de0c304c991b468ce148749a6 Author: Richard Gobeille Date: Thu Aug 9 16:07:04 2018 +0000 Bump BYTEVERSION From-SVN: r6967 commit 6f3fb14b2b35690ce90665a38fe39262bd0ee5a6 Author: Richard Gobeille Date: Thu Aug 9 16:07:00 2018 +0000 Don't play DUKE_GOTHEALTHATLOW sound in standalone builds From-SVN: r6966 commit b75b5dbc8e6eda43413c0d7d0b77394100c5c69c Author: Richard Gobeille Date: Thu Aug 9 16:06:55 2018 +0000 Work around strange internal compiler error with gcc 8.2.0... From-SVN: r6965 commit 7e453b92118c0705c5d0ce59ff12add30d3671f7 Author: Richard Gobeille Date: Thu Aug 9 16:06:49 2018 +0000 Remove compiled CON script from savegames in favor of storing a simple CRC32 value computed from the uncompiled CON text--this means that savegames can now only be loaded if the currently loaded CONs match what was in use when the game was saved. From-SVN: r6964 commit 1f811d6aa47d16ee3715d4a223fea47fcb46814c Author: Alex Dawson Date: Thu Aug 2 07:53:09 2018 +0000 screens.cpp: Show average game update time over the last 100 game updates From-SVN: r6963 commit 6bd996f3cf72e115671ff4942cb1664a937d0dae Author: Evan Ramos Date: Thu Aug 2 01:21:19 2018 +0000 [facepalm emoji] From-SVN: r6962 commit 46ba933a543952bda2ac5f29cc768afc132dbc59 Author: Evan Ramos Date: Thu Aug 2 01:21:16 2018 +0000 Remove redundant code from Polymost fog Patch from Fox. From-SVN: r6961 commit c079e2e0a4f7f70e263ac9da5a3efee8cf9ddc32 Author: Alex Dawson Date: Mon Jul 30 23:01:48 2018 +0000 polymost.cpp/glsurface.cpp: Don't print shader compile status to the console on success. From-SVN: r6960 commit db729eb04c7bb14b6b3b7e7a73ba06714ce6336c Author: Richard Gobeille Date: Sun Jul 29 19:31:18 2018 +0000 Mapste32: echo successful script commands invoked from the console with "do" back to the console in green to indicate success. From-SVN: r6959 commit b5c5cbfa17ff7e34bbe765ce68b38b946db349e5 Author: Richard Gobeille Date: Sun Jul 29 19:31:12 2018 +0000 "Lomont then searched for a constant optimal even after one and two Newton iterations and found 0x5F375A86, which is more accurate than the original at every iteration stage." From-SVN: r6958 commit e1ff6d2fe81b17fbef631379cc16cb2178a0fa7e Author: Richard Gobeille Date: Thu Jul 26 16:34:03 2018 +0000 Cheap fix for load game menu crash From-SVN: r6957 commit 89882c23e803e3089b5a4f2a33b586f452332dcb Author: Richard Gobeille Date: Thu Jul 26 16:33:57 2018 +0000 Add missing USERDEFS_USERBYTEVERSION to VM_SetUserdef() From-SVN: r6956 commit bf45c6eef37d5262219078eb4db07d00bd8b6ac9 Author: Evan Ramos Date: Mon Jul 23 02:56:11 2018 +0000 Create P_GetOverheadPal() and restore the DOS definition of it. DOS: the player sprite's pal (including pants color and frozenness), unaffected by sector floor pal what the code had for some reason: the sector's floor pal, neglecting the nofloorpal bit, frozenness, and the player's pants color I contend that it is okay for the automap sprite to ignore the sector's color for map legibility purposes. From-SVN: r6955 commit 9265ea6f93b7383c16db52e30cb39c531bd362a9 Author: Evan Ramos Date: Mon Jul 23 02:56:08 2018 +0000 Factor out P_GetKneePal(). From-SVN: r6954 commit 4034fac23157594d1dd48292f56759c96f2e89ec Author: Evan Ramos Date: Mon Jul 23 02:56:05 2018 +0000 Clean up variables in overhead map player sprite draw code. From-SVN: r6953 commit e846531e5391bc2e6caf20838ee98fe520bf69e4 Author: Evan Ramos Date: Mon Jul 23 02:56:02 2018 +0000 Menus: Make some non-functional changes for clarity in Menu_RunInput_EntryRange*_Movement. From-SVN: r6952 commit fd5cab3bcce57da4a7074927d893e65b999ada4b Author: Evan Ramos Date: Mon Jul 23 02:55:59 2018 +0000 Fix -Wformat-overflow warnings From-SVN: r6951 commit 8222aac9046937cc94177abb4ec1f8770c156802 Author: Evan Ramos Date: Mon Jul 23 02:55:56 2018 +0000 Fix warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct menusave_t'; use assignment or value-initialization instead [-Wclass-memaccess] From-SVN: r6950 commit e95d7c99150b319ce290e4cf5f8bd7f83ec8fd36 Author: Evan Ramos Date: Mon Jul 23 02:55:53 2018 +0000 Fix warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] From-SVN: r6949 commit e070013fa3272fac4bb48e57e239b4c1dc401817 Author: Evan Ramos Date: Mon Jul 23 02:55:49 2018 +0000 Update glad to 0.1.25 Includes https://github.com/Dav1dde/glad/pull/140 From-SVN: r6948 commit b223deb427a0ee4529d13f394540b8befb779877 Author: Evan Ramos Date: Mon Jul 23 02:55:46 2018 +0000 softsurface: Perform a "divisor known at compile time" optimization From-SVN: r6947 commit 1acb2591d0271834f19546bc370f4229172bf5b2 Author: Evan Ramos Date: Mon Jul 23 02:55:42 2018 +0000 Fix variable capitalization in Dependencies.mak files From-SVN: r6946 commit ece4e60bd612d7e8db80fd71e48279808b4f6b52 Author: Richard Gobeille Date: Sat Jul 21 00:18:18 2018 +0000 MSVC build fix From-SVN: r6945 commit 4ed5b26367972727d4203c574c8bf9079b2ad0d9 Author: Richard Gobeille Date: Sat Jul 21 00:18:13 2018 +0000 Limit classic upscaling to 2x and 4x until issues with rotatesprite can be ironed out From-SVN: r6944 commit 4ebc14b45e88310b4180e998939bf8dd5d5b0621 Author: Richard Gobeille Date: Sat Jul 21 00:18:08 2018 +0000 CON_SWITCH maintenance From-SVN: r6943 commit ee9b2f51f08324ba57b6f245eb9327018f4fbbbd Author: Richard Gobeille Date: Sat Jul 21 00:18:03 2018 +0000 EDUKE32_STANDALONE stuff From-SVN: r6942 commit 44e1313074394efb78569be83eab64bb858ae18c Author: Richard Gobeille Date: Sat Jul 21 00:17:57 2018 +0000 Change sv prefix applied to savegame control cvars to cl for client (sv is reserved for server vars in multiplayer) From-SVN: r6941 commit 85b6d70b2257777d920258996b239924490b530e Author: Alex Dawson Date: Wed Jul 18 00:24:03 2018 +0000 menus.cpp: Don't show texture filtering, anisotropy, or palette emulation options when EDUKE32_STANDALONE is defined From-SVN: r6940 commit 67d3b531ed5af33966c897a798bdb4fc857a58b4 Author: Alex Dawson Date: Sat Jul 14 21:36:44 2018 +0000 Support software renderer upscaling engine-side in sdlayer and sdlayer12 with various scaling factors (beyond just pixel doubling). When glsurface is available, use GL to upscale the render buffer. Additionally, fix build issues with sdlayer12 introduced by GLAD changes (r6656). From-SVN: r6939 commit f0d7375e67bc15e1b33251f7b1eac1b99ec0afa9 Author: Alex Dawson Date: Sat Jul 14 21:36:34 2018 +0000 sdlayer.cpp: Don't destroy window resouces if switching between software rendering on glsurface and Polymost/Polymer From-SVN: r6938 commit 271ab71b7c586087af4c2c08a7185421fce27f90 Author: Alex Dawson Date: Tue Jul 3 04:29:23 2018 +0000 polymost.cpp: make c_wrapThreshold consistent between POLYMOST1_BASIC_FRAGMENT_SHADER_CODE and POLYMOST1_EXTENDED_FRAGMENT_SHADER_CODE From-SVN: r6937 commit 85cce1fdf3cb8148b834bad773820811410719a2 Author: Alex Dawson Date: Tue Jul 3 04:29:19 2018 +0000 polymost.cpp: fix rendering for indexed colour textures to match original behaviour when !r_usetileshades or globalflags & GLOBAL_NO_GL_TILESHADES Additionally, fix issue in polymost_setShade() where shade calculation was happening after a check for whether or not the shade needed to be updated. From-SVN: r6936 commit a547980abf1cb59771fbdb00a753d2205688a40a Author: Richard Gobeille Date: Sun Jul 1 04:51:25 2018 +0000 Rename console command 'sv_cleanup' to 'purgesaves', as sv_ is a prefix for cvars, not console commands From-SVN: r6935 commit 92ba01c84ec739bffaf244755f24fea3b1872667 Author: Richard Gobeille Date: Sun Jul 1 04:51:19 2018 +0000 Reduce default snd_numvoices to 64 and reduce max to 128 From-SVN: r6934 commit 0e59af9d16842d64ca6b46a319ef5edf2e70695e Author: Alex Dawson Date: Thu Jun 28 02:00:42 2018 +0000 sdlayer.cpp: fix software renderer crash affecting Mapster32 due to improper handling of lockcount in videoBeginDrawing()/videoEndDrawing() when using glsurface From-SVN: r6933 commit 93e032ba20af396a1fbf16a4fbda1bb7deeff14d Author: Alex Dawson Date: Mon Jun 25 14:53:46 2018 +0000 glsurface.h/.cpp: change how the palette is handled and fix tinting/fading From-SVN: r6932 commit 9b97eba973c5b3f0d122ff055654183d536265f5 Author: Alex Dawson Date: Mon Jun 25 14:53:42 2018 +0000 Revert a number of changes from r6929 and r6930 that are no longer necessary. Fix root causes of issues causing crash and black screen in Mapster32 when switching back and forth between 3D & 2D modes From-SVN: r6931 commit 703cb2cdc36bb49a45a53ec4f2c83caca9088ffb Author: Richard Gobeille Date: Sun Jun 24 00:55:29 2018 +0000 Temporary workaround for palette or GL surface issue wherein launching Mapster32 into 2d mode produces a black screen until switching to 3d mode and back From-SVN: r6930 commit f6cc741b38acb0901bb410093a3cce27f61de033 Author: Richard Gobeille Date: Sun Jun 24 00:55:23 2018 +0000 Fix crash in Mapster32 when switching from GL 3d mode to 2d mode. From-SVN: r6929 commit 84b79dacb371ecdefa5106da2491254c3a0fecc6 Author: Richard Gobeille Date: Sun Jun 24 00:55:17 2018 +0000 Use aligned memory allocation for GL surface From-SVN: r6928 commit 625ea2a634e3a8a227785411252162c7e6057880 Author: Richard Gobeille Date: Thu Jun 21 04:12:04 2018 +0000 Fix issue with viewing the player sprite through a security camera From-SVN: r6927 commit b6bd63abb7e698932af41d878ccefa04340243bc Author: Richard Gobeille Date: Thu Jun 14 21:25:20 2018 +0000 Fix inclusion of sdl_inc.h in Duke3D's config.cpp From-SVN: r6926 commit b08c2cf9c95beb9f704971bbb7743e52489ce808 Author: Richard Gobeille Date: Thu Jun 14 21:25:14 2018 +0000 Fix error with initputs symbol when linking the Build tools in some environments From-SVN: r6925 commit f3151963bb9f63db72b3110c40b28cfc06e64a63 Author: Richard Gobeille Date: Thu Jun 14 17:49:53 2018 +0000 Fix building the Build tools From-SVN: r6924 commit 0b4253bccbbc27383dec4f3691d23da97a60577d Author: Richard Gobeille Date: Thu Jun 14 17:49:46 2018 +0000 Fix building with winlayer From-SVN: r6923 commit 56530beff72cae0818d94630b23034723a54db02 Author: Alex Dawson Date: Wed Jun 13 19:15:26 2018 +0000 Add glsurface.cpp/h and tilepacker.cpp/h to Visual Studio Project From-SVN: r6922 commit 24ec29ac2eb542bd42f29a80fec5b2cc37d788f1 Author: Alex Dawson Date: Wed Jun 13 19:15:22 2018 +0000 Don't allow GL modes if GL Major Version is less than 2. Additionally, fix build issues for RENDERTYPE=WIN introduced in r6827. From-SVN: r6921 commit 5a10448139ed44fae69228976023d3403a2d182c Author: Alex Dawson Date: Wed Jun 13 19:15:19 2018 +0000 sdlayer.cpp: don't alter desktop composition using win_setvideomode() if we're creating an SDL window for rendering GL From-SVN: r6920 commit 59bce45f65ae928521a57c8ca1ccaa53249dd318 Author: Alex Dawson Date: Wed Jun 13 19:15:16 2018 +0000 When OpenGL is available, prefer using the new glsurface to blit the classic renderer's 8-bit buffer to the screen. From-SVN: r6919 commit 7fb45c1d7a30fdf8ba6b19159498f35c42c7ebd8 Author: Alex Dawson Date: Wed Jun 13 19:15:10 2018 +0000 tilepacker.cpp: instead of maintaining the heap on each insertion, maxheap_buildHeap() on tilepacker_pack() From-SVN: r6918 commit 08f98249fb5295d2a9aa79ad2b0420c57312531a Author: Alex Dawson Date: Tue Jun 12 20:28:02 2018 +0000 anim.cpp: timerUpdate() before setting the start time of the animation so that delays outside of animation playback won't cause animations to skip From-SVN: r6917 commit bae2426c3324f48bb245d65d8830a1bcd5abf663 Author: Alex Dawson Date: Tue Jun 12 02:13:39 2018 +0000 astub.cpp: fix issue where globalpal was not declared if polymost.h was not included From-SVN: r6916 commit 6c799c4eee00b8a6b3a30a31796c3d7e6be55c6c Author: Alex Dawson Date: Tue Jun 12 02:13:32 2018 +0000 palette.cpp: don't call uploadbasepalette() if USE_OPENGL is not defined From-SVN: r6915 commit 7981fe772f0ffd8fddd6341bc3b1f99e06a224bd Author: Richard Gobeille Date: Sat Jun 9 20:36:47 2018 +0000 Fix conveyor belt speed in IM, but not Duke because it breaks gameplay From-SVN: r6914 commit 4735886dcb48cab338e256d1ce62efcdd41201b0 Author: Richard Gobeille Date: Sat Jun 9 20:36:42 2018 +0000 Rename KXDWN macro and GAMEFLAG_KXDWN to IONMAIDEN and GAMEFLAG_IONMAIDEN From-SVN: r6913 commit 95a38ef42cf8c069e383effe44a7e72a5f2a7a10 Author: Richard Gobeille Date: Sat Jun 9 20:36:37 2018 +0000 Remove dead code branch from A_DoWaterTracers() and rename the function to Proj_DoWaterTracers() From-SVN: r6912 commit a132837f72d244f7ec8ecc53daf5a98c88c26ab4 Author: Richard Gobeille Date: Sat Jun 9 20:36:31 2018 +0000 Don't spawn hardcoded Duke3D debris/guts/glass sprites when compiled as EDUKE32_STANDALONE From-SVN: r6911 commit f98878f312e0d957d57e20862cc4321203957ccc Author: Richard Gobeille Date: Sat Jun 9 20:36:24 2018 +0000 Rework SE26 movement to function more like SE14 than SE24 From-SVN: r6910 commit b3d6a5518ea7375dea2eaa1eddf3b7df4332e442 Author: Richard Gobeille Date: Tue Jun 5 21:59:59 2018 +0000 Fix issues with running the game fullscreen on Windows 10 with high DPI setups From-SVN: r6909 commit fc56d3e9771d869a842671bd700be3b816a99b36 Author: Richard Gobeille Date: Tue Jun 5 21:59:52 2018 +0000 Fix SFLAG_WAKEUPBADGUYS From-SVN: r6908 commit a1180e99a00a67d14a41c3fe4d3bd9a7f8d37325 Author: Alex Dawson Date: Wed May 30 12:01:42 2018 +0000 engine.cpp: fix issue introduced in r6905 where voxels with fractional scaling would not be handled correctly in Polymost From-SVN: r6907 commit 016a050ef399e4f5cbfbac1bb0783a8c63f17114 Author: Alex Dawson Date: Sat May 26 22:11:25 2018 +0000 tiles.cpp: fix texcache.cpp:CLEAR_GL_ERRORS() hang on some drivers when trying to create GL textures for tiles when we have no GL context. This could occur when returning to 2D mode from 3D mode in Mapster32 as videoSet2DMode() does not affect the result of videoGetRenderMode() despite destroying the GL context. From-SVN: r6906 commit ecd4e93cc60cd173d69bab239ce638147c853abf Author: Alex Dawson Date: Wed May 23 15:04:56 2018 +0000 engine.cpp: fix issue with voxmodel_t voxels not having their scale set properly due to defs being processed before PolymostProcessVoxels() From-SVN: r6905 commit 849f9ba46c22c43f151759d42ce8b1ed0951ba43 Author: Alex Dawson Date: Wed May 23 15:04:52 2018 +0000 engine.cpp: fix classicDrawVoxel() positioning bugs by: +avoid adding the pivot's z offset again after it was already added in classicDrawSprite() +offset the voxel object by half of the voxel object's z size From-SVN: r6904 commit da541479c080ed1b0a13c619753440e900c7e8ab Author: Evan Ramos Date: Wed May 23 06:01:53 2018 +0000 Manually rebasing my r6899 over the formatting atrocity in r6895 broke my work. From-SVN: r6903 commit fe15872b23f873f5ef8b86ac1a30d1936922f885 Author: Evan Ramos Date: Wed May 23 05:58:21 2018 +0000 CON: Add "swaparrays" command, which performs a pointer-swap on arrays of the same storage class. From-SVN: r6902 commit f31e0a7edecbf4c3e85aec728aa918d22f7ebf5d Author: Evan Ramos Date: Wed May 23 05:58:17 2018 +0000 CON: Factor out the parsing of gamearray names. From-SVN: r6901 commit e9fc130aeace31eaab09e9b97c34658ab900ae6e Author: Evan Ramos Date: Wed May 23 05:58:12 2018 +0000 CON: Remix resizearray in the following ways: Make only one allocation instead of two. Calculate array byte sizes in a way compatible with GAMEARRAY_BOOLEAN. Clear the expanded part of grown arrays using correct counts for non-int32 sizes. Support resizing an array to 0 to free it. From-SVN: r6900 commit 247a2d3ace0d3d350c5463e058160c9077d15e9a Author: Evan Ramos Date: Wed May 23 05:58:09 2018 +0000 CON: Implement the copy command for GAMEARRAY_BOOLEAN. From-SVN: r6899 commit c83613c90a39b7cb3c04e1a8ca00b53b948d2b58 Author: Evan Ramos Date: Wed May 23 05:58:03 2018 +0000 CON: Fix two regressions completely breaking the correctness of the copy command, introduced in r6343. From-SVN: r6898 commit 09e86095c3c6006683e9eac44da7f0fff9ef8532 Author: Evan Ramos Date: Wed May 23 05:57:58 2018 +0000 Fix the vertical position of the level stats when using the original mini-HUD. Patch from Fox. From-SVN: r6897 commit 3cc4b02f6e18d908b77d2e67c06f5df4ca64f7cd Author: Evan Ramos Date: Wed May 23 05:43:35 2018 +0000 Ensure that anywhere the def parser takes a tilenum or palnum accepts defined tokens in addition to integer literals, if it doesn't already. Affects fogpal, nofloorpalrange, setuptilerange, dummytilerange, undefinetilerange, definemodelframe, definevoxeltiles, texhitscanrange, nofullbrightrange, and light. From-SVN: r6896 commit ec2c6565b7925991ad29a486cd7b97feb43bec69 Author: Richard Gobeille Date: Tue May 22 19:03:44 2018 +0000 Move some of the more commonly used CON functions to the top of the switch in VM_Execute(), and promote some of the loop's variables to native_t. Unfortunately, Visual Studio's new clang-format integration took it upon itself to reformat everything. Use diff -w. From-SVN: r6895 commit c99095fd005cf02355215ade6ac980c841962aa5 Author: Richard Gobeille Date: Tue May 22 19:03:24 2018 +0000 CON: make setting a sector's .wallptr call setfirstwall() instead of setting it directly and corrupting the map From-SVN: r6894 commit b1e3f3bcf9c5214ae835d09e12cc41bac4f057ce Author: Alex Dawson Date: Tue May 22 10:01:17 2018 +0000 actors.cpp: improve SE_11_SWINGING_DOOR detection and handling of players that block a door's path From-SVN: r6893 commit 0048d266069692cc9235e0952f901f6e90b6929d Author: Evan Ramos Date: Tue May 22 05:59:08 2018 +0000 CON: Revert r6526 and r6527. This restores the longstanding behavior of the killit command, and setting sprites' xrepeat to zero, to not actually delete sprites unless their statnum is STAT_ACTOR or STAT_MISC. Be sure to set a sprite's statnum to one of these statnums if you want it to be deleted. This should fix the broken E1L1 sector warp in the existing release of the Duke 64 mod, and the Polymer light culling used in HHR. From-SVN: r6892 commit dab7ba8de071ceae24f0b1d6cefd7a1116469f10 Author: Evan Ramos Date: Sat May 19 14:14:25 2018 +0000 sdlmusic: Slight cosmetic cleanup From-SVN: r6891 commit d5d34ba14caa2d3c961104d7f8ae108e8261669c Author: Evan Ramos Date: Sat May 19 14:14:22 2018 +0000 sdlmusic: Implement graceful playback failure From-SVN: r6890 commit b80fd642622c656f71b6c62dd29c889a176edece Author: Evan Ramos Date: Sat May 19 14:14:18 2018 +0000 Fix MIDI playback on non-Windows platforms From-SVN: r6889 commit 94155e713e018499fe6581d9d7c5a97774042961 Author: Alex Dawson Date: Thu May 17 22:33:13 2018 +0000 polymost_drawpoly(): fix issue where mirrors wouldn't update the depth buffer From-SVN: r6888 commit 5a43e913cb2acde5bb1bd9bb4f01b9f2b8b8a06a Author: Alex Dawson Date: Thu May 17 00:35:26 2018 +0000 G_HandleMirror(): When choosing which mirror to render, only choose from mirrors that are potentially visible. From-SVN: r6887 commit 1e75425d3844378f96c67960814436080eb75078 Author: Alex Dawson Date: Tue May 15 16:45:34 2018 +0000 engine.cpp/.h: clean up & fix lintersect(). Additionally, add support for finding intersections of collinear line segments. From-SVN: r6886 commit a9de8db4effd9508bab29ccf1c92aa1463fe5054 Author: Alex Dawson Date: Tue May 8 22:47:55 2018 +0000 polymost_bindPth(): Fix issue where non-indexed colour, non-hightile textures (including those with polytintflags HICTINT_USEONART or HICTINT_ALWAYSUSEART) would not render correctly while r_useindexedcolortextures is set. From-SVN: r6885 commit 985fdde883acfd9adba4b95819b7d7324a31c83d Author: Alex Dawson Date: Tue May 8 17:32:19 2018 +0000 Incrementing ud.executions is now done in app_main() instead of CONFIG_WriteSetup() so that it is only incremented once per execution. From-SVN: r6884 commit a2d8dc8f14dab3c5287874c3ac8d94f9b4cf1540 Author: Alex Dawson Date: Tue May 8 17:32:16 2018 +0000 Dynamic tilepacking for indexed colour textures From-SVN: r6883 commit d253362fdd4998e82f969f8e6fd515144fe02a97 Author: Alex Dawson Date: Tue May 8 17:32:11 2018 +0000 ud.showfps > 2 now shows Game Update time and Game Update & Draw time (along with the min & max Game Update time) for easier performance analysis From-SVN: r6882 commit af8f982ce885dac57b89f9a83262f31159a71844 Author: Alex Dawson Date: Tue May 8 17:32:07 2018 +0000 polymost_resetVertexPointers(): remove erroneous glBindBuffer call From-SVN: r6881 commit 0470c69cd3e2293e9f32cae37aa4259c22f2dab6 Author: Evan Ramos Date: Tue May 8 00:01:14 2018 +0000 Amend r6870 and r6871 to only apply in WW2GI mode. From-SVN: r6880 commit 197e93dc26c0820f339cbb03a709704e8bca8d94 Author: Richard Gobeille Date: Mon May 7 17:08:54 2018 +0000 Revert r6870 From-SVN: r6879 commit bd80b092a19b616382014d9148cee3548ba7404f Author: Richard Gobeille Date: Fri May 4 22:42:42 2018 +0000 Ignore cache size setting in .cfg if the value is less than the hard-coded default From-SVN: r6878 commit da9168b62443460e0e8b0be721772427fd065014 Author: Richard Gobeille Date: Fri May 4 22:42:37 2018 +0000 Very light sound cleanup From-SVN: r6877 commit 9b05319ebd2a018438dd1e8b79d1e347387f065c Author: Richard Gobeille Date: Fri May 4 22:42:31 2018 +0000 Add quick save and quick load to the keyboard configuration menu From-SVN: r6876 commit 125b93305f88017bdf3e33d51667f6a31061258c Author: Evan Ramos Date: Thu May 3 06:05:56 2018 +0000 Bump the default cache size to 96 MiB. From-SVN: r6875 commit f385a451a89de7dea44127e96fcc8d53cd5289d2 Author: Evan Ramos Date: Thu May 3 04:44:36 2018 +0000 Disable S_ClearSoundLocks, preventing sounds from being marking purgable, and causing them to get prematurely evicted. This fixes the absent sound issues in WWII GI. From-SVN: r6874 commit 6be0778d51bd5be1fbb2de60f9d015b1fcadc87d Author: Evan Ramos Date: Thu May 3 04:44:33 2018 +0000 WWII GI: Remove the hack/approximation for the bazooka display code because one of the general weapon system fixes made it work incorrectly, and also made a direct port of the original code work correctly. Accuracy FTW! From-SVN: r6873 commit 18ade3614d4b89b8854aa73265b00e8c7f94827e Author: Evan Ramos Date: Wed May 2 07:13:04 2018 +0000 Fix some printf warnings. From-SVN: r6872 commit d1c184e4831e1c30a239128bd3a62c8f323a4155 Author: Evan Ramos Date: Wed May 2 07:13:01 2018 +0000 WWII GI: Fix the chaingun replacement to always reload even if you continue holding down fire. From-SVN: r6871 commit 11d83b5877b7f3289445e3f94091671e8ae91d55 Author: Evan Ramos Date: Wed May 2 07:12:58 2018 +0000 WWII GI: Fix the chaingun replacement to not fire in bursts of 3 per fire button press. From-SVN: r6870 commit 5bdae647284a5fb62cb00b2bb6ebd4f59ed04107 Author: Evan Ramos Date: Wed May 2 07:12:55 2018 +0000 WWII GI: Fix mistakes in our version of the weapon display code. From-SVN: r6869 commit b8abd14b4211793a78304195e4eed780f8bb349a Author: Evan Ramos Date: Wed May 2 07:12:52 2018 +0000 WWII GI: Update the default values of the weapon gamevars to correctly match the original game. From-SVN: r6868 commit 0b2499dff8f1aa39055f64cbadc6c224546ec5db Author: Evan Ramos Date: Wed May 2 07:12:49 2018 +0000 Fix some inaccuracies to the released versions of NAM and WWII GI. *Both: Reload frame display for weapon 1 *WW2GI: Some effect bits for changes in ammo amount of weapon 11 in the status bar Thanks to NY00123 for detailed comparisons of the released source code to the original binaries! From-SVN: r6867 commit 518f98952705a957ea6fc22d6dae2c28b940b7e7 Author: Evan Ramos Date: Wed May 2 07:12:42 2018 +0000 NAM: Fix the M16's autoaim. Reported by Little Tijn. From-SVN: r6866 commit bfdf51f242ba7f61e7c44691294f212352de9694 Author: Richard Gobeille Date: Sun Apr 29 17:20:11 2018 +0000 Direct cache1d error messages to log instead of stdout From-SVN: r6865 commit 1c2b47cbd4c8f6a8e3630acd3224d0f748352709 Author: Richard Gobeille Date: Sun Apr 29 17:20:07 2018 +0000 Add 'P' hotkey to change palette in tile selector, and clean up the info at the bottom of the screen a bit From-SVN: r6864 commit 3b7e93f3f19e95261798999743f9bd4102851e78 Author: Richard Gobeille Date: Sun Apr 29 17:20:01 2018 +0000 Mapster32: second attempt at preventing extra wall points from being inserted on some walls with the batch point insert tool From-SVN: r6863 commit f4810832a5cd44fea04f1665ea22b3341eea3819 Author: Richard Gobeille Date: Mon Apr 23 10:51:12 2018 +0000 Mapster32: in tile selector, make backspace set palette to 0 From-SVN: r6862 commit 093fcf2df52f6463e6cd1f296ea787f456de352f Author: Richard Gobeille Date: Mon Apr 23 10:15:32 2018 +0000 Mapster32: use object's current palette on tile selection screen and allow cycling object palettes from tile selection screen with - and = From-SVN: r6861 commit 8876b055e03a3c16a2c60efd3c3e0daf106c7d37 Author: Richard Gobeille Date: Mon Apr 23 10:15:27 2018 +0000 Mapster32: use sc_XXX defines from scancodes.h instead of unlabeled hex scancodes when checking keystatus[] From-SVN: r6860 commit fa22a77fd60bdc4a1becc86e8d4f9af915851d2b Author: Richard Gobeille Date: Mon Apr 23 10:15:21 2018 +0000 Disable AllowShortLoopsOnASingleLine in clang-format From-SVN: r6859 commit 6b25b1d262cae8fc40b6f3288ea975e7359b1c93 Author: Richard Gobeille Date: Mon Apr 23 10:15:17 2018 +0000 Indentation From-SVN: r6858 commit ab7bd3fc02ca0e32e7eb97408872752a5fa634fb Author: Richard Gobeille Date: Mon Apr 23 10:15:12 2018 +0000 Fix Mapster32 bug where sometimes you'd get two points instead of one when pressing enter to insert points where the lines intersect with the wall drawing tool From-SVN: r6857 commit a4ba56711ce0912444ead1472afa39a64a07b267 Author: Richard Gobeille Date: Mon Apr 23 10:15:03 2018 +0000 LZ4 warning silencing I accidentally left out of a previous commit From-SVN: r6856 commit 8d6a9908686dc8588e44f8c3455bb32981c8ec12 Author: Richard Gobeille Date: Mon Apr 23 06:36:14 2018 +0000 macOS build fix From-SVN: r6855 commit 3ce82c3b007c64e8d67caa3e0df4c37ebffeffe6 Author: Richard Gobeille Date: Mon Apr 23 06:36:08 2018 +0000 Readability improvements for gamestructures.cpp From-SVN: r6854 commit bd52f5b0ed1bdb5a03fd4619983ceb61124a6190 Author: Richard Gobeille Date: Mon Apr 23 06:36:02 2018 +0000 Use references in some gamevar stuff From-SVN: r6853 commit 08657eeeb79bf6301a9a886d729b9a5b37e20a1d Author: Richard Gobeille Date: Mon Apr 23 06:35:57 2018 +0000 Fix warning From-SVN: r6852 commit 5c51036cbeb2d7feda22ef9acaa7ac101c3e238f Author: Richard Gobeille Date: Mon Apr 23 06:35:52 2018 +0000 Change mouseGrabInput()'s parameter to a bool From-SVN: r6851 commit 9e77ae9c7823bc8a1861ec5c1ac47a3f31cab6db Author: Richard Gobeille Date: Mon Apr 23 06:35:45 2018 +0000 Fix a couple of warnings in the new versions of LZ4 and Miniz From-SVN: r6850 commit fc6026671d24766e886f81602803c15fb45f691f Author: Richard Gobeille Date: Mon Apr 23 06:35:34 2018 +0000 Update Miniz From-SVN: r6849 commit 5c95b3aca9f757f6a3ce62b39d6f90ef93620251 Author: Richard Gobeille Date: Mon Apr 23 06:35:25 2018 +0000 Rename int64.h to fix16_int64.h From-SVN: r6848 commit 38c2197cff1cdf4e2b603acda2ada407c8dcbec6 Author: Richard Gobeille Date: Mon Apr 23 06:35:17 2018 +0000 Update xxHash From-SVN: r6847 commit 3ed5d43b584e2ecc37fd82e6424dfe86bd08ea3a Author: Richard Gobeille Date: Mon Apr 23 06:35:11 2018 +0000 Update lz4 From-SVN: r6846 commit 4aaff0f372dde92f3469373e9e56ee402739d3ef Author: Richard Gobeille Date: Mon Apr 23 06:35:06 2018 +0000 Merge our changes to libdivide back in From-SVN: r6845 commit 3fa2514cfe4dd4a34f94952e93ace9e53a3277ff Author: Richard Gobeille Date: Mon Apr 23 06:35:00 2018 +0000 Update libdivide.h to latest release From-SVN: r6844 commit 91f9406d208cf3b7e5690e7f484b73324f1dab7b Author: Richard Gobeille Date: Mon Apr 23 06:34:55 2018 +0000 Oops, I made a fuck From-SVN: r6843 commit 3fb83c7019ca13aa2dd9d71e4a0ec61665441b73 Author: Richard Gobeille Date: Mon Apr 23 06:34:49 2018 +0000 Remove no longer used glext.h From-SVN: r6842 commit d7582cf98f335a4b9bc1a788f4d1b3c3a86025ff Author: Richard Gobeille Date: Mon Apr 23 06:34:43 2018 +0000 This is probably faster From-SVN: r6841 commit 51bb2976223021e70d107251d2c0a52efc230b08 Author: Richard Gobeille Date: Mon Apr 23 06:34:33 2018 +0000 MSVC warning fix From-SVN: r6840 commit 83f42556af3ef24f053f3a4634685187c54e59bb Author: Richard Gobeille Date: Sat Apr 21 06:04:56 2018 +0000 Replace sound callback mutex with atomic operation From-SVN: r6839 commit 66a0d7f5ce40417eb66383d9864c010243eefcb3 Author: Richard Gobeille Date: Sat Apr 21 06:04:50 2018 +0000 Add missing file to VS project From-SVN: r6838 commit 5bf46154f5b810e958dee1a042f4a369ff112c5a Author: Richard Gobeille Date: Sat Apr 21 06:04:44 2018 +0000 Slight change to FX_DetectFormat(); format specifications seem to say there's no such thing as WAVE without RIFF. From-SVN: r6837 commit 5bb00785b8e83b240efe57acbf099189eefc9fc0 Author: Richard Gobeille Date: Sat Apr 21 06:04:39 2018 +0000 Sound code tweaks From-SVN: r6836 commit 867c191f10a68b938065f4802b7062ebdf0434c9 Author: Richard Gobeille Date: Sat Apr 21 06:04:33 2018 +0000 Bump clang-format ColumnLimit to 150 From-SVN: r6835 commit 110428ae3ea3ac06ab2fd7060dc99ace7546b3eb Author: Richard Gobeille Date: Thu Apr 12 21:04:12 2018 +0000 Fix a bunch of off-by-one errors in the sound system, made apparent by a change to some related code. From-SVN: r6834 commit 17ce7eb8d627191e05cd88ca10f4f568231593ba Author: Richard Gobeille Date: Thu Apr 12 21:04:07 2018 +0000 Prevent divide by 0 when SDL_GetCurrentDisplayMode()/SDL_GetClosestDisplayMode() say the refresh rate is 0 From-SVN: r6833 commit c7fcd22d4fc422e13c9bf0e775f1a8ba6b817ca7 Author: Richard Gobeille Date: Thu Apr 12 21:04:00 2018 +0000 More function name shit From-SVN: r6832 commit 25838a292e26a8cb1b377a83e90ba5163682935c Author: Richard Gobeille Date: Thu Apr 12 21:03:47 2018 +0000 Function names From-SVN: r6831 commit 1f1ed3c51eeab9c6e95e229d555e5125a9b4090e Author: Richard Gobeille Date: Thu Apr 12 21:03:30 2018 +0000 More function name cleanup From-SVN: r6830 commit 27aa0044ed2bee40319b544b67d8faf0d3cf0054 Author: Richard Gobeille Date: Thu Apr 12 21:03:12 2018 +0000 Continuing the quest for clearer function names From-SVN: r6829 commit b55462649f00157d4bb719d8fa863692b10f94bd Author: Richard Gobeille Date: Thu Apr 12 21:02:51 2018 +0000 Engine function name cleanup round 2 From-SVN: r6828 commit f40a22af824e3160eedc5613d4ddf45f99ccafa9 Author: Richard Gobeille Date: Thu Apr 12 21:02:31 2018 +0000 Beginnings of baselayer.cpp/.h refactor. This is 99.9% renames. From-SVN: r6827 commit 7b84ac95e7b9b542fd70a0fe25a7c569b6377d81 Author: Richard Gobeille Date: Thu Apr 12 21:02:18 2018 +0000 This is supposed to enable the discrete GPU on NVIDIA Optimus and AMD PowerXpress setups From-SVN: r6826 commit d28c1706e48ae4191691e97effbc89c97ae85936 Author: Evan Ramos Date: Wed Apr 11 03:34:03 2018 +0000 SW: Fix NORM_(SPRITE|WALL|SECTOR) macros to use MAX$1 instead of ARRAY_SIZE, which would fail due to the structs not being statically allocated. Patch prepared by Striker. From-SVN: r6825 commit 1f26e9df6bbd3d5b12d371f8dfd609bdec801e32 Author: Evan Ramos Date: Wed Apr 11 03:33:59 2018 +0000 CON: Add spawnceilingglass, spawnwallglass, and spawnwallstainedglass commands. Patch from Striker. From-SVN: r6824 commit a0814e692d4668f572209a544be931665ff68cdc Author: Evan Ramos Date: Wed Apr 11 03:33:54 2018 +0000 CON: Add resetplayerflag 8, which mandates reload and not savegame load in single player. From-SVN: r6823 commit 5ea0ab07f3306092bc6e10365f1760574d14ce30 Author: Alex Dawson Date: Sun Apr 8 19:41:09 2018 +0000 Temporarily remove the option to enable texture filtering when building with EDUKE32_STANDALONE until indexed colour texture rendering supports filtering. From-SVN: r6822 commit a57758214c62cb8e61028d1cbdfa30c4da294391 Author: Richard Gobeille Date: Fri Apr 6 01:43:27 2018 +0000 Oh hey I fucked something up... again... :D From-SVN: r6821 commit 0a76932177000d86331be7715784812e2b9d69d8 Author: Richard Gobeille Date: Fri Apr 6 01:43:22 2018 +0000 Bump MAXSPRITESONSCREEN from 2048 to 2560 From-SVN: r6820 commit dcc9c85ca424c36b58f23d7d5f0cb38199c6ec7d Author: Richard Gobeille Date: Fri Apr 6 01:43:17 2018 +0000 I don't know if this is actually better or not but it feels like it should be From-SVN: r6819 commit f02a6fc9270ac372a014a0be339f172284290a70 Author: Richard Gobeille Date: Fri Apr 6 01:43:12 2018 +0000 EDUKE32_STANDALONE guard some HoloDuke behavior in CON_IFCANSEE and remove a branch from GAMEARRAY_BITMAP processing in CON_SETARRAY From-SVN: r6818 commit 657e2add59eb9d4333f16924adea88e06b5acc8b Author: Richard Gobeille Date: Fri Apr 6 01:43:08 2018 +0000 EDUKE32_STANDALONE guard some hard-coded Duke3D sound behavior From-SVN: r6817 commit 8687cac369633f50e32decc043921e66ad1f529e Author: Richard Gobeille Date: Fri Apr 6 01:43:03 2018 +0000 Use FindDistance3D() instead of sepdist() directly because we don't need/want it inlined here From-SVN: r6816 commit a182dd1d7c70bd6122dc4173496506cc7e2602aa Author: Richard Gobeille Date: Fri Apr 6 01:42:58 2018 +0000 Remove a couple of unnecessary calls to S_ClearSoundLocks() From-SVN: r6815 commit 79e5c765a5f84b2b662d692c898d6b106b6fcb05 Author: Richard Gobeille Date: Fri Apr 6 01:42:53 2018 +0000 Replace a couple checks for qsetmode==200 with in3dmode(), because it's literally a macro that does that From-SVN: r6814 commit a064d938736591d2e2ab575966df4660ad990603 Author: Richard Gobeille Date: Fri Apr 6 01:42:47 2018 +0000 Remove useless switch/case setup in nextpage() From-SVN: r6813 commit 1f5a6adf715f7412da624928cfc6ee925af8bc07 Author: Richard Gobeille Date: Fri Apr 6 01:42:43 2018 +0000 Revert a small change to cache1d and default lz4CompressionLevel to 5 From-SVN: r6812 commit bcc3b1765444b5b4e0f27a84689c0ead4fbe09f9 Author: Richard Gobeille Date: Fri Apr 6 01:42:38 2018 +0000 Use CSTAT_SPRITE_ALIGNMENT_* enums in a couple places From-SVN: r6811 commit 344a317f8135edc912b346495ec2969e54be785b Author: Richard Gobeille Date: Fri Apr 6 01:42:33 2018 +0000 Fix up some dynamic tile remapping cruft in A_Spawn() for less branching From-SVN: r6810 commit 41a36f6707dadb1e0e85f6ef2f1ae026bd4ffb1a Author: Richard Gobeille Date: Fri Apr 6 01:42:27 2018 +0000 Untabify engine_priv.h From-SVN: r6809 commit 0a7536f499815cc1f62239c16f212ecabb6d6182 Author: Richard Gobeille Date: Thu Apr 5 05:39:33 2018 +0000 Epic fuckup From-SVN: r6808 commit 5b17b2f81c467d313243f6f1818565f27c9290a4 Author: Richard Gobeille Date: Thu Apr 5 04:39:30 2018 +0000 cache1d changes, also implements lz4compressionlevel cvar to control the speed vs side trade-off for savegame compression From-SVN: r6807 commit 2cd50884cfb49157da05b8567650421a17100f39 Author: Richard Gobeille Date: Thu Apr 5 04:39:23 2018 +0000 Standalone build warning fix From-SVN: r6806 commit 59cc52d6fe630584a44943266ba2c7749f3c9c28 Author: Richard Gobeille Date: Wed Apr 4 21:06:07 2018 +0000 Build fixes, oops From-SVN: r6805 commit 6baed39fb4b3e5dd7b1dc0950793a2cb12d97ebf Author: Richard Gobeille Date: Wed Apr 4 20:48:15 2018 +0000 Guards From-SVN: r6804 commit 2277108650c89b521c7054ed600cc7fe3a516a25 Author: Richard Gobeille Date: Wed Apr 4 20:48:10 2018 +0000 Minor png writer fixups From-SVN: r6803 commit 11dbc03854fb6f150ce28bc0861d3ab4d5b3e2ea Author: Richard Gobeille Date: Wed Apr 4 20:48:05 2018 +0000 More EDUKE32_STANDALONE guards From-SVN: r6802 commit 860ad0005729525d868908fa1f476d9edf363f4a Author: Richard Gobeille Date: Wed Apr 4 20:48:00 2018 +0000 Add some missing files to the VS project From-SVN: r6801 commit f847fe9bfcd723c0c689a1a681ca6c850379100a Author: Richard Gobeille Date: Wed Apr 4 20:47:55 2018 +0000 Re-arrange some of the hard-coded stuff in A_Spawn(). Just re-organizations, no changes to the blocks that moved. From-SVN: r6800 commit 1d2bc616ac295b58882f5db4789ff50745acfc2b Author: Richard Gobeille Date: Wed Apr 4 20:47:48 2018 +0000 More EDUKE32_STANDALONE guarding. Next commit will merge some of the guarded blocks together for simplicity. From-SVN: r6799 commit e338ba4189d78e2b2f9bd0453f6f05fd5742bcb9 Author: Richard Gobeille Date: Mon Apr 2 22:00:44 2018 +0000 #ifndef EDUKE32_STANDALONE guard a bunch of hardcoded behavior From-SVN: r6798 commit b86768f72effea3a6eed6865e257df4846ddc45f Author: Richard Gobeille Date: Mon Apr 2 22:00:38 2018 +0000 #if guard unncessary mouse position check with SDL2 From-SVN: r6797 commit f5ba2766a15f0fbeb1ab49b7b20c28276db3e1af Author: Richard Gobeille Date: Mon Apr 2 22:00:33 2018 +0000 Optimize A_RadiusDamage() From-SVN: r6796 commit b0c6ddb749a7385d80661421a2c13a8743ee049c Author: Richard Gobeille Date: Mon Apr 2 22:00:28 2018 +0000 Redundant return From-SVN: r6795 commit 01f5e13e9366e20e997e3fb6d318281cb619fd17 Author: Richard Gobeille Date: Mon Apr 2 22:00:23 2018 +0000 Branchless sectorofwall_internal() From-SVN: r6794 commit 96accdcc9e5bf633c27bb8df63c567759d6721df Author: Richard Gobeille Date: Mon Apr 2 22:00:17 2018 +0000 Fix hitradius performance when affecting tons of walls From-SVN: r6793 commit 1830f405ab7ea94f128bd8aff31cabcde30144e9 Author: Richard Gobeille Date: Mon Apr 2 22:00:11 2018 +0000 Sound cleanup. Eliminates on-demand loading of sounds--all sounds are cached before level load. From-SVN: r6792 commit 0a7ca4d5769a5c46319d72778d2b204dfb167985 Author: Richard Gobeille Date: Mon Apr 2 22:00:05 2018 +0000 Save/load cache1d size from config From-SVN: r6791 commit 7b4f836861b89d7e3effe085f751e94690b142eb Author: Richard Gobeille Date: Mon Apr 2 21:59:59 2018 +0000 Formatting From-SVN: r6790 commit a65ab970ff20ddbd6150785fd7824c36886c1dff Author: Alex Dawson Date: Fri Mar 23 21:41:02 2018 +0000 Switched Duke3D to use new LZ4 dfwrite()/kdfread() implementations to improve compression/decompression speed. SV_MINOR_VER is incremented as using this alternate compression algorithm is not backwards compatible with older saves/demos. From-SVN: r6789 commit 52a31d90314e6cd42c9505b1a02d1857b9543a81 Author: Alex Dawson Date: Fri Mar 23 04:02:35 2018 +0000 texcache.cpp: Override PTH_INDEXED and fall back to pre-processing tiles if high colour tint effects are being used on indexed colour art From-SVN: r6788 commit ea3216fae750597c61d4b3ec6e570f52b1cda645 Author: Alex Dawson Date: Thu Mar 22 07:13:36 2018 +0000 menus.cpp: disable palette emulation menu options when in Polymost and r_useindexedcolortextures is 1 From-SVN: r6787 commit 93d218419e68cf548f0cd0cd2747ba3cbda30b8b Author: Alex Dawson Date: Thu Mar 22 07:13:33 2018 +0000 menus.cpp: Allow setting anisotropy when not in Polymost regardless of whether r_useindexedcolortextures is set From-SVN: r6786 commit fcb0917a45b0ec2b9aa6675b4c8afe9e5a487a2c Author: Alex Dawson Date: Thu Mar 22 07:13:30 2018 +0000 Fix console background disappearing intermittently From-SVN: r6785 commit 7b9d31a52bb66250b00b55371aeb5b689f857a72 Author: Alex Dawson Date: Thu Mar 22 07:13:25 2018 +0000 polymost.cpp: fix shadeFactor not being set properly for non-indexed colour textures From-SVN: r6784 commit 0e31c22df57cd58d43100b521b0236e51e5890a7 Author: Evan Ramos Date: Thu Mar 22 04:48:57 2018 +0000 MIDI/Windows: Immediately MPU_Init after MPU_Reset so that MIDI_Reset can take effect. From-SVN: r6783 commit feea925a1e1e84c206ba1b0f2500499420992989 Author: Evan Ramos Date: Thu Mar 22 04:48:54 2018 +0000 MIDI/Windows: Return early from MPU_Init if MPU_Reset was not previously called to shut the MPU down. From-SVN: r6782 commit 2baa870fe410a3568d15d0aad90dec49c6f2b801 Author: Evan Ramos Date: Thu Mar 22 04:48:50 2018 +0000 Makefile: Allow component cflags to override global CWARNS for clang-tools rule. From-SVN: r6781 commit 41093fe9ee2dbec7abce0c8d8f1bef0c37e8b332 Author: Evan Ramos Date: Thu Mar 22 04:48:47 2018 +0000 Update glad to 0.1.18a0 From-SVN: r6780 commit e9dbf8102bc2655125a24f7ed617c0efd782726e Author: Evan Ramos Date: Thu Mar 22 04:48:41 2018 +0000 Don't apply weapon shade interpolation to the shrinker/expander crystal at all. From-SVN: r6779 commit 688293e2f0e6436b7e827b41d7073075fd191eb5 Author: Evan Ramos Date: Thu Mar 22 04:48:36 2018 +0000 Replace individual developer email addresses in error messages From-SVN: r6778 commit 1fc78c3b838e9435b4def139c6460fb8d8680485 Author: Alex Dawson Date: Wed Mar 21 20:41:32 2018 +0000 Polymost: center texel fetches for palette lookups and add various optimizations related to indexed texture changes From-SVN: r6777 commit 45760e8e1a782285edea1386d9e3fc13e08ac36f Author: Alex Dawson Date: Wed Mar 21 20:41:26 2018 +0000 Polymost palette-indexed texture rendering From-SVN: r6776 commit 42288f772593954588bd91aacf514d6912769cf8 Author: Evan Ramos Date: Sat Mar 17 06:44:27 2018 +0000 Fix build From-SVN: r6775 commit bb0f25033e0e6ab9d39a8acc8da7e6d49ef5e778 Author: Richard Gobeille Date: Sat Mar 17 03:44:10 2018 +0000 Fix weird bug with the shotgun caused by leftover code from the electric gun in LameDuke. No, really. From-SVN: r6774 commit 0f0b4fde70339e0de78e91c0b5aa67eb8e0ba8ca Author: Richard Gobeille Date: Sat Mar 17 03:44:05 2018 +0000 Useless cleanup of a function I saw when investigating a problem From-SVN: r6773 commit 4ff2f36c2b275d0e701f0cd0168d4d578ece362e Author: Richard Gobeille Date: Sat Mar 17 03:43:33 2018 +0000 Remove 144 fps option from the menu, because it doesn't work right From-SVN: r6772 commit 85bfc83310f6ad6ec979c6e4df5dd84b084c81ae Author: Evan Ramos Date: Sat Mar 17 03:26:10 2018 +0000 CON: Add EVENT_DAMAGESPRITE, EVENT_POSTDAMAGESPRITE, EVENT_DAMAGEWALL, EVENT_DAMAGECEILING, and EVENT_DAMAGEFLOOR. In these events, THISACTOR is the projectile (or source of damage), and RETURN is the sprite/wall/sector affected. Set RETURN to -1 to cancel any hardcoded effects. ud.return 1 through 5 are the parameters passed to hitradius if RADIUSEXPLOSION is the source of the damage. ud.return 1 is -1 otherwise. New tokens "damageeventtile" and "damageeventtilerange" or tiledata[].gameflags & SFLAG_DAMAGEEVENT to enable processing for receivers with corresponding tilenums. CON commands to replicate hardcoded effects (beyond switching tilenums, such as spawning glass) are forthcoming. Use of EVENT_DAMAGEHPLANE is hereby discouraged. Patch from Striker, based on work by Fox. From-SVN: r6771 commit 4b8b392f0289f2963e809d28d61841bab5930424 Author: Evan Ramos Date: Sat Mar 17 03:26:05 2018 +0000 Fix MSVC build From-SVN: r6770 commit 38a9c39a6ba03919a6682c364e760508ddac1e8e Author: Evan Ramos Date: Sat Mar 17 03:26:01 2018 +0000 Instrument the code to build without the struct trackers and disable them when the build options eliminate all uses of them (currently USE_OPENGL=0). From-SVN: r6769 commit a493c5b9316746003a40b91dc5557fead7333c61 Author: Evan Ramos Date: Sat Mar 17 03:25:57 2018 +0000 Minor cleanup regarding buildtypes.h From-SVN: r6768 commit 2fac7d07b0742bd60408b15e26082839d29d25e5 Author: Evan Ramos Date: Thu Mar 15 07:53:02 2018 +0000 Fix horizoff with q16. This solve the problem with horiz returning to center after standing on a sloped floor. Patch from Fox. From-SVN: r6767 commit 97326fddda942038974fe88fe4132de10fcf528b Author: Evan Ramos Date: Thu Mar 15 01:19:27 2018 +0000 CON: Add gettiledata/settiledata. Same members as tiledata[] quick access struct. Not all fields writable. Patch from Striker. From-SVN: r6766 commit 2e46f63c15b095405ff38adf2e6a0bef716bc937 Author: Evan Ramos Date: Tue Mar 13 23:29:42 2018 +0000 Polymer: Fix smoothness of q16 mouse aiming From-SVN: r6765 commit f607b8984b22e720a9d4346c7d135d73beff79fc Author: Evan Ramos Date: Tue Mar 13 23:29:38 2018 +0000 xa.cpp: Tabs to spaces. From-SVN: r6764 commit c348a681d0bac99a501ab79f2a8b8bd9c3d15848 Author: Evan Ramos Date: Tue Mar 13 23:29:35 2018 +0000 xa.cpp: Fix the crackling noise. From-SVN: r6763 commit 273b92b523b02c262d0ae513057c060e1a61e0db Author: Evan Ramos Date: Tue Mar 13 23:29:31 2018 +0000 xa.cpp: Cleanup that didn't help the crackling noise. From-SVN: r6762 commit e6b37282598d213493017be9c09e2c8819104958 Author: Evan Ramos Date: Sun Mar 11 03:47:11 2018 +0000 In case a requested quick load upon death cannot be completed, perform a pistol start instead of doing nothing From-SVN: r6761 commit 1350b09ff4a69263d18f51449037d046d7dc0c0b Author: Richard Gobeille Date: Fri Mar 9 10:20:53 2018 +0000 Fix Polymer issues introduced with change to Q16.16 view angles From-SVN: r6760 commit c30e8a26cb53145a364743b8ff9ad9503484ecda Author: Richard Gobeille Date: Fri Mar 9 05:55:50 2018 +0000 Inline drawrooms() wrapper From-SVN: r6759 commit cb39d650be6e4dd3dc07b5dc2f1c52b8c7021776 Author: Richard Gobeille Date: Fri Mar 9 05:55:30 2018 +0000 SDL 2.0.8 From-SVN: r6758 commit e0eddde3a4d64cf14184f761811ca137037258be Author: Evan Ramos Date: Fri Mar 9 03:10:53 2018 +0000 Improve file loading From-SVN: r6757 commit 5d7bdf1d21ab0a79998f8a964dd51d3d3abc3981 Author: Evan Ramos Date: Fri Mar 9 02:51:28 2018 +0000 Fix save deletion in the load menu not closing the verification prompt appropriately. While here, also fix the formatting of the save cleanup verification prompt to center vertically since the message was expanded to 3 lines. From-SVN: r6756 commit a984c536aa7122d35e6988eb50233800ae2fd045 Author: Evan Ramos Date: Fri Mar 9 02:51:24 2018 +0000 Accept "BUILDART" prepended to ART files From-SVN: r6755 commit b18e4ece33a13f56e0c642497a37199095fb81ab Author: Richard Gobeille Date: Thu Mar 8 05:15:11 2018 +0000 Display number of savegames to be deleted before removing, automatically remove old savegames from the install dir in EDUKE32_STANDALONE builds. DONT_BUILD. From-SVN: r6754 commit 3e094024ee92aad86e9af3e272d01fad168689d6 Author: Richard Gobeille Date: Thu Mar 8 05:15:05 2018 +0000 CSV format for CON timing output From-SVN: r6753 commit dccba340a15503c9e23afeba90452e4fa1328d8c Author: Evan Ramos Date: Thu Mar 8 03:55:52 2018 +0000 Remove " Settings" from user profile folders on Windows From-SVN: r6752 commit 8f502a77dde2f175aede3920232c2c78ff07fe49 Author: Evan Ramos Date: Thu Mar 8 03:55:48 2018 +0000 Menu stuff From-SVN: r6751 commit 7a04ff271f931ce462f3db407bead9e03ccc1c01 Author: Evan Ramos Date: Thu Mar 8 03:55:45 2018 +0000 Add verification screens for deleting saves From-SVN: r6750 commit 4d357e51ea21028abcf19cece51642455a2e8089 Author: Evan Ramos Date: Thu Mar 8 03:55:41 2018 +0000 Menus: "Clean Up Obsolete Saves" From-SVN: r6749 commit e492d1f77669ff9601e212f52c486d049ef2194e Author: Evan Ramos Date: Thu Mar 8 03:55:36 2018 +0000 Autosave culling From-SVN: r6748 commit 02805f290641cbdedb891ef247170e8968ae685a Author: Evan Ramos Date: Thu Mar 8 03:55:32 2018 +0000 Saves: Make the save filename counter automatically take the highest number present so as to not fill in gaps (which would make sorting inaccurate) From-SVN: r6747 commit badc6cd332564b69e744bddd43fadd9eb84e7634 Author: Evan Ramos Date: Thu Mar 8 03:55:28 2018 +0000 ReadSaveGameHeaders at start and close From-SVN: r6746 commit 849d2f5df8a99adb840c7ff694ffad0327e00da4 Author: Evan Ramos Date: Thu Mar 8 03:55:25 2018 +0000 Menus: Delete key in save/load game menu From-SVN: r6745 commit 55ada4d20a7ebea4a4d2c133c1e63291e2beb401 Author: Evan Ramos Date: Thu Mar 8 03:55:21 2018 +0000 Saves: Sort saves Z-A by filename and internally preserve the names of ones deemed unfit to display From-SVN: r6744 commit 6d139360a499b2a605c9ae85433c79510a2115a4 Author: Evan Ramos Date: Thu Mar 8 03:55:17 2018 +0000 Saves: implement isAutoSave for headers From-SVN: r6743 commit 6bf8356bcbe5c071f6272cfbe4d05bd679658d90 Author: Evan Ramos Date: Thu Mar 8 03:55:12 2018 +0000 Menus: Add "Save Setup" menu, currently for standalone builds only From-SVN: r6742 commit 2757c6af8f1aa6966b1777229b146398e7566aa2 Author: Evan Ramos Date: Thu Mar 8 03:55:07 2018 +0000 Saves: Add userbyteversion to savegame header and userdef From-SVN: r6741 commit e87c8c255b33517ebdf60ff063bae468ec4422e7 Author: Evan Ramos Date: Thu Mar 8 03:55:02 2018 +0000 Saves: Overload ptrsize as a bitfield From-SVN: r6740 commit ce4da9f9e4a3d91d2fbeb7c6eca29a52efeaefba Author: Evan Ramos Date: Thu Mar 8 03:54:58 2018 +0000 Saves: Change header string to "E32SAVEGAME" (but still accept "EDuke32SAVE") From-SVN: r6739 commit 6d842a35d856a09cf34231ae716cdc446c888c0d Author: Evan Ramos Date: Thu Mar 8 03:54:54 2018 +0000 Improve r6723. Adds EVENT_LASTWEAPON. Patch from Fox. From-SVN: r6738 commit a777db5f7ec14ca0ebb28170ae0e6b0c4a12f8d6 Author: Richard Gobeille Date: Thu Mar 8 02:39:21 2018 +0000 Improve CON perf tracking's ability to determine actor names From-SVN: r6737 commit 2e2c6af1f5aaae93b1af6d1e7ef22517f426a3f8 Author: Richard Gobeille Date: Thu Mar 8 00:29:41 2018 +0000 Backport some CON profiling stuff from Lunatic. Use "printtimes" in the console. From-SVN: r6736 commit c0dd7ba4ccff8f590b4a9d8de1b49c49f14060a3 Author: Richard Gobeille Date: Wed Mar 7 12:02:03 2018 +0000 Remove attempt at being compatible with the original ranges of ang and horiz values, and introduce a q16 version of drawrooms (and showroom) From-SVN: r6735 commit 0d3bb91b271a422e864dfb0dc2f3d7fa33daf83f Author: Richard Gobeille Date: Wed Mar 7 12:01:55 2018 +0000 Truncate instead of round when returning avel and horz from getinput From-SVN: r6734 commit acd51ba87f3d96f07895324e09db8253785a505c Author: Richard Gobeille Date: Wed Mar 7 05:41:11 2018 +0000 And we'll put a happy little int16_t right over here From-SVN: r6733 commit 94cd1ba60521f25725562a8d4fc614e4b44bf809 Author: Richard Gobeille Date: Wed Mar 7 04:23:58 2018 +0000 Missed files from last commit From-SVN: r6732 commit 77ca7e272ce730a89b6ad9ff78512e948d50a14b Author: Richard Gobeille Date: Wed Mar 7 04:21:52 2018 +0000 q16avel/q16horz From-SVN: r6731 commit a60ac50da5dab0dbcc98f6ecbaabd776a055dcb9 Author: Richard Gobeille Date: Wed Mar 7 04:21:46 2018 +0000 Store configuration data in AppData on Windows in standalone builds From-SVN: r6730 commit 369294ab70c6b6a8f10c375bd13ec66fdeece628 Author: Richard Gobeille Date: Wed Mar 7 04:21:41 2018 +0000 Use ~/.config/APPBASENAME instead of ~/.APPBASENAME on Linux From-SVN: r6729 commit 886d8e158e3ef6c3befbb8b5cef89401d31bf9bc Author: Richard Gobeille Date: Wed Mar 7 04:21:37 2018 +0000 Move APPNAME and APPBASENAME to common_game.h so we can use them for the data paths in common.cpp From-SVN: r6728 commit af5b3dc45bdf5a35cbbbd40776ea966ecf622ce9 Author: Richard Gobeille Date: Wed Mar 7 04:21:31 2018 +0000 Fix up CON to work with Q16.16 values From-SVN: r6727 commit 4c95b3af949eea626718676302e21015bb6fcc00 Author: Richard Gobeille Date: Wed Mar 7 04:21:25 2018 +0000 Flesh out Fix16 with some operators we need to work with it from CON From-SVN: r6726 commit eb3c414dcb84b31df5d372c09708083e63befa0c Author: Richard Gobeille Date: Wed Mar 7 04:21:18 2018 +0000 Q16.16 for player angle, too From-SVN: r6725 commit 415b9e731b185d9976be64465f831231024a0dd1 Author: Richard Gobeille Date: Wed Mar 7 04:21:05 2018 +0000 Use Q16.16 fixed point for player horiz From-SVN: r6724 commit 39c929da9165c50ca1dc46d34bb19f813d271f81 Author: Richard Gobeille Date: Wed Mar 7 04:20:50 2018 +0000 Add gamefunc for switching to your last used weapon From-SVN: r6723 commit addcf2cfab5cbe221b65fe06a2c6c97087aa0e53 Author: Evan Ramos Date: Tue Mar 6 10:25:17 2018 +0000 Re-allow negative hitags on crack sprites. From-SVN: r6722 commit 8b081db8c80d4a46880b25ac8958e3b1cf281310 Author: Evan Ramos Date: Tue Mar 6 10:25:11 2018 +0000 Perform CON_SAVE after a frame is drawn From-SVN: r6721 commit 248992ed2e0eec3b03bb8be9c75a871e6af0ce71 Author: Evan Ramos Date: Tue Mar 6 10:25:07 2018 +0000 Menu stuff From-SVN: r6720 commit a9a1745d6285a9211b39ce86d3948ff24442ad49 Author: Evan Ramos Date: Tue Mar 6 10:25:04 2018 +0000 Avoid filtering seams by drawing custom scrollbars twice, like the scuba gear and chaingun. Patch from Fox. From-SVN: r6719 commit 893a5ec5ad96d0cb56850db6fbbb423f5d9549e2 Author: Evan Ramos Date: Tue Mar 6 10:24:59 2018 +0000 Menus: Allow mouse axis scale to go to zero. From-SVN: r6718 commit b75ceac425bcf4c4cf432d8c5ced39d4d7eddb17 Author: Evan Ramos Date: Sat Mar 3 08:22:55 2018 +0000 Fix "setvarvar: Gv_GetVarX(): invalid player ID -1" message for certain userdef accesses From-SVN: r6717 commit 0301babdcd3b1abb48f56ddc7c3f912c1d6e4d75 Author: Evan Ramos Date: Sat Mar 3 06:37:16 2018 +0000 Fix "too many sprites spawned" check From-SVN: r6716 commit 9843c5790b2ede78a79b5a0567351f854c44ca7f Author: Evan Ramos Date: Thu Mar 1 13:46:56 2018 +0000 Move "EVENT_DISPLAYREST" after "EVENT_DISPLAYCROSSHAIR". Patch from Fox. From-SVN: r6715 commit d5b5be61dba74835e71470baadd91460d303aabf Author: Evan Ramos Date: Thu Mar 1 13:46:52 2018 +0000 1. Fix translucency in the mouse cursor. 2. In "EVENT_DISPLAYCROSSHAIR" and "EVENT_DISPLAYCURSOR", make "userdef[].return" 1 and 2 return the coordinates, and 3 the alpha ("EVENT_DISPLAYCURSOR" only). 3. New event "EVENT_DISPLAYPOINTER" Similar to "EVENT_DISPLAYCURSOR", it is used to display the pointer that controls the aiming in Wii. "RETURN" / "userdef[].return" work in the same way as "EVENT_DISPLAYCURSOR". Patch from Fox. From-SVN: r6714 commit c182964cc24910407283126014dde55a0cdb75ad Author: Evan Ramos Date: Thu Mar 1 13:46:48 2018 +0000 Fix the position of the notch when scaling the slidebar with the mouse. Patch from Fox. From-SVN: r6713 commit 5e1e43aca379c7e8fc447d4f97d1110b3781f944 Author: Richard Gobeille Date: Tue Feb 27 16:54:42 2018 +0000 Revert change to _multivc.h because it fucked up the volume slider From-SVN: r6712 commit e958d857d7e5ec80a134024b2317e9fcf91688fc Author: Richard Gobeille Date: Tue Feb 27 15:21:01 2018 +0000 Reduce max volume to prevent audio clipping From-SVN: r6711 commit 20c3c99a14250707d6ef37f8fa927eb7638ba302 Author: Evan Ramos Date: Tue Feb 27 01:11:47 2018 +0000 Hide the joystick menu instead of disabling it. From-SVN: r6710 commit 6735c25d22653af8755c0961a4bacd253a6e12a2 Author: Alex Dawson Date: Tue Feb 27 00:52:28 2018 +0000 astub.cpp: only call GL functions if we are in a GL mode From-SVN: r6709 commit 52c5b0f1764428ec9a4ec53a167917ffc24bf7f8 Author: Evan Ramos Date: Mon Feb 26 20:27:58 2018 +0000 Disable the switching of keyboard layout on window focus gain and loss. From-SVN: r6708 commit 47be1be0c86a7dc22bf34df5d151e4f9cd25ff8b Author: Evan Ramos Date: Mon Feb 26 20:20:05 2018 +0000 Clean up order of UserdefsLabels[]. Bump BYTEVERSION. Patch from Fox. From-SVN: r6707 commit dfbda36a11d176e7f6e50fa927de89d97003dec8 Author: Evan Ramos Date: Mon Feb 26 20:20:00 2018 +0000 New userdef structure "return" This works like an extension of the RETURN gamevar and it accepts multiple values. Reading or writing the value of "userdef[].return 0" is the same as reading of writing the RETURN gamevar. The following userdefs are now aliases: - m_origin_x = userdef[].return 1 - m_origin_y = userdef[].return 2 - screenarea_x1 = userdef[].return 0 - screenarea_y1 = userdef[].return 1 - screenarea_x1 = userdef[].return 2 Additionally, the API for EVENT_PLAYLEVELMUSICSLOT is hereby redefined to use return 1 and 2 (not 0) _instead of_ ud.m_*_number. Patch from Fox. From-SVN: r6706 commit fff65088c09aac62ad10fd00791e3b0f68ca7bf4 Author: Evan Ramos Date: Mon Feb 26 20:19:55 2018 +0000 Revise the userdef code to accept multiple values. Patch from Fox. From-SVN: r6705 commit afa113f15dfe522065da56903249183c05a2a7b7 Author: Evan Ramos Date: Mon Feb 26 14:46:52 2018 +0000 Use the user's desktop resolution, fullscreen, as the default, instead of 1024x768 windowed. From-SVN: r6704 commit 1e50ebdb817229702466c81f18e278a59db170d2 Author: Evan Ramos Date: Mon Feb 26 14:46:48 2018 +0000 Invalidate TILE_SAVESHOT whenever it is overwritten, so that it updates properly in GL. (Also remove a redundant call to the screenshot function.) From-SVN: r6703 commit e34602068b6adbb66e6bec1c33d8fd11bbb4ed5b Author: Evan Ramos Date: Mon Feb 26 14:46:44 2018 +0000 Menus: Improve text position over save/load screenshots. From-SVN: r6702 commit 470b512bc4ade5a6379dabfbf4b6d8713b90f343 Author: Evan Ramos Date: Mon Feb 26 14:46:40 2018 +0000 Menus: Don't allow loading previous version saves. From-SVN: r6701 commit b518ee3451bb086d13f3133d24d1b84dba4f47a3 Author: Evan Ramos Date: Mon Feb 26 14:46:36 2018 +0000 Fix whitespace issues From-SVN: r6700 commit 1771066fde6c29f70e382163c1bd6cc72865fbe1 Author: Evan Ramos Date: Mon Feb 26 14:46:31 2018 +0000 Clear userquotes when returning to the menu. From-SVN: r6699 commit 067e0ccaa387043c8d477cac311c9a09de917005 Author: Alex Dawson Date: Mon Feb 26 11:26:40 2018 +0000 polymost.cpp: fix polymost_dorotatesprite() issue where sprites could be rendered with fractional positions and sizes leading to GL filtering imperfections. From-SVN: r6698 commit 377fac4656afa2352618edb81bf3edbce256e935 Author: Alex Dawson Date: Mon Feb 26 02:48:09 2018 +0000 menus.cpp: Make windowed-only resolutions clear in both their name and by disabling the fullscreen menu option Additionally, increase MAXRESOLUTIONSTRINGLENGTH to accomodate new resolution name suffix From-SVN: r6697 commit 0cfa3ce7428280e8cd5237bbd384215beb1bf2be Author: Alex Dawson Date: Mon Feb 26 02:48:06 2018 +0000 sdlayer.h/winlayer.cpp: If a resolution is supported for fullscreen, also support the mode as a windowed resolution. From-SVN: r6696 commit 752feae1135b33982aefcfe5e8c5594c70c3bf49 Author: Alex Dawson Date: Mon Feb 26 02:48:03 2018 +0000 baselayer.cpp: add 1280x720 resolution to defaultres windowed resolutions From-SVN: r6695 commit eb52c44d28e9aa9e335dcffd06a4abb66a3eddf1 Author: Evan Ramos Date: Sun Feb 25 01:18:36 2018 +0000 Save the player's map time before EVENT_ENDLEVELSCREEN, which happens regardless of whether the hardcoded bonus screen is displayed. Make sure ud.displaybonusscreen is set to 1 if you want this to take place. The bonus screen can still be skipped by setting RETURN to -1 in EVENT_ENDLEVELSCREEN. From-SVN: r6694 commit e5ad198172e6b1a9888bd77d04399b2519b98967 Author: Evan Ramos Date: Sun Feb 25 01:18:32 2018 +0000 Fix the interaction between starttrack and toggling music off. From-SVN: r6693 commit 9d48759cd00e563c1d0d2b36c9641f09ccf4f66c Author: Evan Ramos Date: Sun Feb 25 01:18:29 2018 +0000 Fix autoaim getting overwritten on load by whatever it was when the save was created. From-SVN: r6692 commit 7ce6a7d732d96b3a7488f6aa826a09632252dce9 Author: Evan Ramos Date: Sun Feb 25 01:18:25 2018 +0000 animlib: Editorialize the code style a bit more. From-SVN: r6691 commit b8c03e60d9bd2cf630d978e7d160d0cc126308e4 Author: Evan Ramos Date: Sun Feb 25 01:18:21 2018 +0000 animlib: Make some weird code easier to read. From-SVN: r6690 commit 515e077f51a7d8fd18b9719cfb74e0a5f7cf8cb5 Author: Alex Dawson Date: Thu Feb 22 23:25:56 2018 +0000 sdlayer.cpp: fix vsync heartbeat issue on some NVidia & Intel drivers From-SVN: r6689 commit 1f536f1a1e3aaec34a408d6d54525a3166a1b32d Author: Evan Ramos Date: Thu Feb 22 14:15:13 2018 +0000 Fix typo in collections.h. DONT_BUILD From-SVN: r6688 commit f93da0f35e9fe42cf31a046c98b76218ea6f4c28 Author: Evan Ramos Date: Thu Feb 22 14:09:38 2018 +0000 Amend previous commit From-SVN: r6687 commit 8cd6eb58494b557207b68b3759d3631aa27db556 Author: Evan Ramos Date: Thu Feb 22 13:34:34 2018 +0000 New userdef structures: "menu_scrollbartilenum", "menu_scrollbarz", "menu_scrollcursorz" Set "menu_scrollbartilenum" to the first tilenum of a series of 4 tiles: = Middle (tiled to fill the scrollbar height) + 1 = Top + 2 = Bottom + 3 = Cursor Default value for menu_scrollbartilenum is -1, which will display EDuke32's default scrollbar. Use "menu_scrollbarz" and "menu_scrollcursorz" to control the scale of the scrollbar. Default values are 65536. Patch from Fox. From-SVN: r6686 commit bbf23690dacf4abb6866afc5e7ca14d9b703f9bc Author: Evan Ramos Date: Thu Feb 22 13:34:28 2018 +0000 Improve translucence of menu cursor From-SVN: r6685 commit 5daad3436523f7aaa5f94ef46cae566a7aee2b96 Author: Evan Ramos Date: Thu Feb 22 13:34:24 2018 +0000 Some screentext fixes (that don't affect CON scripts) From-SVN: r6684 commit 03f492fa5c1add23d657e98a35732035d838419a Author: Alex Dawson Date: Thu Feb 22 03:38:54 2018 +0000 sdlayer.cpp: remove unnecessary call to SDL_WarpMouseInWindow() on SDL2 that was causing issues with mouse movement when vsync was enabled on some hardware From-SVN: r6683 commit f4f989b40bff95926f3cea8df09ebff1d8e56ee0 Author: Alex Dawson Date: Thu Feb 22 01:05:18 2018 +0000 game.cpp: fixed GL vsync resetting issue due to system_getcvars() call coming before cvars were loaded From-SVN: r6682 commit fc9786c33e88ee711cc8625efb848ef6e51562ad Author: Evan Ramos Date: Tue Feb 20 11:55:28 2018 +0000 CON: Change OSD_Printf to initprintf for addlog and addlogvar From-SVN: r6681 commit fe6061e6c9d4c8f3bdaa106186d06b4bdbfd3aed Author: Evan Ramos Date: Tue Feb 20 11:55:24 2018 +0000 Menu stuff From-SVN: r6680 commit 4ce276eb66a43eb522e0ad1732fa6b21be7a4bbd Author: Evan Ramos Date: Tue Feb 20 11:55:20 2018 +0000 CON: Add undefinecheat. From-SVN: r6679 commit 1ed9a9915f4ddc4db6d9aca3324626174a821678 Author: Evan Ramos Date: Tue Feb 20 11:55:16 2018 +0000 Menus: Hide blank cheats From-SVN: r6678 commit 2bd67f12f689b300dfd767587be8a0be1c242ec5 Author: Evan Ramos Date: Tue Feb 20 11:55:13 2018 +0000 CON: Add resetplayerflag 4, which always loads if possible From-SVN: r6677 commit e3aab6dca851ceb25600422eb3b4c38b7c3de58d Author: Evan Ramos Date: Tue Feb 20 11:55:07 2018 +0000 Menus: Add MenuEntryFlag "Hidden", which is safer than setting the entry's position in its parent's EntryList to null. From-SVN: r6676 commit 8d52763b0572e6c505f18241eec05faf3d75ea4d Author: Alex Dawson Date: Mon Feb 19 06:11:44 2018 +0000 Polymost: workaround for texcache expecting all mipmap levels to be available From-SVN: r6675 commit 3312a47cf395cc78a0329a013d5337f95a162d8a Author: Evan Ramos Date: Sun Feb 18 00:24:54 2018 +0000 Fix the definetint def token, broken in r6557. From-SVN: r6674 commit e0db8ead876ce5eaebcfd378525b7835ef98f689 Author: Evan Ramos Date: Sat Feb 17 22:30:39 2018 +0000 Replace bespoke CON/def module and clipmap filename array reallocing with a new class, GrowArray. From-SVN: r6673 commit 015f808095823531c9384e1c31949ffb76756f30 Author: Evan Ramos Date: Sat Feb 17 22:30:26 2018 +0000 Update credits. From-SVN: r6672 commit 4ef7d8ea9c501d74b76d51f282594bf7034b4c81 Author: Alex Dawson Date: Sat Feb 17 06:38:15 2018 +0000 Fix building on Visual Studio after GLAD & Polymost changes From-SVN: r6671 commit 3be01ed750bb9e0f66015f74d7c910299cf28465 Author: Richard Gobeille Date: Sat Feb 17 00:06:01 2018 +0000 Don't save skill level to settings.cfg From-SVN: r6670 commit 2e28765178471cbb23e982a7c28cce6aeab48eb9 Author: Alex Dawson Date: Fri Feb 16 08:35:45 2018 +0000 Polymost: fix typo causing bug where persistentStreamBuffer was being reset to the config value when it should be disabled From-SVN: r6669 commit 507e55ef923596a1fa9f7be0c0ee5351b8b70041 Author: Evan Ramos Date: Fri Feb 16 08:33:44 2018 +0000 Keep individually specified RTS files and the rtsname cfg setting completely separate. This fixes a few issues. From-SVN: r6668 commit f035079ca326b5d9df40051abd15730f55cff4b3 Author: Evan Ramos Date: Fri Feb 16 08:33:39 2018 +0000 Silence -Wcast-qual in glad.c. From-SVN: r6667 commit 94d1c99e55e09b7bb45a1415cd1f30eb6772cb3c Author: Evan Ramos Date: Fri Feb 16 08:33:36 2018 +0000 CON: Remove GAMEFUNC_* hardcoded labels. From-SVN: r6666 commit 86d5c4c039e9ed42aa4bd5ce30a508336fb4fcee Author: Evan Ramos Date: Fri Feb 16 08:33:32 2018 +0000 Make sure we clear the keyboard buffer when beginning text input. From-SVN: r6665 commit d1692ed98fed5870590118a2e6d81da957620651 Author: Alex Dawson Date: Fri Feb 16 06:38:54 2018 +0000 Polymost: fix bug where polymost2_drawVBO() wouldn't reset the bound buffer state properly for polymost1 From-SVN: r6664 commit cf26977ce642357bbb1c1d792108c307d1479047 Author: Alex Dawson Date: Fri Feb 16 06:38:51 2018 +0000 Polymost: adjust parenthesis to cease compiler warnings From-SVN: r6663 commit 314bcbd9a5c89656c88ef8a800468aa193990eed Author: Alex Dawson Date: Fri Feb 16 06:38:48 2018 +0000 Polymost: streaming VBO optimizations for polymost_drawpoly() From-SVN: r6662 commit 723e219f01b3fd94ed67522118b573130373c7cc Author: Alex Dawson Date: Fri Feb 16 06:38:44 2018 +0000 GLAD: update to include "GL_ARB_sync" extension From-SVN: r6661 commit 5443c036203cacdf9b861e56802c5459ff80dbec Author: Alex Dawson Date: Fri Feb 16 06:38:40 2018 +0000 screens.cpp: Fixed a bug in FPS calculation From-SVN: r6660 commit be7a7e420e565c5cf26f9e354c339c675f15a591 Author: Alex Dawson Date: Fri Feb 16 06:38:37 2018 +0000 polymost_dorotatesprite(): fix for Polymer bug introduced by Polymost drawarrays optimization From-SVN: r6659 commit 91076d46db472671588d5266226105d475415063 Author: Alex Dawson Date: Fri Feb 16 06:38:34 2018 +0000 In-progress POLYMOST2 work From-SVN: r6658 commit f3f18346cb3978a594edc8a4ca53188103e60797 Author: Alex Dawson Date: Fri Feb 16 06:38:31 2018 +0000 Moved BUILD engine defined CSTAT enums into the BUILD engine side of the code base. From-SVN: r6657 commit 300f65e2603c754e4f0b60f5bb4fe05dfe4b258f Author: Alex Dawson Date: Fri Feb 16 06:38:21 2018 +0000 Moved to GLAD for dynamic GL/WGL and extension loading. Refactored extension usage that became core in GL2, and adjusted some types for GL2 compatibility. From-SVN: r6656 commit d6609c4aea3aa13406221aac49bbc912e99be973 Author: Alex Dawson Date: Fri Feb 16 06:38:07 2018 +0000 polymost_drawpoly(): only change the blend mode if blending is enabled From-SVN: r6655 commit ea7949d2cb606ec0fc05e322831d877e33f4a42f Author: Alex Dawson Date: Fri Feb 16 06:38:05 2018 +0000 Polymost: Avoid generation of mipmaps if filter mode isn't set to use them From-SVN: r6654 commit e3461a7af3f621fd33634a30fa485828abcedf3d Author: Alex Dawson Date: Fri Feb 16 06:38:02 2018 +0000 Polymost: texture format optimizations From-SVN: r6653 commit 9c641a0d61476918f3f82fa9fdd3f3cfb7e99812 Author: Alex Dawson Date: Fri Feb 16 06:37:58 2018 +0000 polymost_drawpoly(): drawarrays optimization From-SVN: r6652 commit d4bf1af28ee265512ebe4ebe91c887d67a01fadb Author: Evan Ramos Date: Thu Feb 15 03:49:23 2018 +0000 Fix build issues with ARM and USE_OPENGL=0. DONT_BUILD. From-SVN: r6651 commit a97e54ff91107e3d5632ca73d05b4b12f8a46fc2 Author: Evan Ramos Date: Tue Feb 13 00:13:06 2018 +0000 Menu stuff From-SVN: r6650 commit 4d0290168e20af3e136bb5e5017b58590e74300a Author: Evan Ramos Date: Mon Feb 12 02:32:43 2018 +0000 Revert the functional changes of r4741 and r4703 relating to conveyors. This restores conveyor belts to their original v1.5 speeds at the expense of the corner cases the original commits addressed. This can be revisited in the future to address these corner cases without breaking the original game. From-SVN: r6649 commit 1134c7aed8b3d0dcf3f59b9c4edc4b8ff3f96c09 Author: Evan Ramos Date: Mon Feb 12 02:32:39 2018 +0000 Fix FPS limiter in EVENT_SCREEN. From-SVN: r6648 commit 3e7674238c551b222db29109d10f07bdd811ab7a Author: Evan Ramos Date: Sun Feb 11 05:04:03 2018 +0000 Re-allow MUSICANDSFX ambient sounds with a hitag in the interval [32768, 65535]. From-SVN: r6647 commit 1ef2cd11c1f18c3e6c3c05f78927bab8247a2571 Author: Evan Ramos Date: Sun Feb 11 05:03:59 2018 +0000 Move new CON_FOR iterators to the bottom of their enum to unbreak savegames using CON_FOR made before r6635. From-SVN: r6646 commit 6529e131bca546ea51ff1554528f4d4487be26a6 Author: Evan Ramos Date: Sun Feb 11 05:03:55 2018 +0000 Add "rtsname" token to grpinfo grammar. From-SVN: r6645 commit 42a828423198af378f0ad6373416ae3fd56924cb Author: Evan Ramos Date: Sun Feb 11 05:03:50 2018 +0000 Use an unsigned type when we need right shifts to zero-extend for use in tagbitmap. Fixes crash in boeing.map. From-SVN: r6644 commit 8b4542b97d34e776e1a947b52940b02250a7167d Author: Evan Ramos Date: Sun Feb 11 05:03:46 2018 +0000 Add support for MapArt from within zip files. From-SVN: r6643 commit d239b0dd9650705a800d2279823b8e12089664e8 Author: Evan Ramos Date: Sat Feb 10 22:58:38 2018 +0000 Fix MSVC build breakage. From-SVN: r6642 commit f36ca98b1206bdee9a6b454e81e3fdfcf0d98ed8 Author: Evan Ramos Date: Sat Feb 10 22:58:34 2018 +0000 Apply the FPS limiter to EVENT_SCREEN. From-SVN: r6641 commit f7c488d46f75361a40ade632e6620a85d5526600 Author: Evan Ramos Date: Wed Jan 31 05:23:48 2018 +0000 CON: Add if statements if(var(var)){a,b}(e). Inspired by x86 assembly, these stand for "above" and "below", and perform unsigned versions of greater-than and less-than, respectively. Useful for testing array bounds. From-SVN: r6640 commit 2028197099dbdc3108188711eec796882b5b99d4 Author: Evan Ramos Date: Wed Jan 31 05:23:43 2018 +0000 Temporarily revert r6633. From-SVN: r6639 commit 6781658a6c3601f6e6fe49d0241bc4671874a38b Author: Evan Ramos Date: Wed Jan 31 05:23:39 2018 +0000 Re-revise r6625. From-SVN: r6638 commit 6ada56c9f6a646e51cb76878aeb3428cef6b462e Author: Richard Gobeille Date: Wed Jan 31 04:13:40 2018 +0000 Revise r6625 From-SVN: r6637 commit e50e296ca70fac00b622d74cfd563fa4b6dfc03f Author: Richard Gobeille Date: Wed Jan 31 04:13:35 2018 +0000 Use enum From-SVN: r6636 commit 995e9f62032f5d46e81e9b8ade0cd3dd57445043 Author: Richard Gobeille Date: Wed Jan 31 04:13:31 2018 +0000 Restore previous behavior of "allsprites" iterator for CON_FOR and add "allspritesbystat" and "allspritesbysect" From-SVN: r6635 commit 9ca283ae3aff859edb7e259736302a9628c693e1 Author: Richard Gobeille Date: Wed Jan 31 04:13:25 2018 +0000 Useless assertion that only fires in alternate universes From-SVN: r6634 commit faf8ad9bb02bb0689d47de0d289c5b7cbd0bfb5a Author: Evan Ramos Date: Tue Jan 30 16:02:33 2018 +0000 Modernize naming of gamefuncs. Patch from Fox. From-SVN: r6633 commit fe114fa69630d346dbf7a2f75254080e16a1d494 Author: Evan Ramos Date: Tue Jan 30 16:02:29 2018 +0000 Satisfy -Wmaybe-uninitialized warnings exposed by -Og. From-SVN: r6632 commit 656ce866d70619965a3c38e9363ef823de5f35f2 Author: Evan Ramos Date: Tue Jan 30 16:02:24 2018 +0000 Makefile: Build debug builds with -Og instead of -O0 where available. From-SVN: r6631 commit eddd9ff2becc66e08ae40176e2fcff6961e7156b Author: Evan Ramos Date: Tue Jan 30 16:02:20 2018 +0000 Remix r5063 From-SVN: r6630 commit ce67667c514d86ff514e2d284f676c25fed5f8e8 Author: Evan Ramos Date: Tue Jan 30 01:03:50 2018 +0000 CON: Add STR_USERMAPFILENAME for qgetsysstr. Patch from Fox. From-SVN: r6629 commit 63ef23a78862ac1cc396a452fc1a409507c2908b Author: Evan Ramos Date: Mon Jan 29 15:28:07 2018 +0000 Unbreak r6608. From-SVN: r6628 commit dbb7d5fa19e75435f89dce687f5651aee2584f96 Author: Evan Ramos Date: Mon Jan 29 11:14:20 2018 +0000 Fix a bug in r6587, where "statusbarcustom" was not saved in the cfg file. Patch from Fox. From-SVN: r6627 commit d3dcb2cb4d9191cfd089ba21e462269bd47487a7 Author: Evan Ramos Date: Mon Jan 29 11:14:17 2018 +0000 New userdef structure "shadow_pal" Sets the black palette used for enemy shadows and for black rectangles in the menu. Default value is 4. Patch from Fox. From-SVN: r6626 commit 40c1631b42f2efce87be836e44fa5dbd2e70320d Author: Evan Ramos Date: Mon Jan 29 11:14:12 2018 +0000 Fix overflow issue with tsprite shade of gibs. Patch from Fox. From-SVN: r6625 commit 8a0438ea76f3290de9c744978de632a11b863705 Author: Evan Ramos Date: Mon Jan 29 11:14:08 2018 +0000 New events EVENT_PLAYLEVELMUSICSLOT and EVENT_CONTINUELEVELMUSICSLOT. Called when a music track will be started from the beginning, and when the current track is continued after loading a save, etc. The requested track is passed into PLAYLEVELMUSICSLOT via ud.m_volume_number and ud.m_level_number. From-SVN: r6624 commit 06204cc970d8c84845885caff2fe937dc4a8abcd Author: Evan Ramos Date: Mon Jan 29 11:14:04 2018 +0000 CON: Add commands "swaptrackslot" and "preloadtrackslotforswap" From-SVN: r6623 commit 5f4f1a844bfa215ae66802b65bf668e2808efe7c Author: Evan Ramos Date: Mon Jan 29 11:13:59 2018 +0000 Add read-only userdefs music_episode and music_level. TODO: Exposing whether any music is currently playing at all. (No, it is not ud.musictoggle.) From-SVN: r6622 commit f291c125dcffb1d389619fddadd8b8dbd7c1e567 Author: Evan Ramos Date: Mon Jan 29 11:13:55 2018 +0000 Turn get/setmusicposition into no-ops. People were using these commands in spite of my explicit instructions not to. Now that music track is saved properly, no one has any excuse to continue using these. From-SVN: r6621 commit bd3a933afc9e2ff5502efdcf7c4aa2bdf3e42f24 Author: Evan Ramos Date: Mon Jan 29 11:13:49 2018 +0000 Properly save the currently playing music track in savegames. Bump BYTEVERSION. From-SVN: r6620 commit d15006b1791ee8351d1d3be867c79deac41af553 Author: Evan Ramos Date: Mon Jan 29 11:13:43 2018 +0000 Refactor all calls to S_PlayMusic. This allows as much of the control flow as possible to fail gracefully without interruping currently playing music. From-SVN: r6619 commit 8969c522d8981a0cd6b259e387923c5dda989d71 Author: Evan Ramos Date: Mon Jan 29 11:13:37 2018 +0000 When playing a user map, print "User Map: " to the log instead of "E1L8: User Map". From-SVN: r6618 commit c3616f5a94dd2d4a37bea7a75ed7f1828d4d0147 Author: Evan Ramos Date: Mon Jan 29 11:13:34 2018 +0000 When playing a user map, don't show an episode name in the automap. From-SVN: r6617 commit 055b3873cc430f57b7e8e2b116d2e0e17cf73a48 Author: Evan Ramos Date: Mon Jan 29 11:13:30 2018 +0000 CON: Add user_map and m_user_map read-only userdefs. From-SVN: r6616 commit 1d9ec5ae4b4773a4f1f453ca68621c6aeb911ba2 Author: Evan Ramos Date: Mon Jan 29 11:13:21 2018 +0000 Move G_HaveUserMap to game.h, retitle it Menu_HaveUserMap, and add a proper G_HaveUserMap. From-SVN: r6615 commit 16c6cdd465e2bfb034a48ce967d56fee2ce2dcfb Author: Evan Ramos Date: Mon Jan 29 11:13:16 2018 +0000 boardfilename cleanups From-SVN: r6614 commit 3baddc69dd84ebc4b5b389e004277a20a01d7da0 Author: Evan Ramos Date: Mon Jan 29 02:14:16 2018 +0000 Systematize the appearance of the menu fonts using the DOS version as a reference. New events: "EVENT_MENUCURSORLEFT" "EVENT_MENUCURSORRIGHT" "EVENT_MENUCURSORSHADE" "EVENT_MENUSHADESELECTED" New userdef structures: "menu_shadedeselected" "menu_shadedisabled" "menutext_zoom" "menutext_xspace" "menutext_pal" "menutext_palselected" "menutext_paldeselected" "menutext_paldisabled" "menutext_palselected_right" "menutext_paldeselected_right" "menutext_paldisabled_right" "gametext_zoom" "gametext_xspace" "gametext_pal" "gametext_palselected" "gametext_paldeselected" "gametext_paldisabled" "gametext_palselected_right" "gametext_paldeselected_right" "gametext_paldisabled_right" "minitext_zoom" "minitext_xspace" "minitext_tracking" "minitext_pal" "minitext_palselected" "minitext_paldeselected" "minitext_paldisabled" "minitext_palselected_right" "minitext_paldeselected_right" "minitext_paldisabled_right" "menutitle_pal" "slidebar_palselected" "slidebar_paldisabled" Self-explanatory. Use in conjunction with "menutext_tracking" and "gametext_tracking" ("mgametext_tracking" is now ignored). The values for disabled shade is added to the selected or deselected shades. The palettes have a disabled > selected > deselected hierarchy, and are applied if not zero. Patch from Fox From-SVN: r6613 commit 40834db74a237fa26eeab7d1ce843dcc52a70297 Author: Evan Ramos Date: Mon Jan 29 02:14:09 2018 +0000 New LOGO_FLAGS bits LOGO_NOHELP and LOGO_NOCREDITS. LOGO_NOHELP: Remove the "Help" item in the main menu and the F1 key function. LOGO_NOCREDITS: Remove the "Credits" item in the main menu. Patch from Fox. From-SVN: r6612 commit c3d3d013ee6a2cf333e486054ae7fcaebfa05294 Author: Evan Ramos Date: Mon Jan 29 02:14:04 2018 +0000 New commands: "divr", "divru", "divrd" divr Divide gamevar by and round (aka round to nearest) the result. A result of 0.5 will equal 1. divru Divide gamevar by and round up (aka round away from zero) the result. Additionally "divrd" can be used to round down (aka round toward zero), which is equivalent to the current div command as tested on x86, ARM, and PowerPC. Note that "shiftr" rounds up negative values. Patch from Fox. From-SVN: r6611 commit 8bef78eaf15dd6dc5ff6a475027f522220b0f238 Author: Evan Ramos Date: Mon Jan 29 02:14:00 2018 +0000 Maintenance on Gv_DivVar From-SVN: r6610 commit 6a73ed2aa00f53c1bf61e38e5715728b38c065ce Author: Evan Ramos Date: Mon Jan 29 02:13:55 2018 +0000 New command "qstrcmp" qstrcmp Compare two quotes. returns zero if they are identical, -1 if the first quote comes first in alphabetical order, 1 if it comes later. Note that the lexicographical order is rudimentary, for example "Player 2" is considered greater than "Player 10". Patch from Fox. From-SVN: r6609 commit 8c5ce467fa2a50db2535e57e210d4f67731bd7f5 Author: Evan Ramos Date: Sun Jan 28 04:31:04 2018 +0000 Add EVENT_DISPLAYOVERHEADMAPPLAYER. RETURN is the tilenum to be displayed. It is pre-populated with what the game will display for the current frame. Set RETURN to -1 to disable. From-SVN: r6608 commit b4c69591c37699db229208a893f6865855504f09 Author: Evan Ramos Date: Sun Jan 28 04:31:00 2018 +0000 Add the official Nuclear Winter demo GRP to the list of recognized GRPs. From-SVN: r6607 commit 86429e4978366f3afc6873e44bdc5a2cc8197d22 Author: Evan Ramos Date: Sun Jan 28 04:30:57 2018 +0000 Menu stuff From-SVN: r6606 commit 86c30b8ba42a1ea4844fe61528dd8f669237e1ca Author: Evan Ramos Date: Sun Jan 28 04:30:53 2018 +0000 Revert changes made to SIDEBOLT1 in r6244. From-SVN: r6605 commit b21e27c113bb27fe232e2bc90f74409cb83c8ffe Author: Evan Ramos Date: Sun Jan 28 04:30:50 2018 +0000 Fix typos in r6244. From-SVN: r6604 commit 47e3e19f502c426b95ffd72cae13b13c6eadfebe Author: Evan Ramos Date: Sun Jan 28 04:30:46 2018 +0000 Fix some preprocessor logic errors regrading GL ES on ARM devices with desktop operating systems. From-SVN: r6603 commit af5ac90bf9f4b9df6c2cde6eb82adbaa3b16617a Author: Evan Ramos Date: Sun Jan 28 04:30:42 2018 +0000 Fix more uses of lotag with values >= 32768 beyond those reported as warnings. From-SVN: r6602 commit 8aee777011aae029eb59fad2f4f19f2fdd79754d Author: Evan Ramos Date: Sun Jan 28 04:30:38 2018 +0000 Fix all "truncation of constant value" warnings in MSVC due to restoring hitag/lotag to signedness. From-SVN: r6601 commit 50717fc388d8f8f3d87b4e5a0b41eeea1df07718 Author: Evan Ramos Date: Sun Jan 28 04:30:34 2018 +0000 Replace "INT16_32768" macro with unsigned literal "32768u". From-SVN: r6600 commit 44b2acda31789b2550a0eb7efea2e6ccff4af697 Author: Evan Ramos Date: Sun Jan 28 04:30:29 2018 +0000 Fix typo in r6589. From-SVN: r6599 commit 49a6c58e105ba5c3d10fdb5ca44033ca313ba2da Author: Evan Ramos Date: Sun Jan 28 04:30:25 2018 +0000 Remove function left behind in r6587. From-SVN: r6598 commit 69575482aa606d13a1515fee697a667f9fcb206a Author: Evan Ramos Date: Fri Jan 26 04:35:37 2018 +0000 New LOGO_FLAGS bit LOGO_HIDEEPISODE: Omit the episode name from the automap. Patch from Fox. From-SVN: r6597 commit 44e0b3ce3ce8e0e0b15b029445838d778a93f762 Author: Evan Ramos Date: Fri Jan 26 04:35:33 2018 +0000 New userdef structures "default_volume", "default_skill" Lets you choose which episode or skill should be selected by default in the menus. Default values are 0 and 1, respectively. Patch from Fox. From-SVN: r6596 commit d2d34087940193859f3e1af20fb1567e0cbdd7e4 Author: Evan Ramos Date: Fri Jan 26 04:35:29 2018 +0000 Display sprite shadows in Polymer if dynamic lighting is disabled. Patch from Fox. From-SVN: r6595 commit aac7b1ebf2b6428ea7b707271113d900d3445cc6 Author: Evan Ramos Date: Fri Jan 26 04:35:23 2018 +0000 Add "Alternate Weapon" key similar to Shadow Warrior Classic Redux. When pressed it switches between pipebomb / detonator or shrinker / expander. New event "EVENT_ALTWEAPON" Akin to "EVENT_PREVIOUSWEAPON" and "EVENT_NEXTWEAPON". RETURN is set to 12. Patch from Fox. From-SVN: r6594 commit 43f659b9072c1ba45477c358f98c3e8b35eb1b60 Author: Evan Ramos Date: Fri Jan 26 04:35:19 2018 +0000 Fix the aspect of save thumbnails in Polymost / Polymer in widescreen. Patch from Fox. From-SVN: r6593 commit 05be65df4a29e4786b2dc9b951cad7131e02e16f Author: Evan Ramos Date: Fri Jan 26 04:35:15 2018 +0000 New def token "shadefactor" shadefactor Controls the level of shading in GL modes. Normally it is set to the shade at which all colors are pitch black. The default value calculated from Duke 3D's palette is 30, but most other Build games with a different palette are calculate to 31. This token is for GL mods without a palette. Patch from Fox. From-SVN: r6592 commit 8f438a83480a9a7af27d3c5a32ce5df2b23576f7 Author: Evan Ramos Date: Fri Jan 26 04:35:11 2018 +0000 New userdef structure: "global_r", "global_g", "global_b" Set the tinting RGB values of textures being rendered. Can be used in DISPLAYROOMS or before rotatesprite (similar to setaspect). Remember to reset the values afterwards. Patch from Fox. From-SVN: r6591 commit 708298241285cafe49412bbafdd6ef14d262407b Author: Evan Ramos Date: Fri Jan 26 04:35:06 2018 +0000 Fix visibility in Polymer with r_usenewshading 4 and palette emulation off. Move some visibility-related constants from Polymer "core" code elsewhere. Patch from Fox. From-SVN: r6590 commit 40ffd00bb6742d97831f86d92b1b13cb37082abe Author: Evan Ramos Date: Fri Jan 26 04:35:02 2018 +0000 New userdef structure: "menu_slidebarz", "menu_slidebarmargin", "menu_slidecursorz" Self-explanatory. Default value for all is 65536. Patch from Fox. From-SVN: r6589 commit b15754d2c66fcfe1341103537013232e61741d3b Author: Evan Ramos Date: Fri Jan 26 04:34:57 2018 +0000 Add an option to move the status bar to the top of the screen in the Android version. Restores a feature temporarily disabled in r6553. Currently only supports the modern status bar. Patch from Fox. From-SVN: r6588 commit 1f825fdfa0d161977ce5d3d82893ac2b25137ecc Author: Evan Ramos Date: Fri Jan 26 04:34:51 2018 +0000 New userdef structure: "statusbarflags", "statusbarrange", "statusbarcustom" "statusbarflags" is a bitfield. Values are: STATUSBAR_NONONE = 1 STATUSBAR_NOMINI = 2 STATUSBAR_NOFULL = 4 STATUSBAR_NOSHRINK = 8 STATUSBAR_NOFRAGBAR = 16 STATUSBAR_NOOVERLAY = 32 STATUSBAR_NOMODERN = 64 Default value is 8. In case you modify it, you also have to set the other status bar related userdefs in EVENT_SETDEFAULTS. Default values in EDuke32 are: screen_size = 4; statusbarmode = 1; althud = 1; "statusbarrange" is used to add more alternatives for the status bar without breaking the option in the menu. If used, the mini status bar (screen_size = 4) will cycle through "statusbarcustom" when changing the screen size. Also fix the size of the viewport when the screen is shrunk and the scale of the status bar is not 100%. Patch from Fox. From-SVN: r6587 commit e3291c1cdd68beef971835da0ec905add78231d1 Author: Evan Ramos Date: Fri Jan 26 04:34:46 2018 +0000 Make cutscene "aspect" def token work with ANMs too. Patch from Fox. From-SVN: r6586 commit 1adf83d05587162b524c8d321d85319f7bff065a Author: Evan Ramos Date: Fri Jan 26 04:34:43 2018 +0000 New userdef structure "menubackground" Set to 0 to disable the black transparent mask below the in-game menu. Patch from Fox. From-SVN: r6585 commit 0bbd7bbb7995a002a0a9058cfaab992e43b18f60 Author: Evan Ramos Date: Fri Jan 26 04:34:38 2018 +0000 Add new events at various points that display hardcoded screens. New event "EVENT_MAINMENUSCREEN" Triggered before the main menu is displayed. Set RETURN to -1 to disable the screens that appear before the main menu. New event "EVENT_NEWGAMESCREEN" Triggered when a new game is started. Set RETURN to -1 to disable The Birth intro animation. New event "EVENT_ENDLEVELSCREEN" Triggered when a level ends. Set RETURN to -1 to disable the bonus and deathmatch score screens after a level ends. New event "EVENT_EXITGAMESCREEN" Triggered when a running game is ended. Set RETURN to -1 to disable the deathmatch score screen when you quit mid-game. New event "EVENT_EXITPROGRAMSCREEN" Triggered when the program is closed. Set RETURN to -1 to disable the shareware or TEN screen,sif they were enabled in LOGO_FLAGS. Patch from Fox. From-SVN: r6584 commit 6b256cd049f39642e81c52cb6dcd4b5f3388be4a Author: Evan Ramos Date: Fri Jan 26 04:34:33 2018 +0000 Menus: Fix current selection of episode menu when you return from the skill menu. From-SVN: r6583 commit a26c0b088f7fac2d9a114f062ec0d54ddb2c7d8b Author: Evan Ramos Date: Thu Jan 18 04:28:55 2018 +0000 When SE 17 can't find the next sector for the floor, use the heuristic added for ceilings in r3013 to determine the floorz, replacing the game exit added in r2971. From-SVN: r6582 commit 33db698b3fce8202174569a26b7e6976ce0b9f7e Author: Evan Ramos Date: Mon Jan 15 23:13:50 2018 +0000 Revert the parts of r3159 corresponding to redefining lotag and hitag as unsigned, so that they are once again signed. Any issues in Duke's code relating to misunderstanding these types are now restricted to Duke itself rather than changing the engine and potentially introducing new issues in all Build games. From-SVN: r6581 commit 132bc0c9b65461fa29dcfe870e4bfa1e243c6b1f Author: Evan Ramos Date: Mon Jan 15 17:46:28 2018 +0000 Revert slight change to fall behavior of pickup sprites in r6500. From-SVN: r6580 commit 57f9bd15cda55637381695cded648c9cbd0f5c26 Author: Evan Ramos Date: Mon Jan 15 17:46:25 2018 +0000 Don't stomp on shrunken teammates unless friendly fire is enabled. Patch from Striker. From-SVN: r6579 commit cbb2a58d8a853ef62393f9ec0f2d6a03f66f4f59 Author: Evan Ramos Date: Mon Jan 15 17:46:21 2018 +0000 Fix friendly fire damage conditions in multiplayer. Patch from Striker. From-SVN: r6578 commit 6bcba7e81c9f135e10b5fccd62ab2ac5e6150256 Author: Evan Ramos Date: Sat Jan 13 22:15:07 2018 +0000 Add is_(un)signed to compat.h, with specializations for the Tracker classes. DONT_BUILD. From-SVN: r6577 commit ee95ccd2a3fc7978b0879c9d65af54febeade4c8 Author: Richard Gobeille Date: Fri Dec 29 19:27:11 2017 +0000 Fix breakage I introduced into CON_FOR while fixing breakage in CON_FOR. :( From-SVN: r6576 commit 635b96d2660551d1d02d3c3fc3cac7a8590e3e21 Author: Richard Gobeille Date: Fri Dec 29 19:27:04 2017 +0000 Use native_t instead of bssize_t in gameexec.cpp From-SVN: r6575 commit b4c07bcb8741de68580b5c2b34679cd67c1a07b4 Author: Richard Gobeille Date: Fri Dec 29 02:32:12 2017 +0000 Fix issues with CON_FOR From-SVN: r6574 commit 670031876d0a65748e53e25933ad2f3440e90d29 Author: Richard Gobeille Date: Wed Dec 20 08:35:49 2017 +0000 Uncomment extra check in COMBINE_STRIPS From-SVN: r6573 commit deb3d017a95a1c9d2349e5491928b360e6769d20 Author: Evan Ramos Date: Tue Dec 19 01:26:18 2017 +0000 Fix corruption in filenames in new savegame system From-SVN: r6572 commit 6155599e56b0f965a7eab96157b111e4c241db27 Author: Alex Dawson Date: Tue Dec 19 00:03:12 2017 +0000 Fix line spacing tab issue in rev 6570. From-SVN: r6571 commit cfbaf33bd0e91bf8cff63d27b1f328530de931a4 Author: Alex Dawson Date: Mon Dec 18 23:36:05 2017 +0000 Fix a number of cases where files opened with cache1d.cpp's kopen_internal() could be leaked. From-SVN: r6570 commit e7cc4e145966b35c8feb4ba2c8d65b867f267412 Author: Evan Ramos Date: Mon Dec 18 11:24:53 2017 +0000 ZDoom-style saves From-SVN: r6569 commit b93304a56f5dd7636bea8598979cdf3b921522a3 Author: Evan Ramos Date: Mon Dec 18 11:24:46 2017 +0000 Menu tweak From-SVN: r6568 commit 1d0ace05fddf206438a4b77ae9c3ca4a45bfba6a Author: Richard Gobeille Date: Sun Dec 17 09:27:32 2017 +0000 Happened to be reading a SDL doc and noticed we were creating our surface with the wrong flags From-SVN: r6567 commit 8410a8c3456299cd69ba4327c520b12571fd63f6 Author: Richard Gobeille Date: Sun Dec 17 09:27:27 2017 +0000 Revert a tweak made for HTTKC From-SVN: r6566 commit d766c6e919499c8ba6d11c145adf18f7a86a313b Author: Alex Dawson Date: Sun Dec 17 02:03:55 2017 +0000 Fixed file handle leak when loading a save game From-SVN: r6565 commit d7b2c2cbc015f97f79c06a0f4e3680daf9ed04e3 Author: Alex Dawson Date: Sun Dec 17 02:03:52 2017 +0000 Fixed race condition where XMP voices could be played by the audio driver thread before they were fully initialized or fully freed From-SVN: r6564 commit 4036d91f2584f3710eeff7f46842cf8dda95bad3 Author: Evan Ramos Date: Tue Dec 12 05:14:19 2017 +0000 New player structures "frags" and "deaths" player[].frags Equals how many times player killed . Note that the sum of these values will not equal the total kills or deaths for a player since another player may disconnect, so use "frag" or "deaths" instead. player[].deaths Equals the total number of times the player died in the round, not including suicides. Patch from Fox. From-SVN: r6563 commit cda9800c2b93edb845572a3abdb1f3dba4be002c Author: Evan Ramos Date: Tue Dec 12 05:14:15 2017 +0000 Fix the position of the "KILLS" header and the number of deaths for each player in the frag screen. Patch from Fox. From-SVN: r6562 commit 80d7b675a8f7a3ae324f17e0ad5afbd824a4e7ee Author: Evan Ramos Date: Tue Dec 12 05:14:12 2017 +0000 Fix tints with negative shades in r_usenewshading 4. Patch from Fox. From-SVN: r6561 commit 4792f8301893e0eb0264d0dd85df0717253ff2b3 Author: Evan Ramos Date: Tue Dec 12 05:14:09 2017 +0000 Polymost: Account for yscale when deciding if the sky is tall enough to repeat or not. Comment out code that is not working as expected. Patch from Fox. From-SVN: r6560 commit 232bec658ddb3a8538855bbca1ff82881b8c85f5 Author: Evan Ramos Date: Tue Dec 12 05:14:06 2017 +0000 Add def "globalflags" bit 4, and for individual palettes the "tint" flag bit 512. This makes fog the same for all shades. Make fog behave normally with sector structure .fogpal. Patch from Fox. From-SVN: r6559 commit 6573b069607ce161e483fd992622bce65f56be8e Author: Evan Ramos Date: Tue Dec 12 05:14:02 2017 +0000 Fix visibility in Polymer with r_usenewshading 4. Patch from Fox. From-SVN: r6558 commit 88fceb0ad334db34df2216489fe6c85832403371 Author: Evan Ramos Date: Tue Dec 12 05:13:58 2017 +0000 New def tokens for "tint": "shadered" or "sr", "shadeblue" or "sb", "shadegreen" or "sg" tint { pal shadered <0-255> shadegreen <0-255> shadeblue <0-255> } Make shade apply a tint based on the RGB. Default values for shade are zero (black). Patch from Fox. From-SVN: r6557 commit bf0b1fb839ee3cdad16c79ff8a7c2e35e4cfbb67 Author: Evan Ramos Date: Tue Dec 12 05:13:53 2017 +0000 New userdef structure "screenfade" Set to zero to disable the hard-coded fade to black transition between screens, menu or when the level ends. Patch from Fox. From-SVN: r6556 commit 7539aac99f079dda0720963611910b17218c073f Author: Evan Ramos Date: Tue Dec 12 05:13:49 2017 +0000 New LOGO_FLAGS bits: - LOGO_STOPMISCSOUNDS = 2097152: Don't play NITEVISION_ONOFF when the logo starts. - LOGO_NOGAMETITLE = 4194304: Don't display the title (INGAMEDUKETHREEDEE and PLUTOPAKSPRITE+2) in the main menu. - LOGO_NOTITLEBAR = 8388608: Don't display the title bar background (TITLEBAR) above the menu. Patch from Fox. From-SVN: r6555 commit 6e29bdc76aa4cb1604d7fd0cb512586b164303ec Author: Evan Ramos Date: Tue Dec 12 05:13:46 2017 +0000 New event "EVENT_SETDEFAULTS". Use this event to change the value of userdefs when initializing cfg settings with defaults. Patch from Fox. From-SVN: r6554 commit e352ffc0028a512da38a190f23dabb5019c9902c Author: Evan Ramos Date: Tue Dec 12 05:13:42 2017 +0000 Move the modern status bar option into the screen size slider. Patch from Fox. From-SVN: r6553 commit 9394130fa319c21086bcfbe2964fbf80a0a26c7a Author: Evan Ramos Date: Tue Dec 12 05:13:38 2017 +0000 New def tokens for "cutscene": "texturefilter", "forcefilter", "forcenofilter" Changes the filtering for cutscenes. By default, ANMs are unfiltered and IVFs filtered regardless of the filtering option in the menu. Use “texturefilter” to use the same filtering as textures, “forcenofilter” to never use filtering and “forcefilter” to always use filtering. cutscene { texturefilter } Patch from Fox. From-SVN: r6552 commit d1ed160b876f0d7b8f33c7c0a13e3326667fb708 Author: Evan Ramos Date: Tue Dec 12 05:13:32 2017 +0000 New def token for "cutscene": "aspect" Overrides the aspect ratio for IVF files. cutscene { aspect } Note: For ANMs, you can use rotatesprite and setaspect to draw TILE_ANIM (currently defined as 30716) in EVENT_CUTSCENE with a custom aspect. Patch from Fox. From-SVN: r6551 commit f1a0fc00374ac7c1b45fa019ed439a56f2be8c28 Author: Richard Gobeille Date: Sun Dec 10 03:24:47 2017 +0000 screenpeek for EVENT_RECOGSOUND From-SVN: r6550 commit 82dc095549de3a88b9dcdf52cf894088d82b7706 Author: Richard Gobeille Date: Sun Dec 10 03:24:39 2017 +0000 Rename CLANG_DEBUG_FLAGS -> ASAN_FLAGS in makefile and enable them for GCC, because GCC supports ASan these days From-SVN: r6549 commit b84e3e9f7af8097a0cace8515cc7f8e2cc776143 Author: Richard Gobeille Date: Sun Dec 10 03:24:29 2017 +0000 DEBUGANYWAY -> FORCEDEBUG in Common.mak From-SVN: r6548 commit 8fe34e7601b3a4bd6e466b3458412976dfb3fedb Author: Richard Gobeille Date: Sat Dec 9 02:56:31 2017 +0000 Untabify engine.cpp From-SVN: r6547 commit cd435fc59bcfa39cbf95772b31e955f9d15273cf Author: Richard Gobeille Date: Sat Dec 9 02:56:26 2017 +0000 Revert a minor change I made to EVENT_LOGO From-SVN: r6546 commit 06eacb9e6c6014b90fd7d08ca04fcdf2a822166c Author: Richard Gobeille Date: Sat Dec 9 02:56:22 2017 +0000 Switch MSVC Makefile to target the VS2015.3 toolchain instead of the VS2017 toolchain, to work around a compiler bug From-SVN: r6545 commit 63f4280e5766f896265bccc189f1f02232ceee01 Author: Richard Gobeille Date: Sat Dec 9 02:56:17 2017 +0000 Fix problem where sometimes fullscreen GL modes display incorrectly. I'm not sure why this fixes it and I believe it to be a SDL bug. From-SVN: r6544 commit 9dcd9888f4942bea3f1485c05635bfd3a9d2332b Author: Richard Gobeille Date: Sat Dec 9 02:56:12 2017 +0000 Address issue where timers will no longer update after several hours of runtime From-SVN: r6543 commit ecee9cff57696be1daf11d85e5f96c1524451fc5 Author: Richard Gobeille Date: Sat Dec 9 02:56:05 2017 +0000 Fix undefined behavior in gameexec.cpp From-SVN: r6542 commit 5592536a299e87bf353c46fd6755f82efee8e14b Author: Richard Gobeille Date: Sat Dec 2 12:42:40 2017 +0000 Fix memory leak with .ANM playback in Polymost From-SVN: r6541 commit 07af4f5f8f8ddd06e11d927dff221f81a32e0088 Author: Richard Gobeille Date: Sat Dec 2 12:42:36 2017 +0000 Fix small memory leak in OSD From-SVN: r6540 commit d3cf78dc0f14df446befdfae3fc20c5bd613482c Author: Richard Gobeille Date: Sat Dec 2 12:42:31 2017 +0000 tabs -> spaces From-SVN: r6539 commit 6363482f1669b94e74fc290e5ade6dd49ba09c48 Author: Richard Gobeille Date: Sat Dec 2 12:42:25 2017 +0000 Fix memory leak in MACT scriplib.cpp From-SVN: r6538 commit bb0de1d154e01332d0543ac0fec40dbb0b0ec74b Author: Richard Gobeille Date: Sat Dec 2 09:24:55 2017 +0000 Fix events added in recent commits From-SVN: r6537 commit 4ad3bcec4fa3b5c37e90f43a04f34c059c871a30 Author: Richard Gobeille Date: Sat Dec 2 08:45:09 2017 +0000 Fix huge memory leak with savemapstate From-SVN: r6536 commit 7386f5e95c1bef5d8c2fd9c10c32b4567841dc1a Author: Richard Gobeille Date: Sat Dec 2 08:45:04 2017 +0000 Change ARRAY_SSIZE macro to return type native_t From-SVN: r6535 commit 5ea2466f1909d5e8efa35aa3ac88575f409867f8 Author: Richard Gobeille Date: Sat Dec 2 08:44:59 2017 +0000 Fix crash issue with nested console script execution From-SVN: r6534 commit 0a20f5538f06680c37c6fd539fa8ad03d85916e5 Author: Richard Gobeille Date: Sat Dec 2 08:44:53 2017 +0000 Print message to console at startup when successfully loading a RTS file instead of when the RTS file is missing From-SVN: r6533 commit 480238904e2a9c47e61b97db692aeb2780cb1f94 Author: Evan Ramos Date: Fri Dec 1 06:19:19 2017 +0000 Remix screencapture_begin into OutputFileCounter. From-SVN: r6532 commit 151e828980e92acdea8ee931833c5b87487410e1 Author: Evan Ramos Date: Fri Dec 1 06:19:15 2017 +0000 Add anticipatory fields to ud; bump BYTEVERSION. From-SVN: r6531 commit e3934d22235506f4e3bbf9610eb694a1006bbdaa Author: Evan Ramos Date: Fri Dec 1 06:19:12 2017 +0000 Make sure I_EnterText never writes a null terminator out of bounds. From-SVN: r6530 commit 16653b9a7820a2b39844c48b7be5a6549b2dbf59 Author: Evan Ramos Date: Fri Dec 1 06:19:09 2017 +0000 Bump savegame name limits from 22 in memory and 19 in practice to 32 in memory and 30 in practice. This bumps SV_MINOR_VER. From-SVN: r6529 commit e97a8ce8605f9f27ef77fd658cfb72ab41a3ca43 Author: Evan Ramos Date: Fri Dec 1 06:19:04 2017 +0000 Cleanups to handling of old save versions From-SVN: r6528 commit 0b0872b830527c61800ef0e0b43a72427afb28cf Author: Richard Gobeille Date: Fri Dec 1 02:07:34 2017 +0000 Revise previous commit From-SVN: r6527 commit 781d306951091c69f5d776a82db5dc0be1905592 Author: Richard Gobeille Date: Fri Dec 1 01:49:00 2017 +0000 Fix issue with non-actor sprites not being deleted at size 0 From-SVN: r6526 commit b5753fda338cc6bae4a9433ae571c174d7a77e07 Author: Richard Gobeille Date: Thu Nov 30 23:54:23 2017 +0000 Re-comment out part of COMBINE_STRIPS in polymost.cpp From-SVN: r6525 commit c65e358bb7c15dae357b3c5f8c5855b49b5ff917 Author: Richard Gobeille Date: Thu Nov 30 23:54:18 2017 +0000 Drop VSPMAX back to 2048 from 4096 From-SVN: r6524 commit dff7968f1dd59fc679398e1362a136348101458b Author: Evan Ramos Date: Thu Nov 30 02:57:23 2017 +0000 Revert r6496 From-SVN: r6523 commit a4fcfe304d94f274940f09210fcdac910a7e6729 Author: Evan Ramos Date: Wed Nov 29 07:29:57 2017 +0000 Menus: Change "Size:" entries in HUD Setup to "Scale:" and indent them. From-SVN: r6522 commit 30c46f037c9f00ac4b8139cb322b49a270163a3b Author: Evan Ramos Date: Wed Nov 29 07:29:54 2017 +0000 Polymost: Set r_parallaxskypanning to 1 by default. This enables sky panning, which allows the effect of CLOUDYSKIES to work properly. Patch from Fox. From-SVN: r6521 commit 5a96fe7a83ad5dcdcad6f308301418f06482fd39 Author: Evan Ramos Date: Wed Nov 29 07:29:51 2017 +0000 Polymost: Display paper-skies correctly when looking up or down. Show a solid color for skies taller than 256 px, otherwise repeat. Patch from Fox. From-SVN: r6520 commit 81ad1e3e2092db29845059581e44fad38055ac3c Author: Evan Ramos Date: Wed Nov 29 07:29:48 2017 +0000 New def token for "multipsky": "yscale". multipsky { yscale } Default value is 65536. Patch from Fox. From-SVN: r6519 commit bd5a3198a46c7c12335ff80fe1ff310ae2f70523 Author: Evan Ramos Date: Wed Nov 29 07:29:44 2017 +0000 Revise view background / border drawing code. New event "EVENT_UPDATESCREENAREA" Use this event to change the size of the game view, similar to when you press + or -. New event "EVENT_DISPLAYBORDER" Set RETURN to change the background tile of the game view, set -1 to disable the background and border. New userdef structures "screenarea_x1", "screenarea_y1", "screenarea_x2", "screenarea_y2" Use these structures to change the boundaries of the view in EVENT_UPDATESCREENAREA. Patch from Fox. From-SVN: r6518 commit c4204b05720f8e7db543830681f1824530d5a7a3 Author: Evan Ramos Date: Wed Nov 29 07:29:40 2017 +0000 CON: Add EVENT_RECOGSOUND. Set RETURN to -1 to disable the sound played when an enemy awaken. You have to use a command to play a sound, because the bosses use globalsound. Patch from Fox. From-SVN: r6517 commit 16236868f44c60829f1ce1f67eb9c920eecb3d1f Author: Evan Ramos Date: Wed Nov 29 07:29:37 2017 +0000 CON: Add EVENT_OPENMENUSOUND. Set RETURN to the sound played when the menu is opened. -1 to cancel. Patch from Fox. From-SVN: r6516 commit d8be747703dca085e1a0b07f4272784e9a81b508 Author: Evan Ramos Date: Wed Nov 29 07:29:33 2017 +0000 Add r_usenewshading 4. Uses a constant determined from the shade tables. Patch from Fox. From-SVN: r6515 commit 6a26ff3d633e690c36816fcb7a6b1f1bbeba22f2 Author: Evan Ramos Date: Wed Nov 29 07:29:30 2017 +0000 Calculate the perceptual (i.e. "real") max shade in the given tables. From-SVN: r6514 commit 792b4d4acc9f3e5a15a587dbe491e6a846b4e184 Author: Evan Ramos Date: Wed Nov 29 07:29:27 2017 +0000 Clean up E_PostLoadPalette. From-SVN: r6513 commit 489b6f9960df02f3050b7414ed017160f5bfdab2 Author: Evan Ramos Date: Wed Nov 29 07:29:23 2017 +0000 CON: Add EVENT_DISPLAYEND and EVENT_DISPLAYROOMSEND. EVENT_DISPLAYROOMSEND: Triggered right after the game world is rendered and before any sprite above the screen. EVENT_DISPLAYEND: Triggered after the game draws everything above the screen, including menus. A counterpart to EVENT_DISPLAYSTART. Patch from Fox. From-SVN: r6512 commit a0bceed91ac9f4b9c6e632ca2a05594cec6039ee Author: Evan Ramos Date: Wed Nov 29 07:29:20 2017 +0000 Pause the game when playing IVF files with startcutscene. Patch from Fox. From-SVN: r6511 commit f22054c9b6000e0e564d6c1ffd13e338ee5d42f9 Author: Evan Ramos Date: Wed Nov 29 07:29:17 2017 +0000 Fix flickering in IVF files. Patch from Fox. From-SVN: r6510 commit cb64893847b87c3dfe61e1f5ec58b679a08f38e3 Author: Evan Ramos Date: Wed Nov 29 07:29:14 2017 +0000 CON: Add screenpal command. screenpal Similar to palfrom, but works on screen events. Values range from 0 to 255. Patch from Fox. From-SVN: r6509 commit a8131c3ef4649e09bb3178f99c86a0ec59cbd3e2 Author: Evan Ramos Date: Wed Nov 29 07:29:11 2017 +0000 CON: Add command "startscreen" and corresponding EVENT_SCREEN. Use startscreen to take control away from the game and display content with rotatesprite. RETURN is set to 1 when any key is pressed, and if it is nonzero when the event ends, the screen ends and the game resumes. Patch from Fox. From-SVN: r6508 commit f2fe11f2771f5b84274766663b9b8f2927a20828 Author: Evan Ramos Date: Wed Nov 29 07:29:07 2017 +0000 CON: Add EVENT_SKIPCUTSCENE. Used with startcutscene. RETURN is set to 1 when any key is pressed, and is used to control when a cutscene ends. Patch from Fox. From-SVN: r6507 commit 27d07b917ade6f3f978b616b349e25c6a42526fe Author: Evan Ramos Date: Wed Nov 29 07:29:04 2017 +0000 CON: Add EVENT_PRECUTSCENE. Used with startcutscene. RETURN sets the frame of an ANM before it is rendered. Patch from Fox. From-SVN: r6506 commit 63a76d2b326869d2bc705e4ad2df8a70de395921 Author: Evan Ramos Date: Wed Nov 29 07:29:01 2017 +0000 CON: Run EVENT_CUTSCENE during IVFs as well. Changing the frame of an IVF file is unsupported, so its only purpose is to play sounds. Patch from Fox. From-SVN: r6505 commit 2b79cd5e803063cdd9b1c628cecdc7d1b0c26765 Author: Evan Ramos Date: Wed Nov 29 07:28:58 2017 +0000 CON: Add "actorsound" command. Patch from Striker. From-SVN: r6504 commit 428b9884989fa09d94ebc820b05a691107413897 Author: Evan Ramos Date: Wed Nov 29 07:28:54 2017 +0000 Replace arbitrary MAXGAMEEVENTS macro with the properly generated MAXEVENTS. From-SVN: r6503 commit 306a41883412fee78c66069d797a4c331a09e592 Author: Richard Gobeille Date: Wed Nov 22 05:23:43 2017 +0000 Add palette emulation menu options to control r_usetileshades and r_pr_artmapping From-SVN: r6502 commit 601d82ac29a3f4525232e9847b053f0bc7046c6b Author: Richard Gobeille Date: Wed Nov 22 05:23:38 2017 +0000 Small change to G_FPSLimit() From-SVN: r6501 commit 3c4754c9b198afef8387f5e24bd2b11c8396f42a Author: Richard Gobeille Date: Wed Nov 22 05:23:33 2017 +0000 Minor hard-coded Duke sprite cleanup From-SVN: r6500 commit 7d284189838eeb9c8d5bbaa6a970f9033937e60b Author: Richard Gobeille Date: Wed Nov 22 05:23:28 2017 +0000 Useless removal of a couple of redundant blocks of code From-SVN: r6499 commit 1f785f547dfb19d8d3306f156b2480a5d1673b1c Author: Richard Gobeille Date: Wed Nov 22 05:23:23 2017 +0000 Move autoexec.cfg execution to directly after settings.cfg execution From-SVN: r6498 commit c4f9915459622ee6dbc5c78ce9cd96ca2a802cbc Author: Richard Gobeille Date: Wed Nov 22 05:23:14 2017 +0000 Windows builds: SDL 2.0.7 From-SVN: r6497 commit afc234e8cc1336f040e1e8e09df0a02a8f42aa0b Author: Evan Ramos Date: Mon Nov 6 05:56:48 2017 +0000 Fox's projection patch 2.0 From-SVN: r6496 commit 7633c1db1ce327213e416909a39bdd008b5d2339 Author: Evan Ramos Date: Thu Nov 2 04:25:59 2017 +0000 Fox's maskwall fix 2.0 From-SVN: r6495 commit 5c2ea8fc7d26c2f0265e33ab166d02355e7b198a Author: Richard Gobeille Date: Tue Oct 31 02:09:44 2017 +0000 If Fox's patch to fix flickering masked walls is correct, this change should improve FPS in some areas. From-SVN: r6494 commit 02542524bec1b38c310af8f4c3476657a53d2d17 Author: Richard Gobeille Date: Tue Oct 31 02:09:39 2017 +0000 Crash fix From-SVN: r6493 commit 1a5b666ac641f7add967bb96be180d81942e6b53 Author: Richard Gobeille Date: Tue Oct 31 02:09:25 2017 +0000 Fix issue with arrays, saved map states, and savegames From-SVN: r6492 commit 833c58c59d339545063d1e42f7ee63a1c87da735 Author: Evan Ramos Date: Tue Oct 31 00:35:23 2017 +0000 Revert r6490. From-SVN: r6491 commit d71ad3d9605d03cf5e04ef13a47b3ebd0ad491f5 Author: Evan Ramos Date: Mon Oct 30 03:48:31 2017 +0000 A potential fix for the disappearing maskwall problem. Patch from Fox. From-SVN: r6490 commit b4e06c06b09f45f03e7b8fb8e44577680edc4de3 Author: Evan Ramos Date: Mon Oct 30 03:48:28 2017 +0000 Eliminate the need for cache1d to calculate and remember the CRC32 of every GRP loaded. From-SVN: r6489 commit 4e6290483f71a77b3c77d11e99fdb1ee69ddf0d6 Author: Richard Gobeille Date: Mon Oct 16 21:17:53 2017 +0000 Fix crash with "setrendermode 4" in builds with Polymer disabled From-SVN: r6488 commit c2e616bf3507667aeb487e2fbd631487cc1948ef Author: Richard Gobeille Date: Mon Oct 16 21:17:47 2017 +0000 Fix issue with savemapstate/loadmapstate and gamearrays From-SVN: r6487 commit abfbff05f8acf84b84c61392555b76e4dac52c6f Author: Evan Ramos Date: Mon Oct 16 03:32:37 2017 +0000 Polymost: New projection hack algorithm: Keep zoom equivalent to Classic when looking straight ahead. Patch from Fox. From-SVN: r6486 commit 1385ff8009a1b19d4bcc00d5093a4531661b4942 Author: Evan Ramos Date: Mon Oct 16 03:32:34 2017 +0000 Expand use of VM_GetKeywordForID to all other references to vm_keywords[]. Fixes printing of incorrect keywords, reported by Trooper Dan. From-SVN: r6485 commit ea9794520db8b76bde98efdd5eb20650724f5a92 Author: Evan Ramos Date: Mon Oct 16 03:32:30 2017 +0000 Amend r6460 to move vm_keywords[] back to gamedef.cpp and factor the ID to keyword mapping into VM_GetKeywordForID(). From-SVN: r6484 commit 23af7e5d04b5c76a8c3a4034078577c62fcc1c91 Author: Evan Ramos Date: Mon Oct 16 03:32:26 2017 +0000 Fix infinite loop when requesting to open an invalid map from the command line. From-SVN: r6483 commit eebe945fd33e067d3914c1dc269e313db6bd2961 Author: Evan Ramos Date: Sun Oct 15 23:10:21 2017 +0000 Re-add GAMETYPE_FRAGBAR to the default cases for deathmatch modes. While the fragbar is indeed too cumbersome for use with more than 8 players, and a "show current score overlay" button is a better and more modern solution, this flag should connote whether a mode is *eligible* for it, not whether it is used at all. TODO: Add a cvar for toggling the fragbar and turn it off by default. From-SVN: r6482 commit 6d1a0e9da48ac0577518a9cf1d8d68b903286308 Author: Evan Ramos Date: Sun Oct 15 23:10:18 2017 +0000 Enumify the definition of g_gametypeFlags. From-SVN: r6481 commit 70b8ca024824638ebbcf670697de0bbf6fcc7635 Author: Evan Ramos Date: Sun Oct 15 23:10:15 2017 +0000 Fix the bug where tapping (but not holding) fire with 1 ammo left for the chaingun would fail to switch away. Reported by RunningDuke. From-SVN: r6480 commit 1e5400e319308220ef0c780ffd55a3c1496821a0 Author: Evan Ramos Date: Sun Oct 15 23:10:12 2017 +0000 if (A ? 1 : B) --> if (A || B) From-SVN: r6479 commit a3e6fd0a05441b9a14fa513040a2fe2b4ded36ba Author: Evan Ramos Date: Sun Oct 15 23:10:09 2017 +0000 Fix infinite loop in OSD_StripColors() when trying to display a quote containing '^' not followed by a number. This fixes Mission 2 of Platoon Leader, as reported by RunningDuke. From-SVN: r6478 commit debe0e09d509eb541f23a5d2b76f80c88c384d8d Author: Evan Ramos Date: Sun Oct 15 23:10:06 2017 +0000 Add the Platoon Leader expansion for WWII GI to the GRP list. From-SVN: r6477 commit a2963355213dbd7cc1d2cedd9d754b9ab1614f0e Author: Evan Ramos Date: Sun Oct 15 23:10:03 2017 +0000 Duke: Scan for *.dat in addition to .grp, .zip, .ssi, etc. From-SVN: r6476 commit 542e76748279fb951b8fca6241abaa31e3b2a3b3 Author: Evan Ramos Date: Sun Oct 15 23:09:59 2017 +0000 Add support for MTM modules. From-SVN: r6475 commit 4d6ea2f7c56b5f3bbaffedb92fbb91aee8ad5864 Author: Evan Ramos Date: Sun Oct 15 23:09:55 2017 +0000 libxmp-lite: Import mtm_load.c From-SVN: r6474 commit d9de069b8f5fe5555d35c456d9e6bc877fa276a3 Author: Evan Ramos Date: Mon Oct 9 07:37:17 2017 +0000 Eliminate the force-disabling of glprojectionhacks during showview. Please notify me if this change negatively affects your code. From-SVN: r6473 commit 3ae90b6c826f327c15a3c4fef4d734597be09b4b Author: Evan Ramos Date: Mon Oct 9 07:37:14 2017 +0000 compat.h: Use C++17, C++11, or C11 static_assert if available. From-SVN: r6472 commit b0fe7353c6d7dd00882b29b8ff05572efb8bc8f1 Author: Evan Ramos Date: Mon Oct 9 07:37:11 2017 +0000 compat.h: Only use C++ attribute versions of fallthrough if C++11 or greater. From-SVN: r6471 commit a9f139773fd1790f476747298edbf62c4fa62307 Author: Evan Ramos Date: Mon Oct 9 07:37:08 2017 +0000 build.h: Error out if Visual Studio is older than 2013. We keep getting support requests about this. See previous commit. From-SVN: r6470 commit a618fa6bf01f320aa9e6ddcebafe8e01e70def56 Author: Evan Ramos Date: Mon Oct 9 07:37:05 2017 +0000 compat.h: Add EDUKE32_MSVC_CXX_PREREQ(). It is necessary for testing C++11 functionality because Visual Studio never defines __cplusplus to be 201112L. From-SVN: r6469 commit a8ecb54331cab743bd1416e912bb799e995ac598 Author: Evan Ramos Date: Mon Oct 9 07:37:01 2017 +0000 compat.h: Add detection of C++17. From-SVN: r6468 commit ded72818044b754c2584ac9a97783ee3b7c1d6ae Author: Evan Ramos Date: Mon Oct 9 07:36:58 2017 +0000 Some more standalone stuff. From-SVN: r6467 commit 83fc6f3716d2c80a828e9276b6eb2c33ff9168fa Author: Evan Ramos Date: Mon Oct 9 07:36:55 2017 +0000 Menus: If you open the Help menu with the F1 key, make Help the selected item on the main menu, if applicable. From-SVN: r6466 commit 41368121bdac44387418f544b113154077ddccfc Author: Evan Ramos Date: Mon Oct 9 07:36:52 2017 +0000 Menus: Factor out code into Menu_AboutToStartDisplaying and Menu_ChangingTo. From-SVN: r6465 commit 31768645841db8c8eee504f7dbc9fb24a27f3f74 Author: Evan Ramos Date: Mon Oct 9 07:36:48 2017 +0000 Menus: Use SMALLFNTCURSOR for a text caret in the absence of a SPINNINGNUKEICON tile. From-SVN: r6464 commit 35c01d1fe0ee4705757022cedf889343811c0670 Author: Evan Ramos Date: Mon Oct 9 07:36:45 2017 +0000 Menus: Factor out SPINNINGNUKEICON drawing From-SVN: r6463 commit 64a4aa9fccf986afc71e2bb9afe64ad604cc675e Author: Evan Ramos Date: Mon Oct 9 07:36:40 2017 +0000 Avoid an unused variable warning with EDUKE32_STANDALONE. From-SVN: r6462 commit 84231fffbd3e92700978ece1af3d43f8c73f928c Author: Richard Gobeille Date: Sun Oct 8 22:15:51 2017 +0000 Fix in-game 2d map view line colors when using palettes that differ completely from Duke3D's palette From-SVN: r6461 commit 54225f571c4b61e93b4537e155224d5eba54576a Author: Richard Gobeille Date: Wed Oct 4 22:30:53 2017 +0000 This should fix the scrambled log output when the game crashes while executing a CON script somewhere From-SVN: r6460 commit e3d8044729c568f8157cdb619e051d11e4f71636 Author: Evan Ramos Date: Wed Sep 27 05:22:35 2017 +0000 Menus: Don't play EXITMENUSOUND when trying to close a root menu outside of an active game. From-SVN: r6459 commit fae895af920b02d531bad00585a8f8ea8877fd59 Author: Evan Ramos Date: Wed Sep 27 05:22:32 2017 +0000 Amend r6452. From-SVN: r6458 commit 8b2a7ab5ea7587cd9ac3cbbdedd0abd858e2d51a Author: Evan Ramos Date: Wed Sep 27 02:30:37 2017 +0000 Prevent P_GetP from treating player indexes that are >= g_mostConcurrentPlayers as player 0, by checking against MAXPLAYERS instead. Prevents the "gib on spawn in multiplayer" bug, and allows fake players to work properly. Patch from Striker. From-SVN: r6457 commit d7028366bb3d7af5a9cc9dcb29a7dcaa09b6782a Author: Evan Ramos Date: Wed Sep 27 02:30:34 2017 +0000 Fix display of the fragbar in widescreen. Patch from Striker. From-SVN: r6456 commit c80e8dbbc6d0c4fb8a7634bbbe64803b1e665d5b Author: Evan Ramos Date: Wed Sep 27 02:30:31 2017 +0000 Fix the fragbar not respecting GAMETYPE_FRAGBAR. Patch from Striker. From-SVN: r6455 commit 0a8c8e7b622da1a4931511cf519858300bf45b19 Author: Evan Ramos Date: Wed Sep 27 02:30:28 2017 +0000 Fix randomseed in multiplayer. Merged from private network branch. Patch by [IFOC]75, prepared by Striker. From-SVN: r6454 commit 2700adb63aa97534f26f16d374dfd626be8663aa Author: Evan Ramos Date: Wed Sep 27 02:30:24 2017 +0000 Add player[].connected. Patch from Striker. From-SVN: r6453 commit 61cc74ef8e1572c0a187756e02390743da32269b Author: Evan Ramos Date: Wed Sep 27 02:30:21 2017 +0000 Address an oversight in r6212. From-SVN: r6452 commit 016a9cd7e162f0857dffba38d6b76ba6076af143 Author: Evan Ramos Date: Wed Sep 27 02:30:17 2017 +0000 Cleanups in eduke32.vcxproj. Thanks to [IFOC]75. From-SVN: r6451 commit 3f6035b80295911960cc729e2a6471aed652b6ae Author: Evan Ramos Date: Sat Sep 23 03:18:01 2017 +0000 SDL 2.0.6 From-SVN: r6450 commit 6a5b02186baa18988a5b293be9473a87fd1941f8 Author: Evan Ramos Date: Sat Sep 23 03:17:35 2017 +0000 Address a typo in r6435 affecting SDL 1.2 builds. From-SVN: r6449 commit 1542e8067479aa8b711056e10cd745243910615d Author: Evan Ramos Date: Sat Sep 23 03:17:32 2017 +0000 macOS: Fix crash in startup window when no game data is found. From-SVN: r6448 commit 3b3f76c1672c3c9abcba7b23ac53150565ddce2f Author: Evan Ramos Date: Sat Sep 23 03:17:29 2017 +0000 Update fallthrough__ definitions. From-SVN: r6447 commit 9bfe7d5d3f49ee3e3156e599aa382e72e8266cd7 Author: Evan Ramos Date: Sat Sep 23 03:17:26 2017 +0000 Update credits. From-SVN: r6446 commit af549b0a661da2c58641b74560d14f94b123b519 Author: Evan Ramos Date: Sat Sep 23 03:17:22 2017 +0000 Pass the parameters of the warp and skill cheats to EVENT_ACTIVATECHEAT through userdef[].m_* and read them back afterward. From-SVN: r6445 commit 54edc39f82865427cb6e326696cb0dc66d0bfcfb Author: Richard Gobeille Date: Thu Sep 21 04:32:14 2017 +0000 Amend r6439 From-SVN: r6444 commit 834a6e6fa29ab68d913d41b207ad538ef396f194 Author: Richard Gobeille Date: Tue Sep 19 19:10:51 2017 +0000 Make setinput work better in EVENT_PROCESSINPUT From-SVN: r6443 commit 9aaa12cb3df2e0524520842e5673b1e1340f591e Author: Richard Gobeille Date: Tue Sep 19 19:10:45 2017 +0000 NETCODE_DISABLE implementation tweaks. I think this is better. From-SVN: r6442 commit a39020024a4fb8dbe4ec6d602e3c499b069e5b4d Author: Richard Gobeille Date: Tue Sep 19 19:10:39 2017 +0000 uint64_t based FPS limiter From-SVN: r6441 commit 473f1f93eb6cdc6676d179ab545eb6ba10a2aef1 Author: Richard Gobeille Date: Tue Sep 19 19:10:33 2017 +0000 useless change From-SVN: r6440 commit 697fa84d8b6264ad2c64bd0c4f9bab42bdc90223 Author: Richard Gobeille Date: Tue Sep 19 19:10:27 2017 +0000 Force enabling NVIDIA threaded optimizations. Probably only works on Linux, but the extra putenv() call doesn't hurt anyone anywhere else. From-SVN: r6439 commit 704480c84af70357cd1fc0780efdcb03a4929f5b Author: Richard Gobeille Date: Tue Sep 19 19:10:19 2017 +0000 Switch palookup memory allocation to Xalligned_alloc and fix what looks like a botched preprocessor condition From-SVN: r6438 commit 49eb0450be8d4c3e3be1e9bc206412bdccdabe0b Author: Richard Gobeille Date: Sun Aug 27 10:20:53 2017 +0000 Add a few 2560 x XXXX modes to the default video modes added to the various lists From-SVN: r6437 commit e3569f85b2b50604e177f1356019702a48592598 Author: Richard Gobeille Date: Sun Aug 27 10:20:48 2017 +0000 Refer to video modes as "software" and "OpenGL" in the startup window instead of simply by how many bpp they are. End users are likely to understand this distinction more. From-SVN: r6436 commit 4a0ce0b0dcd3b6f42e46d1847e2ed512f0db7170 Author: Richard Gobeille Date: Sun Aug 27 10:20:41 2017 +0000 Ignore video modes with resolutions less than 640x480 or with aspect ratios taller than around 4:3 when populating the mode lists used in the startup window and menus. Sorry to the two guys still using nasty 5:4 1280x1024 monitors in 2017; you'll have to set your resolution using the console now. From-SVN: r6435 commit f568ad163f1a45dd7bd688a49f0f887d6d520c72 Author: Richard Gobeille Date: Sun Aug 27 10:20:35 2017 +0000 Tweak Polymost z-fighting avoidance code From-SVN: r6434 commit 8194e7f4c3d4d88bd6619471550dc13e159967db Author: Richard Gobeille Date: Sun Aug 27 10:20:29 2017 +0000 Expose "show2dsector" to CON From-SVN: r6433 commit 9c0b858b7cd397f072cc45065bfc2bb0772b30c9 Author: Richard Gobeille Date: Sun Aug 27 10:20:23 2017 +0000 Use tokenmap_t struct to define all CON keywords From-SVN: r6432 commit f08c7484dc8efec4b9ec24b8a982a6bc1af37ed4 Author: Evan Ramos Date: Mon Aug 14 03:43:30 2017 +0000 Improvements to wiibuild.sh. DONT_BUILD. From-SVN: r6431 commit 013d8896cee8e8c8dd865f67bd8e63d9e431c059 Author: Evan Ramos Date: Sat Aug 12 02:33:27 2017 +0000 Try the previous commit in a different way so that `make CC=gcc CXX=g++ COBJC="clang -x -objective-x" COBJCXX="clang++ -x objective-c++"` does not require the non-obvious CLANG=0. DONT_BUILD. From-SVN: r6430 commit 8300a5c102611cf16e560fea52022314e717d109 Author: Evan Ramos Date: Sat Aug 12 02:25:44 2017 +0000 Invoke clang as the default compiler on macOS. DONT_BUILD. From-SVN: r6429 commit 19d7b57066b42f84fffd2fd4e2547cbe6877d98c Author: Evan Ramos Date: Sun Aug 6 13:45:05 2017 +0000 CON: Call I_ClearAllInput before Anim_Play when executing startcutscene. From-SVN: r6428 commit eb44c4e4929e2533b640427107213dd179e6c0ca Author: Evan Ramos Date: Sun Aug 6 13:45:02 2017 +0000 CON: Add "stopallmusic" command. From-SVN: r6427 commit e3a2d36cb36ea538ffa45205241ae58b48832924 Author: Evan Ramos Date: Sun Aug 6 13:44:59 2017 +0000 Partial build fix for Lunatic. From-SVN: r6426 commit 49d5c473a667f7bd90ca827bcf4de4779bc2b41e Author: Evan Ramos Date: Sun Aug 6 13:44:57 2017 +0000 Makefile: Fix building the tools on Mac. From-SVN: r6425 commit 5e5acb7ed5919071d800dd3a45f85e6f62d0d1cc Author: Evan Ramos Date: Sun Aug 6 13:44:54 2017 +0000 Makefile: More no-shell stuff that I didn't want to rebase past the lowercase stuff. From-SVN: r6424 commit a16623bd8a3741b0ff398d8b52e3e5f02c3af9a3 Author: Evan Ramos Date: Sun Aug 6 13:44:52 2017 +0000 Makefile: Make the dynamic rule creation a little bit simpler, thanks to the previous commit. From-SVN: r6423 commit c433e6303f05250b85110c346e7eee453d66f7df Author: Evan Ramos Date: Sun Aug 6 13:44:49 2017 +0000 Makefile: Make most variables in the component construction lowercase. From-SVN: r6422 commit 70b686f4afb5c601ac9983572bc5137a6719648b Author: Evan Ramos Date: Sun Aug 6 13:44:47 2017 +0000 Disable compiling some functions in miniz that we don't use, and that cause portability issues. From-SVN: r6421 commit b9e5d2b706d3d233fab42b2918a1d7dba4eadcb5 Author: Evan Ramos Date: Sun Aug 6 13:44:44 2017 +0000 Makefile: Mess with Wii stuff to fix a majority of its make invocation circumstances. From-SVN: r6420 commit 2cef586d8b02e8ba8b68ce310aa16d8f014239ad Author: Evan Ramos Date: Sun Aug 6 13:44:41 2017 +0000 Makefile: Eliminate all mandatory use of *nix userland tools. Windows should no longer need an msys install to build with MinGW-w64. Working Title: MSYS Gets Shell-Shocked From-SVN: r6419 commit 1a6e2ef86902a35ca9af90503b7689f43a3d0857 Author: Evan Ramos Date: Sun Aug 6 13:44:39 2017 +0000 Makefile: Assignment operator cleanup. From-SVN: r6418 commit 0401a2b0220b9960d1d5616238ed7a0a6a1b138d Author: Evan Ramos Date: Sun Aug 6 13:44:36 2017 +0000 KenBuild: Fix OSD_SetParameters signature. From-SVN: r6417 commit afa06b4365fb469312db50f9b35a843438c415fa Author: Evan Ramos Date: Sun Aug 6 13:44:32 2017 +0000 KenBuild, SW: Fix screencapture signature. From-SVN: r6416 commit e88e2216069a1be6a2705be0b5e34343158d9ab7 Author: Richard Gobeille Date: Fri Aug 4 23:06:37 2017 +0000 Remove user map menu from EDUKE32_SIMPLE_MENU builds. DONT_BUILD. From-SVN: r6415 commit bd77a280a8874d913631bf40bec5face49103a4d Author: Evan Ramos Date: Tue Aug 1 09:48:59 2017 +0000 CON: Add starttrackslot Clobbering ud.volume_number is a hack no one should need to use any more. Only this command supports specifying -1 for volume to access the main menu, briefing, etc themes. From-SVN: r6414 commit 946e2d3b2aec04caec542a49a5298cf2e0e3074f Author: Evan Ramos Date: Tue Aug 1 09:48:55 2017 +0000 CON parser: Merge some cases for code size savings. From-SVN: r6413 commit 95805fdd46170f684e3e5bbfdbac006c278de0d1 Author: Evan Ramos Date: Tue Aug 1 09:48:52 2017 +0000 Menus: Fix RangeInt32. From-SVN: r6412 commit 6ae4f72756a2d422dc2fb7620e77bb3cc7002db7 Author: Richard Gobeille Date: Mon Jul 31 03:14:51 2017 +0000 Continuation of r6409 From-SVN: r6411 commit 653cb5b7f7157ca678747a09e81b7f474af720e0 Author: Evan Ramos Date: Mon Jul 31 01:53:16 2017 +0000 Fix two warnings. DONT_BUILD. From-SVN: r6410 commit 196bf0a572b752f95bd1860b50042d1566901098 Author: Richard Gobeille Date: Mon Jul 31 01:34:54 2017 +0000 Unimportant menu changes to kick off synthesis From-SVN: r6409 commit 3005919fe4545faac431b1172cb5842fef0b049f Author: Evan Ramos Date: Sun Jul 30 21:23:51 2017 +0000 CON: Fix checkavailweapon command. From-SVN: r6408 commit c103223afc51f690449eaf02e58f484266068066 Author: Evan Ramos Date: Sun Jul 30 05:42:01 2017 +0000 Fix a fallthrough annotation. DONT_BUILD. From-SVN: r6407 commit cbfddbf84de1e992f055fcaf022b0ca1128de691 Author: Evan Ramos Date: Sun Jul 30 04:27:44 2017 +0000 Fix a warning. DONT_BUILD. From-SVN: r6406 commit 815fcf1cf80938bf1ec9b0d7c283459275e94e46 Author: Evan Ramos Date: Sat Jul 29 22:55:48 2017 +0000 synthesis.sh does not need to be in SVN any more. DONT_BUILD. From-SVN: r6405 commit 4fe3fbcc378fff53ecfdac8a4cd3afc0d6bdfd06 Author: Evan Ramos Date: Sat Jul 29 20:40:00 2017 +0000 CON: Fix playervar quick structure access. From-SVN: r6404 commit bc48667d1ac2d1aa19f661a904a0fe3395708c0c Author: Evan Ramos Date: Sat Jul 29 20:39:57 2017 +0000 Menus: Disable compilation of all code pertaining to MenuRangeDouble_t, since we're not using any. From-SVN: r6403 commit 80de066684cf2eb259e6afddb77fe631ccc3e50d Author: Evan Ramos Date: Sat Jul 29 20:39:53 2017 +0000 Menus: Clean up MenuRanges. From-SVN: r6402 commit aa8486e6001ff534929b8c4db08ab7054d237371 Author: Evan Ramos Date: Sat Jul 29 20:39:50 2017 +0000 Tweak UNREFERENCED_CONST_PARAMETER From-SVN: r6401 commit c83fcf5d236a0b178b9b267807e61630bde95e9d Author: Evan Ramos Date: Sat Jul 29 20:39:46 2017 +0000 Yet another round of trailing whitespace. From-SVN: r6400 commit 47bbafb7a07ef9660bf0c92de71c087f69c3d455 Author: Richard Gobeille Date: Sat Jul 29 09:48:43 2017 +0000 Fix issue with screenshots From-SVN: r6399 commit d76c699f99d1b349a24aa046bfae9eddbb99f7c8 Author: Richard Gobeille Date: Fri Jul 28 20:24:54 2017 +0000 Useless change to force a synthesis build From-SVN: r6398 commit 37d1de3c61e3601922109ee3156a4223244f61e0 Author: Evan Ramos Date: Fri Jul 28 17:59:01 2017 +0000 A fairly pointless change. I'm just committing this to try and kick synthesis into making a build like it should have. From-SVN: r6397 commit 256c560c7cb90d0bfb174b17192e9d448fda1442 Author: Evan Ramos Date: Fri Jul 28 11:29:16 2017 +0000 In md3postload_polymer, always clear the triangle buffer (tribuf) to zero, not just when its allocation size is enlarged. Fixes strange issues with lighting on models. From-SVN: r6396 commit 607b85180bf5151d53bfc9f73b8a8c4f6b1bbc47 Author: Evan Ramos Date: Fri Jul 28 11:29:12 2017 +0000 Don't drink and copypaste, kids. Unfucks r6379. From-SVN: r6395 commit f43bcc30d1b8bef610b7023c9cae3d2d84f1156b Author: Evan Ramos Date: Fri Jul 28 08:27:38 2017 +0000 Slightly change readarrayfromfile so that attempting to read arrays of a size that does not evenly divide into the requested type rounds up instead of down and zero-pads the difference. This should help hackish persuits such as reading map files through this command. From-SVN: r6394 commit fd92015bf7204d1bd49dcb0bfc9324df9bc166b9 Author: Evan Ramos Date: Fri Jul 28 08:27:35 2017 +0000 Fix readarrayfromfile with bitmaps and uint32s. Also improve it. From-SVN: r6393 commit 6c551e00bb81afc6b151cf7ad04c90be5c9e58f6 Author: Evan Ramos Date: Fri Jul 28 08:27:31 2017 +0000 Introduce GAMEARRAY_SIZE_MASK. From-SVN: r6392 commit aa59797850e8415657dbe6a9c860260eaad8e596 Author: Evan Ramos Date: Fri Jul 28 08:27:28 2017 +0000 Revise part of r6385 for clarity. From-SVN: r6391 commit b67abad30b15f2b30ce887da75bf3a29cd5c71f0 Author: Evan Ramos Date: Fri Jul 28 08:27:24 2017 +0000 Connect minitext_ to MF_Minifont. From-SVN: r6390 commit 169906f04736d2ab37decfce306b27bc11bcd8a3 Author: Richard Gobeille Date: Thu Jul 27 20:05:48 2017 +0000 Derp. DONT_BUILD. From-SVN: r6389 commit b632e17a4a70a1040dd163e14b8de4c5565b86bc Author: Richard Gobeille Date: Thu Jul 27 10:17:58 2017 +0000 Parallelize synthesis From-SVN: r6388 commit 947904be650999db5934f9f59da58f3514ecc0a2 Author: Richard Gobeille Date: Thu Jul 27 10:08:52 2017 +0000 Build fix From-SVN: r6387 commit 97e626d205700da2082a0a678cf0a1246677b7f4 Author: Richard Gobeille Date: Thu Jul 27 10:02:13 2017 +0000 Build fix From-SVN: r6386 commit d9060f17ff9e21d74449f9912baf35719c92139b Author: Richard Gobeille Date: Thu Jul 27 09:13:37 2017 +0000 I think this fixes readarrayfromfile and writearraytofile From-SVN: r6385 commit f56330e0ea0ffbfa979bed90bf5bed291915c3b6 Author: Richard Gobeille Date: Thu Jul 27 09:13:32 2017 +0000 Fix issue with r6374 From-SVN: r6384 commit 19b505134686ba7835712c2515e761ecbacb0c80 Author: Richard Gobeille Date: Thu Jul 27 09:13:26 2017 +0000 Fix console background when using oversized font characters From-SVN: r6383 commit 6713345b668a7295151381b97c42c222aee1cedf Author: Richard Gobeille Date: Thu Jul 27 09:13:21 2017 +0000 CON-solidation Sorry for the shitty pun From-SVN: r6382 commit 93a1a74c52b1292eefb8c537bd28c50bf7b8f4ef Author: Richard Gobeille Date: Thu Jul 27 09:13:15 2017 +0000 Switch allocation of sprite/wall/sector to individual aligned allocations instead of the weird thing I was doing with multiple pointers to different parts of a single large block From-SVN: r6381 commit de378170276cfb2fdedfccaa62fef2c394789e37 Author: Richard Gobeille Date: Thu Jul 27 09:13:09 2017 +0000 Set default number of voices to 256, remove voices option from menu when compiled with SIMPLE_MENU=1 From-SVN: r6380 commit 91448d35ef9e0534369d682b54eff53aab5280e3 Author: Evan Ramos Date: Sat Jul 22 04:00:33 2017 +0000 mdsprite: Augment or revert portions of r4639. Substantial work done in md3postload_common, md3postload_polymer_check, and md3postload_polymer. From-SVN: r6379 commit 47cbb8c383faf53ae462324fc92230fdd18ff0e2 Author: Evan Ramos Date: Sat Jul 22 04:00:30 2017 +0000 inthi_rintf From-SVN: r6378 commit 2239d1b56c161d605070a9fa4eef426f6d2475d3 Author: Evan Ramos Date: Sat Jul 22 04:00:26 2017 +0000 Menu stuff From-SVN: r6377 commit 21b0a5669579305eb7723ea10875a2aef9292423 Author: Evan Ramos Date: Sat Jul 22 04:00:23 2017 +0000 Duke 3D: Make the OSD use tilesizes to determine character positioning instead of hardcoded constants. From-SVN: r6376 commit a1131876f22682f8c8f9afef2eb6950f09c98743 Author: Evan Ramos Date: Sat Jul 22 04:00:20 2017 +0000 compat.h: Update ssize_t under MSVC. From-SVN: r6375 commit cf353518ee0fb6325e7074fcc75c1b91a862981d Author: Evan Ramos Date: Sat Jul 22 04:00:18 2017 +0000 compat.h: Update u/native_t by introducing reg_t from LZ4. From-SVN: r6374 commit 634d77eb1cff297d1605c7b4d8ed7b74ddcc63c2 Author: Evan Ramos Date: Sat Jul 22 04:00:13 2017 +0000 Add a fallthrough__ entry for VS. From-SVN: r6373 commit cb97e3a76b012e10ff18e52defa8f1b7aa30ae5c Author: Richard Gobeille Date: Thu Jul 20 08:57:50 2017 +0000 Another attempt at fixing the problems caused by my recent changes to gamearrays From-SVN: r6372 commit 8ff6962ed38caf1aa043691f8d57b06c99e25d3a Author: Richard Gobeille Date: Wed Jul 19 06:06:19 2017 +0000 derp From-SVN: r6371 commit 68d7e01ac0f48c618464dc761d8345259b7feb64 Author: Richard Gobeille Date: Tue Jul 18 20:53:41 2017 +0000 Fix gcc 7.1.0 warnings From-SVN: r6370 commit 4179296f0c9f3a54925db76fc869666b2a200f75 Author: Richard Gobeille Date: Tue Jul 18 20:53:27 2017 +0000 Add /std:c++latest parameter to MSVC makefile From-SVN: r6369 commit 76773c871fddc96e4bb125b22ec92ee8342afa2c Author: Richard Gobeille Date: Tue Jul 18 20:53:22 2017 +0000 Maybe, possibly, unfuck gamearrays. From-SVN: r6368 commit 9de487dc03cf656b05ef2e530b40c1ec085a4104 Author: Richard Gobeille Date: Tue Jul 18 20:53:15 2017 +0000 Improve C_AddDefaultDefinitions() From-SVN: r6367 commit 09417adeb54b49f4c7abb65117ee08a9a6f3a551 Author: Richard Gobeille Date: Tue Jul 18 20:53:10 2017 +0000 Remove extraneous "updated cfgname.cfg" message From-SVN: r6366 commit 0bb1ba5ab96bebb374786394c1f82c68e6d1b1ce Author: Richard Gobeille Date: Tue Jul 18 20:53:00 2017 +0000 Drop libpng and zlib in favor of a custom < 100 line .png writer and a drop-in zlib replacement called miniz. From-SVN: r6365 commit 37811ef6a5cbcc4cfa6346a5097fdf7fd23364ed Author: Richard Gobeille Date: Tue Jul 18 20:52:42 2017 +0000 Fix building with Clang From-SVN: r6364 commit 0133d24f70e068a0bdc5177e208855704fa1df48 Author: Richard Gobeille Date: Tue Jul 18 20:52:36 2017 +0000 Fix compiler warning From-SVN: r6363 commit 17df123f2045136b9045fe033c6894fed66c1541 Author: Evan Ramos Date: Sat Jul 15 21:56:21 2017 +0000 Fix some int/int32_t mismatches. DONT_BUILD. From-SVN: r6362 commit 8ae6cf2de248caef8023d8f5509ddf19b1913b8c Author: Evan Ramos Date: Sat Jul 15 21:56:17 2017 +0000 Fix USE_OPENGL=0 build. From-SVN: r6361 commit 5e1113ce02ede0d7e8204b589391cd240b81b60c Author: Evan Ramos Date: Sat Jul 15 21:56:12 2017 +0000 CON: ifspawnedby and ifwasweapon are really the same command. Merge the code to execute them. From-SVN: r6360 commit 6ee22b2ef088c0d1291b81c66c2ee8a532db8619 Author: Richard Gobeille Date: Wed Jul 12 04:10:37 2017 +0000 Fix issue with changing settings in the startup window From-SVN: r6359 commit e3dfc034b96afcb3abd62f20eec5312afd400493 Author: Richard Gobeille Date: Wed Jul 12 04:10:29 2017 +0000 "qputs" alias for "redefinequote" From-SVN: r6358 commit 0d23ae974fb4843a449655913734cbd0887c52c5 Author: Richard Gobeille Date: Tue Jul 11 04:03:01 2017 +0000 More array work: support for reading and writing the new array types from disk. Not tested. From-SVN: r6357 commit af8289d8e79a013fe656ccec074272546fbfa89f Author: Richard Gobeille Date: Tue Jul 11 04:02:52 2017 +0000 Syntax changes for gamevar and gamearray declarations: Gamevar: default value and flags are now optional. A var declared without a value will default to 0 and a var declared without flags will default to global. Multiple flags can now be stacked one after another in a var declaration, and the most useful ones (GAMEVAR_PERPLAYER, GAMEVAR_PERACTOR, GAMEVAR_NODEFAULT, and GAMEVAR_NORESET) are now pre-defined tokens for easy use. Gamearray: flags field now allows stacking of multiple flags as described above. Arrays can now be defined with specific data types, including int16_t, uint8_t, and a new bit-packed boolean data type. The tokens GAMEARRAY_RESTORE, GAMEARRAY_INT16, GAMEARRAY_UINT8, and GAMEARRAY_BOOLEAN are pre-defined for use of this feature. This is all still pretty experimental. From-SVN: r6356 commit 407ce1dfa380f63a2d8dbd52e8ae1900e9d72610 Author: Evan Ramos Date: Mon Jul 10 13:44:10 2017 +0000 Polymer: Address an oversight in r4600. From-SVN: r6355 commit f44f1c1631b5f40aa44aa6e23115867ba4647262 Author: Evan Ramos Date: Mon Jul 10 13:44:07 2017 +0000 Menus: Draw most text using YCenter and YOffsetZero modes to facilitate certain kinds of visual cues. From-SVN: r6354 commit d54a919a1892a0f608a927d6323447d48f555e0d Author: Evan Ramos Date: Mon Jul 10 13:44:04 2017 +0000 compat.h: Add preliminary FALLTHROUGH macro to support From-SVN: r6353 commit 429c2ed81aef03f2dfe6a1fb60c8867739fbafdc Author: Evan Ramos Date: Mon Jul 10 13:44:01 2017 +0000 Add an error directive to C++ standards versions < 2011. From-SVN: r6352 commit cac05d55bc8e852e4a5101bbc831cc2ceac64fe6 Author: Evan Ramos Date: Mon Jul 10 13:43:57 2017 +0000 Add a THISACTOR for tiledata and paldata, referring to the current actor's picnum and pal. From-SVN: r6351 commit c0f58ac82aaa59dcd4378864e7480d850035fa72 Author: Evan Ramos Date: Mon Jul 10 13:43:54 2017 +0000 Fix a bug with undefinegamefunc breaking the key configuration menu. From-SVN: r6350 commit 15632375956d40ab58d2c03fbabbb484edf1b478 Author: Evan Ramos Date: Mon Jul 10 13:43:50 2017 +0000 Remove special limitations on CON customization access to the DNCGS cheat. From-SVN: r6349 commit 332b344e6d3e0bd2a9c002eaca4be6bc4dc85e96 Author: Richard Gobeille Date: Sat Jul 8 22:01:59 2017 +0000 What a hilarious typo From-SVN: r6348 commit cfcba06c30409d2e590382081bf778abe0be5e81 Author: Richard Gobeille Date: Sat Jul 8 19:42:11 2017 +0000 Allow scripts to change MAXSPRITESONSCREEN before calls to drawrooms() and friends From-SVN: r6347 commit 6778455f3363bfd3cee7b74990ea1474d8895b77 Author: Richard Gobeille Date: Sat Jul 8 19:42:01 2017 +0000 Check constants before THISACTOR in Gv_GetManyVars(). Seems much more likely to be true. From-SVN: r6346 commit 72007bf12e05011ce16357872c23efec9288cc27 Author: Richard Gobeille Date: Sat Jul 8 19:41:55 2017 +0000 Revise some CON VM error messages for consistency. Upgrade a couple of CON VM errors to a new critical error type which pops up a dialog box when the error is encountered. If you've been writing crappy scripts that spam "divide by zero!" errors into the log that you've been ignoring, you're gonna have a bad time. From-SVN: r6345 commit f4ade6a138d8c9e5a2ab62fbfcf3d3327d13c2b2 Author: Richard Gobeille Date: Sat Jul 8 19:41:49 2017 +0000 Reduce MAXSPRITESONSCREEN from 4096 to 2048. Email me if you have a map so poorly designed that this actually breaks something! From-SVN: r6344 commit aa7cff6d7fb9ae08fc2ce5320fcaf05b6a7f80b8 Author: Richard Gobeille Date: Sat Jul 8 19:41:43 2017 +0000 Some work on CON arrays. Hopefully nothing is broken! From-SVN: r6343 commit 31879cf5e9ff2f3f3477fba54350a6ed791400e5 Author: Richard Gobeille Date: Sat Jul 8 19:41:36 2017 +0000 Add support for bitmap gamearrays and expose gotpic to CON From-SVN: r6342 commit 1e590446fca1fded7863ae50698897cfef1a209e Author: Richard Gobeille Date: Sat Jul 8 19:41:29 2017 +0000 Change wordy error message I didn't like From-SVN: r6341 commit eec2a66f62b02db632ec49a6bcfa567fe912a4f8 Author: Richard Gobeille Date: Sat Jul 8 19:41:21 2017 +0000 Fix old Build engine bug: setgotpic() not called from parascan() From-SVN: r6340 commit 9df3042826e0b1ff4c45bcc4ad56751a93151663 Author: Richard Gobeille Date: Sat Jul 8 05:18:51 2017 +0000 Read setup again after compiling scripts From-SVN: r6339 commit 960b81d5c15a3e20638ce7fee6c6b9afa32c3790 Author: Richard Gobeille Date: Sat Jul 8 05:18:43 2017 +0000 Allow writing to 8 and 16-bit CON arrays From-SVN: r6338 commit 6f1bd490f28b5fe403dde646f792ec8ba24d1cb2 Author: Richard Gobeille Date: Sat Jul 8 01:48:01 2017 +0000 Fix out of bounds write caused by memset call missed when tilesiz was changed from vec2_t to vec2s_t From-SVN: r6337 commit 6437061f54e191990d8687fd28a8496d4b2d16e3 Author: Richard Gobeille Date: Fri Jul 7 22:50:47 2017 +0000 script command aliases From-SVN: r6336 commit ca183524b9303b1a9d1ba22e8cefea8be007d35f Author: Richard Gobeille Date: Fri Jul 7 22:50:42 2017 +0000 Internal menu tweaks From-SVN: r6335 commit 6d8a8448798a65dde36545eeab30be6ab8a7cd4f Author: Richard Gobeille Date: Fri Jul 7 22:50:37 2017 +0000 Minor mact cleanup From-SVN: r6334 commit b2b70d9d7cbf0066aef37b9d9c00c2a6d692f003 Author: Richard Gobeille Date: Fri Jul 7 22:50:29 2017 +0000 Remove errant EDUKE32_PREDICT_FALSE From-SVN: r6333 commit 2eb9b6286edcbce9348c014005cabdd548c1555d Author: Evan Ramos Date: Thu Jul 6 14:43:17 2017 +0000 Allow certain debugging-specific cheats to be used from the console even in skill 4. From-SVN: r6332 commit 3c56a8b18047500ee5623bea884113a4bfb19d95 Author: Evan Ramos Date: Thu Jul 6 14:43:14 2017 +0000 Turn DWM composition toggling (Windows Vista and 7 only) off by default. We should only turn this on in specific cases, and turning it off by default will allow us to add these special cases as we get reports. From-SVN: r6331 commit 9ea797738666ab8484b1dd200eaffba1b406ccba Author: Evan Ramos Date: Thu Jul 6 14:43:11 2017 +0000 Menus: Use screentext's newline support for more mgametext. From-SVN: r6330 commit 3440db360f8e59055f79639a193edbb629abbe14 Author: Evan Ramos Date: Thu Jul 6 14:43:07 2017 +0000 Menu stuff From-SVN: r6329 commit 733ddfd56b4533812367589a3f19bcf54d202873 Author: Richard Gobeille Date: Wed Jul 5 05:42:54 2017 +0000 Combine CONTROL_KeyBinds and CONTROL_MouseBinds From-SVN: r6328 commit b7bf283564c955d5b881842f883523434c0b5dc7 Author: Richard Gobeille Date: Wed Jul 5 05:42:47 2017 +0000 More command line parameter help text cleanup From-SVN: r6327 commit bef78ee918e68b489b34d524eddc1c1df306c84c Author: Richard Gobeille Date: Wed Jul 5 05:42:42 2017 +0000 Revise the error message for the default case in VM_Execute() From-SVN: r6326 commit bd1ba982a10dab0ea20a7fc1d52687add2e4f407 Author: Richard Gobeille Date: Wed Jul 5 05:42:37 2017 +0000 Add OSD_PROTECTED flag, set when gamefunc_Show_Console has been undefined from CON. Currently just requires you hold down shift when pressing the console key to open the console. From-SVN: r6325 commit 8665c693b9ee1e3851c7b070818ff092fd989db1 Author: Richard Gobeille Date: Wed Jul 5 05:42:29 2017 +0000 "Keyboard Keys" -> "Key Configuration" From-SVN: r6324 commit bfa20fd0fc4be1733a9623c2c70da67edfa1b253 Author: Evan Ramos Date: Wed Jul 5 05:38:11 2017 +0000 Gv_FillWithVars From-SVN: r6323 commit 76ceb31de1b6dbda3b99a5ddd9fea73327e593b1 Author: Evan Ramos Date: Wed Jul 5 05:38:08 2017 +0000 Add "activatecheat" console command. From-SVN: r6322 commit 1d530f83b2af0c4c02a80817c5830353d0b2f6fa Author: Evan Ramos Date: Wed Jul 5 05:38:05 2017 +0000 Move addammo into own function. From-SVN: r6321 commit ef41cde00ca77ef5939c269b44bbe6656286eea9 Author: Evan Ramos Date: Wed Jul 5 05:38:02 2017 +0000 Move addinventory command code into its own function. From-SVN: r6320 commit 3ac6f4d5c12f95a735ea85e6cec4642a282584e2 Author: Evan Ramos Date: Wed Jul 5 05:37:58 2017 +0000 Factor out modification of DukePlayer_t->actors_killed into P_AddKills(). From-SVN: r6319 commit 2e233340e33925edce949ae91474ef0a6012b75d Author: Evan Ramos Date: Wed Jul 5 05:37:55 2017 +0000 Double the default pointhighlightdist from 128 to 256, a compromise between reverting r5721 and resetting it to 512. From-SVN: r6318 commit 86346d8b1713363d6257f6481b24d28f3c460dba Author: Evan Ramos Date: Wed Jul 5 05:37:52 2017 +0000 Don't execute setcfgname if the provided name is the same as the one already in place. From-SVN: r6317 commit ef17993f096d39984970b300b8d02f9f9f4609f0 Author: Evan Ramos Date: Wed Jul 5 05:37:49 2017 +0000 Menu stuff From-SVN: r6316 commit 69dc7023fcf7e7d313cf0bba4bc99454c00dd59a Author: Evan Ramos Date: Wed Jul 5 05:37:46 2017 +0000 Menus: Wrap Menu_Find in Menu_FindFiltered to factor out id filtering for all cases that need it. From-SVN: r6315 commit 1d73f08121fecfd3509cf098de1c7f9ae6b75a4e Author: Evan Ramos Date: Wed Jul 5 05:37:43 2017 +0000 Menus: Improve handling of the color correction screen. From-SVN: r6314 commit 45a46db15143eceb827d65da5a1e0295c5adf5b7 Author: Evan Ramos Date: Wed Jul 5 05:37:39 2017 +0000 Fix a small regression with actions and improve performance while we're at it. From-SVN: r6313 commit 55f6a3981fac429d2de675421d61fdaf4ebab8b5 Author: Evan Ramos Date: Wed Jul 5 05:37:35 2017 +0000 Remove register keyword from LZ4 and libxmp-lite. From-SVN: r6312 commit dac3e36f122a3d9dc45971ef15e361a87071b77c Author: Richard Gobeille Date: Sun Jul 2 00:44:36 2017 +0000 Derp From-SVN: r6311 commit 78739100d5f635c84bc49705c0f4c6056837c124 Author: Richard Gobeille Date: Sun Jul 2 00:44:30 2017 +0000 Makefile changes required for MSYS2 builds to be functional again From-SVN: r6310 commit 327606fc49540e383ae469b5bc484e8a10cbe964 Author: Richard Gobeille Date: Sun Jul 2 00:44:24 2017 +0000 Revert part of r6230 From-SVN: r6309 commit 97bc98de50b538eeb81b948e027ac643e1af4e72 Author: Evan Ramos Date: Wed Jun 28 10:55:41 2017 +0000 Revise r6305. From-SVN: r6308 commit cc51b6005eb15515da80690f9d462b5948928297 Author: Evan Ramos Date: Tue Jun 27 11:01:38 2017 +0000 Optimize getofs_viewtype for precision and speed. From-SVN: r6307 commit 02d036f971bb2ceead996f1fc84d5319e7b34455 Author: Evan Ramos Date: Tue Jun 27 11:01:34 2017 +0000 Add action viewtypes 12 (like 7 but not mirrored), 9, and 16. From-SVN: r6306 commit 5ebd35ab0d2c015336f9302856e05aac109f1805 Author: Evan Ramos Date: Tue Jun 27 11:01:30 2017 +0000 Templatize getofs_viewtype functions. From-SVN: r6305 commit dbdb524f970067fcb24c531c9e47c6a4ee9f02f3 Author: Evan Ramos Date: Tue Jun 27 11:01:26 2017 +0000 When calculating which rotation to use for CON action viewtype 7, offset the frame intervals by 15 degrees instead of 22.5, clearly a copypaste error from viewtypes 5 or 8. Now these are properly centered. From-SVN: r6304 commit 9474ae7d0adf7e4bc774d8a0bf4cada914af8630 Author: Evan Ramos Date: Tue Jun 27 11:01:22 2017 +0000 Trailing whitespace. From-SVN: r6303 commit a7c2f5402ad10a86ebdd8975de242f00854ee1e6 Author: Evan Ramos Date: Tue Jun 27 11:01:12 2017 +0000 What the last commit said. From-SVN: r6302 commit a523fa2012562f0ed139ab3a8459a5d0ca3c6e78 Author: Richard Gobeille Date: Tue Jun 27 02:44:11 2017 +0000 Derp From-SVN: r6301 commit 33d5fa135930b7d63f20bc20c48f06b0482bd445 Author: Richard Gobeille Date: Tue Jun 27 02:24:34 2017 +0000 Texcache cleanups. No longer allocates a 256 byte buffer for every cache entry's name. From-SVN: r6300 commit 7e999cb5536a6bac3d939b6e76c5fef494cb0cc9 Author: Richard Gobeille Date: Tue Jun 27 02:24:28 2017 +0000 scriptfile.[cpp|h] cleanups From-SVN: r6299 commit 40248e8015cec560c582752bfa59789acf133142 Author: Richard Gobeille Date: Tue Jun 27 02:24:22 2017 +0000 Fix flickering text on the bonus screen. Derp. From-SVN: r6298 commit 4f5a00147a1137c9b6a028173f78be5161f300e9 Author: Richard Gobeille Date: Tue Jun 27 02:24:14 2017 +0000 OSD (console) cleanup From-SVN: r6297 commit 84704d843fcad7f80732aaa2f4fb058bc73de57e Author: Richard Gobeille Date: Tue Jun 27 02:24:02 2017 +0000 Inconsequential formatting From-SVN: r6296 commit 01cf46a50bdfa764a0a41dea30590e8ef112648e Author: Richard Gobeille Date: Tue Jun 27 02:23:57 2017 +0000 Fix something stupid I noticed From-SVN: r6295 commit eb83cec9018ae96d2607584858dc2a07e8efc9dc Author: Richard Gobeille Date: Tue Jun 27 02:23:51 2017 +0000 Fix bug with setuserdef vm_sprite From-SVN: r6294 commit 8045c1d85386978be1c9f727bf5fad3bb5e26427 Author: Richard Gobeille Date: Tue Jun 27 02:23:46 2017 +0000 Templatize the clamp functions From-SVN: r6293 commit 53918f4029065d4d0ff5dad030eef031d1de0dc9 Author: Richard Gobeille Date: Tue Jun 27 02:23:40 2017 +0000 Reduce MAXVOXELS to 1024. From-SVN: r6292 commit a956498cef4cfb9d3e327e36e89ba8f768af187d Author: Richard Gobeille Date: Tue Jun 27 02:22:42 2017 +0000 Respect APPBASENAME when showing command line help From-SVN: r6291 commit aa6fb9f86371d5a6a22fb89ec933b26f9110dd01 Author: Evan Ramos Date: Tue Jun 27 01:50:59 2017 +0000 Fix crash when attempting to play an IVF video in 8-bit. From-SVN: r6290 commit 1c15bb42c2f04d8cf153d793fb38ce236f09cf8e Author: Evan Ramos Date: Tue Jun 27 01:50:55 2017 +0000 Menu stuff From-SVN: r6289 commit 77e09aaddec1b335ad4472c635141dbf3711cd2a Author: Evan Ramos Date: Tue Jun 27 01:50:48 2017 +0000 Fix standalone warnings. From-SVN: r6288 commit 54f1eea5791f2d1f22bb9319a8872491158ac71f Author: Evan Ramos Date: Sun Jun 25 11:24:43 2017 +0000 When playing an IVF upgraded from an ANM and no sound list has been defined for the IVF, use the ANM's sound list by converting framerates. From-SVN: r6287 commit 0a40431a90f607e13da67b6bad897eac11dc2552 Author: Evan Ramos Date: Sun Jun 25 11:24:39 2017 +0000 If an ANM is upgraded to an IVF, use the sounds defined for the .ivf if any have been. From-SVN: r6286 commit ce52a8d44a844b67f56c60ddffdc08d627fef212 Author: Evan Ramos Date: Sun Jun 25 11:24:34 2017 +0000 Replace sound_func function pointer parameter and associate functions for hardcoded ANMs with equivalent animsounds arrays. From-SVN: r6285 commit 2013cbc4ff7154d3360b0bf5adf1322960d1b7bb Author: Evan Ramos Date: Sun Jun 25 11:24:27 2017 +0000 Let animsound value -1 stop all sounds. From-SVN: r6284 commit c50949ee255f36fbfe3197114099e152500cefbc Author: Evan Ramos Date: Sun Jun 25 11:24:23 2017 +0000 Game defs: Add sounds sub-token to cutscene token that functions identically to animsounds. From-SVN: r6283 commit 5d4a46d74972f9ee87aa29d9b0a8eb206492388f Author: Evan Ramos Date: Sun Jun 25 11:24:19 2017 +0000 Structify animsounds arrays. From-SVN: r6282 commit 1a80969c2b6733052f096d8c39e78df4dc95937f Author: Evan Ramos Date: Sun Jun 25 11:24:14 2017 +0000 Structify the hardcoded Anim_Setup calls. From-SVN: r6281 commit 430b84100eeda1218393a939502938dd58b54373 Author: Evan Ramos Date: Sun Jun 25 11:24:10 2017 +0000 Game defs: Split Anim_Create out of Anim_Setup and use it for the cutscene token. From-SVN: r6280 commit bebd22d8ef721a68f5ca3085c700a1a820d86488 Author: Evan Ramos Date: Sun Jun 25 11:24:06 2017 +0000 Don't stutter for 1/12 second before starting an ANM. From-SVN: r6279 commit a46f3664b6b7ae25daa3b1ffd03a0ebaeac162ed Author: Evan Ramos Date: Sun Jun 25 11:24:02 2017 +0000 Game defs: Try loading def modules even if the engine reports failure. From-SVN: r6278 commit c89b8f0c61bcc1972e421e18d4d181868626d55e Author: Evan Ramos Date: Sun Jun 25 11:23:58 2017 +0000 CON: Add wall.blend to structure access. From-SVN: r6277 commit de22831e1a19e97f6f4b75cdd80675a84c8d2f59 Author: Evan Ramos Date: Sun Jun 25 11:23:53 2017 +0000 Add a wallext structure for non-Lunatic builds so they can have a blend member too. From-SVN: r6276 commit 5e2e9dd70a20118ba349c9d55b6123306401c3ec Author: Evan Ramos Date: Sun Jun 25 11:23:47 2017 +0000 Connect wall.blend to Polymost in Lunatic builds with it enabled. From-SVN: r6275 commit da74c238f36be1de3f8a05cce1fcda9ddb1c5e24 Author: Evan Ramos Date: Sun Jun 25 11:23:41 2017 +0000 Fix Lunatic build. From-SVN: r6274 commit ef7c6f77c0480de6f4ce8ed75c00e0730c272df4 Author: Richard Gobeille Date: Sat Jun 24 21:18:18 2017 +0000 More standalone stuff From-SVN: r6273 commit f7288a5b3cd01c733a863ac5f4eca8f225722038 Author: Richard Gobeille Date: Sat Jun 24 21:18:12 2017 +0000 Workaround for MSVC bug From-SVN: r6272 commit de287c109690f88a244584fed36c789754a92c0b Author: Richard Gobeille Date: Sat Jun 24 21:18:06 2017 +0000 Remove some Duke-specific screen displays from standalone builds From-SVN: r6271 commit fad81b92dc6f55c7ce112a65015593e50c8c2f3c Author: Richard Gobeille Date: Sat Jun 24 21:17:59 2017 +0000 Fix command line help window in builds with the startup window disabled From-SVN: r6270 commit a6a5bf70b79a63335bd145e402ce2a1eb66896dd Author: Richard Gobeille Date: Sat Jun 24 21:17:53 2017 +0000 Clean up command line parameter help text From-SVN: r6269 commit 4a9674678193415a5c1115fad09aca21e7a9f805 Author: Richard Gobeille Date: Sat Jun 24 21:17:46 2017 +0000 Fix swapped EDUKE32_STANDALONE ifdefs for screenshot filenames From-SVN: r6268 commit 1872c7813064748a8151b213996e311372a58c4f Author: Richard Gobeille Date: Sat Jun 24 21:17:38 2017 +0000 Don't try to load duke3d.cfg in standalone builds From-SVN: r6267 commit bd652f27d120613688f40513c87d437b43a45e62 Author: Richard Gobeille Date: Sat Jun 24 21:17:33 2017 +0000 Rename snd_duketalk cvar to snd_speech From-SVN: r6266 commit 1d1fa2ddf612c6fd21fa5e130acb65c4a03da82b Author: Richard Gobeille Date: Sat Jun 24 21:17:26 2017 +0000 Revise r6253 From-SVN: r6265 commit 2385f69ab0d03ea5bdd43ed20cd5dc7690926968 Author: Richard Gobeille Date: Sat Jun 24 21:16:43 2017 +0000 Rename two misnamed variables From-SVN: r6264 commit 9345b49facf6d476daa446d484dd5394ebcdb195 Author: Evan Ramos Date: Sat Jun 24 09:21:13 2017 +0000 Shrink the tilesiz vector to use int16_t members as the original arrays were. From-SVN: r6263 commit 2df6588206742349fd1a746fdc14f9e3fa714143 Author: Evan Ramos Date: Sat Jun 24 09:21:07 2017 +0000 CON: Add EVENT_PRELOADGAME and EVENT_POSTLOADGAME. From-SVN: r6262 commit d3e32d2262d208bcf593d6b4df1c05da7f2fd04d Author: Evan Ramos Date: Sat Jun 24 09:21:03 2017 +0000 CON: Add drawline256 and drawlinergb commands that call the internal functions used for the automap lines. drawline256 drawlinergb The coordinates are xdim<<12/ydim<<12 based, not 320<<16x200<<16. is a palette index, and for drawlinergb is used as a fallback in the software renderer. is encoded the same as PROJ_FLASH_COLOR. From-SVN: r6261 commit 11e5b690ee2c5a7cd26c2af4917b20b34bbaec88 Author: Evan Ramos Date: Sat Jun 24 09:20:58 2017 +0000 Add internal drawlinergb function. From-SVN: r6260 commit f7e86556f728ce1fb75279df5bb9175b6efc7839 Author: Evan Ramos Date: Sat Jun 24 09:20:54 2017 +0000 CON: Add getclosestcol command, which finds the closest palette index given getclosestcol is encoded the same as PROJ_FLASH_COLOR. is the index of the last palette color that should be considered. Use 255 for the whole palette, 254 to exclude the transparent color, 239 to exclude Duke 3D's fullbrights, etc. From-SVN: r6259 commit 9794556ed2a679b3c13698ad6f534ebf746fb6ed Author: Evan Ramos Date: Sat Jun 24 09:20:50 2017 +0000 CON: Add EVENT_DISPLAYOVERHEADMAPTEXT. Set RETURN to any non-zero value to disable hardcoded display of text. If you wish to replace the hardcoded text, you must check that userdef[].overhead_on == 2 yourself. From-SVN: r6258 commit 6837b04a927cbb71dbda49781b138679fa7305b3 Author: Evan Ramos Date: Sat Jun 24 09:20:46 2017 +0000 Replace specialized swap C functions with a templatized version. From-SVN: r6257 commit 87853f6f8a9aada320e6d2e5407dfe82a1f2f9fe Author: Evan Ramos Date: Sat Jun 24 09:20:42 2017 +0000 scale(1<<##, b, c) --> divscale##(b, c) From-SVN: r6256 commit 4d0cb49ec4e05fd477bc40eff92b026716629725 Author: Evan Ramos Date: Sat Jun 24 09:20:37 2017 +0000 scale(a, b, 1<<##) --> mulscale##(a, b) From-SVN: r6255 commit 3e8a0819eb7f62f5d3c96663429f53a9af8befef Author: Evan Ramos Date: Sat Jun 24 09:20:21 2017 +0000 mulscale(a, b, ##) --> mulscale##(a, b) From-SVN: r6254 commit ac64e11553344084753cdd75abd898ec2c725a16 Author: Richard Gobeille Date: Sat Jun 24 06:31:37 2017 +0000 Fix buggy swinging door behavior From-SVN: r6253 commit 1d3769db5b1d4c2ad22c387cab7e45ef53e005a2 Author: Richard Gobeille Date: Sat Jun 24 06:31:32 2017 +0000 Dicking around with inlined actor header functions From-SVN: r6252 commit 752deeea5999b50b5ad1f1b159d59d9563cdf5e4 Author: Richard Gobeille Date: Sat Jun 24 06:31:26 2017 +0000 Revise r6225 From-SVN: r6251 commit ba2180f7ed90e6d0424ac18e7bae81b4ae49bec3 Author: Richard Gobeille Date: Sat Jun 24 06:31:21 2017 +0000 Potential CON performance improvements From-SVN: r6250 commit 01d4d8e3ef255218f805ab137a26b857c94cd45e Author: Richard Gobeille Date: Sat Jun 24 06:31:12 2017 +0000 Clamp r_maxfps to a minimum of 30 if not 0 From-SVN: r6249 commit c89fb2e4199a78ab60da671a790e28b88aef2bb1 Author: Evan Ramos Date: Fri Jun 23 09:17:12 2017 +0000 Polymost: Fix yoffset bouncing of face sprites with cstat 128. From-SVN: r6248 commit 380463062cc4536fc8b6d0a936a36579ed9d6e00 Author: Evan Ramos Date: Fri Jun 23 09:17:07 2017 +0000 r6210 inadvertantly forced orientation bit 2 for internal gametext. Tidy up affected text. From-SVN: r6247 commit 91bcdaff5d136a2683cca4d6dc47129690718319 Author: Richard Gobeille Date: Fri Jun 23 09:16:33 2017 +0000 More misc small cleanups. DONT_BUILD. From-SVN: r6246 commit cf07c8e632da7a000edef7e327d98b289bd7b707 Author: Richard Gobeille Date: Fri Jun 23 09:16:27 2017 +0000 :( From-SVN: r6245 commit b757cdc4bc24a7f7f33830058fc2b04961bb43a1 Author: Richard Gobeille Date: Fri Jun 23 09:16:21 2017 +0000 Misc cleanups, mostly const correctness From-SVN: r6244 commit 09ad9bc8a2d93aae64c6a5f2ead8e761a17a5b3c Author: Richard Gobeille Date: Fri Jun 23 09:16:13 2017 +0000 Can Duke3D CON version compatibility messages in standalone builds From-SVN: r6243 commit 5970e1a0598365f75e31612f8e402abac9fb031a Author: Richard Gobeille Date: Fri Jun 23 04:32:23 2017 +0000 Revise r6239 From-SVN: r6242 commit faa2b0ecc4c5d161ffddf9acfd8ac10a2d58df5c Author: Richard Gobeille Date: Fri Jun 23 04:32:16 2017 +0000 Revise r6235 From-SVN: r6241 commit 680fa30f51f4370d201bec1f4405c1a69fa8b7ad Author: Richard Gobeille Date: Fri Jun 23 04:01:03 2017 +0000 Revert test change I accidentally committed From-SVN: r6240 commit e4b8564ca8f16b20b25dba14f0a823bbd5f9f2a1 Author: Richard Gobeille Date: Fri Jun 23 03:59:39 2017 +0000 Further reorganization of actor_t. BYTEVERSION bumped. From-SVN: r6239 commit 30336df219ecfd3d470932755d0504a9435ccac4 Author: Richard Gobeille Date: Fri Jun 23 03:59:32 2017 +0000 Make r_showfps 2 work a little bit better From-SVN: r6238 commit 8df70797822732c692e5029dd9605316e7641c97 Author: Richard Gobeille Date: Fri Jun 23 03:59:26 2017 +0000 Respect r_maxfps in menus and on startup/bonus/end screens From-SVN: r6237 commit 72ceebeb60dfa3d389720d6d75a6ec5a45a73218 Author: Richard Gobeille Date: Fri Jun 23 03:59:19 2017 +0000 More minor optimizations. Breaks savegames. From-SVN: r6236 commit 8b5c7adbd25e0503f01ed7915660f621f7c4545e Author: Richard Gobeille Date: Fri Jun 23 03:59:11 2017 +0000 Minor optimizations From-SVN: r6235 commit fef5c2a07d7b950c242451a1bede2d4ad5c9a58a Author: Richard Gobeille Date: Fri Jun 23 03:59:06 2017 +0000 Gamevar cleanup From-SVN: r6234 commit 981a3444d88a04103a52e4d178b10c12d43e0eec Author: Richard Gobeille Date: Fri Jun 23 03:59:00 2017 +0000 Use macros for special gamevar access range checking From-SVN: r6233 commit 4da9e09cf8895ae7bdbe0e46903605a0c9adec60 Author: Richard Gobeille Date: Fri Jun 23 03:58:54 2017 +0000 Consty McConst From-SVN: r6232 commit 8d27612364fce9539f86fc3fc9106a4d75ba8bc6 Author: Richard Gobeille Date: Fri Jun 23 03:58:48 2017 +0000 Replace 2 memcpys with assignments From-SVN: r6231 commit bcba422e1e0d69ed18b10b852310b8a96da9deb4 Author: Richard Gobeille Date: Fri Jun 23 03:58:43 2017 +0000 Add clipdist member to player struct to control how close the player can get to walls From-SVN: r6230 commit f0027759c5036d077941ae8ecf39216e2f37afc1 Author: Richard Gobeille Date: Fri Jun 23 03:58:36 2017 +0000 Remove "BUILD_NOP6", old cruft for running on ancient x86 processors without MMX. From-SVN: r6229 commit 3d6f9b5870cfd00e9b037560ed04576fb951346d Author: Richard Gobeille Date: Fri Jun 23 03:58:31 2017 +0000 Minor classic mode optimization From-SVN: r6228 commit 6e9b5f543684d5e8843f22bf9a54ed42d271250d Author: Richard Gobeille Date: Fri Jun 23 03:58:26 2017 +0000 Only show "using dynamic tile remapping" message in debug builds. DONT_BUILD. From-SVN: r6227 commit c4bf1234e65a721923a69781bb08d54557a296da Author: Richard Gobeille Date: Fri Jun 23 03:58:21 2017 +0000 Remove unused member from actor_t From-SVN: r6226 commit c8de1b0e56772626c13765c7134cf2e5ddde316a Author: Richard Gobeille Date: Fri Jun 23 03:58:13 2017 +0000 Change hard-coded subway effect damage to generic explosive damage that can be handled by CON. Fixes subway kills not counting toward the dead monster count and allows CON scripts to handle subway damage however they like. From-SVN: r6225 commit acfade1a812f6a5267be9c652e19c34941ded026 Author: Richard Gobeille Date: Fri Jun 23 03:58:08 2017 +0000 Fix issue with hud_bgstretch cvar overwriting adjacent values in memory From-SVN: r6224 commit 093e37c341d0c669b9794f532d49eb6be7e7e80e Author: Richard Gobeille Date: Fri Jun 23 03:58:01 2017 +0000 Move Mapster32 autoexec to before the map specified on the command line is loaded, to allow EVENT_PRELOADMAP and EVENT_LOADMAP to work when loading a map from the command line. This makes the console output of autoexec a little worse but the OSD will be fixed at a later time. From-SVN: r6223 commit 6c70142cb6f710c2d3478d6c9216756e67018916 Author: Evan Ramos Date: Thu Jun 22 22:49:22 2017 +0000 CON: Handle the save and savenn commands after the full tic is processed, instead of in the middle of it during execution. DONT_BUILD. From-SVN: r6222 commit c1c18478f7560ee7ac97971f079139424bacbbbc Author: Evan Ramos Date: Thu Jun 22 01:32:10 2017 +0000 Polymodes: Only try texcache_fetchmulti on detail texture slots. From-SVN: r6221 commit c01c55eae304400c6f6c000e8ff5aee1408d721c Author: Evan Ramos Date: Thu Jun 22 01:32:05 2017 +0000 Polymodes: Check that texture entries have a non-skybox filename before using it in texcache_fetchmulti. Fixes crash reported by Sgt Jack V. From-SVN: r6220 commit af3bf7c4bafc9e8b84ff9b53a74fe5343ae840c7 Author: Evan Ramos Date: Wed Jun 21 13:47:04 2017 +0000 Polymost: Don't cut off a row and/or column of texels when drawing floor-aligned sprites with odd dimensions. From-SVN: r6219 commit 18ab8e5dd95869fedfec6d58eea1154abfa23545 Author: Evan Ramos Date: Wed Jun 21 13:46:59 2017 +0000 Add new tint flag 256, which always skips hightile when picking an image source. From-SVN: r6218 commit 41718b65b659e24a15b99e4d3cabef371b61c544 Author: Evan Ramos Date: Wed Jun 21 13:46:54 2017 +0000 Polymodes: Explicitly opt out of hicfindsubst falling back to pal 0 instead of checking against the reserved palnum range. From-SVN: r6217 commit 01b69b6b073a8b3f60be7944a3946fa3c596b96f Author: Evan Ramos Date: Wed Jun 21 13:46:50 2017 +0000 Factor out hictinting array accesses. From-SVN: r6216 commit 9159e94db4212cb410ddb893c39d6184b657eea9 Author: Evan Ramos Date: Wed Jun 21 13:46:44 2017 +0000 Create a new struct for hictinting that uses a uint16_t for flags.r From-SVN: r6215 commit 10626714733e35bf03f08c777b5ad0ab65044056 Author: Evan Ramos Date: Wed Jun 21 13:46:36 2017 +0000 Only allocate space for tint flags combinations that require a pre-computed texture to be stored in memory, instead of space for every combination. From-SVN: r6214 commit 63756a5918ce5dde056989ed1a31b12c87135844 Author: Evan Ramos Date: Tue Jun 20 09:28:59 2017 +0000 Add new userdef members gametext_tracking, mgametext_tracking, and menutext_tracking. From-SVN: r6213 commit f3eaa6b69e2cd89151ec5f3e2d2847a1f7a0d914 Author: Evan Ramos Date: Tue Jun 20 09:28:54 2017 +0000 Make internal gametext calls use MF_Bluefont fields in the menus and a newly introduced MF_BluefontGame elsewhere. From-SVN: r6212 commit 5d9154b3b94b4b48d1d73468a55d6a4966524db4 Author: Evan Ramos Date: Tue Jun 20 09:28:49 2017 +0000 Only use TEXT_GAMETEXTNUMHACK on internal gametext calls that benefit from it. From-SVN: r6211 commit 35707a555e4f7f4042d1422638fb312aeab36a70 Author: Evan Ramos Date: Tue Jun 20 09:28:42 2017 +0000 Optimize all gametext calls. From-SVN: r6210 commit b3ea96263ba68e71892d609f546d63814f1c5c11 Author: Evan Ramos Date: Mon Jun 19 23:07:23 2017 +0000 Make menutext use MF_Redfont fields. From-SVN: r6209 commit 8aab920ab27a1e88ed0ebf9862693fc2558b2833 Author: Evan Ramos Date: Mon Jun 19 23:07:18 2017 +0000 Optimize all menutext calls. From-SVN: r6208 commit 6207090eef29cdc4a6345385d5280d2da33a5440 Author: Evan Ramos Date: Mon Jun 19 23:07:12 2017 +0000 Eliminate the RedfontGreen type and replace it with indentations (like "Apply Changes"). From-SVN: r6207 commit 50c8203eea16c24639ea1e837d1b194cbb509b19 Author: Evan Ramos Date: Mon Jun 19 23:07:09 2017 +0000 Eliminate the RedfontBlue type and replace it with the Disabled or LookDisabled flags. From-SVN: r6206 commit a2206f00ad71fda669acd96d935df45e5a46cbf7 Author: Evan Ramos Date: Mon Jun 19 23:07:05 2017 +0000 Add a new MenuEntryFlag to make an option appear disabled but still work. From-SVN: r6205 commit 9cff6a7840bb1cc11763668ba263bb388fcd2e26 Author: Evan Ramos Date: Mon Jun 19 23:07:01 2017 +0000 Namespace all MenuEntryFlags_t. From-SVN: r6204 commit 8079aee6a62d76081f3bd21e9c3bff21efa42a3c Author: Evan Ramos Date: Mon Jun 19 23:06:57 2017 +0000 Move cursorPosition and cursorScale from MenuEntryFormat_t to MenuFont_t. From-SVN: r6203 commit 206bb3161755d738119566b4319fc4767905d94b Author: Evan Ramos Date: Mon Jun 19 23:06:53 2017 +0000 Fix memory leaks in audiolib. Fixes issue #59. From-SVN: r6202 commit 7f4370e4a3896f1ccead2faa8af4c3d4278097d1 Author: Evan Ramos Date: Mon Jun 19 23:06:48 2017 +0000 Fix some indentation of the menu system. From-SVN: r6201 commit 744060c9999a05b1364de0f9d1fa12f72dc69055 Author: Evan Ramos Date: Mon Jun 19 23:06:45 2017 +0000 Factor some menu code. From-SVN: r6200 commit 0217e249917bd2af908ca74a189b273cfe02e14d Author: Evan Ramos Date: Mon Jun 19 23:06:41 2017 +0000 Scale menu spacers by font zoom. From-SVN: r6199 commit 81ddccfcb990f669d4dcf45960f3b1fea88a5847 Author: Evan Ramos Date: Mon Jun 19 23:06:37 2017 +0000 Attach fonts to spacer menu entries. From-SVN: r6198 commit cbd9adb0c76bd283877842cb5156ea962389b365 Author: Evan Ramos Date: Mon Jun 19 23:06:33 2017 +0000 Apply MenuFont_t.zoom to margins and indentations. From-SVN: r6197 commit f718eef92fa52bbaaa85e4d42741a95506e80163 Author: Evan Ramos Date: Mon Jun 19 23:06:29 2017 +0000 Add zoom field to MenuFont_t. From-SVN: r6196 commit 3b740e645c87ec624828dcdebb60505f20d61662 Author: Evan Ramos Date: Mon Jun 19 23:06:25 2017 +0000 Shrink the MenuFont_t struct. From-SVN: r6195 commit a0b7b4ce45f10557a64fd3e8ffd5e78f85e63430 Author: Evan Ramos Date: Mon Jun 19 23:06:21 2017 +0000 Touch up some menu options. From-SVN: r6194 commit 94d1be0f2eea636eba7697feba11271f8780849f Author: Evan Ramos Date: Mon Jun 19 23:06:17 2017 +0000 Center the episode menu vertically like the skill menu. From-SVN: r6193 commit 6c69dd685aaa7437dfb1157db4cd6736f4f08279 Author: Evan Ramos Date: Mon Jun 19 23:06:07 2017 +0000 Clean up episodes, skills, and game modes in standalone builds. From-SVN: r6192 commit 54032726c16ccd97b41a19619396cbdaa1bdd9f0 Author: Evan Ramos Date: Sat Jun 17 21:53:28 2017 +0000 Fix a bug in r6184. From-SVN: r6191 commit 737380d8c005cfe616b1625fcf71f22019f48e34 Author: Evan Ramos Date: Sat Jun 17 11:42:20 2017 +0000 Clean up warnings in standalone mode. From-SVN: r6190 commit db4cba755332b586c4de4833be7a167b151cb753 Author: Evan Ramos Date: Sat Jun 17 11:42:15 2017 +0000 Clean up gamefuncs in standalone mode. From-SVN: r6189 commit 83c885648f39ab0130e9e2050e4612ef8eafcc4d Author: Evan Ramos Date: Sat Jun 17 11:42:12 2017 +0000 Don't print any warnings to the log if an unrecognized gamefunc is dispatched; this is expected and normal when they are renamed. From-SVN: r6188 commit 9d984077a397c7176b280b3e54e7fe38e4c942b1 Author: Evan Ramos Date: Sat Jun 17 11:42:08 2017 +0000 CON: Add undefinegamefunc. From-SVN: r6187 commit ef1646f7d3c724a56986ae2abb3caf0414bf1bac Author: Evan Ramos Date: Sat Jun 17 11:42:04 2017 +0000 Remove an old hack from my menu system that upon closer inspection is no longer needed. From-SVN: r6186 commit d7559000854eed0a8f382004cf2423b12a5ef835 Author: Evan Ramos Date: Sat Jun 17 11:41:59 2017 +0000 Change the way gamefuncs are handled to support and ignore entries named as the empty string. From-SVN: r6185 commit f577f56507d25b735b4fe0bdfaf08fd23fd25ed0 Author: Evan Ramos Date: Sat Jun 17 11:41:54 2017 +0000 Don't store redundant copies of default gamefunc names, since the indices are all that matter. From-SVN: r6184 commit de0295052f373e03be5e1fefc3311e9c679960f9 Author: Evan Ramos Date: Sat Jun 17 11:41:49 2017 +0000 Disable G_FadeLoad because it doesn't work in any renderer and only causes glitches. From-SVN: r6183 commit 3f6d61fdd83e43131e254291a164e52ca13caa5c Author: Evan Ramos Date: Sat Jun 17 11:41:44 2017 +0000 Keep music playing without interruption during map or hubmap transitions if the same file will be playing before and after. From-SVN: r6182 commit 3add5507fc36f344856624f79177d01a10077b12 Author: Evan Ramos Date: Wed Jun 14 07:00:08 2017 +0000 Update LZ4 to 1.7.5. From-SVN: r6181 commit 313b5132c7b072d0bb0ac14c45cdca5c64af7357 Author: Evan Ramos Date: Wed Jun 14 07:00:02 2017 +0000 Update xxHash to 0.6.2. From-SVN: r6180 commit 9f0cf8c0a1c4c473c94c4b37d227b58b635f3210 Author: Evan Ramos Date: Wed Jun 14 06:59:58 2017 +0000 Amend r6174 to un-break libxmp-lite. From-SVN: r6179 commit 64ece0d2358089df1bd2374f6079809a66ac6cba Author: Evan Ramos Date: Wed Jun 14 06:59:54 2017 +0000 Amend r6174 to properly define HAVE_XMP. From-SVN: r6178 commit 1f33c5e248a3df382d31fb5bc9a099c8693856de Author: Evan Ramos Date: Wed Jun 14 06:59:50 2017 +0000 Re-port our changes to libdivide.h and add new changes so that it works as we need. From-SVN: r6177 commit 1ef45d58d52e876fcb62f1acff155f7449f9f0cb Author: Evan Ramos Date: Wed Jun 14 06:59:43 2017 +0000 Replace libdivide.h with an unpatched copy of the latest version. From-SVN: r6176 commit 1db90566d7539834fb5602199e3fa9208dab9e83 Author: Richard Gobeille Date: Sat Jun 10 08:19:47 2017 +0000 Better support for working with blend in the editor From-SVN: r6175 commit eb004c2b9295a5aa9a4f940cb6dc01fa47fd63a2 Author: Richard Gobeille Date: Sat Jun 10 08:19:35 2017 +0000 Get MSVC building again, DONT_BUILD. From-SVN: r6174 commit 388195902c3f23dc48a79a9a9d25cab5a05a76fb Author: Evan Ramos Date: Sat Jun 10 06:21:29 2017 +0000 Makefile: Move rules around to unbreak Linux builds. This may be a GNU Make bug. DONT_BUILD. From-SVN: r6173 commit 196ec8b9b2457b4bebf84e51a38181a9175bc033 Author: Evan Ramos Date: Sat Jun 10 06:21:24 2017 +0000 Makefile: Distinguish between .c files in rsrc and ones generated at build time in obj. From-SVN: r6172 commit d0106e22088113e84f0ce5537f43177adfde73a0 Author: Evan Ramos Date: Fri Jun 9 07:00:07 2017 +0000 Amend r6150. From-SVN: r6171 commit 699870d7671d54c8868e88d73a9a458152f6283a Author: Richard Gobeille Date: Fri Jun 9 06:41:45 2017 +0000 Another attempt at fixing Polymost z-fighting. Probably still sucks! :) From-SVN: r6170 commit ddeb8b9bdd93410beeb7662ac74ec795e271825a Author: Richard Gobeille Date: Fri Jun 9 06:41:39 2017 +0000 Fix window title in EDUKE32_STANDALONE builds. DONT_BUILD. From-SVN: r6169 commit ca478c1363f5404eebff3870dfcd93fc02baa92f Author: Richard Gobeille Date: Fri Jun 9 06:41:33 2017 +0000 Minor optimization From-SVN: r6168 commit 8764e2d8cc25e0dc0e82e371b7476a4cbd2f9390 Author: Richard Gobeille Date: Fri Jun 9 06:41:28 2017 +0000 Change savegame filenames from dukesav#.esv to save#.esv. From-SVN: r6167 commit fa2693f4cd32a4ddba742d5d5fbc8ed315da5fc0 Author: Richard Gobeille Date: Fri Jun 9 06:41:23 2017 +0000 The most minor of minor optimizations. DONT_BUILD. From-SVN: r6166 commit 59d3218a01f25311cd4bc04523dc2ac323255367 Author: Richard Gobeille Date: Fri Jun 9 06:41:17 2017 +0000 Fix missed label for sectoreffector tag. DONT_BUILD. From-SVN: r6165 commit 667d6f88c0eab6f9f654bcbbf460232f9342b35e Author: Richard Gobeille Date: Fri Jun 9 06:40:17 2017 +0000 Polymost: fix texture panning floatiness on slight slopes From-SVN: r6164 commit 26161a8adb00939851c0a9330dc86c714be76de5 Author: Evan Ramos Date: Fri Jun 9 06:40:07 2017 +0000 libxmp-lite: Changes to build as C++: Apparently an extern declaration must be present for the compiler to expose the symbols of struct objects. From-SVN: r6163 commit 86cccca0ee68de37b83eb7225100a74cda25c158 Author: Evan Ramos Date: Fri Jun 9 06:39:59 2017 +0000 libxmp-lite: Changes to build as C++: pointer casting From-SVN: r6162 commit 44b5db252e75347734c4e57d179e76e7404ec0b2 Author: Evan Ramos Date: Fri Jun 9 06:39:52 2017 +0000 libxmp-lite: Changes to build as C++: Structs within other structs cannot be referred to by just the innermost name, and the using keyword does not work either. Split them out into the top level. From-SVN: r6161 commit 42f3c2bb2a8bcadbedc250e05b61d42f51f23a91 Author: Evan Ramos Date: Fri Jun 9 06:39:48 2017 +0000 libxmp-lite: Changes to build (in C mode). From-SVN: r6160 commit 427fd330625de77ade64e1c057279332eeda456f Author: Evan Ramos Date: Fri Jun 9 06:39:42 2017 +0000 Makefile: Add libxmp-lite, replacing static linking to a library that was uncommon in Linux and Mac package managers. From-SVN: r6159 commit aaa28d823fc574aa21c3eb7e6c7df3cca25d6fa9 Author: Evan Ramos Date: Fri Jun 9 06:39:37 2017 +0000 Add unmodified libxmp-lite sources from its Git repository. From-SVN: r6158 commit 8bfae178ff8fd4ee3309ed6296efb61c0471d4e9 Author: Evan Ramos Date: Fri Jun 9 06:39:21 2017 +0000 Makefile: Add LPeg sources, replacing the haphazard static linking that required a custom-built library in a hardcoded location. From-SVN: r6157 commit 64d778f805a444a8029c4e966ba0098e06420d53 Author: Evan Ramos Date: Fri Jun 9 06:39:18 2017 +0000 LPeg: Necessary changes for building in our environment and with our project. See lpeg-lunatic.patch. From-SVN: r6156 commit 0b36556c6eaf1fa12122886b2dc90db7d882c1a9 Author: Evan Ramos Date: Fri Jun 9 06:39:11 2017 +0000 Add unmodified sources for LPeg 1.0.1. From-SVN: r6155 commit 5aaa382c468f525eb591e727275a9acad84628f2 Author: Evan Ramos Date: Fri Jun 9 06:39:04 2017 +0000 Makefile: Move the ENet group up into a new section for libraries that are not ours but included in our repository. From-SVN: r6154 commit 677b3fd82d318dec8f1b1d57eee40a99fbfdec0b Author: Evan Ramos Date: Fri Jun 9 06:39:01 2017 +0000 Makefile: Remove manual assembly of object file lists and replace it with a system for tracking dependencies between groups. From-SVN: r6153 commit b2661826ee73a02a9df88dfdd6d4058f71837722 Author: Evan Ramos Date: Fri Jun 9 06:38:58 2017 +0000 Makefile: Rename some groups so that the part before the first _ corresponds to the parent group that has _SRC and _OBJ defines. From-SVN: r6152 commit f77cdf58f00713fbaa4af5a79da74989b48904d0 Author: Evan Ramos Date: Fri Jun 9 06:38:55 2017 +0000 Makefile: Remove $(LUNATIC_LUA_PREFIX). From-SVN: r6151 commit 5cf01e8a6227698477b454d98cf3f852ba050849 Author: Evan Ramos Date: Fri Jun 9 06:38:52 2017 +0000 Makefile: Move duke3d and engine directory definitions to their proper spots, as they no longer need early definition after the great repository rearrangement. From-SVN: r6150 commit eac12e732cb28d03b9fb98562cb976a4ef47b90f Author: Evan Ramos Date: Fri Jun 9 06:38:49 2017 +0000 Makefile: Update heading comments. From-SVN: r6149 commit ab0ab115b4e9ca2e7845e545b970ea8fd10666ea Author: Evan Ramos Date: Fri Jun 9 06:38:46 2017 +0000 Makefile: Remove printing of compiler/assembler/linker options at build start. Use PRETTY_OUTPUT=0 if you need that information. From-SVN: r6148 commit d10317f4dfa3615918496139d78cfec7c0163d75 Author: Evan Ramos Date: Fri Jun 9 06:38:42 2017 +0000 Common.mak: Massive reorganization/cleanup. Any functional changes are incidental and minor, other than the outright removals. From-SVN: r6147 commit ee750a40bf59e6613bad1273ca340c5877661468 Author: Evan Ramos Date: Fri Jun 9 06:38:33 2017 +0000 Add perl.exe.stackdump to .gitignore. From-SVN: r6146 commit c27ca1798e7784902d260bb52c20fde839cf63cb Author: Evan Ramos Date: Wed Jun 7 05:56:35 2017 +0000 Rename savegame.lua to lunasave.lua to avoid a collision with savegame.cpp. DONT_BUILD. From-SVN: r6145 commit 96b6c61af0d45d6a1d5936c4c2d07072222a6e5e Author: Evan Ramos Date: Wed Jun 7 05:13:54 2017 +0000 Fix an extern "C" that was collateral damage in the last push. Fixes Lunatic build. DONT_BUILD. From-SVN: r6144 commit 7cce42557cb31b5ac6feb99f0f037b27b7154c5c Author: Evan Ramos Date: Mon Jun 5 10:05:29 2017 +0000 Remove the register keyword, since it is deprecated in C++11 and removed in C++17. From-SVN: r6143 commit a830d89a434642959322085430e825ea7c4af4ce Author: Evan Ramos Date: Mon Jun 5 10:05:22 2017 +0000 Improve what build information we print to the log at startup. New feature: compilers, their versions, and big-endianness. Removed: C++, as it is now mandatory. From-SVN: r6142 commit 73822ee89546b4d7de77b14bdf7751a69a52327b Author: Evan Ramos Date: Mon Jun 5 10:05:17 2017 +0000 Visual Studio apparently still defines __cplusplus as 199711. From-SVN: r6141 commit fc454e576e16713c60caa17ad1cad9b4c7997d0e Author: Evan Ramos Date: Mon Jun 5 10:05:12 2017 +0000 Address some longstanding warnings with printf when building with MinGW's GCC 6 and newer. Building with said newer versions may fix the -Wodr warning when building for release. From-SVN: r6140 commit affc9e21a7ffe9465b55d869c8f6b7ce420de764 Author: Evan Ramos Date: Mon Jun 5 10:05:07 2017 +0000 Introducing buildprint, a type-safe and more performant replacement for printf using C++11 variadic templates. At least, an incomplete version that is enough to implement the next commit. From-SVN: r6139 commit 7400fca9021687777a0edd9fde0ef77718747a03 Author: Evan Ramos Date: Mon Jun 5 10:05:03 2017 +0000 compat.h: Add some more math stuff to support the next commit. From-SVN: r6138 commit 8c5c85af2fe0b136184c0941f3da6eae7f6ec804 Author: Evan Ramos Date: Mon Jun 5 10:04:56 2017 +0000 Fix some extern "C". From-SVN: r6137 commit 49d8b73aeaf2f9505c0d43307af53378cf4a3873 Author: Evan Ramos Date: Thu Jun 1 03:08:39 2017 +0000 compat.h: Prevent "warning: private field 'dummy' is not used". DONT_BUILD. From-SVN: r6136 commit ea6c3857812e2d53370647f48629f862ea78ef46 Author: Richard Gobeille Date: Fri May 19 02:28:40 2017 +0000 Fix interpolation of sprites in sectors with SE_31_FLOOR_RISE_FALL From-SVN: r6135 commit 482065156622e11ccd2c8df633ec5091d5284c4e Author: Richard Gobeille Date: Thu May 18 07:03:55 2017 +0000 Revert r6133 From-SVN: r6134 commit 54768f4e60b1fb0054431f4a1917b884fab5ede7 Author: Richard Gobeille Date: Wed May 17 21:55:09 2017 +0000 Reduce max number of concurrent copies of the same sound from 8 to 4. From-SVN: r6133 commit 8915de524715bc90151b22e0a93c0cf66cfcb44b Author: Richard Gobeille Date: Wed May 17 21:55:01 2017 +0000 Fix https://forums.duke4.net/topic/9285-con-compiler-bug/page__pid__276767 From-SVN: r6132 commit 9d6ab81cf9ff4ad98013a351df9c749f340ddfa0 Author: Richard Gobeille Date: Wed May 17 05:46:59 2017 +0000 Fix using defined move/ai/action names in switch/case statements From-SVN: r6131 commit 6240f073255e37e6d649d11d9d9550d6aaf0e8dd Author: Richard Gobeille Date: Wed May 17 05:46:52 2017 +0000 Improve a couple of tagged sector warning messages. DONT_BUILD. From-SVN: r6130 commit eea85c1bcf8ea86d3dcc2f464cf29cab5aafc1a5 Author: Evan Ramos Date: Mon Apr 24 05:11:11 2017 +0000 Amend r6126, which doesn't leave "eduke32" defined anywhere for binary names when APPBASENAME is not specified. From-SVN: r6129 commit fb3e55b5279c462533ba6c3e96a631a63c5227a8 Author: Evan Ramos Date: Mon Apr 24 05:11:08 2017 +0000 Amend r6122, as of r6074 all standard library header inclusion is routed through compat.h. From-SVN: r6128 commit 5bd7d41264f6d267a0af4433c3588951ec600869 Author: Richard Gobeille Date: Mon Apr 24 04:35:32 2017 +0000 Recognize MacUser shareware demo; data must be renamed from "Duke3D Group" to "duke3d.grp". From-SVN: r6127 commit ee5e4012856fbc2c55d35e34c809f20258f25a69 Author: Richard Gobeille Date: Mon Apr 24 04:35:27 2017 +0000 Base output binary name on APPBASENAME. DONT_BUILD. From-SVN: r6126 commit 9f49c33fcd80b97a8f23f3248e6302ce42308f5a Author: Richard Gobeille Date: Mon Apr 24 04:35:22 2017 +0000 Potential slight optimization to actor movement. From-SVN: r6125 commit e0d258718f566378ac33b884eacb4f4d0454a8ba Author: Richard Gobeille Date: Mon Apr 24 04:35:18 2017 +0000 EDUKE32_STANDALONE improvement. DONT_BUILD. From-SVN: r6124 commit 84b2e352df4bdd4bccdc2aa4dcaa0c6469b797b5 Author: Richard Gobeille Date: Mon Apr 24 04:35:13 2017 +0000 Save and restore music position when changing to a map with the same music defined. DONT_BUILD. From-SVN: r6123 commit 83edda291eb803c0c1e7777f2e9cfd16a700aeac Author: Richard Gobeille Date: Mon Apr 24 04:35:08 2017 +0000 Remove obsolete header standard.h. DONT_BUILD. From-SVN: r6122 commit 80e943ce4c2ac8797d5e610b9f3810042d4a85c6 Author: Richard Gobeille Date: Mon Apr 24 04:35:01 2017 +0000 Change screenshot base name to scrn0000 instead of duke0000 for standalone builds. DONT_BUILD. From-SVN: r6121 commit 645d4a578c006c38e5cf4fa13db48ab55e0392c1 Author: Evan Ramos Date: Wed Apr 12 08:30:38 2017 +0000 Flip the switch to C++11. It's happening. From-SVN: r6120 commit 56b92cca00a0cff9d4b4ce6c06de2956d8ea7a2c Author: Evan Ramos Date: Wed Apr 12 08:30:35 2017 +0000 compat.h: Add logbase(). From-SVN: r6119 commit 85d76fc664729d8b280aca4659c4ef2314620ad3 Author: Evan Ramos Date: Wed Apr 12 08:30:32 2017 +0000 compat.h: Add new types, native_t and unative_t, functionally equivalent to our current bssize_t and bsize_t, respectively, but generated dependably using template metaprogramming when building with C++ >= 11. From-SVN: r6118 commit cc119cc877dbb84c1dacd106f8881aea0265a67d Author: Evan Ramos Date: Wed Apr 12 08:30:29 2017 +0000 compat.h: Add some infrastructure for C++ template metaprogramming. From-SVN: r6117 commit 191b209b2f252d0bbf3122441ea2fb0b494c4fc3 Author: Evan Ramos Date: Wed Apr 12 08:30:26 2017 +0000 compat.h: Upgrade our byteswapping functions with new versions that I have experimentally confirmed to compile down to the appropriate single assembly instructions on x86 and x86_64. As part of this, make them constexpr, and remove the OS-specific and inline assembly variants as sub-par due to these two improvements. From-SVN: r6116 commit 756a895f1be97993cbfb2ba4f872e506f9e4b94f Author: Evan Ramos Date: Wed Apr 12 08:30:23 2017 +0000 compat.h: Add macros so that we can use constexpr without breaking C++ < 11 and C. From-SVN: r6115 commit d0cb71f9d8d8f1444855be736e7b94a6abb8a2db Author: Evan Ramos Date: Wed Apr 12 08:30:18 2017 +0000 compat.h: Add some definitions for easy testing of language standard versions. From-SVN: r6114 commit 6a2798a463721167d8bdbb88b965f6917859b105 Author: Evan Ramos Date: Sun Apr 9 13:09:01 2017 +0000 Add registry detection of the Steam path for World Tour installs. From-SVN: r6113 commit fac9d640a37aae2f6eaeac9f28c33aad10e5ee14 Author: Evan Ramos Date: Sun Apr 9 13:08:58 2017 +0000 Add the patched World Tour GRP to our checksum entries. From-SVN: r6112 commit 1baed6647194c752af46589682c98b3776894f83 Author: Evan Ramos Date: Sun Apr 9 13:08:53 2017 +0000 Modify Windows registry reading to check both 32-bit and 64-bit key locations. From-SVN: r6111 commit 2bcd67bc327ac175c080417d54ca039da16072ad Author: Evan Ramos Date: Mon Mar 27 17:13:13 2017 +0000 Makefile: Replace "gnu" with "c" in language standard declarations if we are using clang. This should give us compatibility without compromising platforms that either don't recognize the "gnu" variants but include strdup, snprintf, etc anyway (clang on desktop), or that support "gnu" and don't include these functions in the "c" variants (gcc in devkitPPC). DONT_BUILD. From-SVN: r6110 commit 690f2e506234e2adc40fdaefceef0390d98670bd Author: Evan Ramos Date: Mon Mar 27 17:13:07 2017 +0000 Mac: Address deprecation warnings with the latest Xcode and macOS. From-SVN: r6109 commit aec01fc512d34e9175460067530565badab465b6 Author: Evan Ramos Date: Thu Mar 23 20:47:11 2017 +0000 Makefile: Add phony target "clang-tools" for use with clang-tools. ex: clang-query `make clang-tools` DONT_BUILD. From-SVN: r6108 commit 3cfd3d3b7b804542b7468482be8c2724869ff506 Author: Evan Ramos Date: Thu Mar 23 20:47:08 2017 +0000 Makefile: Add *_ORDERONLYDEPS, which saves us an error message when building Lunatic on Mac. From-SVN: r6107 commit 8ed7fce027c326643ca9b2665c28b66294e75e98 Author: Evan Ramos Date: Thu Mar 23 20:47:05 2017 +0000 Makefile: Add *_SRCS variables, which reassemble the full paths of all source files. From-SVN: r6106 commit b6b7d26210fa771ed6121848b4a3e5ca1d59d387 Author: Evan Ramos Date: Thu Mar 23 20:47:03 2017 +0000 Makefile: Separate combinations of component objects for the six build targets into a variable specifically representing the combination. The original variable name now contains the sub-group only. From-SVN: r6105 commit 7204e9722f60e2ca148417a96295d574d976fc7e Author: Evan Ramos Date: Thu Mar 23 20:47:00 2017 +0000 Makefile: Clean up more Lunatic setup. From-SVN: r6104 commit 4d86ac51779cd2a7115e1e91f0703d6854768c14 Author: Evan Ramos Date: Thu Mar 23 20:46:57 2017 +0000 Makefile: LUNATIC_SRC From-SVN: r6103 commit 445199c5d455630e765e4d4e723585e97cf3c452 Author: Evan Ramos Date: Thu Mar 23 20:46:55 2017 +0000 Makefile: Slightly modify the way ENet objects are ignored for NETCODE=0 builds. From-SVN: r6102 commit b9d182ea26fcd0eb4a0aa28ba3de2b3dbb9f7256 Author: Evan Ramos Date: Thu Mar 23 20:46:52 2017 +0000 Makefile: Split any source file from an rsrc folder into a separate list of objects, recombined at expansion time. From-SVN: r6101 commit 3caa54854ccef3e6a9d56e0514292218b5318780 Author: Evan Ramos Date: Thu Mar 23 20:46:50 2017 +0000 Makefile: Factor out the expansion of source file names to object paths. From-SVN: r6100 commit 26b0d3e5a3268849e84b2e43fce6a96ea9ff422a Author: Evan Ramos Date: Thu Mar 23 20:46:47 2017 +0000 Makefile: Add source code file extensions to all objects, and strip them back off with $(basename ). From-SVN: r6099 commit f08922461c57f8cf992090ea74feeb857697b0d1 Author: Evan Ramos Date: Thu Mar 23 20:46:44 2017 +0000 Makefile: Clean up Lunatic objects. From-SVN: r6098 commit d79ce770db630a2ae6145242be8f2253348ab569 Author: Evan Ramos Date: Thu Mar 23 20:46:41 2017 +0000 Makefile: Change the phonies list so that it is newline-separated. From-SVN: r6097 commit 6bd085201c7e79d05bc3802499ae5f418b37cbfa Author: Evan Ramos Date: Thu Mar 23 03:03:39 2017 +0000 Makefile: Move -funsigned-char from COMMONFLAGS to COMPILERFLAGS. DONT_BUILD. From-SVN: r6096 commit 2afe4a9860c17ba5f002a7339b42f833cbd909dc Author: Evan Ramos Date: Thu Mar 23 03:03:37 2017 +0000 Makefile: Refactor, part 3: objects. From-SVN: r6095 commit a25824ec4c27e8d33974e1b685e48d7031a79027 Author: Evan Ramos Date: Thu Mar 23 03:03:34 2017 +0000 Makefile: Refactor, part 2: phonies. This commit uses GNU Make's Secondary Expansion feature. These rules could be slightly simplified if all the variables defining each component were renamed to use lowercase. From-SVN: r6094 commit cb2edef87fd01e9b05cd8b467b50645072933233 Author: Evan Ramos Date: Thu Mar 23 03:03:32 2017 +0000 Makefile: Refactor using advanced GNU Make tricks and $(eval), part 1: targets From-SVN: r6093 commit 63e5b3ea9df8fdc5553999a1a0f35f0a85cf398f Author: Evan Ramos Date: Thu Mar 23 03:03:29 2017 +0000 Makefile: Remove "dxtools" and "sdltools" as separate categories, and instead build them along with the normal tools when conditions of their target environment are met. From-SVN: r6092 commit 48ebe95a9831b522a0528fe6dcff9065410862c7 Author: Evan Ramos Date: Thu Mar 23 03:03:26 2017 +0000 compat.h: Re-taxonomize one item. From-SVN: r6091 commit 8ec5b31de7a9558b02669bd1066ee5f5df9675cc Author: Evan Ramos Date: Thu Mar 23 03:03:21 2017 +0000 Revert r6089. We can't live without strdup, strtoll, snprintf, strcasecmp, etc. This is only an issue on some platforms. From-SVN: r6090 commit ca363e4c51958b09eaad1acec928aac29be55890 Author: Evan Ramos Date: Wed Mar 22 15:46:06 2017 +0000 Makefile: Use -std=c99 and -std=c++03 instead of -std=gnu99 and -std=gnu++03. From-SVN: r6089 commit 5b3ea7a35df7dda54f0b7fd39ecd15cd56d74a24 Author: Evan Ramos Date: Wed Mar 22 15:46:04 2017 +0000 Makefile: Use "clang++" for building C++ with clang. From-SVN: r6088 commit 03d8ca9ab3f33e3948fde744ff37ed12bc1b8bf7 Author: Evan Ramos Date: Wed Mar 22 15:46:01 2017 +0000 Makefile: Add CROSS_SUFFIX option, as requested by rhoenie. From-SVN: r6087 commit 208f3cac66786348d9378f57fe716becc245e4d5 Author: Evan Ramos Date: Wed Mar 22 15:45:59 2017 +0000 Makefile: Move CUSTOMOPT to follow COMPILERFLAGS and LINKERFLAGS, so that it can overwrite more. From-SVN: r6086 commit ba4f65ec45321fae9c5440447c7468d87124b8f1 Author: Evan Ramos Date: Wed Mar 22 15:45:56 2017 +0000 Makefile: Move "-Wimplicit -Werror-implicit-function-declaration" from CONLYFLAGS to a new CONLYWARNS. From-SVN: r6085 commit 12c2f7518cb9eff1ac03fab91de1e60f07ecb09b Author: Evan Ramos Date: Wed Mar 22 15:45:54 2017 +0000 Makefile: Unfactor CWARNS from COMPILER_*. From-SVN: r6084 commit f2032e8cc61e20cf2e228246c61239083abd04e5 Author: Evan Ramos Date: Wed Mar 22 15:45:49 2017 +0000 Makefile: Factor out common uses of COMMONFLAGS, COMPILERFLAGS, and LINKERFLAGS into COMPILER_* and LINKER. Collateral changes: Engine objects now use COMPILER_CXX instead of CXX, BUILD_SETTINGS_LINKER now includes GUI_LIBS, and the Build tools now use LINK_STATUS and result instead of ONESTEP. From-SVN: r6083 commit 3500a4027ecbb612a85a213052b24cd4c48a7362 Author: Evan Ramos Date: Mon Mar 20 20:30:04 2017 +0000 Fix r5498 so that projectiles actually do not hit their owner during their first tic of movement. Clear the hitscan bit instead of blocking bit because Proj_MoveCustom uses CLIPMASK1. From-SVN: r6082 commit 6e9f592e65974ac846e3486d75fdd45b0906deb4 Author: Evan Ramos Date: Mon Mar 20 20:29:57 2017 +0000 Factor out code for launching EVENT_GAME and EVENT_PREGAME. From-SVN: r6081 commit c7febf058a73b0ea18723fdf4432bbbf6a773227 Author: Evan Ramos Date: Wed Mar 1 09:35:58 2017 +0000 Audiolib: Re-add a fixed version of old code for the SDL driver to initialize SDL as a whole or its audio subsystem if it has not yet been initialized. Patch from NY00123. DONT_BUILD. From-SVN: r6080 commit 7400369b2d4d117470aaa1cf2436a352f3e419e4 Author: Evan Ramos Date: Sat Feb 25 08:16:04 2017 +0000 Remove XYZ.voc --> XYZ.flac format upgrades completely for sound effects, and leave them only for music. XYZ.voc --> XYZ_voc.flac is still available. From-SVN: r6079 commit 4bce0e4842d54abc905c11ef3070dc2e3ea00ca7 Author: Evan Ramos Date: Sat Feb 25 08:16:01 2017 +0000 compat.h: Upgrade ARRAY_SIZE. From-SVN: r6078 commit 0661f7a84d224e43385a1a467e7b9e00774067c6 Author: Evan Ramos Date: Sat Feb 25 08:15:58 2017 +0000 compat.h: Upgrade EDUKE32_FUNCTION and add EDUKE32_PRETTY_FUNCTION. From-SVN: r6077 commit 14c0a4935c2719dc29760dd4d413dbc1df1e126a Author: Evan Ramos Date: Sat Feb 25 08:15:53 2017 +0000 Remove the implicit "static" from our FORCE_INLINE macro. This will be important for C++ member functions. From-SVN: r6076 commit 56ca19f1b1810d7c29fe3f0d3e4ad57026811042 Author: Evan Ramos Date: Sat Feb 25 08:15:45 2017 +0000 Eliminate more cases of duplication of compat.h's functionality. From-SVN: r6075 commit 1b88bfa94d4af1ff37485ae98dd35941abb114b8 Author: Evan Ramos Date: Sat Feb 25 08:15:36 2017 +0000 Route all inclusion of libc headers and most of POSIX headers through compat.h. From-SVN: r6074 commit 3e5f3b8db854af91157e810050055fd356074fd0 Author: Evan Ramos Date: Sat Feb 25 08:15:20 2017 +0000 Remove HAVE_INTTYPES define. No #else was ever provided for any build system that lacks inttypes besides MSVC. From-SVN: r6073 commit e1a1ad7c58c8d1cbcb6226473905762e0c725036 Author: Evan Ramos Date: Sat Feb 25 08:15:16 2017 +0000 Completely reorganize compat.h. From-SVN: r6072 commit 90d547cc1603f2e17db75f2056b2090b6b6d0623 Author: Evan Ramos Date: Sat Feb 25 08:15:13 2017 +0000 Eliminate the windows_inc.h include from compat.h by special-casing UNREFERENCED_PARAMETER in a different way. From-SVN: r6071 commit a08807871daaffd8c9f308d91d72f3a93478ae93 Author: Evan Ramos Date: Sat Feb 25 08:15:10 2017 +0000 Remove #define compat_h_macrodef__ and its absent case, which was only ever used for an old JFDuke3D port to PalmOS. If for some reason you need to target a platform that lacks a libc, you're better off finding a libc, or putting together your own shim layer. It's a weekend project at most. From-SVN: r6070 commit 42421a7d305f6b1f7b9fe782c9a901f24b623a1a Author: Evan Ramos Date: Sat Feb 25 08:15:01 2017 +0000 windows_inc.h in two more places From-SVN: r6069 commit 4dc86aaf0d6be27a2149373d47d704feef1b355a Author: Evan Ramos Date: Sun Feb 19 22:16:00 2017 +0000 Explicitly specify the version of the C++ standard as which we are compiling. From-SVN: r6068 commit bc41d50f6672510f976a5559701efada7121924d Author: Evan Ramos Date: Sun Feb 19 22:15:56 2017 +0000 Eliminate many cases of duplication of compat.h's functionality. From-SVN: r6067 commit bd1dade1f2cfb89ebb1c6074bc680d89e70ae089 Author: Evan Ramos Date: Sun Feb 19 22:15:50 2017 +0000 Define NOMINMAX in windows_inc.h. From-SVN: r6066 commit 96c23fd470578fa96a95ccfd7d71e620eab438f8 Author: Evan Ramos Date: Sun Feb 19 22:15:44 2017 +0000 Route inclusion of all Windows headers through a new header, windows_inc.h. This allows us to make certain guarantees about limits on the extent of namespace pollution these headers introduce. From-SVN: r6065 commit a05d0e1e5d3337e29b00e3e1c08e35c87ec6d8c3 Author: Evan Ramos Date: Sun Feb 19 22:15:32 2017 +0000 More of the previous commit, because VS can be frustrating. From-SVN: r6064 commit 75d26f75116ca2d5da7500c5ff3ef620551688ed Author: Evan Ramos Date: Sun Feb 19 22:15:29 2017 +0000 Limit what startwin.game.cpp needs to include. From-SVN: r6063 commit f7e287b596d32ba93212a4ed09418bb6a84f4d97 Author: Evan Ramos Date: Sun Feb 19 22:15:23 2017 +0000 Remove dead code for selecting sound settings from the Windows startup window. From-SVN: r6062 commit 868892b42b373b7fffeccf8263ac23368b009afd Author: Evan Ramos Date: Sun Feb 5 20:58:33 2017 +0000 Abolish all " ={ " when assigning a struct. DONT_BUILD. From-SVN: r6061 commit 8b56247443eda04fc4902bbf4aee22ba3e04b10f Author: Richard Gobeille Date: Fri Feb 3 23:03:06 2017 +0000 Fix compiler specified for synthesis. DONT_BUILD. From-SVN: r6060 commit b1efef1fcfeca32e2c38ac949d52db2a2b2be9e3 Author: Evan Ramos Date: Fri Feb 3 22:18:45 2017 +0000 Try fixing synthesis.sh. From-SVN: r6059 commit 9ac73091afa56f14eec7a21498520bb03b9af8c3 Author: Evan Ramos Date: Fri Feb 3 21:59:45 2017 +0000 Some tweaks to the cleanup. From-SVN: r6058 commit 457479ad2cd61826958d875c396bf2a6ac30bc24 Author: Evan Ramos Date: Wed Feb 1 10:34:01 2017 +0000 I hoped ./ prefixes would work in a ignore on Windows. From-SVN: r6057 commit bcb79365ef338dcd43e7242d4e0681c6a7f766ee Author: Evan Ramos Date: Wed Feb 1 10:20:54 2017 +0000 Bring the previous commit into effect. From-SVN: r6056 commit 009b0ef719a3cd730429bff462411b79c6a50fb9 Author: Evan Ramos Date: Wed Feb 1 10:01:11 2017 +0000 The great repository rearrangement of 2017. Files moved but not modified. Changes to follow in a subsequent commit. You down with CPP? From-SVN: r6055 commit 9b1f9114e3125f1a1cb89987efcf0718f8a38721 Author: Evan Ramos Date: Mon Jan 23 11:24:21 2017 +0000 Makefile: Delete the default suffixes, to possible help avoid internal Make race conditions. From-SVN: r6052 commit d6e0578ab783eef349071da2f1e2c357f78f0ec8 Author: Evan Ramos Date: Mon Jan 23 11:21:42 2017 +0000 Makefile: Only pass APPNAME and APPBASENAME to the preprocessor if a value for them was passed in. Keeping compiler invocation clutter to a minimum is good. From-SVN: r6051 commit 63cbf796ecc8f6ecb2972a081790ac2cb4c34583 Author: Evan Ramos Date: Mon Jan 23 11:21:40 2017 +0000 SW: Fix audiolib bindings, again. From-SVN: r6050 commit 0116d9496f6308b4b8263250c6166643fae9a547 Author: Evan Ramos Date: Mon Jan 23 11:21:36 2017 +0000 SW: Fix some vec2_t stuff I missed. From-SVN: r6049 commit ae5b2ae4c141eaf22787da2fd03607342fd2ec70 Author: Evan Ramos Date: Mon Jan 23 11:21:32 2017 +0000 SW: "new" --> "New" From-SVN: r6048 commit d24b5c028676aff2de3f408eeb9c359643a65a29 Author: Evan Ramos Date: Mon Jan 23 11:21:26 2017 +0000 Restore tmulscale* to pragmas.h. SW needs it. From-SVN: r6047 commit 91d83983a3982432dcf9f163032ee2b5daf28595 Author: Evan Ramos Date: Mon Jan 23 11:21:22 2017 +0000 Restructure pragmas*.h to eliminate duplicates of the generalized C code in the architecture-specific files. From-SVN: r6046 commit 1b0ac63045438c38aae48b30cacc8df5cc905552 Author: Evan Ramos Date: Mon Jan 23 11:21:18 2017 +0000 Normalize the general versions of the pragmas in pragmas.h with any improvements found in duplicates spread throughout the architecture specific files. Note: One change made here is the elimination of unnecessary verbose upcasts. From-SVN: r6045 commit 584571c4a73fa2d052171f491bc7493772bc8af2 Author: Evan Ramos Date: Mon Jan 23 11:21:15 2017 +0000 SW: Fix allocache parameters. From-SVN: r6044 commit c9d766c5b762c5f7c283480f1da9dbd8befc6324 Author: Evan Ramos Date: Mon Jan 23 11:21:11 2017 +0000 SW: Replace some stuff we removed from MACT. From-SVN: r6043 commit fdc50663eff240509d4dae1c83e6db2b2bb1ff1a Author: Evan Ramos Date: Mon Jan 23 11:21:08 2017 +0000 SW: Fix C uspritetype errors. From-SVN: r6042 commit aa7d17caf5f2590071a95ac9fb08fae8d4130e7f Author: Evan Ramos Date: Mon Jan 23 11:21:04 2017 +0000 SW: Fix signedness of buffers related to makepalookup. From-SVN: r6041 commit 670f9ee015a844373d56d202e10d7be19707e09e Author: Evan Ramos Date: Mon Jan 23 11:21:01 2017 +0000 SW: Fix typos in r5551. From-SVN: r6040 commit e59a4f72d1c6889235416f616c19dc538d56b3bf Author: Evan Ramos Date: Mon Jan 23 11:20:57 2017 +0000 Build tools: Add map2stl by Ken Silverman. From-SVN: r6039 commit a6f72b6029f271529662b2c24cd125775c92884a Author: Evan Ramos Date: Mon Jan 23 11:20:54 2017 +0000 Build tools: Fix warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] From-SVN: r6038 commit 4d8c5a716449de41691c8b1c86b9181b9ceaeeb9 Author: Evan Ramos Date: Mon Jan 23 11:20:49 2017 +0000 Build tools: Fix warning: cast from type 'const char*' to type 'char*' casts away qualifiers [-Wcast-qual] From-SVN: r6037 commit abd7e1f460b1f23cec2ddecec6e1a8fe50983a7f Author: Evan Ramos Date: Mon Jan 23 11:20:46 2017 +0000 Build tools: Fix build of generateicon. From-SVN: r6036 commit 45047cc5b44f196789a8aacc5903800260294164 Author: Evan Ramos Date: Mon Jan 23 11:20:42 2017 +0000 weapons.con.sample: Use full precision when applying weapon scaling. From-SVN: r6035 commit 1b8cff7e080dcbb47eb4772dfcca55b2f014015c Author: Evan Ramos Date: Mon Jan 23 11:20:39 2017 +0000 weapons.con.sample: Add internal temp variables for rotatesprite parameters that the subroutines need to modify. This fixes weapon scaling. From-SVN: r6034 commit b4bc45e2d15ccc4e526cca8f83064587403ff6fb Author: Evan Ramos Date: Mon Jan 23 11:20:36 2017 +0000 weapons.con.sample: Rename hud_G_Draw_temp* to hud_int_temp*. From-SVN: r6033 commit af15c17e14635f0bdb46a77227d105413f3c764e Author: Evan Ramos Date: Mon Jan 23 11:20:33 2017 +0000 weapons.con.sample: Only setvar RETURN -1 for values of drawweapon that we actually handle. (Currently all of them, but this is more future-proof.) From-SVN: r6032 commit bf70fa28a0961bb402d146e035f6cc81571c8a47 Author: Evan Ramos Date: Mon Jan 23 11:20:30 2017 +0000 weapons.con.sample: No need to andvar before getting a sine value. The source does that for us. From-SVN: r6031 commit 832a07f322861d9c733831c88a7564c91a8bfb53 Author: Evan Ramos Date: Mon Jan 23 11:20:27 2017 +0000 weapons.con.sample: Fix operation on wrong variable in tripbomb code. From-SVN: r6030 commit bdc7332a23998fe9fd6aa0d24a48e2a12426874e Author: Evan Ramos Date: Mon Jan 23 11:20:23 2017 +0000 weapons.con.sample: Fix some indentation issues. From-SVN: r6029 commit a7e6c2b44f26cb4a076897f35b55bf1aaa8fa0a6 Author: Evan Ramos Date: Mon Jan 23 11:20:20 2017 +0000 G_DrawTileScaled: Shift the draw offsets left by 16 before applying weapon scaling From-SVN: r6028 commit 73120532baa0c294d3efc445de88fac34bd7f7e2 Author: Evan Ramos Date: Mon Jan 23 11:20:17 2017 +0000 SDL2: Fix handling of the numpad keys. From-SVN: r6027 commit 1d8d5ec51f6b29b12d954bfea968300568d0db01 Author: Evan Ramos Date: Mon Jan 23 11:20:14 2017 +0000 Add xmp.c to Android.mk. From-SVN: r6026 commit 39c09309e2cf1e139797c859172f3a928b70da56 Author: Evan Ramos Date: Mon Jan 23 11:20:12 2017 +0000 Fix disabling the Polymer checkbox in the Win32 startup window when POLYMER=0. From-SVN: r6025 commit 446564b66c35b520532c0393029c91a22eae98b4 Author: Evan Ramos Date: Mon Jan 23 11:20:08 2017 +0000 Makefile: Use the override keyword when implicitly disabling Polymer and libvpx when USE_OPENGL=0. From-SVN: r6024 commit fecdc152fff66a44601a0f6e608b2b14ae4bd702 Author: Evan Ramos Date: Mon Jan 23 11:20:03 2017 +0000 Don't define getangle as __fastcall under Lunatic in order to avoid "Warning: resolving _getangle by linking to @getangle@8". From-SVN: r6023 commit 333d1e46ac6fddc0ee732b6aed477346d829a7a1 Author: Richard Gobeille Date: Wed Jan 18 22:23:36 2017 +0000 Fix issue where vertical mouse aiming couldn't be enabled in the menu if in_aimmode was set to 1. From-SVN: r6022 commit 6d1b75c467a3f091f779423db6dcf7f04c641aef Author: Richard Gobeille Date: Wed Jan 18 22:23:20 2017 +0000 Rename ud.tickrate to ud.showfps internally. DONT_BUILD. From-SVN: r6021 commit 5ec3c92ad75fe2e3fb81b29daf8cac978ed288d2 Author: Richard Gobeille Date: Wed Jan 18 22:23:03 2017 +0000 Gut most of MACT keyboard.c in favor of stuff in its header (keyboard.h) From-SVN: r6020 commit 87b655ecba8f7ac41f61fc678556c240f86248a9 Author: Richard Gobeille Date: Wed Jan 18 22:22:50 2017 +0000 Inconsequential cleanup. DONT_BUILD. From-SVN: r6019 commit ca13acbb8f2123798230a050216c6c077ac4aa67 Author: Richard Gobeille Date: Wed Jan 18 22:22:35 2017 +0000 Remove MACT mouse.c. DONT_BUILD. From-SVN: r6018 commit a750bbd9f632dbc2b167fdab2cb1f68e0cab9189 Author: Richard Gobeille Date: Wed Jan 18 22:22:20 2017 +0000 Rename a couple of things in the VS project. DONT_BUILD. From-SVN: r6017 commit 203a5324b669383f2ef0a2d4a3e7068b30d69e24 Author: Richard Gobeille Date: Wed Jan 18 22:22:10 2017 +0000 This seems to fix a Polymost rendering error in which certain polygons touching the sides of the screen would fail to render from some angles. YMMV. From-SVN: r6016 commit 61fe0c39aaaef9553014da58d964a42915a81cd1 Author: Richard Gobeille Date: Wed Jan 18 22:22:00 2017 +0000 Remove some unused definitions. DONT_BUILD. From-SVN: r6015 commit 1badc7b6ac80601914931490d3537dd644dbd932 Author: Richard Gobeille Date: Wed Jan 18 22:21:51 2017 +0000 Remove red/blue 3d mode from Polymost. This hadn't been enabled in a long time and I'm not sure if it even worked anymore. DONT_BUILD. From-SVN: r6014 commit 917b86bbdddea3340cf773b8fec4354367787d19 Author: Richard Gobeille Date: Wed Jan 18 22:21:40 2017 +0000 Split DROIDMENU #define into EDUKE32_SIMPLE_MENU and EDUKE32_ANDROID_MENU. EDUKE32_ANDROID_MENU depends on EDUKE32_SIMPLE_MENU being set, and EDUKE32_SIMPLE_MENU does what you would expect: simplifies the menu options available by removing things not typically found in shipping games. DONT_BUILD. From-SVN: r6013 commit 4118c99b71bc1e6849fbef93b5cf92fcc85317c3 Author: Richard Gobeille Date: Wed Jan 18 22:21:31 2017 +0000 Fix problem with standalone builds not finding their data when the startup window is disabled. DONT_BUILD. From-SVN: r6012 commit 21795830d051f0456c2c05b2bd8ce7a7e4a6582f Author: Richard Gobeille Date: Wed Jan 18 22:21:23 2017 +0000 Fix MSVC build problem. This needs to be looked at further. DONT_BUILD. From-SVN: r6011 commit 5994f97433fb51d62b4e7a8828817d6fcb8ebab7 Author: Richard Gobeille Date: Wed Jan 18 22:21:16 2017 +0000 Add APPBASENAME to Makefile.common, controlling the resulting binary's default .cfg file name and .log file name. DONT_BUILD. From-SVN: r6010 commit 669a9ebb900b25f3ed25e0b8d8f51ea9db2cf569 Author: Richard Gobeille Date: Wed Jan 18 22:21:08 2017 +0000 Initial work on standalone (non-Duke3D) binary support. From-SVN: r6009 commit 6d5fd012afe7e3ebfe9d6d3f14273d07fbaf4ea0 Author: Richard Gobeille Date: Wed Jan 18 22:20:58 2017 +0000 Support compiling with a custom application name with make APPNAME="something". DONT_BUILD. From-SVN: r6008 commit cfe28e66b81d04297ef6ff9016220e68224da1e0 Author: Evan Ramos Date: Thu Jan 5 05:30:34 2017 +0000 Bump LuaJIT to git HEAD >= 2.0.4. BUILD_LUNATIC. From-SVN: r6007 commit ed7a04b0aa0c5a2f86513d5d54c202a8fff3b18b Author: Evan Ramos Date: Thu Jan 5 05:30:27 2017 +0000 Windows: Update libvpx to 1.6.0. From-SVN: r6006 commit 974ee0c92a53e84c8e7b1b6795f595b88628b2df Author: Evan Ramos Date: Thu Jan 5 05:30:20 2017 +0000 We have not needed to disable the stack protector when building Windows libs for a while. From-SVN: r6005 commit 77bf46689a69613231376499e3148bb66d7d6416 Author: Evan Ramos Date: Thu Jan 5 05:30:17 2017 +0000 Replace wiibuild.bat with wiibuild.sh. From-SVN: r6004 commit 2b95177c47acda98dba3ecab0081acbdcdcdffd9 Author: Evan Ramos Date: Thu Jan 5 05:30:14 2017 +0000 Uncomment copytilepiece(). KenBuild uses it. From-SVN: r6003 commit 48719285e6d6ca85f96eb519fc992b77a80f5545 Author: Evan Ramos Date: Thu Jan 5 05:30:11 2017 +0000 KenBuild: clipinsidebox takes a vec2_t now From-SVN: r6002 commit c18f6e3bebb18af74d7912ab3fb5d9777d627081 Author: Evan Ramos Date: Thu Jan 5 05:30:07 2017 +0000 KenBuild: tspritetype --> uspritetype From-SVN: r6001 commit bbcaf586d0dca8de6833317048e09cf132264ec1 Author: Evan Ramos Date: Thu Jan 5 05:30:04 2017 +0000 Lunatic: Remove guard against building in C++ mode. We now support both! From-SVN: r6000 commit a9afc23c53056f3d06e59725c9a135cd3a72bb4c Author: Evan Ramos Date: Thu Jan 5 05:30:00 2017 +0000 Fix the interaction between the definitions of the NEW_MAP_FORMAT structs and the structure trackers. From-SVN: r5999 commit b1b17b61552bcad097918f7844a27a51b2ef4c96 Author: Evan Ramos Date: Thu Jan 5 05:29:57 2017 +0000 buildtypes.h: Replace the *TYPE macros with a StructName concatenation function. From-SVN: r5998 commit 567fb3d395b8dbafa19ead6bc7dde08c9dfc0155 Author: Evan Ramos Date: Thu Jan 5 05:29:54 2017 +0000 Add extern "C" to screentext.h so that Lunatic can see its symbols when building as C++. From-SVN: r5997 commit d3b65b073dda062558aaaaca8bed855e8d426326 Author: Evan Ramos Date: Thu Jan 5 05:29:51 2017 +0000 Lunatic: Fix build, part 13. Disable inaccurate assertion. From-SVN: r5996 commit d0712567986b65f773bf29860dd825f4beda62f2 Author: Evan Ramos Date: Thu Jan 5 05:29:47 2017 +0000 Lunatic: Fix build, part 12. playerswhenstarted --> g_mostConcurrentPlayers From-SVN: r5995 commit ac3716fd6f3a5389e31eff681510fd1fffe47747 Author: Evan Ramos Date: Thu Jan 5 05:29:44 2017 +0000 Lunatic: Fix build, part 11. g_spriteDeleteQueueSize --> g_deleteQueueSize From-SVN: r5994 commit 9a9dd3128178cd5ad17658cd2b032dd48885af8c Author: Evan Ramos Date: Thu Jan 5 05:29:40 2017 +0000 Lunatic: Fix build, part 10. g_currentFrameRate --> g_frameRate From-SVN: r5993 commit 3648bac2082d35f57bba4448af0c50da74195a1e Author: Evan Ramos Date: Thu Jan 5 05:29:37 2017 +0000 Lunatic: Fix build, part 9. ScriptQuotes --> apStrings From-SVN: r5992 commit 6cb4388c86be661461b16ffb5eff8ac3f2c98a91 Author: Evan Ramos Date: Thu Jan 5 05:29:33 2017 +0000 Lunatic: Fix build, part 8. MapInfo --> g_mapInfo From-SVN: r5991 commit ec2a14d48cfa25af93149217f798279ba1fcc4f7 Author: Evan Ramos Date: Thu Jan 5 05:29:29 2017 +0000 Lunatic: Fix build, part 7. M_ChangeMenu --> Menu_Change From-SVN: r5990 commit 6674531f59c87de479f10f31cf11cf0d9c7a8e4e Author: Evan Ramos Date: Thu Jan 5 05:29:25 2017 +0000 Add S_StopAllSounds function, guaranteed to be present at link time, whether stubbed (for KenBuild's editor) or calling audiolib's FX_StopAllSounds (for Lunatic). Also, m32exec should not directly touch audiolib. Only sounds_mapster32.c should interacti with it. KenBuild and its editor do not link to audiolib. From-SVN: r5989 commit 9dca168afcca32067e9f858f7e03f893b1b86ce0 Author: Evan Ramos Date: Thu Jan 5 05:29:20 2017 +0000 Lunatic: Fix build, part 5. EpisodeNames --> g_volumeNames From-SVN: r5988 commit 9831f64bf40d9e856dc73fbc4a2ca414a53fe81a Author: Evan Ramos Date: Thu Jan 5 05:29:17 2017 +0000 Lunatic: Fix build, part 4. BlimpSpawnSprites --> g_blimpSpawnItems From-SVN: r5987 commit 9100ff61e40d70ec2a12fae543ae54c3d16acbd7 Author: Evan Ramos Date: Thu Jan 5 05:29:14 2017 +0000 Lunatic: Fix build, part 3. P_SetWeaponGamevars should be static inline when placed in a header included from multiple objects. From-SVN: r5986 commit 11c6a64950cec5c60364de5bafa984c7e9c379f2 Author: Evan Ramos Date: Thu Jan 5 05:29:11 2017 +0000 Lunatic: Fix build, part 2. clip.h needs to know about usectortype and uwalltype. From-SVN: r5985 commit 66c982edf8b501c12323f6d8e9d6da4d3728f9e8 Author: Evan Ramos Date: Thu Jan 5 05:29:06 2017 +0000 Lunatic, KenBuild, SW: window([xy])([12]) --> windowxy$2.$1 From-SVN: r5984 commit deab74a58f7e5fe40ebf76adfb8942e5e022c524 Author: Evan Ramos Date: Sun Jan 1 17:44:56 2017 +0000 Remove $(ARCH) from COMMONFLAGS, except under Darwin. DONT_BUILD. From-SVN: r5983 commit 13b8ca08e2a0a03e9f0895452e3c489ef9318d05 Author: Evan Ramos Date: Sun Jan 1 13:23:41 2017 +0000 Fix warning: enumeral and non-enumeral type in conditional expression [-Wextra] DONT_BUILD. From-SVN: r5982 commit e84bc4f5e4c92fdafb722fbd726b6dc45459b0e5 Author: Evan Ramos Date: Sun Jan 1 13:23:38 2017 +0000 sdlayer: Explicitly name our entry point SDL_main on Wii. From-SVN: r5981 commit 7dfb9ce7638c567d391dc9227975c856e9ae8952 Author: Evan Ramos Date: Sun Jan 1 13:23:35 2017 +0000 Fix some int/int32_t confusion where linking to external libraries is concerned, at least as exposed by building with devkitPPC r28. From-SVN: r5980 commit ca5307b8b522c9fd4b69fd51339e16203b18d0b1 Author: Evan Ramos Date: Sun Jan 1 13:23:29 2017 +0000 Some recent cleanup changed uses of int32_t to int, but missed changing every function prototype. This is very bad when int != int32_t. From-SVN: r5979 commit 0dba349ebfaa1076f812da8b349d11884dfbed4a Author: Evan Ramos Date: Sun Jan 1 13:23:23 2017 +0000 Make SDL_config_wii.h #include instead of defining its own types, because devkitPPC r28 changed the definitions and/or added an error for when they conflict. From-SVN: r5978 commit 67d92d417845385d8ff11834b88b7181498beb95 Author: Evan Ramos Date: Sun Jan 1 13:23:18 2017 +0000 Adjust wiibuild.bat to not use MinGW or MSYS paths. From-SVN: r5977 commit 245b7d6a7c2872a4d2fa1a23a016efd80dc91bf6 Author: Evan Ramos Date: Thu Dec 29 02:57:33 2016 +0000 sdlayer: Clean up wm_msgbox and wm_ynbox and fix them under GTK. DONT_BUILD. From-SVN: r5976 commit 40cfd9afbaa28ac638a5ddafc41feca25dd2b1fb Author: Evan Ramos Date: Mon Dec 26 20:02:51 2016 +0000 Mac: 32-bit builds give trouble with the supposed equivalence of CGRect/Size and NSRect/Size. DONT_BUILD. From-SVN: r5975 commit 5364b4a53a94897be158d3c3f9ad8c55053ff1a0 Author: Evan Ramos Date: Mon Dec 26 06:03:00 2016 +0000 Extend SE 26 to use the value provided by a GPSPEED, if any. From-SVN: r5974 commit 396efda1deacc34128ed4dfaa236b8db80a14d1c Author: Evan Ramos Date: Mon Dec 26 06:02:56 2016 +0000 CON: Remove bounds check on rotatesprite coordinates. From-SVN: r5973 commit 88707aa55c0ce8149d6fd5e94d3337b37b1b36fd Author: Evan Ramos Date: Mon Dec 26 06:02:53 2016 +0000 Windows: Perform keyboard layout switching whenever window focus is gained or lost. From-SVN: r5972 commit e229de6413950df9397297ce0abd835cbbced612 Author: Evan Ramos Date: Mon Dec 26 06:02:49 2016 +0000 Windows: Make layout switch duplicate guard bidirectional. From-SVN: r5971 commit fe4455973ac2a1a2fd9545cbf5c78ef9c2598a41 Author: Evan Ramos Date: Mon Dec 26 06:02:45 2016 +0000 Windows: Refactor keyboard layout switching code into winbits.c and clean it up. No functional changes. From-SVN: r5970 commit 563ae8b2419a050a70bb5ab3deb5b16be97aee1a Author: Evan Ramos Date: Mon Dec 26 06:02:41 2016 +0000 sdlayer: Call SDL_StopTextInput immediately after initialization so IMEs do not interfere with gameplay keypresses. An example of is on Mac, where holding the 'A' key caused a small overlay with accented forms of the character to appear. From-SVN: r5969 commit fabbb45b35e8473f3a76674ada8908aa9c1b5bf8 Author: Evan Ramos Date: Mon Dec 26 06:02:38 2016 +0000 sdlayer: Place SDL_KEYDOWN events into keyasciififo[] when SDL_TEXTINPUT events are disabled. This way, SDL_StopTextInput() does not break text entry for code that uses keyasciififo[] but does not currently call SDL_StartTextInput(), or if it cannot, such as Duke's cheat entry. Technically we could revert r5326 and r5331, but since we only currently have support for showing ASCII text glyphs as bitmap fonts in ART tiles, there is no point to showing an IME on platforms that don't need an on-screen keyboard. From-SVN: r5968 commit ea73022137a9553131f79ba2a3dfd74600c2c167 Author: Evan Ramos Date: Mon Dec 26 06:02:34 2016 +0000 Mac: Make the startup windows responsive and actively updating while in "show message log, the program is working" mode. From-SVN: r5967 commit 46c3feb11da09e569add236d9f8a2a106ab68303 Author: Evan Ramos Date: Mon Dec 26 06:02:31 2016 +0000 Mac: Programmatically create the primary program menu since we no longer have a nib or a modal window to do it for us. From-SVN: r5966 commit 75fd678b7625eda7e1f89400e2413632ad0b37ab Author: Evan Ramos Date: Mon Dec 26 06:02:27 2016 +0000 Mac: Change the startup windows display the window normally and start a mini runloop instead of calling using runModalForWindow. This way, the Quit function works. From-SVN: r5965 commit ac6226e854b7ed5d42dd4d7b83f9a4657c747db2 Author: Evan Ramos Date: Mon Dec 26 06:02:22 2016 +0000 Mac: Port the startup window to entirely programmatic code. Death to nibs! From-SVN: r5964 commit 154895dcf921151e7ebd689e3e8fd139c739d1df Author: Evan Ramos Date: Mon Dec 26 06:02:14 2016 +0000 Mac: Remove more vestiges of SDLMain from SDL 2.0 builds. From-SVN: r5963 commit 0d4225cdad2932f2d82781f2b4006ede1f479cf6 Author: Evan Ramos Date: Mon Dec 26 06:02:10 2016 +0000 sdlayer: Disable a missed instance of sysgamma under EDUKE32_GLES, not just __ANDROID__. From-SVN: r5962 commit 86cc5b3e88289858e54d355194264be87e993bc2 Author: Evan Ramos Date: Mon Dec 26 06:02:06 2016 +0000 Address a number of harmless instances of "code never reached" identified by Xcode. From-SVN: r5961 commit 4f543610a2e1614645a2836e3139b1858e1ac387 Author: Evan Ramos Date: Mon Dec 26 06:02:01 2016 +0000 Add newlines at EOF to files that need them. From-SVN: r5960 commit f88f4572d0b6259f7c7b419f80b28881961a4d62 Author: Evan Ramos Date: Mon Dec 26 06:01:57 2016 +0000 Fix an error introduced in cleanup of the WWII GI Devastator weapon reload animation, as pointed out by Xcode. Also perform similar cleanup on a similar line elsewhere. From-SVN: r5959 commit 3123ebabe354fff7d81546f2b9a3a8fb5848da88 Author: Evan Ramos Date: Mon Dec 26 06:01:54 2016 +0000 Apple: Fix Xcode build due to accumulated file additions and moves. From-SVN: r5958 commit 7ebdc047bce553e8d05fa98c21c535c52cc80b81 Author: Evan Ramos Date: Mon Dec 26 06:01:51 2016 +0000 Apple: Accept Xcode's suggestions for changes to our project file. From-SVN: r5957 commit bf597d28f93a35e2647931803a070b28fbc6d0bf Author: Evan Ramos Date: Mon Dec 26 06:01:48 2016 +0000 Change the type of functions touching vsync setting back to int32_t. Since it is serialized to disk, an explicit size type is important. From-SVN: r5956 commit 9036748159464468862ff197cb950e5e5dc28fb6 Author: Evan Ramos Date: Mon Dec 26 06:01:44 2016 +0000 Fix a warning with SDL_TARGET=1 builds. From-SVN: r5955 commit 878c9d5ca839805bd42a7015f0d50cf6fccb9fdc Author: Evan Ramos Date: Mon Dec 26 06:01:40 2016 +0000 Fix USE_OPENGL=0 RENDERTYPE=WIN and USE_OPENGL=0 SDL_TARGET=1 builds. From-SVN: r5954 commit 3d5e6d09424feb13caf9a940d2a6c6a7612ece7a Author: Evan Ramos Date: Mon Dec 26 06:01:36 2016 +0000 Rename vsync_render and "sdl_vsync" to vsync_renderlayer. An "sdl_" prefix should be used sparingly. From-SVN: r5953 commit d13912c363d505964bfbc03913000c8399e333c0 Author: Evan Ramos Date: Mon Dec 26 06:01:32 2016 +0000 Rename E_PostInitTables back to E_PostInit and move it back to where it belongs in engine.c (i.e. preinitengine, initengine, "postinitengine"). It should not have been changed. From-SVN: r5952 commit 4ae1127e28fbad96a12c09bed589b2f86a053dda Author: Evan Ramos Date: Mon Dec 26 06:01:28 2016 +0000 Win32 Startup Window: This should be tokenized. From-SVN: r5951 commit 59b78d9e55d56bc840faf92a8e898f7cb73c8476 Author: Evan Ramos Date: Mon Dec 26 06:01:24 2016 +0000 Fix problems with handling of the default crosshair color. From-SVN: r5950 commit bf8d5eef34d376c85be76551034fe8bd56f0ded6 Author: Evan Ramos Date: Mon Dec 26 06:01:18 2016 +0000 Restore pre-r5821 floor glass behavior: nothing. From-SVN: r5949 commit d95a4b56a2492aa8bf0f6d73af646f80e114a4b0 Author: Richard Gobeille Date: Sun Dec 4 22:53:56 2016 +0000 Fix transparent masked walls in Polymost From-SVN: r5948 commit 24f048f9d9b718e62a6b5243ec6e03ff1d089b57 Author: Richard Gobeille Date: Sun Dec 4 22:53:51 2016 +0000 Cvar fix From-SVN: r5947 commit 928f747a867394f53c2e170dfe0572258d3054f6 Author: Richard Gobeille Date: Thu Dec 1 04:06:40 2016 +0000 Change OSD_CvarModified() to rely on a CVAR_MODIFIED flag set in osdcmd_cvar_set(), instead of merely comparing the current value to the default value. This leaves the storing of the default value (dval in osdcvar_t) in place for use in future features that haven't been programmed yet. From-SVN: r5946 commit b5ba48d833aa25847133b915b88c5347e0338674 Author: Richard Gobeille Date: Thu Dec 1 04:06:34 2016 +0000 Remove camera distance from the calculation for how much to offset sprites to avoid z buffer fighting. From-SVN: r5945 commit a744592716934d0673f1ce296428b3c5d4198c47 Author: Evan Ramos Date: Tue Nov 29 07:56:18 2016 +0000 Fix linking of mdpause variable with POLYMER=0 in screens.c, exposed by Visual Studio. DONT_BUILD. From-SVN: r5944 commit 1c453067db40ee325cab9762cacd761037b690ed Author: Evan Ramos Date: Mon Nov 28 04:35:34 2016 +0000 Makefile: Fix STARTUP_WINDOW=0 on Windows so that the resource objects are built, but the editor's startup window is not. DONT_BUILD. From-SVN: r5943 commit 3b5be4cb30c804cd2f7362881cd83a9874abbae2 Author: Evan Ramos Date: Mon Nov 28 04:35:31 2016 +0000 Makefile: Extend STARTUP_WINDOW to GTK. DONT_BUILD. From-SVN: r5942 commit 41002449b6500eec76b4fc08072b3d2466d23381 Author: Evan Ramos Date: Mon Nov 28 04:35:27 2016 +0000 Makefile: Fold OSX_STARTUPWINDOW into STARTUP_WINDOW. DONT_BUILD. From-SVN: r5941 commit 70400e9f63ad5fac924aafae4542f26036b7dfaf Author: Evan Ramos Date: Mon Nov 28 04:35:21 2016 +0000 Avoid unused variable warning with the startup window disabled. DONT_BUILD. From-SVN: r5940 commit 00d59069dffb652242b7b00672a9171d0bdd2df4 Author: Richard Gobeille Date: Fri Nov 18 05:29:51 2016 +0000 Fixes build error with winlayer. DONT_BUILD. From-SVN: r5939 commit c375cd677d96e9b0108ad2a75ef9872031473392 Author: Richard Gobeille Date: Tue Nov 15 21:55:30 2016 +0000 Support vsync in classic mode (SDL 2.x only), and properly handle failure to enable "adaptive" vsync on systems that don't support it. From-SVN: r5938 commit 0c4772e7e80c03c41146a17a52badc1a835c8253 Author: Richard Gobeille Date: Tue Nov 15 21:55:25 2016 +0000 Fixes issue where freezing GREENSLIME repeatedly would increase the player's kill counter by one each time From-SVN: r5937 commit 798403cb073faa11256654c5a5a8e4017c5e18a3 Author: Richard Gobeille Date: Tue Nov 15 21:55:22 2016 +0000 Default internal frame wait counter to 17ms to match the default r_maxfps value of 60. Fixes issue where the framerate counter wasn't enforced after setting it to 60 and restarting the game. From-SVN: r5936 commit 05c5a78a739a5757e0623f229b36c85bfdcabbbe Author: Richard Gobeille Date: Tue Nov 15 21:55:14 2016 +0000 Fix menu option for pixel doubling From-SVN: r5935 commit 8ea17b0fa444c629c47bb64b74aabdeee5eea162 Author: Richard Gobeille Date: Tue Nov 15 21:55:09 2016 +0000 Fixes issue where sounds weren't pausing when pausing the game From-SVN: r5934 commit f12edbcc9c121469a5a5e50f45897a36d2beac5f Author: Richard Gobeille Date: Mon Nov 14 23:47:11 2016 +0000 Fixes issue with picnum 0 sprites used as map geometry From-SVN: r5933 commit 62974b75fe0f0c6bd09cf544bfcd306ef1d7ed64 Author: Richard Gobeille Date: Mon Nov 14 23:47:06 2016 +0000 Fixes an issue with enemies waking up when using security cameras From-SVN: r5932 commit ae045f061157fd1fb8ffbb192d6767df80fa4190 Author: Richard Gobeille Date: Wed Nov 9 22:51:45 2016 +0000 Add libxmp-lite support to Makefile.msvc. From-SVN: r5931 commit 54c3a530b5e0a68430277b9b7404d94c64fae86d Author: Richard Gobeille Date: Wed Nov 9 22:51:42 2016 +0000 Fix a couple of issues with savemapstate/loadmapstate. From-SVN: r5930 commit 75779c6bd3637a9d925d43288bf498338a6ec480 Author: Richard Gobeille Date: Wed Nov 9 22:51:39 2016 +0000 Change default anisotropic filtering setting to the max for the user's system. DONT_BUILD. From-SVN: r5929 commit d62213b60b04f1f7dea7799b0cf90f5a6f6774d9 Author: Richard Gobeille Date: Wed Nov 9 22:51:33 2016 +0000 Support building without a startup window through the Makefile. DONT_BUILD. From-SVN: r5928 commit d588612a23cc5391c39485c14c886c33f161a749 Author: Evan Ramos Date: Tue Nov 8 02:59:05 2016 +0000 Add support for MOD, XM, IT, and S3M tracker music through libxmp-lite. Building with support must be manually enabled by invoking make with HAVE_XMP=1 on platforms other than Windows, because libxmp-lite is not common in package managers. This setup will be improved in the future. From-SVN: r5927 commit 3ea870e52081f8a4eeb844c41d7bb704ff483f7c Author: Richard Gobeille Date: Mon Nov 7 01:09:07 2016 +0000 Update synthesis.sh with local changes from server. DONT_BUILD. From-SVN: r5926 commit 31d7720f7a1796097792e7160fa5d769eb355df0 Author: Richard Gobeille Date: Tue Nov 1 01:35:41 2016 +0000 Mapster32: support sprite blending mode and statnum in clipboard. From-SVN: r5925 commit cb6b8a213d47746e02f57fa96bf04924aef4d14d Author: Richard Gobeille Date: Tue Nov 1 01:35:36 2016 +0000 Remove Menu_MouseWithinBounds() in favor of negating the result of Menu_MouseOutsideBounds(). From-SVN: r5924 commit 48c9a968512f3901498dc5c93949f3434bce8ff3 Author: Richard Gobeille Date: Tue Nov 1 01:35:32 2016 +0000 Rename menu functions to what I consider to be more sane names. No other changes. From-SVN: r5923 commit 50972898fc45a11312bd6797b7ceea54abb19322 Author: Richard Gobeille Date: Tue Nov 1 01:35:24 2016 +0000 Add menu option to control r_maxfps, default r_maxfps to 60, add cvar for pixel doubling (r_pixeldoubling). From-SVN: r5922 commit 9107deed0a49c6b6b51fe1ece4c0a2d42609f57d Author: Evan Ramos Date: Sat Oct 29 16:59:34 2016 +0000 sdlayer: Remove disabling certain mouse features under debug builds. It makes mouse aiming unusable. If you need to release the mouse for some reason when you can't pull down the console (such as hitting a breakpoint), execute "grabmouse_low(0)" from your debugger. Alt+Tab is your friend. DONT_BUILD. From-SVN: r5921 commit 35b12bf078af5f0fe445212a424c9ae04828cf62 Author: Evan Ramos Date: Sat Oct 29 16:59:31 2016 +0000 Makefile: Remove -fno-pic from everywhere. This should fix building on Ubuntu 16.10 and any other platform that has PIE enabled. From-SVN: r5920 commit 87e9ed0efb77f3f454c09b4452e59a14af657924 Author: Evan Ramos Date: Sat Oct 29 16:59:28 2016 +0000 Makefile: Revert r5864 and move some code introduced in r5762 to a later Mac-only block so that architecture detection is not broken on Linux. From-SVN: r5919 commit d3d7c6c645c2b5a48a8096bc0532cc531d68c0a9 Author: Evan Ramos Date: Sat Oct 29 16:59:26 2016 +0000 sdlayer: Work around warning: signed and unsigned type in conditional expression [-Wsign-compare] indirectly caused by the SDL 2.0.5 headers making all preprocessor macro literals unsigned. From-SVN: r5918 commit 9e08fcbec0dca5672c8d2e9f129e8c123115205a Author: Evan Ramos Date: Sat Oct 29 16:59:21 2016 +0000 Engine: Add #ifdef USE_OPENGL forgotten in r5024 that causes an OOB access in scansector() and glitchy mirrors with USE_OPENGL=0. From-SVN: r5917 commit 6e12ab0820a16583f1e17a308b16ea24019c7ec6 Author: Evan Ramos Date: Tue Oct 25 05:43:56 2016 +0000 Amend r5911 to use undefinetile instead of only zeroing out the MIRROR tile's dimensions. From-SVN: r5916 commit 436b324a2404af721bebc10558655f941fd8966a Author: Evan Ramos Date: Tue Oct 25 05:43:53 2016 +0000 Extend undefinetile to also remove voxels, hightile (including skyboxes) and models. From-SVN: r5915 commit a153ea2dfb4fc9462502aa62d31be33f1d7fc383 Author: Evan Ramos Date: Tue Oct 25 05:43:50 2016 +0000 Engine: Add vox_undefine(). From-SVN: r5914 commit 09ae8f3929070e15a6d78e5108f0b5efb71ab9cc Author: Evan Ramos Date: Tue Oct 25 05:43:46 2016 +0000 Amend r5910 so that the problem is mitigated even when the map load takes place with a different renderer. From-SVN: r5913 commit 1ac30c44df04487e71622ee767795cc00420ab18 Author: Evan Ramos Date: Tue Oct 25 05:43:42 2016 +0000 Revert a formatting change from r5725. From-SVN: r5912 commit 244a6e9bb4ee32c1534574cff94a208cf6eab9a0 Author: Evan Ramos Date: Mon Oct 24 21:30:39 2016 +0000 Duke: Move the nulling of the MIRROR tile to after defs are parsed so that tilefromtexture does not interfere with mirror function. From-SVN: r5911 commit a4059311a439f6c9340da7083e62e1390c5dcab4 Author: Evan Ramos Date: Mon Oct 24 21:30:34 2016 +0000 Polymost: Clear wsprinfo[] upon map load. This should address some remaining instances of wall-ornamented sprite z-fighting. From-SVN: r5910 commit f06bcd39fe7d9737af470d1a53e7f0b0bfa2d5cb Author: Evan Ramos Date: Sun Oct 23 19:47:36 2016 +0000 To avoid potential compiler bugs when inlining inline assembly, remove the asm variants of msqrtasm and always use the C version. Compilers generate equivalent or better assembly, and the function is used exactly once, in a routine called during startup. From-SVN: r5909 commit b55d7e39c37b709b44444a102c44933c321f2675 Author: Evan Ramos Date: Sun Oct 23 19:47:33 2016 +0000 C-CON and M32script: Only accept hex literals beginning with '0' and not any other digit. From-SVN: r5908 commit 6c63db9f2a712a85da2a7433faa15c99589c4b46 Author: Evan Ramos Date: Sun Oct 23 19:47:29 2016 +0000 Defs: Fix the parser so tokens with 'x' or 'X' as a second character are only treated as hex constants when the first character is '0'. Introduced in r5822. From-SVN: r5907 commit c37e6bdcf5fc87d621d4deefc7e4c82f40993351 Author: Evan Ramos Date: Sun Oct 23 19:47:23 2016 +0000 Defs: Fix the off-by-one error when printing line numbers. From-SVN: r5906 commit 40cc0ea2b99a494210bd9246b6d015295fa68c79 Author: Evan Ramos Date: Thu Oct 20 06:26:36 2016 +0000 Windows: SDL 2.0.5 From-SVN: r5905 commit b479eefcb53e625e3e98d9e4e172eac575e1e8e9 Author: Evan Ramos Date: Thu Oct 20 06:26:20 2016 +0000 sdlayer: Don't set the window icon from code if we are linked with SDL >= 2.0.5 on Windows, since it will now automatically use the first icon in the exe. From-SVN: r5904 commit ecb5865dd2f07fc00f00360e7bf92cd6ffdc431d Author: Evan Ramos Date: Thu Oct 20 06:26:17 2016 +0000 sdlayer: Add EDUKE32_SDL_LINKED_PREREQ macro. From-SVN: r5903 commit eed5d0391aa46d0b5a510bf863a7cf22ed018f1b Author: Evan Ramos Date: Thu Oct 20 06:26:14 2016 +0000 sdlayer: Disable Windows thread naming because it interferes with debugging. From-SVN: r5902 commit 688a28b06ad14d36b99570aad6f683d79379305c Author: Evan Ramos Date: Thu Oct 20 06:26:10 2016 +0000 Implement "divscale" and "scalevar" (scale()) in C-CON and "scalevar" in M32script. From-SVN: r5901 commit 668c600e73d3647714381d759a72b5b4877c2ae1 Author: Evan Ramos Date: Thu Oct 20 06:26:04 2016 +0000 Duke: Adjust alphatabs checking to activate features when numalphatabs >= 15 instead of 16 so that my precise mode can be used. From-SVN: r5900 commit c01fe1494fdecd73f010508f93e83bf5425593fe Author: Evan Ramos Date: Fri Oct 14 07:40:59 2016 +0000 AudioLib: Fix improper matching of loop tags with initial substrings of them, and add proper support for LOOP as a synonym of LOOP_START. From-SVN: r5899 commit fcd7d933be13ad8dad381d8564afa681ff526dfe Author: Evan Ramos Date: Fri Oct 14 07:40:56 2016 +0000 Bump PSKYOFF_MAX from 4 to 8. From-SVN: r5898 commit b72ecf950dfdfbd1cb50d74a02409b5f2b0fc0ee Author: Evan Ramos Date: Fri Oct 14 07:40:53 2016 +0000 Defs: Add "yoffset" subtoken to "multipsky". From-SVN: r5897 commit dcdec841f3f41bf806f6cb4bc3c8b35fc966a616 Author: Evan Ramos Date: Fri Oct 14 07:40:50 2016 +0000 Re-enable the use of psky_t's yoffset. From-SVN: r5896 commit 3c33d39154296a1d1fa6a56bd661312fec14d807 Author: Evan Ramos Date: Fri Oct 14 07:40:47 2016 +0000 C-CON: Fix addlogvar command, broken in r5835. From-SVN: r5895 commit a63900bf45b29ecf0072a592cb1dc8e7aa552653 Author: Evan Ramos Date: Fri Oct 14 07:40:44 2016 +0000 C-CON: Allow gamestartup to read in one additional parameter (MAXFLAMETHROWERAMMO). Do nothing with it yet. From-SVN: r5894 commit 0b14b118b7c883f092eeabbf9b75bcf38d402a60 Author: Evan Ramos Date: Fri Oct 14 07:40:41 2016 +0000 C-CON: Implement "ifplaybackon" conditional, used by World Tour to determine if the replay feature is enabled. In our case, it is always false. From-SVN: r5893 commit 1659641104260d789a67f6273dbb619a5a0960ca Author: Evan Ramos Date: Fri Oct 14 07:40:38 2016 +0000 Replace all "g_scriptVersion == 14" with "g_scriptVersion >= 14". From-SVN: r5892 commit b4029fe455886aa27e42248497fc199d5db78701 Author: Evan Ramos Date: Fri Oct 14 07:40:35 2016 +0000 Apply the same bugfix as r4947 to XA sounds so that they only loop when intended. From-SVN: r5891 commit 892b2217018022e6ca20530daa2fa741feab957c Author: Evan Ramos Date: Fri Oct 14 07:40:32 2016 +0000 Add a new aligned mode to alphatabs by defining numalphatabs to be a power of two minus one. This provides fractionally better correspondence between 0-255 alpha values and blend table IDs. From-SVN: r5890 commit 49c5328e4a6ec26c556cb8be37d3bb6be703bd18 Author: Evan Ramos Date: Fri Oct 14 07:33:30 2016 +0000 Rigor-up the handling of 0% and 100% alpha with alphatabs in 8-bit. From-SVN: r5889 commit f0d6b3e7b09ed21bae03bff6628e6fdc9f5dd4d8 Author: Evan Ramos Date: Sun Oct 9 07:55:23 2016 +0000 GL .blend support. Consult me if you are interested in this feature. TODO: Polymer. From-SVN: r5888 commit 1414c500e84b68a6787fef50c3478235bceff065 Author: Evan Ramos Date: Sun Oct 9 07:55:18 2016 +0000 In 8-bit, change the precedence of .alpha and .blend. Previously: Non-zero alpha stacked with cstat translucency in an imitation of Polymost, potentially clobbering .blend if alphatabs are used. Now: If cstat translucency is active, .alpha is ignored. From-SVN: r5887 commit 1c4dbe03000305585a398084f360021d65b55f23 Author: Evan Ramos Date: Sun Oct 9 07:55:13 2016 +0000 Cosmetic changes to some blend/alpha related code. From-SVN: r5886 commit f59b3d6a32f46d020df78ea40a8598c74623e86a Author: Richard Gobeille Date: Sun Oct 9 00:15:18 2016 +0000 Minor changes to gamevar error handling From-SVN: r5885 commit bf2d1888528ab82b5fd3aaa74ad46f191598feb6 Author: Richard Gobeille Date: Sun Oct 9 00:15:14 2016 +0000 Exterminate the smurfs! This fixes the problem where everything in the game was drastically hue shifted on certain hardware configurations, particularly the Raspberry Pi. From-SVN: r5884 commit cc2dfd9269b3415dd799de117d0c143b200e69cc Author: Richard Gobeille Date: Sun Oct 9 00:15:10 2016 +0000 Misc cleanup. Removed ability to use .CON files found in the .GRP when the .CON files found in the directory can't be compiled. From-SVN: r5883 commit 6db07b9e1d31cc37d55409d1b0a8183caec67b52 Author: Richard Gobeille Date: Sun Oct 9 00:15:06 2016 +0000 Fix MSVC warnings From-SVN: r5882 commit c468b61d7b2cc8715a638304628e53cef0adca25 Author: Richard Gobeille Date: Sun Oct 9 00:15:01 2016 +0000 Potentially speed up drawing md3s with transparency in Polymost From-SVN: r5881 commit 6b2b340cecdeb95b71293fa15dd26dd2ed72084c Author: Evan Ramos Date: Mon Oct 3 02:43:57 2016 +0000 Duke: Don't unpause sounds when exiting the menu back to a Game Paused state. From-SVN: r5880 commit 6e6e7a71137273878240a4aed13d7a44a18ec509 Author: Evan Ramos Date: Mon Oct 3 02:43:54 2016 +0000 Menus: Remove the Polymer aspect ratio option, as it was always broken, and I don't know what purpose it has besides configuring non-square pixel stretching, which we have a long way to go in terms of configuring anyway. Use r_pr_customaspect from the console instead. From-SVN: r5879 commit 62d947bf9ba27512c539e4028deab465437f5273 Author: Evan Ramos Date: Mon Oct 3 02:43:51 2016 +0000 Menus: Fix the Widescreen and Texture Mode video settings to use my menu system properly. From-SVN: r5878 commit 12d8ffa74463f71c6870c040ac680aa3ef3de047 Author: Evan Ramos Date: Mon Oct 3 02:43:48 2016 +0000 Some float optimizations in the engine. From-SVN: r5877 commit ce193b773409b552b2dee385e544eb4dd87a52a9 Author: Evan Ramos Date: Mon Oct 3 02:43:42 2016 +0000 Ensure the cached float cast variables introduced in r4656 are updated any time the integer versions are. This fixes the infinite loop when viewing an HUD model at a point when displayrooms is not running, such as the main menu upon initial game load. From-SVN: r5876 commit 97d8482e373664e5df82f80a08948998dc5cb9b5 Author: Richard Gobeille Date: Sun Sep 18 03:54:45 2016 +0000 Fix detection of menu sounds in EVENT_SOUND From-SVN: r5875 commit 0b01bc40789c4b563d7b4a5cb6ecc049e4acc739 Author: Richard Gobeille Date: Sun Sep 18 03:54:21 2016 +0000 Change default unfiltered texture mode to 0 (no mipmaps) From-SVN: r5874 commit 628676366f906433654232b0f8d9ca58394f3f32 Author: Evan Ramos Date: Sat Sep 17 19:58:03 2016 +0000 Fix clang Windows build. DONT_BUILD. From-SVN: r5873 commit 73a5f947d851391345ded42a35ec0107cf59d7d5 Author: Evan Ramos Date: Sat Sep 17 19:57:58 2016 +0000 Fix mistake in r5862. DONT_BUILD. From-SVN: r5872 commit 5fa53589da1e2e5893531933f9f5c380545ada8d Author: Evan Ramos Date: Fri Sep 16 21:58:46 2016 +0000 Fix erroneous display of MESSAGES: ON when it should be OFF. From-SVN: r5871 commit f12b6983171386634caca6f5c7f97d8ff2416291 Author: Evan Ramos Date: Fri Sep 16 21:55:45 2016 +0000 Fix TEST_SYNC_KEY macro to always return 1 or 0. From-SVN: r5870 commit 0460313eb064ca985446c175e431df69b9665e5b Author: Evan Ramos Date: Fri Sep 16 21:55:42 2016 +0000 Makefile: Allow an invocation like `make CC=clang-3.8` to work properly. From-SVN: r5869 commit 478cbf0f1d34e5b701f74a9df8eb94ea45dbd076 Author: Evan Ramos Date: Fri Sep 16 21:55:39 2016 +0000 Fix undefined behavior: null pointer passed as argument which is declared to never be null From-SVN: r5868 commit 2dba37cae8154f3ce38b93808171093a0641de24 Author: Evan Ramos Date: Fri Sep 16 21:55:36 2016 +0000 Loop optimizations in screencapture From-SVN: r5867 commit 9c5e7f93a7fc3d03e7fa31c67fa9f986a000dd4c Author: Evan Ramos Date: Fri Sep 16 21:55:33 2016 +0000 Address warning: variable might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] From-SVN: r5866 commit 663880d0422c8ea17152fc4c324d1b75424ae404 Author: Evan Ramos Date: Fri Sep 16 21:55:30 2016 +0000 Fix -Wmisleading-indentation warnings in rawinput.c. From-SVN: r5865 commit 1e8dd359efec1256fada857d776c034b20dbb00e Author: Evan Ramos Date: Fri Sep 16 21:55:27 2016 +0000 Makefile: Only apply $(ARCH) processing code on Macs. From-SVN: r5864 commit 4b9c8e3d7e1e8209dc603182848693ba46483d09 Author: Evan Ramos Date: Fri Sep 16 21:55:24 2016 +0000 Fix warning: suggest parentheses around '&&' within '||' [-Wparentheses] From-SVN: r5863 commit 6b022d93029714fdec0ba43a1fdbb8cb758e3e86 Author: Evan Ramos Date: Fri Sep 16 21:55:21 2016 +0000 Fix USE_OPENGL=0 build. From-SVN: r5862 commit 448bb2d09f9476bb064d09ff37d293d16d466c4d Author: Evan Ramos Date: Fri Sep 16 21:55:09 2016 +0000 Fix pausing MIDI music on Windows, regressed in r5817. From-SVN: r5861 commit 40a1b0189e29d2e476a41c866a1bebcd75227d72 Author: Richard Gobeille Date: Sat Sep 10 05:21:01 2016 +0000 Support saving specified CON arrays in map states From-SVN: r5860 commit 606253b0f32041f922e49d58b35c00ca844b9d11 Author: Richard Gobeille Date: Sat Sep 10 05:20:55 2016 +0000 Mapster32: block ctrl-x and ctrl-shift-x from working if you have unsaved changes From-SVN: r5859 commit 2b39e3d6c8889810c439e88d936812e33babe49d Author: Evan Ramos Date: Fri Sep 9 12:01:30 2016 +0000 Fix ghost tsprite bug introduced in previous commit. From-SVN: r5858 commit 43f260ad00b9c505531f20bac30b6deb1a5c1584 Author: Evan Ramos Date: Fri Sep 9 03:12:23 2016 +0000 Finish what r5484 started but got reverted in r5723. Cstat 1024 now works properly in Polymost without causing any side effects in Classic. It remains unimplemented in Polymer. From-SVN: r5857 commit b8cb92822758194c9c00ae01356b34612abf07eb Author: Evan Ramos Date: Fri Sep 9 03:12:20 2016 +0000 Reinstitute the cosmetic cleanups that should have been a separate commit from r5484 and were reverted in r5723. From-SVN: r5856 commit e3244332779366413fd9afa6daf44ff4d87121bb Author: Evan Ramos Date: Fri Sep 9 03:12:15 2016 +0000 Fix MIDI playback on Windows, broken in r5817. The main fix here is GET_NEXT_EVENT. From-SVN: r5855 commit d0c43e2c8cc8b50fcd94808600c47ebd059026de Author: Richard Gobeille Date: Tue Sep 6 04:25:36 2016 +0000 Fix autoaim. Oops. From-SVN: r5854 commit 72575ba1d9e2bde362f9ab13462e8bac40cabb6b Author: Richard Gobeille Date: Tue Sep 6 04:25:32 2016 +0000 Cleanups From-SVN: r5853 commit 864a811a4a7e3753de9550bc336a38ac14948016 Author: Evan Ramos Date: Tue Sep 6 02:15:37 2016 +0000 Fix warning: signed and unsigned type in conditional expression [-Wsign-compare] From-SVN: r5852 commit f11c8b6485995277c139a0f681896150fe47a001 Author: Evan Ramos Date: Tue Sep 6 02:15:34 2016 +0000 Fix a bug in r5826 regarding display of the WWII GI rocket launcher. From-SVN: r5851 commit a6dcacd1dca8d63dda8014bcab219064bd2de14b Author: Evan Ramos Date: Tue Sep 6 02:15:31 2016 +0000 Add bit 1 to action flags: use the viewpoint's position relative to the actor when calculating which rotation to display, instead of the viewpoint's angle, for viewtypes 2/3/4/8. 5/7 already do this. From-SVN: r5850 commit f5bae9aeed729e423d5b9d766f18a9273af06c97 Author: Evan Ramos Date: Tue Sep 6 02:15:28 2016 +0000 CON: Add an optional sixth parameter, a flags bitfield, to action definitions. Bump BYTEVERSION. From-SVN: r5849 commit 255910e7393e277897cf9ad44dd8f2ab04a313c6 Author: Evan Ramos Date: Tue Sep 6 02:15:23 2016 +0000 Enumify stuff having to do with action parameters. From-SVN: r5848 commit 57b71641a5449320b65c4c83b431f98620de5d02 Author: Evan Ramos Date: Tue Sep 6 02:15:13 2016 +0000 Windows: Update libpng to 1.6.25, built with GCC 6.2. Fixes warning: type 'struct _SETJMP_FLOAT128' violates one definition rule [-Wodr] From-SVN: r5847 commit 58578e574ff3e1d0765ff32aad4467849f14fbbe Author: Richard Gobeille Date: Sun Sep 4 04:30:30 2016 +0000 I need to quit trying to be clever From-SVN: r5846 commit 9509fc432fd2e84bf550a90eab06edb08d8b3488 Author: Richard Gobeille Date: Fri Sep 2 01:21:10 2016 +0000 Fix Polymer breakage From-SVN: r5845 commit 0f9bd3640e0ab8c0d938f44fa9276dd811e100cd Author: Richard Gobeille Date: Mon Aug 29 19:11:47 2016 +0000 Fix builds on broken compilers that don't properly support using "z" in the length field of a printf format placeholder. From-SVN: r5844 commit 15ae492bc9ea98fd03a8d808f02a1079fc93e0d0 Author: Evan Ramos Date: Sun Aug 28 21:26:55 2016 +0000 Satisfy warning: this 'if' clause does not guard... [-Wmisleading-indentation] DONT_BUILD. From-SVN: r5843 commit 9bae997abf12d31d9810dbaeb4cf4dfe23c7d645 Author: Evan Ramos Date: Sun Aug 28 21:26:51 2016 +0000 Fix warning: logical 'and' of equal expressions [-Wlogical-op] DONT_BUILD. From-SVN: r5842 commit f278dd17bf05f0f32b24ab40437a65a545109079 Author: Evan Ramos Date: Sun Aug 28 21:26:48 2016 +0000 Fix warning: left shift of negative value [-Wshift-negative-value] DONT_BUILD. From-SVN: r5841 commit 4b7f15f9745fa2b3a8e698eb1bd749ac20f5dcb2 Author: Evan Ramos Date: Sun Aug 28 21:26:44 2016 +0000 etcpak: Fix simple_array operator[] parameter type. DONT_BUILD. From-SVN: r5840 commit 9fa9517269fd540aa53292fb1544dbc4961e2583 Author: Richard Gobeille Date: Sat Aug 27 01:42:19 2016 +0000 Fix a memory leak in CON_RESIZEARRAY. This commit also includes an inconsequential dozen or so lines of formatting changes I had done when I stumbled across the bug. From-SVN: r5839 commit 07b50ee2c98bf0ef1f2a31ea4595dbad5149ab32 Author: Richard Gobeille Date: Sat Aug 27 01:42:16 2016 +0000 Add "string" alias for "definequote" and "print" alias for "quote". From-SVN: r5838 commit 585236486a1a9b2f531e05930b144bf395470b8e Author: Richard Gobeille Date: Sat Aug 27 01:42:12 2016 +0000 Fix a couple of gcc 6.x warnings. From-SVN: r5837 commit 09fadad8ef5d7bb86c92dee31d533b70989c92fb Author: Richard Gobeille Date: Sat Aug 27 01:42:07 2016 +0000 Fix a software mode crash bug involving bad animation flags set on tiles From-SVN: r5836 commit 3ecc7e5748b0f24693494663e2897e9f318c478f Author: Richard Gobeille Date: Sat Aug 27 01:42:01 2016 +0000 More readability cleanup. DONT_BUILD. From-SVN: r5835 commit c0e9e9bb9a22ae769a00fbbbc82be13134c1397d Author: Richard Gobeille Date: Sat Aug 27 01:41:50 2016 +0000 This probably adds support for saving game arrays into map states. Probably. From-SVN: r5834 commit 667b9387e81b320d065115f99f2bd66ffff7cd80 Author: Richard Gobeille Date: Sat Aug 27 01:41:46 2016 +0000 More cleanup. DONT_BUILD. From-SVN: r5833 commit 47a97500f2bfc5d3698ea423285bf8f1f10b8736 Author: Richard Gobeille Date: Sat Aug 27 01:41:41 2016 +0000 Remove some unused gamevars pertaining to the original multiplayer code. DONT_BUILD. From-SVN: r5832 commit 1065aa987521e806b27bdda648527073a18e3939 Author: Richard Gobeille Date: Sat Aug 27 01:41:37 2016 +0000 Fix a gcc 6.x warning From-SVN: r5831 commit 15fc7d0d86311fc591532b7b50116778ffed7988 Author: Richard Gobeille Date: Sat Aug 27 01:41:33 2016 +0000 More cleanup. DONT_BUILD. From-SVN: r5830 commit eda566d21b98ad2f56fdc42175368b2451616a0f Author: Richard Gobeille Date: Sat Aug 27 01:41:21 2016 +0000 Use size_t or ssize_t in for loops where possible From-SVN: r5829 commit 90d9fc3df0dc40a212deb832fea8f914fc0e33b1 Author: Richard Gobeille Date: Sat Aug 27 01:41:04 2016 +0000 Further cleanup. DONT_BUILD. From-SVN: r5828 commit 154b412457e96f952b6a0360ab1e7e24f34bbd62 Author: Richard Gobeille Date: Sat Aug 27 01:40:56 2016 +0000 Continued cleanup. DONT_BUILD. From-SVN: r5827 commit 8f07516be7c0fae01d02ea058d31ccafc8edbb5f Author: Richard Gobeille Date: Sat Aug 27 01:40:46 2016 +0000 The great cleanup continues. This one also adds a new feature, SFLAG_WAKEUPBADGUYS. When awoken (changed to an active actor), any sprite with this flag set will wake up any enemy it has line of sight with. From-SVN: r5826 commit 9c7535d80aec43c1c8b9e2eccb697d773b584a25 Author: Richard Gobeille Date: Sat Aug 27 01:40:35 2016 +0000 Massive readability cleanup of game code part 1. DONT_BUILD. From-SVN: r5825 commit 6aba1857093d8e4aa8e9bc416cc1b125b1bb0fb8 Author: Richard Gobeille Date: Sat Aug 27 01:40:18 2016 +0000 Android build fix. DONT_BUILD. From-SVN: r5824 commit be4fb9b8467e32d8de86b7fe23b5bbdf9dbe186a Author: Richard Gobeille Date: Sat Aug 27 01:40:15 2016 +0000 Mapster32: add home/end modifier keys to 3d mode slope keys ([ and ]), plus a third increment modifier (home and end at the same time) From-SVN: r5823 commit ec5f4e4aa4f391e1662d1154f60b62cc30dba996 Author: Richard Gobeille Date: Sat Aug 27 01:40:11 2016 +0000 Support hex constants in scriptfile_getsymbolvalue() From-SVN: r5822 commit 04f06b6564d21643d151fcf2766b289048f9aeb5 Author: Richard Gobeille Date: Sat Aug 27 01:40:06 2016 +0000 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. From-SVN: r5821 commit 4f486ff58a26593621a0a9425b6a166bde67d635 Author: Richard Gobeille Date: Sat Aug 27 01:39:59 2016 +0000 Update _clang-format file. DONT_BUILD. From-SVN: r5820 commit 10d3e981d5ed517fd388a082a8368719aabe51a4 Author: Richard Gobeille Date: Sat Aug 27 01:39:56 2016 +0000 ldist/dist tweak From-SVN: r5819 commit 0dd2f805a64391c3f8012af97a3f5c1814049633 Author: Richard Gobeille Date: Sat Aug 27 01:39:53 2016 +0000 Fix EVENT_DISPLAYROOMS and EVENT_DISPLAYROOMSCAMERA RETURN values From-SVN: r5818 commit 8bd2a3b04a519d088976de79596a7d4fbf049df7 Author: Richard Gobeille Date: Sat Aug 27 01:39:50 2016 +0000 Windows MIDI cleanup. Removal of some remaining unused functionality lingering from the DOS days and some formatting changes that happened along the way. If anything breaks with music on Windows, this is probably the commit to look at. From-SVN: r5817 commit 51f08624e3ec696332602209b266d565d3f9a54e Author: Richard Gobeille Date: Sat Aug 27 01:39:45 2016 +0000 Windows MIDI support: remove a few unused structure members and the code that relied on them From-SVN: r5816 commit 8a83b20a256918761cc982aee400fc6b6c62ad01 Author: Richard Gobeille Date: Sat Aug 27 01:39:41 2016 +0000 basic cleanup and formatting From-SVN: r5815 commit a9e44ad0d45c6f07d7a916609adbc9df937a0244 Author: Richard Gobeille Date: Sat Aug 27 01:39:38 2016 +0000 audiolib: consolidate all multivoc invalid file errors into MV_InvalidFile renamed FX_PlayLooped to FX_Play and removed original FX_Play removed device type parameter from FX_Init moved several FX_ multivoc wrapper functions to the header and made them FORCE_INLINE From-SVN: r5814 commit 0a2b67d5f6abb6f9b629bf6241ca57c69d36b326 Author: Richard Gobeille Date: Sat Aug 27 01:39:30 2016 +0000 audiolib: initialization is better than assignment From-SVN: r5813 commit 56ee39a0d4875b3fa0b41b87dedc78cd0b5ac71a Author: Richard Gobeille Date: Sat Aug 27 01:39:24 2016 +0000 Sound cleanup: remove some unused functions From-SVN: r5812 commit 230ddff06ff1a5833f2bc1b490bc05f6f749c5ba Author: Philipp Kutin Date: Mon Jul 4 14:09:08 2016 +0000 Mapster32: on TROR point insertion, mark more points. This fixes a bug reported by Micky C on 2016-01-11 where too few points were marked to be inserted. See AMC TC SVN r2308. From-SVN: r5811 commit 65977b3af906ad303f353b78fe8b9b4140bf32b1 Author: Philipp Kutin Date: Mon Jul 4 14:09:08 2016 +0000 Mapster32: pull out some code from M32_InsertPoint() into M32_MarkPointInsertion(). From-SVN: r5810 commit 3dcb9f412e6a2275facd66834eadf05c0318086a Author: Philipp Kutin Date: Mon Jul 4 14:09:07 2016 +0000 Lunatic: fix map-text loading. The file descriptor was closed from Lua code, causing the subsequent kfilelength() to fail and attempt an allocation of (size_t)-1 bytes. From-SVN: r5809 commit e0c23f8101e99d6fe6eda8f65ef01aa7079c89d3 Author: Philipp Kutin Date: Mon Jul 4 14:09:06 2016 +0000 SDL2 layer: in Mapster32, fix menu Ctrl-F in case NumLock is on. From-SVN: r5808 commit e79bb55c363d27b286b5bf2d1dee55b32befaf3b Author: Philipp Kutin Date: Mon Jul 4 14:09:05 2016 +0000 engine.c: fix potential smostwall[-1] access. Found by ASan. From-SVN: r5807 commit c2f20bdb102eab1820d4b4bed68f3984c39bcd33 Author: Philipp Kutin Date: Mon Jul 4 14:09:03 2016 +0000 Fix non-HAVE_CLIPSHAPE_FEATURE build. Used for example with DEBUGGINGAIDS=2, i.e. sanitizers enabled. From-SVN: r5806 commit 6b4fbf4bb2b8fe48e4f46aa51f84e6e1bae19f44 Author: Pierre-Loup A. Griffais Date: Tue Jun 21 05:31:54 2016 +0000 nice nice good stuff From-SVN: r5805 commit 5356479c01b948cd17ffe10857511f59bd73d6ee Author: Richard Gobeille Date: Tue Jun 21 04:29:06 2016 +0000 Build fix From-SVN: r5804 commit b87214112c0e77eb712ea924dc2336bc860fc849 Author: Richard Gobeille Date: Tue Jun 21 00:34:41 2016 +0000 "return" is not a function. From-SVN: r5803 commit 510982f8aba33e2d5cab73428306f6995c971b94 Author: Richard Gobeille Date: Tue Jun 21 00:34:29 2016 +0000 Usual cleanup type stuff involving vectors and variable scopes. From-SVN: r5802 commit b8dfbc269b143e3ea4d94d25323d177a8ce5f195 Author: Richard Gobeille Date: Tue Jun 21 00:34:25 2016 +0000 Separate art tile related functions out from engine.c and into tiles.c From-SVN: r5801 commit 0304faca01bff264112f8a59759fe94f2ead0090 Author: Richard Gobeille Date: Tue Jun 21 00:34:18 2016 +0000 Vectorize a few more things. From-SVN: r5800 commit 0b8aebae59ee886f89086b199ee4fb8d788da243 Author: Richard Gobeille Date: Tue Jun 21 00:34:10 2016 +0000 FORCE_INLINE a couple of Polymost support functions. From-SVN: r5799 commit 2d547a3b9f1d9e44eef31373e07fde4f772619b8 Author: Richard Gobeille Date: Tue Jun 21 00:34:07 2016 +0000 Miscellaneous tomfoolery of little consequence. From-SVN: r5798 commit 8f8ff8bc0bbacad8ff50264abc8a74ae81f1a932 Author: Richard Gobeille Date: Tue Jun 21 00:34:03 2016 +0000 Fix MSVC build From-SVN: r5797 commit 0874e7de9914c677bdc8358b192338c91103cf24 Author: Richard Gobeille Date: Tue Jun 21 00:33:58 2016 +0000 tsectortype -> usectortype twalltype -> uwalltype tspritetype -> uspritetype No other changes. From-SVN: r5796 commit dd33bc0d7729c7bbbb5cb82c66ef31b9f9ab04f8 Author: Richard Gobeille Date: Tue Jun 21 00:33:45 2016 +0000 More changes similar to the previous commit From-SVN: r5795 commit a278836d3af87eabc8ccd1f3c256a6cce5ddf505 Author: Richard Gobeille Date: Tue Jun 21 00:33:39 2016 +0000 Change a bunch of engine functions that access sprites, walls, and sectors in a read-only fashion to use the untracked versions of those structs. From-SVN: r5794 commit 166fecbb834d59475fb236af8d06b686fa6480cc Author: Richard Gobeille Date: Tue Jun 21 00:33:35 2016 +0000 Clipping function tweaks. Fixes building without HAVE_CLIPSHAPE_FEATURE. From-SVN: r5793 commit c16d43409e949dda73726c54a00c33765fa674a1 Author: Richard Gobeille Date: Tue Jun 21 00:33:30 2016 +0000 Relocate maphack related code into mhk.c. This commit also relocates clipping related code into clip.c and makes a few other minor changes, because I fucked up and merged the commits together. God damn it. From-SVN: r5792 commit 012f2adc8257b62da9afbb215fb779f45900682d Author: Richard Gobeille Date: Tue Jun 21 00:33:19 2016 +0000 Separate screen capture code from engine.c into screenshot.c From-SVN: r5791 commit 37672dbf1bcf3abbae769fcc9fbf7f5b39d6b307 Author: Richard Gobeille Date: Tue Jun 21 00:33:14 2016 +0000 Split 2d mode editor stuff that remained in engine.c into 2d.c. From-SVN: r5790 commit ed143d31f8c217eaebb6643c6a8d8512d4ad021e Author: Richard Gobeille Date: Tue Jun 21 00:33:06 2016 +0000 Move palette related functionality from engine.c to palette.c/h. From-SVN: r5789 commit fdd2d591446b4e5f98c846b21b101993f459db9c Author: Richard Gobeille Date: Tue Jun 21 00:32:53 2016 +0000 Move hash table stuff out of engine.c and into hash.c/h. From-SVN: r5788 commit 28b12a91bee9ec72d092613c717e1997a015de30 Author: Richard Gobeille Date: Tue Jun 21 00:32:47 2016 +0000 Performance fix for Polymost wall sprite z-fighting avoidance From-SVN: r5787 commit b838066787880951edc1578a03e561b50046f8c9 Author: Richard Gobeille Date: Tue Jun 21 00:32:44 2016 +0000 Minor CON optimization bs. From-SVN: r5786 commit 795cb356f1805132f8b081d14bc05c3cf3720543 Author: Richard Gobeille Date: Tue Jun 21 00:32:40 2016 +0000 This is stupid as fuck, but I swear I profiled it and it was faster this way. Looked like a cache miss on the first access of the pointers. From-SVN: r5785 commit 82fb400ea3cd51a9771565a3f251a11c15456971 Author: Richard Gobeille Date: Tue Jun 21 00:32:37 2016 +0000 Pragma tweaks From-SVN: r5784 commit 685d23632dec1a3ede73857f1e1e2cbb8317815b Author: Richard Gobeille Date: Tue Jun 21 00:32:33 2016 +0000 Allow non-player hitscan projectiles to spawn sprites when impacting walls or sectors, and allow them to break sector textures (they could already break wall textures) From-SVN: r5783 commit 73c903b294902d93d7d26c9d3e73a0f14f713f8b Author: Richard Gobeille Date: Tue Jun 21 00:32:28 2016 +0000 Allow SFLAG_NOCLIP to apply to projectile movement From-SVN: r5782 commit 73e4ba75fcb7bccfa61f3ed7fa88ad93553aa043 Author: Evan Ramos Date: Wed Jun 15 07:08:48 2016 +0000 Remove x86 asm pragmas for readpixel and drawpixel and replace them with their C versions. This fixes a crash in the editor's 2D mode, reported by Paul B. From-SVN: r5781 commit e90d276d2874d347cb49347fde9c813679e70a58 Author: Evan Ramos Date: Wed Jun 15 07:08:45 2016 +0000 Replace uses of the HAVE_DS and HAVE_SDL preprocessor macros with MIXERTYPEWIN and MIXERTYPESDL. From-SVN: r5780 commit 318194f5d31ef6b06d1be17c9c313a7bab222b4c Author: Evan Ramos Date: Wed Jun 15 07:08:40 2016 +0000 Delete all SDL_mixer Windows libs from our repo since they're not part of our automated build process, and are not recommended. From-SVN: r5779 commit a9097df3dd234fd4f7d6616ac259a16892536291 Author: Evan Ramos Date: Wed Jun 15 07:08:35 2016 +0000 Makefile: Revamp setup of all things SDL. Highlights: *Building with msys2 can now take advantage of sdl-config and sdl2-config if present. *Add a header check to error out if SDL_mixer's major version does not match SDL. *Building with frameworks on OS X works again. Notes: *Those cross compiling, particularly targeting Windows, may need to invoke make with SDLCONFIG='' to avoid bringing in libs and headers from the host. From-SVN: r5778 commit 184dff5fb4017cbf19ba6c50c6e6adb8aeb1d57f Author: Evan Ramos Date: Wed Jun 15 07:08:31 2016 +0000 Makefile: Add NULLSTREAM to factor out the NUL part of DONT_PRINT. From-SVN: r5777 commit f4a502b61e68ac44edd3e10ee27ec9cbda3f62e4 Author: Evan Ramos Date: Wed Jun 15 07:08:26 2016 +0000 Makefile: Add a special set of default optimization options when building for the Haswell-specific x86_64h architecture designation. From-SVN: r5776 commit afb21b18baa6620157eb1c535f3da8b6dc7ebf66 Author: Evan Ramos Date: Fri Jun 10 18:23:25 2016 +0000 Polymer: Correct an oversight in r3580. From-SVN: r5775 commit 54b2fc799aa31ca43b89affff877a592a7543ce6 Author: Evan Ramos Date: Fri Jun 10 18:23:22 2016 +0000 Polymer: Revert part of r5481. We can't rely on the sprite trackers to tell us when tsprites change. From-SVN: r5774 commit 345035da77cfe9005e7da4b34c51e1c0246e8bda Author: Evan Ramos Date: Fri Jun 10 18:23:15 2016 +0000 Duke3D: Restore some accidentally-working cases of SEs 5, 6, 14, and 30 broken in r3161. From-SVN: r5773 commit 6943c21b08975349d391926d487482818f993980 Author: Evan Ramos Date: Mon Jun 6 22:13:05 2016 +0000 BSD: Fix build on OpenBSD. DONT_BUILD. From-SVN: r5772 commit 46647364820ae3e7771f02134fb4fac56db5dce1 Author: Evan Ramos Date: Sun Jun 5 04:46:43 2016 +0000 Revert r5658. This fixes the disappearing chaingun problem. From-SVN: r5771 commit 488258c14c1b1eb286515e700de450e4c3aae542 Author: Evan Ramos Date: Sun Jun 5 04:46:40 2016 +0000 GL: In uploadtexture, don't assume that a non-masking texture can safely be sent to the driver without the alpha channel. From-SVN: r5770 commit e828d4ffa52af6eee1e8d78a05f09621a84fd71e Author: Evan Ramos Date: Sun Jun 5 04:46:37 2016 +0000 Polymer: Fix the oversight in handling tspr->extra from r5400 by setting it to zero in polymer_scansprites. From-SVN: r5769 commit 1a4b71a7d00ad1faac63a4f2df4bc925bd15b1d9 Author: Evan Ramos Date: Sun Jun 5 04:46:28 2016 +0000 Remove trailing whitespace from anything we don't need to rebase from an upstream. From-SVN: r5768 commit 90a7bf1d9736d7b2654bdbeecaa1bd1bd0bc64e3 Author: Evan Ramos Date: Sun Jun 5 04:46:06 2016 +0000 Add some preprocessor checks on the output format to the asm. From-SVN: r5767 commit a25145d223a282a91a6825a66ca9f5976fb6d749 Author: Evan Ramos Date: Sun Jun 5 04:46:01 2016 +0000 Makefile: Switch the detection order of OPTOPT flags so that i386 is checked after x86_64. This ensures full compatibility for fat OS X binaries built using ARCH="-arch i386 -arch x86_64". From-SVN: r5766 commit 3804621911e738cff3a8ef2b35a7ec5d6b4feb7f Author: Evan Ramos Date: Fri Jun 3 04:50:57 2016 +0000 Makefile: Create GTK *_banner.c files in obj/ subfolders instead of rsrc/ so that they don't need separate cleanup rules. From-SVN: r5765 commit 286e82cdab158d3b35d0a408f6bfca5e8fa6080f Author: Evan Ramos Date: Fri Jun 3 04:50:55 2016 +0000 Makefile: Make Objective-C code build as Objective-C++ when we build C code as C++. From-SVN: r5764 commit 66252cc137d3eb65d1d611876ac7750c53e16db0 Author: Evan Ramos Date: Fri Jun 3 04:50:52 2016 +0000 Makefile: Add extra optimization defaults for OS X builds since all Intel Macs are guaranteed certain features due to the time of their debut. From-SVN: r5763 commit ad0ccd88e58d1be9b3e110588ba8bcbaeacc8c43 Author: Evan Ramos Date: Fri Jun 3 04:50:47 2016 +0000 Makefile: Clean up handling of architectures. From-SVN: r5762 commit 8c225693622754b50f0924815fa0da9b54ac3c39 Author: Evan Ramos Date: Sun May 29 21:11:27 2016 +0000 Remove unnecessary asm unprotection of ylookup[]. From-SVN: r5761 commit 7d3ff4aad081e50835dfb4bdd275616f29c3e375 Author: Evan Ramos Date: Sun May 29 21:11:24 2016 +0000 Clean up self-modifying assembly unprotection and add PROT_EXEC to mprotect() calls. This fixes NOASM=0 under OS X. From-SVN: r5760 commit f2ccf1eb457c81a4b7cf5cd1fbbef0be6b1fcd74 Author: Evan Ramos Date: Sun May 29 21:11:21 2016 +0000 sdlayer: Clean up creation of SDL_Renderer and provide information about the process to the log. From-SVN: r5759 commit 8e695aeaa5e6371f5817c2f71377eeb0ecfebd9c Author: Evan Ramos Date: Sun May 29 21:11:17 2016 +0000 Clean up fallback video mode attempt code in order to fix at least three bugs. From-SVN: r5758 commit a4b1c3f3a6c06c503f0f20f51420ad5c9fd4569b Author: Evan Ramos Date: Sun May 29 21:11:12 2016 +0000 A small patch from rhoenie to make our source compatible with the Intel C Compiler. Our makefile would need more setup and I currently don't have any means of testing. From-SVN: r5757 commit dfe915b15711655aaef350665dbf1bfce0249116 Author: Evan Ramos Date: Mon May 23 04:54:13 2016 +0000 Update ignore rules. From-SVN: r5756 commit 4c8f1ecd99dcef9191613c1be5a52346f352d039 Author: Evan Ramos Date: Mon May 23 04:47:22 2016 +0000 Lunatic: Fix build. BUILD_LUNATIC. From-SVN: r5755 commit e852f6de580b6cabefe3e93daf49441705e2f398 Author: Evan Ramos Date: Mon May 23 04:47:18 2016 +0000 Makefile: Convert object lists to an escaped multi-line format for better diffing. From-SVN: r5754 commit 108cb5822c383d34a9e8b58418893ed810607198 Author: Evan Ramos Date: Mon May 23 04:47:15 2016 +0000 Makefile: Add some missing dependencies on the folders in which objects are created. From-SVN: r5753 commit 7765f4e7b906bf0f08ec6e91456cdf03615b5e7f Author: Evan Ramos Date: Mon May 23 04:47:12 2016 +0000 Makefile: Add L_CXXONLYFLAGS, and use it to pass "-static-libstdc++" on Windows. From-SVN: r5752 commit 50564cc32f1e7ecd7f95c57a86c97791e17f2ae1 Author: Evan Ramos Date: Mon May 23 04:47:09 2016 +0000 Makefile: Remove STATICSTDCPP variable. From-SVN: r5751 commit e7b96d94d15454afe45f4c72bcf58df3909350c3 Author: Evan Ramos Date: Mon May 23 04:47:06 2016 +0000 Makefile: Rename "CPPONLYFLAGS" variable to "CXXONLYFLAGS", since "CPPFLAGS" traditionaly refers to the C preprocessor, not C++. From-SVN: r5750 commit 5925ee1b8b5fc677883a1883b243e838f60a9fdf Author: Evan Ramos Date: Mon May 23 04:47:03 2016 +0000 Makefile: Output the postprocessed Lunatic symbol lists to $(DUKE3D_OBJ) so they don't need special cleanup and ignore rules. Also fix building the Lunatic-enabled editor on OS X. From-SVN: r5749 commit 6dba8b603a6cb916683619654b6a50cfda86725c Author: Evan Ramos Date: Mon May 23 04:47:00 2016 +0000 Makefile: Output objects to subfolders of one unified "obj" folder and simplify clean rules accordingly. From-SVN: r5748 commit 8fc3a6bd3fb8830c1f208daab65e6c1f6876f6b5 Author: Evan Ramos Date: Mon May 23 04:46:57 2016 +0000 Makefile: Add mappings from a component's root prefix to its ideal folder name. From-SVN: r5747 commit a0139ef6b8631f1dfb964d5a85bf1ff4c1d2e2f9 Author: Evan Ramos Date: Mon May 23 04:46:54 2016 +0000 Makefile: Introduce *_PROPER name variables for output components and use them where currently implemented. From-SVN: r5746 commit 44db3bf4e85aa4a8532e6e6fbd1bd9ff358cdc1c Author: Evan Ramos Date: Mon May 23 04:46:52 2016 +0000 Makefile: Rename a large number of variables in the component definitions in order to make things consistent (and factorable). From-SVN: r5745 commit 322a3960c0823959695d767a89db668827c962b1 Author: Evan Ramos Date: Mon May 23 04:46:49 2016 +0000 Makefile: Fix erroneous tab characters. From-SVN: r5744 commit f8b11255d57072b37b4e0960e52fffa756058813 Author: Evan Ramos Date: Mon May 23 04:46:46 2016 +0000 Makefile: Shorten host platform detection code and improve it on Windows to try using $(OS) before invoking uname, and to catch "MSYS" in addition to "MINGW" in uname's output. From-SVN: r5743 commit e1bf8705486e8237782a637a2ebb154a404bba39 Author: Evan Ramos Date: Mon May 23 04:46:43 2016 +0000 Makefile: Remove *_TARGET variables for final outputs, which could have been used to disable compilation of specific ones. This was only ever used to not compile the editor for Wii, but we now support that. Up to now these only served to clutter the Makefile. From-SVN: r5742 commit 69936fb587a589f813e3fed78908c5584d62f008 Author: Evan Ramos Date: Mon May 23 04:46:41 2016 +0000 KenBuild: Address "warning: shifting a negative signed value is undefined [-Wshift-negative-value]". From-SVN: r5741 commit cfe2aee9a9c6286751f46887720465d7d98fff51 Author: Evan Ramos Date: Mon May 23 04:46:37 2016 +0000 KenBuild: Fix OS X build. From-SVN: r5740 commit 03efe00d369756d08ec34c1242d79b8f06584807 Author: Evan Ramos Date: Mon May 23 04:46:34 2016 +0000 KenBuild: Fix symbol issues. From-SVN: r5739 commit 045a63f376fbd92b44682cf26246078bcd5e35fd Author: Evan Ramos Date: Mon May 23 04:46:30 2016 +0000 KenBuild, SW: rotatepoint From-SVN: r5738 commit e5c6ff4313a17ee17274f60d05ec2868a577b7c1 Author: Evan Ramos Date: Mon May 23 04:46:25 2016 +0000 KenBuild, SW: Fix "psky" typo. From-SVN: r5737 commit 25b34580d879c89403fe62d08db4af9fdb74d450 Author: Evan Ramos Date: Mon May 23 04:46:21 2016 +0000 KenBuild: tspritetype From-SVN: r5736 commit 5158010edf4a8b9565f53a64a14b0c27b7ad3768 Author: Evan Ramos Date: Mon May 23 04:46:18 2016 +0000 KenBuild: Fix mul3 and sqr pragmas. From-SVN: r5735 commit 867aa3d38ba554cbbc652ff6b1bc2d640fa535d9 Author: Evan Ramos Date: Mon May 23 04:46:14 2016 +0000 KenBuild, SW: Fix Win32 startup window warnings. From-SVN: r5734 commit d48e729cddd0cb1edf61bbfb4cb41a4d44558194 Author: Evan Ramos Date: Mon May 23 04:46:11 2016 +0000 Use "Backslash" instead of "\" for keybinds because its nature as an escape character causes issues. Fixes ticket #16. From-SVN: r5733 commit ca36099387ada535b7a5ee6a9424073016504d28 Author: Evan Ramos Date: Mon May 23 04:46:07 2016 +0000 libdivide.h: Silence "warning: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'long long' in initializer list in C++11 [-Wc++11-narrowing]". The problem that the block of code in question works around was fixed in LLVM r82228 and landed in clang 2.7. From-SVN: r5732 commit b3b97aaa10fefdd8c280ae7ccc3f87c201dfc200 Author: Evan Ramos Date: Mon May 23 04:46:02 2016 +0000 libdivide.h: Silence "warning: variable 'result' is uninitialized when used here [-Wuninitialized]". From-SVN: r5731 commit 72648f97af26da0e44ceace2aa2cec2b25616036 Author: Evan Ramos Date: Sun May 22 21:01:12 2016 +0000 Amend previous commit. DONT_BUILD. From-SVN: r5730 commit fd862e8a727d577e962a1350192fe7fe14c3f0b7 Author: Evan Ramos Date: Sat May 21 02:39:58 2016 +0000 Fix NO_ALIGNED_MALLOC to actually work and not transpose the parameters. DONT_BUILD. From-SVN: r5729 commit 6189d66daca37643f90f5fd90370c274b070145e Author: Richard Gobeille Date: Fri May 13 22:15:37 2016 +0000 Add CON_CLAMP From-SVN: r5728 commit 4b38c5f86e073efe23e2bcd0b2a2afce9b4a5767 Author: Richard Gobeille Date: Fri May 13 22:15:34 2016 +0000 VS solution update. DONT_BUILD. From-SVN: r5727 commit 021d3703dcb2464499c2290e158a2a3dfc083d59 Author: Richard Gobeille Date: Fri May 13 22:15:31 2016 +0000 Fix issue where sometimes hitscan projectile trails weren't spawning From-SVN: r5726 commit a125e1373486dda164aed3d934a60d6cb7252282 Author: Richard Gobeille Date: Fri May 13 22:15:28 2016 +0000 Misc Polymost crap. Improves detection of sprite/wall collisions for z-fighting avoidance From-SVN: r5725 commit 71152eb426ce778dbd63a5bdecf37932848e4e04 Author: Richard Gobeille Date: Fri May 13 22:15:25 2016 +0000 Replace uses of "swap64bit" where "swapdouble" is what is really meant. There is nothing in this to handle potential platforms where sizeof(double) != sizeof(int64_t) From-SVN: r5724 commit 979305259e4a67b46808fc9dfeffa48c25910e2c Author: Richard Gobeille Date: Fri May 13 22:15:20 2016 +0000 Revert bad attempt at fixing cstat 1024 From-SVN: r5723 commit 342a41ce2f307328c449a2356dcfea1241260663 Author: Richard Gobeille Date: Fri May 13 22:15:17 2016 +0000 Apply patch from http://bugs.eduke32.com/index.php?do=details&task_id=21 From-SVN: r5722 commit 2409ecf00e626c47dafe3315cf419d8c103c0af5 Author: Richard Gobeille Date: Fri May 13 22:15:12 2016 +0000 Change default pointhighlightdist in the editor to 128 From-SVN: r5721 commit 357701e451faa702d63d1f6d86cab0b3287ac5a1 Author: Evan Ramos Date: Wed May 11 02:59:15 2016 +0000 Reorder preprocessor lines in libdivide.h so that LIBDIVIDE_USE_SSE2 is defined before emmintrin.h is included. Fixes ticket #23. DONT_BUILD. From-SVN: r5720 commit 109c0ecc696f2f7edda04d4d52991e9f89dc248c Author: Evan Ramos Date: Wed May 11 01:03:56 2016 +0000 More Android build changes. DONT_BUILD. From-SVN: r5719 commit 1e37b6c9b967e40de983a541a27f536fa6510276 Author: Evan Ramos Date: Thu May 5 19:50:22 2016 +0000 A quick hack so that Mapster can load more pre-v7 PALETTE.DAT files. From-SVN: r5718 commit 388eac67e8b08814c98c0cdfdd4d34a498ee27a1 Author: Evan Ramos Date: Wed May 4 08:26:08 2016 +0000 Some stuff for using clang to build on Android. DONT_BUILD. From-SVN: r5717 commit dab2fcb4b11cc804ba1126e0aaa63e42714c6f52 Author: Evan Ramos Date: Wed May 4 00:25:27 2016 +0000 Enable LIBDIVIDE_USE_SSE2 under x86_64 builds or if the binary is built with SSE2 optimizations. From-SVN: r5716 commit 84284b3d6197198bd656ab157efa79e928fd60c8 Author: Evan Ramos Date: Wed May 4 00:25:24 2016 +0000 GL ES: Interpreting glGetError as always meaning "this internal texture format doesn't work" is too dangerous to keep in the live code (not to mention wasteful). Move it to a new and improved Polymost_InitDummyTexture, now called Polymost_DetermineTextureFormatSupport. From-SVN: r5715 commit d65fa708bd7071fc64c546f54fcbf16c16bb5690 Author: Evan Ramos Date: Wed May 4 00:25:20 2016 +0000 Polymost: Factor out the ETC block preparation by moving the ETC function decision from Polymost_SendTexToDriver into Polymost_PickETCFunction. From-SVN: r5714 commit b0084424422876fbb58aa875763fe0264a8be5c8 Author: Evan Ramos Date: Wed May 4 00:25:17 2016 +0000 Polymost: Allow compressed ART tiles (r_texcompr 2) to be cached. From-SVN: r5713 commit 04d7e963d885d468f59e9c456d5785366e760c55 Author: Evan Ramos Date: Wed May 4 00:25:13 2016 +0000 You'll Cowards Don't Even Indent From-SVN: r5712 commit 12991ed96efe00ae7c2c7006cc740314334ec6ed Author: Evan Ramos Date: Wed May 4 00:25:10 2016 +0000 Polymost: Tweak the "don't upload textures with dimension > xdim" GL ES rule to limit to the power of two greater than xdim instead of less than it. From-SVN: r5711 commit a3dae01aea3826c6b3e9031de66222a1e114c125 Author: Evan Ramos Date: Wed May 4 00:25:06 2016 +0000 Polymost: Clean up and rearrange some texcache code. No functional changes. From-SVN: r5710 commit 314fc0915aa8cece679ad4bdc9cdd07e81295a77 Author: Evan Ramos Date: Wed May 4 00:25:02 2016 +0000 Polymost: Call texcache_calcid once per texture instead of twice. Clean it up a little while we're at it. From-SVN: r5709 commit 768014dda13eefec4002ea8fb3a424cbe1355e82 Author: Evan Ramos Date: Wed May 4 00:24:55 2016 +0000 Ensure that game backgrounds that sometimes get drawn with orientation&64 always get drawn with orientation&64 to avoid wasting RAM. From-SVN: r5708 commit 9439c9519cdf3dc6ba6233011642a3b4cdfcbb1c Author: Evan Ramos Date: Mon May 2 18:29:41 2016 +0000 Small tweaks to Android.mk. From-SVN: r5707 commit 568af418e8844426f91c7dec8416c5b9ec37cc58 Author: Evan Ramos Date: Mon May 2 18:29:38 2016 +0000 Add a hack so that when exit() is called on Android, we instead longjmp to main() and return from there. From-SVN: r5706 commit 41e0df2178cbcc430ebe4d5e1b072668ea732b83 Author: Evan Ramos Date: Mon May 2 18:29:35 2016 +0000 Defs: Add "artquality" subtoken to textures, model skins, and skyboxes, which grants the texture HICR_ARTIMMUNITY. In effect, this implies "nodownsize" and signals that texture compression would be undesirable, but okay using r_texcompr mode 2 (aggressive). From-SVN: r5705 commit b41bb37aa6393985535180264d3b4e9fe5b0fa2a Author: Evan Ramos Date: Mon May 2 18:29:32 2016 +0000 In polymost_glinit, pass a dummy 4x4 texture to uploadtexture in order to detect what compressed texture formats are acceptable without wasting time compressing the first texture it encounters, such as the 3D Realms screen, in case the graphics chip won't take it. From-SVN: r5704 commit 79709ce85bd8a51b3cd3662bf62225ae8e3ca704 Author: Evan Ramos Date: Mon May 2 18:29:28 2016 +0000 Models: This seems like a bugfix. From-SVN: r5703 commit 2f96cf7b22f2eaeba9afd3e396cb5229be4b9d9d Author: Evan Ramos Date: Mon May 2 18:29:25 2016 +0000 Fix an unused variable warning introduced in r5696. From-SVN: r5702 commit 1dd574a34c0399d902d6ba6e1a0445e168116045 Author: Evan Ramos Date: Mon May 2 18:29:21 2016 +0000 Revert post-r5496 warning cleanup. From-SVN: r5701 commit a5659e7006b1e2441e39203c0559a331d8b44307 Author: Richard Gobeille Date: Wed Apr 13 04:04:13 2016 +0000 Revert r5496 From-SVN: r5700 commit 00916ce8b863a3b71154bf5963eccae61838c4e0 Author: Richard Gobeille Date: Wed Apr 13 04:04:07 2016 +0000 Tweak nofog, DONT_BUILD. From-SVN: r5699 commit 2467de63edfd689576627e591d76479db8646cf9 Author: Richard Gobeille Date: Wed Apr 13 04:04:03 2016 +0000 Disable prompt to upgrade from the shareware version after 50 runs From-SVN: r5698 commit d2e009c9596ee9b86e20094c55a910b46ba8cfba Author: Richard Gobeille Date: Wed Apr 13 04:03:59 2016 +0000 Allow turning off the jetpack or HoloDuke while looking through a security monitor From-SVN: r5697 commit c033d1e2e96e80193ee03d58817621d2000962b8 Author: Richard Gobeille Date: Wed Apr 13 04:03:55 2016 +0000 Lookup tables for mapping inventory item indexes to icons (and vice versa). DONT_BUILD. From-SVN: r5696 commit 8045b97a78e724a5d07c77ce02aee42998148270 Author: Richard Gobeille Date: Wed Apr 13 04:03:49 2016 +0000 This file lives elsewhere now. DONT_BUILD. From-SVN: r5695 commit 35f05047409edc2d8b379813b748fbcda4bd851a Author: Evan Ramos Date: Wed Apr 6 03:07:52 2016 +0000 Polymost: Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall. From-SVN: r5694 commit f81b39b22c634570209c003192fcad3e712e2a2e Author: Evan Ramos Date: Wed Apr 6 03:07:47 2016 +0000 Menus: Adjust the way bottom edges are clipped in rotatesprite to better handle tall text, or text with long Q tails. From-SVN: r5693 commit afaa5d49c2a31982cb30b13352006c7de0c5b56f Author: Evan Ramos Date: Fri Apr 1 23:02:23 2016 +0000 A potential fix for the "loading sounds and music from zip files" bug. From-SVN: r5692 commit de6f91f07ae8c249ec6f9717c7baaa21e5b87260 Author: Evan Ramos Date: Mon Mar 28 05:16:18 2016 +0000 OS X: Only build the SDLMain object with SDL 1.2. From-SVN: r5691 commit 5d605d3f1560b8293c9438d64f3c2e9ecc1df38c Author: Evan Ramos Date: Mon Mar 28 05:16:14 2016 +0000 GL ES: Introduce ETC1 and (alpha-less) ETC2 texture compression, which improves performance by using less VRAM and requiring shorter data bus transfers. From-SVN: r5690 commit e58ae665e3676ccf89baa531ffa0ef870e9e504b Author: Evan Ramos Date: Mon Mar 28 05:16:09 2016 +0000 etcpak: Modify ProcessRGB to take input in RGBA format instead of BGRA. From-SVN: r5689 commit 1083d242e4afdd37f70cc4bed9750e01c2e0cf30 Author: Evan Ramos Date: Mon Mar 28 05:16:05 2016 +0000 etcpak: Enforce C linkage on the ProcessRGB functions. From-SVN: r5688 commit 093c8cd4fe81a2e5dad067d9b586d14a23a80e0e Author: Evan Ramos Date: Mon Mar 28 05:16:02 2016 +0000 etcpak: Replace use of std::array (which seems not to exist under all compilers) with simple custom class. From-SVN: r5687 commit 476a0dac4218db519b15854d4bcd33c09154bcc2 Author: Evan Ramos Date: Mon Mar 28 05:15:59 2016 +0000 etcpak: Replace x86-specific _bswap intrinsic with custom byteswap function (which a good compiler should treat identically anyway). From-SVN: r5686 commit 201a8287737f742df9860461729d99f948db3b65 Author: Evan Ramos Date: Mon Mar 28 05:15:56 2016 +0000 etcpak: Remove C++11 dependency on cstdint when compiling with an earlier standard revision. From-SVN: r5685 commit 7ce868604497a88888d0a1d6641a398b555b6366 Author: Evan Ramos Date: Mon Mar 28 05:15:52 2016 +0000 etcpak: Modify include guard tokens to conform to the C and C++ standards by not using underscore prefixes. From-SVN: r5684 commit 49c70276de1f46f48c9c7433b3c63e83e0d920d3 Author: Evan Ramos Date: Mon Mar 28 05:15:48 2016 +0000 etcpak: Remove SSE4.1 and AVX2 support. They are of no use to us on ARM. From-SVN: r5683 commit 34378ac38481a80ddbc2d3a18e7a08856dc1bf6a Author: Evan Ramos Date: Mon Mar 28 05:15:44 2016 +0000 etcpak: The fma function is not a member of the std namespace. From-SVN: r5682 commit c7a6d469a5c2e1c8c2eefcbc24178adca0763571 Author: Evan Ramos Date: Mon Mar 28 05:15:41 2016 +0000 etcpak: Fix type problem in ProcessRGB_ETC2. From-SVN: r5681 commit b9b6e4c85d193c9e60c198610a8ae4a6df3887be Author: Evan Ramos Date: Mon Mar 28 05:15:37 2016 +0000 Add the ETC compression algorithm portions of etcpak to the repository, with no modifications. From-SVN: r5680 commit de03a900bf249cd3b234336cd38dc55cdaf19658 Author: Evan Ramos Date: Mon Mar 28 05:15:32 2016 +0000 Fix Android warnings missed due to Android.mk misconfiguration. From-SVN: r5679 commit 9694ad3f5ef4bb4ed6f1c560f940f1cd02e2e39a Author: Evan Ramos Date: Mon Mar 28 05:15:27 2016 +0000 Fix warnings pointed out by Xcode. From-SVN: r5678 commit 342ee1370f8fb73c306d17c2eaf3affcc490c1fb Author: Evan Ramos Date: Mon Mar 28 05:15:23 2016 +0000 Android: Minor build system cleanup. From-SVN: r5677 commit 1289312ff3fec6e2b26b1cbde4ce628cfc5b1e8d Author: Evan Ramos Date: Mon Mar 28 05:15:20 2016 +0000 jwzgles: Add glCompressedTexImage2D and glCompressedTexSubImage2D as cheap copies of their non-compressed variants. From-SVN: r5676 commit b244dec1a9b248e9dd93ec9425f399a861bfcaa0 Author: Evan Ramos Date: Mon Mar 28 05:15:17 2016 +0000 jwzgles: Allow using RGBA as the input texture format for an alpha-less internal texture format. From-SVN: r5675 commit 34ddce61dc8941fdc18b05f3483ea10bcbdc9477 Author: Evan Ramos Date: Mon Mar 28 05:15:14 2016 +0000 jwzgles: Revert part of r5655 that wiped out my cast-qual fixes from r5551. From-SVN: r5674 commit 165997833dc9f3dc5a824856f08f9e073e134492 Author: Evan Ramos Date: Mon Mar 28 05:15:10 2016 +0000 Engine: Clean up texcache_enabled. From-SVN: r5673 commit bee826d1f9af6c60fa2a734b1254788f3d88070c Author: Evan Ramos Date: Mon Mar 28 05:15:05 2016 +0000 Un-break the iOS build. From-SVN: r5672 commit 6194b75f6f57108e6b841052952b61d32b813e66 Author: Richard Gobeille Date: Wed Mar 16 00:22:44 2016 +0000 Fix drawing voxels with ids >= 256 From-SVN: r5671 commit d2ea36bb1e70166242227d3fdd3837f397d7c2c9 Author: Richard Gobeille Date: Tue Mar 15 22:17:04 2016 +0000 Make sprite tails and label borders purple if the sprite is blocking. From-SVN: r5670 commit 544df9b9d244a53a7199936d93a0cdba61c8a814 Author: Richard Gobeille Date: Mon Mar 14 00:08:02 2016 +0000 Fix Mapster32 sprite selection colors when using a tiles.cfg that defines tile groups using colors from the bright half of the original 16-color palette. In layman's terms, this fixes the effect sprites flashing black in 2d mode. From-SVN: r5669 commit c4a9b52d41fae6bf5a8548a464a774a50ff59aca Author: Richard Gobeille Date: Mon Mar 14 00:07:58 2016 +0000 Minor change of scope of a couple variables. DONT_BUILD. From-SVN: r5668 commit 22a67581ac2f71e12c2f599319cccfd17fed8196 Author: Richard Gobeille Date: Mon Mar 14 00:07:55 2016 +0000 Add .ssi to the list of file extensions loaded automatically when passing a directory with -game_dir From-SVN: r5667 commit 96553af6365885be540ecb7a3dfef4c11eb29814 Author: Richard Gobeille Date: Mon Mar 14 00:07:52 2016 +0000 Fix a bug where cvars of type CVAR_UINT couldn't be set to values larger than a signed int due to clamping by atoi/atol. From-SVN: r5666 commit 186aaea6d1b879764ae0e66fbf7a7e0466daa41a Author: Richard Gobeille Date: Mon Mar 14 00:07:48 2016 +0000 Play DUKE_GETWEAPON6 in cheat menu From-SVN: r5665 commit 0b5d965474060d15f1030fd0b3c952323b37b654 Author: Richard Gobeille Date: Mon Mar 14 00:07:44 2016 +0000 Add #pragma once to the top of a couple of the most commonly included headers in build/include. DONT_BUILD. From-SVN: r5664 commit b3dd52402438ff7fc9fb1f6eead595a60dd4a2df Author: Richard Gobeille Date: Mon Mar 14 00:07:40 2016 +0000 Android UI work. DONT_BUILD. From-SVN: r5663 commit d2d66484056aab5fa2b39fac462ab08f7e5f0b30 Author: Richard Gobeille Date: Mon Mar 14 00:07:34 2016 +0000 pragma once for mact headers. From-SVN: r5662 commit 9ba96c6262284f4a4964aa64b71dde584c83f7c6 Author: Richard Gobeille Date: Mon Mar 14 00:07:28 2016 +0000 Android stuff. DONT_BUILD. From-SVN: r5661 commit 7a3b43cb1abec4ca8baba95c9a30234fafeeb61a Author: Richard Gobeille Date: Mon Mar 14 00:07:22 2016 +0000 Remove useless bytesperline parameter from a couple of kplib functions. From-SVN: r5660 commit 42aca43795f85e1f48c9c0c076313e426bc26cf3 Author: Richard Gobeille Date: Mon Mar 14 00:07:18 2016 +0000 Disable gamma based brightness with GL ES because it's too slow. DONT_BUILD. From-SVN: r5659 commit 75de9ae1e243dd4c944899b474adbf3bd87cb3fb Author: Richard Gobeille Date: Mon Mar 14 00:07:15 2016 +0000 Remove a couple of apparently unncessary glPushMatrix()/glPopMatrix() calls. From-SVN: r5658 commit 4795b68823df59c0c15f9d88d97bcc59b6a2d61e Author: Richard Gobeille Date: Mon Mar 14 00:07:12 2016 +0000 Don't squish the player in lotag 1 sectors that have a SE7. From-SVN: r5657 commit 1fc6da6e30a0482c46dd183ab6c8cb18428c8955 Author: Richard Gobeille Date: Mon Mar 14 00:07:08 2016 +0000 Move inventory enums into a separate inv.h. DONT_BUILD. From-SVN: r5656 commit 084d4253a1048ad8fc6bd881e02f213769c9d00b Author: Richard Gobeille Date: Mon Mar 14 00:07:04 2016 +0000 A couple of jwzgles fixes for mobile, from a newer version of xscreensaver. DONT_BUILD. From-SVN: r5655 commit 1e8f26e493d4547ba28c861b665cf2c95be87eb4 Author: Richard Gobeille Date: Mon Mar 14 00:07:01 2016 +0000 Make PLUTOPAKSPRITE glow on the startup screen like it glows in the menu, because the startup screen is displayed until input is received on mobile. From-SVN: r5654 commit 29752e733cf858769d40a6f586d94bb0f89a7b66 Author: Richard Gobeille Date: Mon Mar 14 00:06:58 2016 +0000 Fix parental lock From-SVN: r5653 commit 11122afd758edf9c461f76f03e27249041268b95 Author: Richard Gobeille Date: Mon Mar 14 00:06:54 2016 +0000 Android work. DONT_BUILD. From-SVN: r5652 commit a6c49d3790040348ad4c179754bac099d2b891f8 Author: Richard Gobeille Date: Mon Mar 14 00:06:45 2016 +0000 VS project and MSVC Makefile updates. DONT_BUILD. From-SVN: r5651 commit fda2ca9b781ea6c5030f605ff52928f066b2a415 Author: Evan Ramos Date: Mon Mar 7 11:22:07 2016 +0000 Revert r5601 in its entirety. This fixes MIDI playback on Windows. From-SVN: r5650 commit 5d54bba919ade378fe95d6b01e92cc8b91e4a40b Author: Evan Ramos Date: Mon Mar 7 11:22:02 2016 +0000 Engine: Add one-bit alpha detection for hightile and model skins. From-SVN: r5649 commit 14a8a1e5ebddbbd65df052dc896c5e16df1fc9ef Author: Evan Ramos Date: Mon Mar 7 11:21:58 2016 +0000 Polymost: Add r_texcompr 2, which compresses ART in addition to hightile. From-SVN: r5648 commit f32a080af553321aa2790372ed6f88066639975b Author: Evan Ramos Date: Mon Mar 7 11:21:55 2016 +0000 Polymost: Add HICR_ARTIMMUNITY and DAMETH_ARTIMMUNITY, which currently function identically to NOTEXCOMPRESS and NODOWNSIZE combined, and are only used when: 1. Using an ART tile 2. Using a hightile defined through the tilefromtexture "texture" subtoken 3. Using a hightile that, if downsized, will be smaller than the ART tile for that tilenum (tenuous) From-SVN: r5647 commit 78394313ad802017b5b8b26b98598ead193b4660 Author: Evan Ramos Date: Mon Mar 7 11:21:51 2016 +0000 Nuke some troublesome default texcache setting detection/enforcement in game.c that looks redundant anyway. From-SVN: r5646 commit ad4b789833ad3c0c571811d39facfd0a9a0d5ac5 Author: Evan Ramos Date: Mon Mar 7 11:21:46 2016 +0000 Fix mistakes in r5642. From-SVN: r5645 commit 995cc287e46bdccf7197b42efe7c464077e6be0b Author: Evan Ramos Date: Fri Mar 4 19:24:54 2016 +0000 Engine: Move daskinloader into mdloadskin and clean up it and gloadtile_hi against one another. From-SVN: r5644 commit 4e660436d2e6a10e977f6f8dd7990b1ee1a39a24 Author: Evan Ramos Date: Mon Feb 29 06:34:29 2016 +0000 Windows: Eliminate the need for separate manifests for 32-bit and 64-bit builds by specifying a wildcard for processorArchitecture attributes. From-SVN: r5643 commit 2231db939fe59a1438939b38d07fb2fd130cd752 Author: Evan Ramos Date: Mon Feb 29 06:34:20 2016 +0000 Polymost: Refactor all GL internal texture format decision making into uploadtexture(). This directly achieves the following: * Eliminated codedup. * Recently introduced GL ES performance downsampling now applies to model skins. * Replaces the alpha/art format distinction with {RGB/no alpha, RGBA/one-bit alpha (ART transparency), RGBA/full alpha}. * Cleanly allows multiple fallback formats for each type. * Ready for further commits. From-SVN: r5642 commit 3cf9fa212eea12298d84c607418ecc4a9f674b78 Author: Evan Ramos Date: Mon Feb 29 06:34:16 2016 +0000 Add BuildGLErrorCheck(), useful for debugging GL. From-SVN: r5641 commit 531816c15e7a841972738c10a91a902a4c0c2811 Author: Evan Ramos Date: Mon Feb 29 06:34:12 2016 +0000 Engine: Rename HICR_NOCOMPRESS to HICR_NODOWNSIZE, CACHEAD_NOCOMPRESS to CACHEAD_NODOWNSIZE, DAMETH_NOCOMPRESS to DAMETH_NODOWNSIZE, and HICR_NOSAVE to HICR_NOTEXCOMPRESS. From-SVN: r5640 commit 7c4f5cf66480450fba86769b756487ecfa4e0037 Author: Evan Ramos Date: Mon Feb 29 06:34:08 2016 +0000 Windows: Remove OS version guard. Unsupported versions will fail to run in the first place due to missing symbol errors. From-SVN: r5639 commit 635257a03e83503f3de723d8b7bfbde9b05b92e4 Author: Evan Ramos Date: Mon Feb 29 06:34:04 2016 +0000 Windows: Re-add pre-XP version strings. From-SVN: r5638 commit ab028d81e96d9558448f3c75dc03ff3dbd046052 Author: Evan Ramos Date: Mon Feb 29 06:34:01 2016 +0000 More SDL 1.2 on Windows stuff that should not have been removed in r4749 and was missed in r4774. From-SVN: r5637 commit 4c304a8d73668fbcfeb3759fa86bae902e9dcdf5 Author: Evan Ramos Date: Mon Feb 29 06:33:58 2016 +0000 Add preprocessor token NO_ALIGNED_MALLOC which disables compilation with aligned memory allocation. Useful for old versions of Windows and Mac OS X. From-SVN: r5636 commit 83d767c43aed8609b80c24d03184d95273fe4e3d Author: Evan Ramos Date: Mon Feb 29 06:33:55 2016 +0000 More of r5556. From-SVN: r5635 commit cb2e6a0298bf69069ea8c83bc2c2c8a0080639df Author: Evan Ramos Date: Mon Feb 29 06:33:52 2016 +0000 iOS: Fix on-screen keyboard, broken in r5625. From-SVN: r5634 commit fe3903e1d864ab24207737b2e8488f8e5de0e2cd Author: Evan Ramos Date: Mon Feb 29 06:33:49 2016 +0000 Xcode: Add recently created game source files to project. From-SVN: r5633 commit 35b600ff3fba45d504496b64d5e2b3eae4e31b2f Author: Evan Ramos Date: Mon Feb 29 06:33:45 2016 +0000 Xcode: Require full screen. From-SVN: r5632 commit 76b60e6ec08870fb2fc1a1aa0c911b842f1a6c5e Author: Evan Ramos Date: Mon Feb 29 06:33:42 2016 +0000 Xcode: Fix launching on iOS 6. From-SVN: r5631 commit 829db0ecf7b6d4ae7f99a583a72cab7d3e418239 Author: Evan Ramos Date: Mon Feb 29 06:33:36 2016 +0000 Xcode: Fix iOS hardware deployment. From-SVN: r5630 commit cf254c54a9db5de5f5d90e6946957f34dd6e2928 Author: Richard Gobeille Date: Wed Feb 17 19:08:32 2016 +0000 Android shit. DONT_BUILD. From-SVN: r5629 commit 25498203f668c441c417d45bee49656ea5b8a220 Author: Richard Gobeille Date: Sun Feb 14 03:49:38 2016 +0000 Fix animsounds From-SVN: r5628 commit eb42bd659f3505d76e3d693f2ce7f751cfb32460 Author: Richard Gobeille Date: Sat Feb 13 21:06:34 2016 +0000 Fix CON_IFCUTSCENE From-SVN: r5627 commit 5d915a8409bf76168119f9d852ac836cd62bfadf Author: Richard Gobeille Date: Sat Feb 13 21:06:31 2016 +0000 Fix anim definition problem From-SVN: r5626 commit f6ecbda31c5a5f7af3456ca8a0e2466dea937c01 Author: Richard Gobeille Date: Sat Feb 13 21:06:28 2016 +0000 Android crap. DONT_BUILD. From-SVN: r5625 commit 7917529ad99ec28d10a5dec9a0625cf578f56be6 Author: Richard Gobeille Date: Sat Feb 13 21:06:21 2016 +0000 Add some debug assertions for the hash table stuff. From-SVN: r5624 commit 6d820c9b248bd2d4a19a886f6101074bd8ecd28e Author: Richard Gobeille Date: Sat Feb 13 21:06:18 2016 +0000 Fix https://forums.duke4.net/topic/8450- From-SVN: r5623 commit 7d88e701af4b6d73f21901922f369ca74aea4902 Author: Richard Gobeille Date: Sat Feb 13 21:06:15 2016 +0000 Remove -fno-lto-odr-type-merging, turns out it's an obscure option that isn't enabled in the synthesis toolchain. Oh well. From-SVN: r5622 commit ce1f1c94fd49951c12b1b68b7b40ebb05f1977f2 Author: Richard Gobeille Date: Sat Feb 13 21:06:12 2016 +0000 Add support for changing the refresh rate in SDL builds. Should also fix non-SDL builds. From-SVN: r5621 commit d73db77e90ea268096ccd01da15f7f8fc24592a4 Author: Richard Gobeille Date: Sat Feb 13 21:06:06 2016 +0000 Android build fix. DONT_BUILD. From-SVN: r5620 commit 8cc38a4d3acf1b93acaf9a201aa8a428df600012 Author: Richard Gobeille Date: Sat Feb 13 21:06:03 2016 +0000 Update Android Makefile with new source files From-SVN: r5619 commit 90ce474b671371378265ba10808de9035da866af Author: Richard Gobeille Date: Sat Feb 13 21:05:57 2016 +0000 Break out screen drawing stuff from game.c into screens.c and command line processing stuff into cmdline.c From-SVN: r5618 commit c4e104bfcc92432ba296ff0a7843459decf63a7c Author: Richard Gobeille Date: Sun Feb 7 03:15:46 2016 +0000 Limit -fno-lto-odr-type-merging to GCC 5.x From-SVN: r5617 commit 4fd28aeb24f14546ff6003a565ff8ca14fa8ac55 Author: Richard Gobeille Date: Sun Feb 7 02:38:32 2016 +0000 Implement CON_NEXTSECTORNEIGHBORZ From-SVN: r5616 commit 3ecd5363137b320540a7906339541b1c4a172124 Author: Richard Gobeille Date: Sun Feb 7 02:38:28 2016 +0000 Better names for anim playback functions From-SVN: r5615 commit 6099893f7be9942629b6caeed18e042485f60520 Author: Richard Gobeille Date: Sun Feb 7 02:38:23 2016 +0000 Break all of the text printing stuff out of game.c and into a separate screentext.c/h From-SVN: r5614 commit 4fdf05640550d90ed2c4239f36e57a2282d10bd4 Author: Richard Gobeille Date: Sun Feb 7 02:38:16 2016 +0000 Break out status bar code into sbar.c/h From-SVN: r5613 commit 931d81fd04c90a24d45632c9fe573057542cd216 Author: Richard Gobeille Date: Sun Feb 7 02:38:08 2016 +0000 Minor cleanup From-SVN: r5612 commit a82a3ebd7e68e76ff00976434a50d4313d33d8b4 Author: Richard Gobeille Date: Sun Feb 7 02:38:03 2016 +0000 Break cheat code stuff out of game.c and into cheats.c/h. Remove unnecessary header includes from several modules (all relevant headers are already pulled in by duke3d.h). From-SVN: r5611 commit e38b433048c95436b8fbae84027f6b5d24e0d133 Author: Richard Gobeille Date: Sun Feb 7 02:37:54 2016 +0000 Add -fno-lto-odr-type-merging to LTO builds to disable a feature that generates a warning in newer versions of GCC From-SVN: r5610 commit af651fb8cf19079165811daab3ef623fdfe8024e Author: Richard Gobeille Date: Sun Feb 7 02:37:50 2016 +0000 Fix compile warning From-SVN: r5609 commit 336f02e962bfa40431b8d4fe3d9e9f989775ba83 Author: Richard Gobeille Date: Tue Feb 2 21:10:16 2016 +0000 Fix r5548 From-SVN: r5608 commit bf969ad558742414f0e36123f30c1bcf531b8d91 Author: Richard Gobeille Date: Tue Feb 2 07:30:53 2016 +0000 "i needed to comment out line 111 in source/sdlmusic.c to be able to compile r5606" From-SVN: r5607 commit 212fbe6dcaebb29913e7c1ce70ccbc2b83f79236 Author: Richard Gobeille Date: Tue Feb 2 06:39:22 2016 +0000 Pause and resume sounds instead of just stopping them when opening menus or pausing the game. From-SVN: r5606 commit 4da1f351f6f6fb92955dca7bc0f33e61db65076c Author: Richard Gobeille Date: Tue Feb 2 00:21:27 2016 +0000 Fix Polymost issue reported at https://forums.duke4.net/topic/8470-weirdness-of-players-sprite-in-view-modef7/ From-SVN: r5605 commit dc2f07237dc7bec11e086d320a954b3b942ef397 Author: Richard Gobeille Date: Tue Feb 2 00:21:24 2016 +0000 Implement Mapster32's CON_FOR into EDuke32. From-SVN: r5604 commit d6fb295d291cf7c18739819bcbf2cf665526dddf Author: Richard Gobeille Date: Tue Feb 2 00:21:21 2016 +0000 VS project fixes, DONT_BUILD. From-SVN: r5603 commit b06e21a25b1447a66c0d410d6ac790cec88e0ef2 Author: Richard Gobeille Date: Tue Feb 2 00:21:17 2016 +0000 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. From-SVN: r5602 commit d7a9bc8385a6ebde51abdf51d81cb3f6c0b2eef5 Author: Richard Gobeille Date: Tue Feb 2 00:21:12 2016 +0000 Bring out yer dead! From-SVN: r5601 commit e51432ea9565dfa8ed9da58ddb1c8c0a1a4143c4 Author: Richard Gobeille Date: Tue Feb 2 00:21:07 2016 +0000 Add a few missing files to the VS project. DONT_BUILD. From-SVN: r5600 commit a61a80fb1b3b58375ab1420a0dac3708bf8366de Author: Richard Gobeille Date: Tue Feb 2 00:21:04 2016 +0000 This never should have been committed. DONT_BUILD. From-SVN: r5599 commit 84ec836a59c1afa9a8e8cd446af45f1ab778f421 Author: Richard Gobeille Date: Tue Feb 2 00:20:59 2016 +0000 Renamed "veryclean" make recipe to "clean" and added veryclean back as an alias for compatibility. This also adds a suggestion to run "make clean" when linking fails. DONT_BUILD. From-SVN: r5598 commit abffbfb4b19ba30f12068199c1d72f3fcdf48e20 Author: Richard Gobeille Date: Wed Jan 27 10:28:00 2016 +0000 Fix Polymer wall updating From-SVN: r5597 commit d6f09f7be0deebe798d96a3a2b0cd203168ff27d Author: Richard Gobeille Date: Wed Jan 27 10:27:56 2016 +0000 Fix animsounds error message. DONT_BUILD. From-SVN: r5596 commit f32a7c383b59539953812f5d8c17238993bcce15 Author: Richard Gobeille Date: Wed Jan 27 10:06:03 2016 +0000 Cheap hack to let Mapster32 read the visibility parameter from gamestartup when parsing the CONs for sound definitions. From-SVN: r5595 commit 613d946bed3128c9b989053c33f6b2f2b181ba8d Author: Richard Gobeille Date: Wed Jan 27 10:06:00 2016 +0000 Fix switch/case regressions introduced in r5577. From-SVN: r5594 commit ead05986bc26053839e42d84495c4a243546402b Author: Evan Ramos Date: Wed Jan 27 07:30:34 2016 +0000 Fix potential build failure when static inline G_CheckForSpace{Ceiling,Floor} are declared without namesdyn.h first being included. Exposed by lunatic_game.c when LUNATIC=1. From-SVN: r5593 commit 69ffb1d7c2b8c21b049339ee027fba7389fe9b6b Author: Evan Ramos Date: Wed Jan 27 07:30:31 2016 +0000 Lunatic: Fix unused-parameter warnings. From-SVN: r5592 commit a6100cfbdda5d7ce5c504b0f3d9ef92130634b65 Author: Evan Ramos Date: Wed Jan 27 07:30:28 2016 +0000 Lunatic: Fix discarded-qualifiers warnings. From-SVN: r5591 commit 7f1e1b9b8f3bfed4745feee69aea65159a37e404 Author: Evan Ramos Date: Wed Jan 27 07:30:23 2016 +0000 Lunatic: Fix cast-qual warnings having to do with L_RunString. From-SVN: r5590 commit 41cf9a6c1b9d6e2d843c2c17d8d52eeb28338f9f Author: Evan Ramos Date: Wed Jan 27 07:30:18 2016 +0000 Clean up some cvar definitions. From-SVN: r5589 commit fd5a44de1cf9fdcbe48d9edef9a3d96744b56587 Author: Richard Gobeille Date: Wed Jan 27 07:26:40 2016 +0000 "4 spaces originally 2 spaces now 0 idea how that even happened" From-SVN: r5588 commit 47d196fbee5641e63ee29c2dd61f0c2652f8ae29 Author: Richard Gobeille Date: Wed Jan 27 07:16:47 2016 +0000 Fix problem with C-CON sector and wall structure access. Oops. From-SVN: r5587 commit bc1a9fc0479ca847ee21174ee94e7293eb4cfe35 Author: Richard Gobeille Date: Wed Jan 27 07:16:45 2016 +0000 Minor cleanup. DONT_BUILD. From-SVN: r5586 commit 09fff6b1e506f3cb3981b94a0adbcd076ddffc47 Author: Richard Gobeille Date: Wed Jan 27 07:16:40 2016 +0000 Fix issue with the info message for toggling floor texture expansion bit in Mapster32 only reading the value from the sector's ceiling instead of what you were actually pointing at. From-SVN: r5585 commit 7c305898f9b4365c513bce2b95d1b68c337100de Author: Richard Gobeille Date: Sun Jan 24 19:44:49 2016 +0000 I still make off-by-one errors because I am a horrible programmer. :D From-SVN: r5584 commit ecb31817a6989e9e91d64515bb5a25c99b2a4681 Author: Evan Ramos Date: Fri Jan 22 01:24:58 2016 +0000 Update scripts that make 7-Zip packages to enable solid archives for better compression. DONT_BUILD. From-SVN: r5583 commit 5670468415dcafa976732f143769a47334e43048 Author: Evan Ramos Date: Fri Jan 22 01:24:52 2016 +0000 synthesis.sh: Really accomplish r5549. DONT_BUILD. From-SVN: r5582 commit f6fb8fb576ff951d459abaf983d2d8467b0a4ed3 Author: Richard Gobeille Date: Thu Jan 21 19:35:34 2016 +0000 CON_MOVESECTOR. Triggers built-in sector movement routines... not really appropriate to use outside of EVENT_MOVEEFFECTORS. From-SVN: r5581 commit a636bb96569904a36dcfd2c8c8d9a5b1c1d82a9c Author: Richard Gobeille Date: Thu Jan 21 19:35:30 2016 +0000 Replace msx/msy global arrays with vec2_t g_origins. Bump BYTEVERSION. From-SVN: r5580 commit 3f98b9a2e9445d8bd43d008c7c8be2b7a7ed26d2 Author: Richard Gobeille Date: Thu Jan 21 19:35:25 2016 +0000 EVENT_MOVEEFFECTORS. Allows disabling, overriding, or just plain tampering with built-in SECTOREFFECTOR effects. From-SVN: r5579 commit 70439f475f0ad4a5ddb16a4e50c28f99c881823d Author: Richard Gobeille Date: Thu Jan 21 19:35:22 2016 +0000 EVENT_MOVESECTOR. This isn't enough to really do anything with yet--more to come. From-SVN: r5578 commit 61ff5145f9d1fd6593ee3cb6822b940d029086a9 Author: Richard Gobeille Date: Thu Jan 21 19:35:19 2016 +0000 Revise compilation of CON_CASE and CON_DEFAULT. From-SVN: r5577 commit 45a659c9791e50f621f21bf301af8e25bceb1660 Author: Richard Gobeille Date: Thu Jan 21 19:35:16 2016 +0000 Inline some things that looked like happy, fun candidates for inlining. From-SVN: r5576 commit 934b83f5a27748759fb97ef800dd23790a577079 Author: Richard Gobeille Date: Thu Jan 21 19:35:14 2016 +0000 Fix compilation of malformed statements using array style notation. From-SVN: r5575 commit 4c54fa8063a4f2813deee74bb30c44051fe5ae0c Author: Richard Gobeille Date: Thu Jan 21 19:35:11 2016 +0000 Move C-CON compile stat printing into its own function. From-SVN: r5574 commit 101b69a56ce97665d91f04c8be8145df4227e602 Author: Richard Gobeille Date: Thu Jan 21 19:35:09 2016 +0000 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(). From-SVN: r5573 commit 37070c262b5a0bb18f54cb34a1da2879306ec951 Author: Richard Gobeille Date: Thu Jan 21 19:35:06 2016 +0000 const stuff From-SVN: r5572 commit 729bd0fb57e328f7df94322a6e27b8e9ce653d4d Author: Richard Gobeille Date: Thu Jan 21 19:35:03 2016 +0000 Add CON compiler error for malformed comments From-SVN: r5571 commit 2a9a73c84b0d8c132f68635dc1a613c17dfe5783 Author: Richard Gobeille Date: Thu Jan 21 19:35:00 2016 +0000 Minor cleanup, DONT_BUILD. From-SVN: r5570 commit 75cce585b3e43d8f781c0bc82ac848d999f3ca58 Author: Richard Gobeille Date: Thu Jan 21 19:34:56 2016 +0000 First attempt at providing CON control of the internal sector animation system. Read the commit if you want to know how it works! From-SVN: r5569 commit a478952dcc3c2a3cc9df0b83f40f36403fb1fe45 Author: Richard Gobeille Date: Fri Jan 15 07:58:57 2016 +0000 Mapster32: configurable point and line highlight/selection distances From-SVN: r5568 commit be902a1066c7555d167503c031835d930e6b6f1c Author: Richard Gobeille Date: Fri Jan 15 07:58:52 2016 +0000 Further cleanup of A_InsertSprite(). From-SVN: r5567 commit 80b78cceb22a40c8330b02a03ac37c523798c512 Author: Evan Ramos Date: Tue Jan 12 10:31:46 2016 +0000 Xcode: HAVE_VORBIS and HAVE_FLAC under OS X From-SVN: r5566 commit 240ea7e772a0e75d81280f91eb98fbf7e2eee97b Author: Evan Ramos Date: Tue Jan 12 10:31:43 2016 +0000 Xcode: Enable many more compiler warnings. (and fix some compiler settings) From-SVN: r5565 commit 6ea661e01274c7034316ffed705e816f91aa9f86 Author: Evan Ramos Date: Tue Jan 12 10:31:40 2016 +0000 Xcode: Add GameController.framework, needed by SDL2, when building for iOS. From-SVN: r5564 commit 513f1e88ffbe97784a78a831989febb4993ddd6c Author: Evan Ramos Date: Tue Jan 12 10:31:36 2016 +0000 Xcode: Don't link libs to libs. From-SVN: r5563 commit a4c984d41e3417f03b77a791f1b186183472d16d Author: Evan Ramos Date: Tue Jan 12 10:31:33 2016 +0000 Xcode: Bump OS X deployment target to 10.10, because I run that on my machine and Homebrew's libs target it. Also set the iOS deployment target to 6.0, the minimum Xcode will allow me. From-SVN: r5562 commit 8e0abf33c6e30d0d122e55285fb6b3e68b0cecc1 Author: Evan Ramos Date: Tue Jan 12 10:31:30 2016 +0000 Xcode: Update file listings. From-SVN: r5561 commit 195b30a11c42236189af5fec4de4ffbc241fcbcc Author: Evan Ramos Date: Tue Jan 12 10:31:27 2016 +0000 Xcode: Clean up how some file paths are defined. From-SVN: r5560 commit 0757226e3fac129d0466fd1416bc625ab4829f37 Author: Evan Ramos Date: Tue Jan 12 10:31:24 2016 +0000 Xcode: Automatically suggested changes. From-SVN: r5559 commit 118eba655da6bf8c1b8c4dd1d804dca53470b04a Author: Evan Ramos Date: Tue Jan 12 10:31:19 2016 +0000 iOS: Eliminate some minor warnings. From-SVN: r5558 commit a3dad07af55cf260fae545805a98c4e7b760965c Author: Evan Ramos Date: Tue Jan 12 10:31:15 2016 +0000 OS X: Fix Polymer build. From-SVN: r5557 commit 57d7e706fd4beef9b806066301a3342a2ca9ae01 Author: Evan Ramos Date: Tue Jan 12 10:31:12 2016 +0000 Replace the semicolon trailing empty-bodied loops with opening and closing braces. I believe this is the clearest way to indicate that an empty-bodied loop is intended, as opposed to the possibility of a mistaken semicolon. This eliminates "warning: suggest a space before ‘;’ or explicit braces around empty body in ‘for’ statement" with GCC 4.2, which is important for old OS X versions. From-SVN: r5556 commit bff6ed207f538e286d54db80add410d60b818b78 Author: Evan Ramos Date: Tue Jan 12 10:31:07 2016 +0000 Makefile: Improve how we enable and disable warnings. This fixes incompatibilities between r5543 and certain platforms. From-SVN: r5555 commit 3a8dfb9c0c9db5ed993664dd7bff8ed69d202e79 Author: Evan Ramos Date: Tue Jan 12 10:31:05 2016 +0000 Add some UNREFERENCED_PARAMETER for when Vorbis or FLAC are disabled. From-SVN: r5554 commit 1e7e5e461d19984a3eb93605ae8bf77cdd19d6ae Author: Evan Ramos Date: Tue Jan 12 10:31:01 2016 +0000 CON: Add userdef[].soundtoggle. Read-only. From-SVN: r5553 commit 58e06eeb5cce5904d2393f1eefe87f169a54f68f Author: Evan Ramos Date: Tue Jan 12 10:30:56 2016 +0000 Part two of more const casting, this time affecting argv instances. From-SVN: r5552 commit 4cf9a3029f64235226513e64346aab1a715fbbc3 Author: Evan Ramos Date: Tue Jan 12 10:30:48 2016 +0000 Address some const-disregarding casts missed in r5540 due to conditional compilation settings and platforms. From-SVN: r5551 commit 6d5486b892e372fe29c39c0e484748e3ae56974c Author: Evan Ramos Date: Tue Jan 12 10:30:40 2016 +0000 Winlayer: Bound code with USE_GLEXT where missed in r5526. Also make some dead GL debugging code not dead during debug builds. From-SVN: r5550 commit 11db4e71da37ccbad9beafd82c9712889e017c50 Author: Evan Ramos Date: Tue Jan 12 10:30:36 2016 +0000 synthesis.sh: Make use of the EDUKE32_REVISION file when packaging tarballs. From-SVN: r5549 commit 6e6f93fa4e6bd437c916cce103feba358e9c81c0 Author: Richard Gobeille Date: Mon Jan 11 05:06:14 2016 +0000 I'm either clever, or an idiot. Or both. From-SVN: r5548 commit eaa7d8847a1dad683063cae5bdfab592a2a3404f Author: Richard Gobeille Date: Mon Jan 11 05:06:10 2016 +0000 Enable -Wwrite-strings and fix all instances where string constants were passed to functions accepting a char ptr. From-SVN: r5547 commit 4ec08e84968a11db29e5c9dfc8ccac3de5b5c8c6 Author: Richard Gobeille Date: Mon Jan 11 05:06:02 2016 +0000 Use XXH64 functions for editor undo/redo when building for 64-bit. From-SVN: r5546 commit b62eba72f7d418d96b3e8f8cd0e5b7b7a713fd13 Author: Richard Gobeille Date: Mon Jan 11 05:05:59 2016 +0000 Fix some ENet const issues. DONT_BUILD. From-SVN: r5545 commit ce62790cb348443dd176f964ac80780c61305dba Author: Richard Gobeille Date: Mon Jan 11 05:05:54 2016 +0000 Update ENet to v1.3.13. DONT_BUILD. From-SVN: r5544 commit 6e940a9bac2330c4a35e1dcf4236b87e5a41c236 Author: Richard Gobeille Date: Mon Jan 11 05:05:50 2016 +0000 Add -Wuninitialized, -Wlogical-op, and -Wcast-qual. DONT_BUILD. From-SVN: r5543 commit c093abca8879fd58b3e63539a7430b252e8dc5f0 Author: Richard Gobeille Date: Mon Jan 11 05:05:47 2016 +0000 Update to the newest version of xxHash. From-SVN: r5542 commit 7e0d4f4a6d2d69ee011adeb0ec1666d182c0bacb Author: Richard Gobeille Date: Mon Jan 11 05:05:43 2016 +0000 Update vcxproj. DONT_BUILD. From-SVN: r5541 commit 72e074430a598164968fc0bee1d1f5f7a62e5ea5 Author: Richard Gobeille Date: Mon Jan 11 05:05:38 2016 +0000 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! From-SVN: r5540 commit d30c88c7d6f67c2074395551d4ce5b626fe66238 Author: Richard Gobeille Date: Mon Jan 11 05:05:25 2016 +0000 Negligible change to OS string printed at startup. From-SVN: r5539 commit 4b196dbec8361f6b3400f60b78d601b67a9c0be2 Author: Richard Gobeille Date: Mon Jan 11 05:05:21 2016 +0000 Fix a stupid error in MACT, found with GCC's -Wlogical-op parameter. From-SVN: r5538 commit 0fd72969a69e90b70457e1376fecff8018ba6f29 Author: Richard Gobeille Date: Mon Jan 11 05:05:18 2016 +0000 CON compilation and debug message fuckery affecting virtually nobody From-SVN: r5537 commit a812d28d20393cc8669052448fe664b7878dbb7f Author: Richard Gobeille Date: Mon Jan 11 05:05:16 2016 +0000 Clean up some of the SDL version number spam at startup. From-SVN: r5536 commit 093bd50103f79da4d26d1ea551158529f4e8ee1d Author: Richard Gobeille Date: Mon Jan 11 05:05:13 2016 +0000 Fix a few instances where bitptr wasn't properly set after writing to the compiled script From-SVN: r5535 commit 49fa2c71c251866c695d7eec17100f84108553e4 Author: Richard Gobeille Date: Mon Jan 11 05:05:10 2016 +0000 Clean up a couple instances of direct usage of a magic number in the CON compiler. DONT_BUILD. From-SVN: r5534 commit 70790d50b39674317423f8ef13fd6e529a72f297 Author: Richard Gobeille Date: Mon Jan 11 05:05:05 2016 +0000 Make the bitptr stuff in the CON compiler more readable. From-SVN: r5533 commit e9637ea307781a348218960478e62932da960b91 Author: Evan Ramos Date: Fri Jan 8 01:33:46 2016 +0000 Add inthashtable_t, mapping intptr_t to intptr_t. From-SVN: r5532 commit 77133850b3ffc34ebf12a948cdb86d2b98f92efb Author: Evan Ramos Date: Fri Jan 8 01:33:43 2016 +0000 C-CON: Add getpv and setpv as short forms for get/setplayervar, and #include as an alternate for include. From-SVN: r5531 commit ee378bf45028cced4e7278fb40a1c902057dfef8 Author: Evan Ramos Date: Fri Jan 8 01:33:39 2016 +0000 C-CON: Add ifvarge, ifvarle, and ifvarboth in line with ifvarvarge, ifvarvarle, and ifvarvarboth. From-SVN: r5530 commit 63e46351537c312457d187e7fd64a916b41ec957 Author: Evan Ramos Date: Fri Jan 8 01:33:35 2016 +0000 Remove actors_inline, game_inline, and sector_inline objects, and move their code into other headers, set up to be compiled into well-fitting objects if inlining them is disabled. From-SVN: r5529 commit 3873b12e1d39e698e81478c6ece755c07af6427e Author: Evan Ramos Date: Fri Jan 8 01:33:28 2016 +0000 Enable models by default under EDUKE32_GLES, because they now work! From-SVN: r5528 commit 6ff807e2d7db104744073bf97b0ed087035d6197 Author: Evan Ramos Date: Fri Jan 8 01:33:25 2016 +0000 Fix miscellaneous GL ES warnings From-SVN: r5527 commit 721cf595e0ebbac11c21c2c68863bdfcfcc45a52 Author: Evan Ramos Date: Fri Jan 8 01:33:20 2016 +0000 Introduce USE_GLEXT macro and use it to conditionally compile out all GL ARB function calls when compiling for GL ES platforms. This replaces the previous hack where we kept the dynamic pointers null and simply never tried calling any of them by a conspiracy of default runtime settings and disabled menu options. Code affected: VBO support for models, VPX GLSL decoding, texture compression (texture cache), and multitexturing (glow/detail maps). This commit also replaces EDUKE32_GLES conditionals with USE_GLEXT where appropriate. I didn't touch polymer.c because it depends too heavily on extensions for conditionally compiling them to make sense. From-SVN: r5526 commit 3ee42efe0b45c3a063f20c2de4334ccaeb59e677 Author: Evan Ramos Date: Fri Jan 8 01:33:15 2016 +0000 jwzgles: fix warnings when compiling on Linux From-SVN: r5525 commit 9055eaa737a96d607d57aac7c4978a76624bc14c Author: Evan Ramos Date: Fri Jan 8 01:33:11 2016 +0000 jwzgles: uncomment stub glPush/PopAttrib so that the editor links From-SVN: r5524 commit 35f619c2838bd863b13a157193e68907ebb73f8a Author: Evan Ramos Date: Fri Jan 8 01:33:08 2016 +0000 jwzgles: fix errors when compiling on Linux From-SVN: r5523 commit 6b66156f3a09f4d0034bd53fbeb1cc858c09fd34 Author: Evan Ramos Date: Fri Jan 8 01:33:05 2016 +0000 C-CON: Fix the return command within events, broken since r5097. From-SVN: r5522 commit c6032b69703aa78520931c6e42bd21cdc41c08bf Author: Evan Ramos Date: Fri Jan 8 01:33:01 2016 +0000 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. From-SVN: r5521 commit aa5e94d1282e9c607eacfd5b3c06ed1ee1168bfe Author: Evan Ramos Date: Fri Jan 8 01:32:57 2016 +0000 C-CON: Fix VM_ScriptInfo so that it never reads before the beginning of the bytecode. From-SVN: r5520 commit 375ca31936440ffa91049cf833f71d77537b5d26 Author: Evan Ramos Date: Fri Jan 8 01:32:53 2016 +0000 Remove -CONversion command line parameter, because it has been supplanted by r5499's automatic identifier masking. From-SVN: r5519 commit d523961151f9a0fd8324ec4bdfeb2faf250cdf6e Author: Evan Ramos Date: Fri Jan 8 01:32:50 2016 +0000 Move loading of settings.cfg to before video init so that it can respect r_togglecomposition. From-SVN: r5518 commit b3dcf0e4f21c9a1988c2845fd908aa66b6b5afbd Author: Evan Ramos Date: Fri Jan 8 01:32:47 2016 +0000 Menus: Move "Cheats" from Options to Game Setup. From-SVN: r5517 commit 95a9fdc22ce463159ba6069c2b95b1ac296e3bd5 Author: Evan Ramos Date: Fri Jan 8 01:32:44 2016 +0000 Fix POLYMER=0 warnings introduced in r5496. From-SVN: r5516 commit f5231075519757f0a5d87421f3d181d86bb15cff Author: Evan Ramos Date: Fri Jan 8 01:32:41 2016 +0000 Fix USE_OPENGL=0 compiler errors introduced in r5475. From-SVN: r5515 commit 04b6de9b18056879ed9e7412d0dd99421b148f69 Author: Evan Ramos Date: Fri Jan 8 01:32:29 2016 +0000 Windows: SDL 2.0.4 From-SVN: r5514 commit ce1d270287ca2c98138824139d10d714de33e321 Author: Richard Gobeille Date: Thu Jan 7 03:30:07 2016 +0000 Alter VM_ScriptInfo() to take a ptr to the script to disassemble, and dump disassembly to the log at startup when an internal compiler error occurs. From-SVN: r5513 commit a115008f81d8bfae0fd3a5c14d9192b5f6ad82cc Author: Richard Gobeille Date: Thu Jan 7 03:30:02 2016 +0000 Minor change to some gamevar warnings. DONT_BUILD. From-SVN: r5512 commit cd72818abd76897d4f93fa2fa3a7b508259345e4 Author: Richard Gobeille Date: Thu Jan 7 03:29:59 2016 +0000 Fix CON compiler errors. Me no smart. From-SVN: r5511 commit 504754f2e8bb5c5ed93ee81d8058de5c41c4b1ca Author: Richard Gobeille Date: Thu Jan 7 03:29:56 2016 +0000 Remove unused and utterly useless GAMEVAR_SECRET flag. From-SVN: r5510 commit 5ef1951963399bfa260cf281bbef49a34262b740 Author: Richard Gobeille Date: Thu Jan 7 03:29:52 2016 +0000 Fix warnings. DONT_BUILD. From-SVN: r5509 commit d2e71f62dc3914755cc3d26b825a71b433ae01b4 Author: Richard Gobeille Date: Thu Jan 7 03:29:49 2016 +0000 Get constified From-SVN: r5508 commit 3579ce64112a36ff588a08ce80b27c6cf9f5869b Author: Richard Gobeille Date: Thu Jan 7 03:29:44 2016 +0000 Fix a major bug where "enda" could be used to terminate an event, resulting in all kinds of issues. From-SVN: r5507 commit eb4204f669b6670fa019ffd780ec5a073535604d Author: Richard Gobeille Date: Sun Jan 3 20:07:27 2016 +0000 Get rid of a bunch of useless comments. From-SVN: r5506 commit 81bccac7fab94daca090525318ba2dfe19c2323b Author: Richard Gobeille Date: Sun Jan 3 20:07:24 2016 +0000 Misc cleanup, add shorthand versions of getplayer, getactor, etc. From-SVN: r5505 commit 6a2f3b00945abb8db579cf970bca39e632e653a5 Author: Richard Gobeille Date: Sun Jan 3 20:07:20 2016 +0000 Fix MSVC warning. DONT_BUILD. From-SVN: r5504 commit 3b7b8c148289cab880bd149d5cbbe6c0d0b5ab02 Author: Richard Gobeille Date: Sun Jan 3 20:07:17 2016 +0000 No longer link to GOG.com when no game data is found. :( From-SVN: r5503 commit fd100959b5516805f50032f50d03e167fdb4a70f Author: Richard Gobeille Date: Sun Jan 3 20:07:11 2016 +0000 Treat "[]" as "[THISACTOR]" when accessing structure members through CON. From-SVN: r5502 commit 4c2127ca59fe51e1a184ec4a9b616c222b472d86 Author: Richard Gobeille Date: Sat Jan 2 01:56:29 2016 +0000 Add "klabs" keyword to CON, to take a gamevar and set it to its absolute value. The internal "inv" function to invert a gamevar's value has also been exposed externally. From-SVN: r5501 commit 05e2a1ab878e825bca97d3e51cc965faa68565b1 Author: Richard Gobeille Date: Sat Jan 2 01:56:25 2016 +0000 Add commands added in previous commit to g_keywdate[], clean up a few CON compilation warning messages From-SVN: r5500 commit 0b6aaa57b9b8a5d2a97e78e82b04eadd21c5f611 Author: Richard Gobeille Date: Sat Jan 2 01:56:20 2016 +0000 Adds the following keywords from M32script into CON: shiftvarvarl, shiftvarvarr, ifvarvarle, ifvarvarge, ifvarvarboth, whilevarl, and whilevarvarl. This also adds the shorthand versions of some commands, like "set" for "setvarvar", "add" for "addvarvar", "ife" for "ifvarvare", etc. There are about 30 of these. Because some of these names may already be used in some projects as variable names, this revision also includes a somewhat large change in variable naming rules: gamevars may now have the same names as CON keywords, with the caveat that the masked keyword is no longer accessible. This results in a warning at compile time but should ensure nobody's project ever stops compiling due to the introduction of new keywords. From-SVN: r5499 commit 39320765b4ea77b99525373c8cce59b26419ae94 Author: Richard Gobeille Date: Mon Dec 28 02:04:41 2015 +0000 Projectile changes: -palette is now set at spawn time, instead of during movement (oops!) -projectiles can no longer hit their owner during their first tic of movement From-SVN: r5498 commit 54b1040cced08708a6284c26fbbfcefc3b94f97b Author: Richard Gobeille Date: Mon Dec 28 02:04:36 2015 +0000 Fix hard coded white and red color indexes used in on-screen debug output, to better operate with a palette dissimilar to Duke3D. From-SVN: r5497 commit 20963b03183fdb8a124fce30d42b519bbb81b0b2 Author: Richard Gobeille Date: Mon Dec 28 02:04:29 2015 +0000 Polymer lighting tweaks, mostly internal. From-SVN: r5496 commit a737b9bef89510786a8c813276b7589965eed06f Author: Evan Ramos Date: Sat Dec 26 15:42:13 2015 +0000 Mapster: Don't restrict setgamepalette to the range [0, 3]. From-SVN: r5495 commit f40c05897c507e0a0af47572ce02f166d4345546 Author: Evan Ramos Date: Sat Dec 26 15:42:09 2015 +0000 Polymost: Make voxels take on the current basepalette, like they should. From-SVN: r5494 commit 2058516a65406aefa578b4695d3bc80b74af4fbe Author: Evan Ramos Date: Sat Dec 26 15:42:05 2015 +0000 Polymost: Fix voxels so palette colors are treated as 8-bit, not 6-bit. Overlooked in r5349. From-SVN: r5493 commit 6f793c0ac44c4a0726488f4630370b3420359f4a Author: Evan Ramos Date: Sat Dec 26 15:41:59 2015 +0000 Add new spriteflag SFLAG_GREENSLIMEFOOD = 8388608, which controls whether GREENSLIME will eat a given actor. The flag is automatically set on LIZTROOP, LIZMAN, PIGCOP, and NEWBEAST, in a similar fashion as SFLAG_NOWATERDIP (r4956) and SFLAG_NODAMAGEPUSH (r4371). From-SVN: r5492 commit a5ab1b745425135ce0a224b6012a33ac0a0d53eb Author: Richard Gobeille Date: Wed Dec 23 04:06:28 2015 +0000 Fix CLANG warnings From-SVN: r5491 commit 52fad5e156334b39a9b1f28eb4fa55fa5d2ca926 Author: Richard Gobeille Date: Wed Dec 23 04:06:24 2015 +0000 Fix issue with sin/cos CON commands that prevented using the special builtin structure shortcut access vars for input. From-SVN: r5490 commit 915e8120c316bb6679b45327e734087365840cee Author: Richard Gobeille Date: Wed Dec 23 04:06:20 2015 +0000 Add vm_player, vm_sprite and vm_distance to get/setuserdef. This controls the sprite and player referenced by things like "THISACTOR", all of the "ifp" conditionals, per-actor gamevar access, etc. This is intended to be used to un-gimp things like EVENT_WORLD. From-SVN: r5489 commit 0319aec4c25bb3433e2ebf10b791d80a70cf1a9d Author: Richard Gobeille Date: Wed Dec 23 04:06:16 2015 +0000 VS solution update. DONT_BUILD. From-SVN: r5488 commit 097c19caeb97747cb8221005149ad4ec34ebddba Author: Richard Gobeille Date: Wed Dec 23 04:06:13 2015 +0000 Draw frame at level start after EVENT_LOADPLAYER instead of before. From-SVN: r5487 commit 10a19d7a86ee4050ff8a1bd99fe245e7f5ffb1aa Author: Richard Gobeille Date: Wed Dec 23 04:06:09 2015 +0000 Change references to eduke32.sourceforge.net to www.eduke32.com From-SVN: r5486 commit 61fa9307acb34e9d8e1aa2084526b17fc26d6262 Author: Richard Gobeille Date: Wed Dec 23 04:06:05 2015 +0000 Update LZ4 From-SVN: r5485 commit c76635bf57cd5895efb6f7d7b4903e927e83fd37 Author: Richard Gobeille Date: Wed Dec 23 04:05:58 2015 +0000 Fix cstat 1024 in classic and Polymer From-SVN: r5484 commit 2b17e8a91458c2e979a83bc64dd78b51452593b9 Author: Richard Gobeille Date: Wed Dec 23 04:05:55 2015 +0000 Add "restartmap" console command From-SVN: r5483 commit 25c846b887b7332c38d6f2770b520db2d7a0200a Author: Richard Gobeille Date: Wed Dec 23 04:05:51 2015 +0000 Increase Polymost depth fighting mitigation offset, plus some other minor changes that shouldn't affect anything. From-SVN: r5482 commit b17e4454693eadfe06e7c0008799b93c668a85bf Author: Richard Gobeille Date: Wed Dec 23 04:05:47 2015 +0000 Add support for sector/wall/sprite struct trackers to Polymer From-SVN: r5481 commit ed4cc28b34737c5870d685f86d0167682d2f81f8 Author: Richard Gobeille Date: Wed Dec 23 04:05:43 2015 +0000 Split Polymer artmap setup into polymer_setupartmap() From-SVN: r5480 commit b7935086f13fc105aeea9da8a0b24bfbf87a18d9 Author: Richard Gobeille Date: Wed Dec 23 04:05:39 2015 +0000 Use a hash table for finding Polymer buckets From-SVN: r5479 commit 4c4c193b3669033fa388dc35792e726efd8b0d50 Author: Richard Gobeille Date: Wed Dec 23 04:05:35 2015 +0000 Appease clang From-SVN: r5478 commit d8b2e01154c8631111d5ba1393225d503e4472a5 Author: Richard Gobeille Date: Wed Dec 23 04:05:31 2015 +0000 Polymer light tweaks From-SVN: r5477 commit 96d3670d151ea36737f2d993bdd56c1a6748b31d Author: Richard Gobeille Date: Wed Dec 23 04:05:27 2015 +0000 Fix FIRELASER spawning multiple Polymer lights From-SVN: r5476 commit 6e63237b0bbf8a5a7212684bff65ee6d573f6153 Author: Richard Gobeille Date: Wed Dec 23 04:05:21 2015 +0000 Move vsync option to video setup From-SVN: r5475 commit 26d2978d3a9d7b766a47619e9936e48e33d7f12d Author: Evan Ramos Date: Sun Dec 20 05:19:11 2015 +0000 Prune the dynamic tile name system in the same manner as sounds were pruned in the previous commit and r4748. From-SVN: r5474 commit 663b1c9d30be8e3d78ef2efa609f41905cea99b8 Author: Evan Ramos Date: Sun Dec 20 05:19:08 2015 +0000 Remove the __STATIC macros of dynamic sounds pruned in r4748. From-SVN: r5473 commit 24fdde28b779d9a467c43a07cbea107b220f9aea Author: Evan Ramos Date: Sun Dec 20 05:19:05 2015 +0000 Remove three unused-in-the-source dynamic sound variables partially forgotten in r4748. From-SVN: r5472 commit 2d1b1ae56ea560af76d537f126bc674982fc001b Author: Evan Ramos Date: Sun Dec 20 05:19:02 2015 +0000 Menus: When RETURN is set to INT32_MIN in EVENT_CHANGEMENU, cancel any animations in addition to not changing the current menu. From-SVN: r5471 commit 10e50a85330314b46e3f433f23516bad0b300f87 Author: Evan Ramos Date: Sun Dec 20 05:18:59 2015 +0000 Name map best time entries in the cfg by MD4 checksum instead of filename. Existing filename-demarcated personal bests are still read as a fallback if an MD4 is not found, but only MD4 entries are written. Fans of both Lunar Apocalypse and Nuclear Winter should sort out the MapTimes section of their cfg file manually. From-SVN: r5470 commit c8a104fe193e772891eee61ebf16530a1a83f295 Author: Evan Ramos Date: Sun Dec 20 05:18:56 2015 +0000 Fix two bugs in SCRIPT_GetNumber that cause it to issue an incorrect return value. From-SVN: r5469 commit f556c549a2fe20b0b8462bbcb44eed0876128581 Author: Evan Ramos Date: Sun Dec 20 05:18:53 2015 +0000 Duke3D: Add globalgameflag 4, DUKE3D_NO_PALETTE_CHANGES. This disallows the game from performing its usual modification to palette data after loading it, mainly the transparent color. If you use this flag, make sure your transparent color it set exactly as you would like it to be used in cases like those presented in the previous commit. From-SVN: r5468 commit 549161d893d2f66466a4f0551aad86c2c14762ce Author: Evan Ramos Date: Sun Dec 20 05:18:47 2015 +0000 Polymodes: In gloadtile_art, (1) get the current texel's index, (2) apply alpha if index == 255, (3) get the index by indexing into the specified palookup table, and then (4) apply fullbright considerations. Previously these tasks were performed in order 1432. From-SVN: r5467 commit 5c0c2ac47b4434d72d50e37178878813cd652f4d Author: Evan Ramos Date: Fri Dec 4 11:53:02 2015 +0000 Add test cases for previous commit: transhacktest.map and .m32 From-SVN: r5466 commit c4935ba68fa7fd78c75bd289427b0523e0c60127 Author: Evan Ramos Date: Fri Dec 4 11:52:58 2015 +0000 Polymodes: Add a new pthtyp flag to mark textures that should not be processed by the fixtransparency() hack (which avoids the transparent color blending into a sprite when texture filtering is enabled), such as non-(T)ROR-masking floors and ceilings, white- and mask-walls, paper-skies, and rotatesprite with orientation flag 64. This commit makes sure the flag's status always fits the situation. This fixes the remaining issue with WWII GI's LOGO.ANM: Color index #255 is used as the dominant white color (not as a transparent index) and fixtransparency() was mangling the image as a result. From-SVN: r5465 commit aafeb6edc164d8c726bcf14c3f756df1c58cebeb Author: Evan Ramos Date: Fri Dec 4 11:52:54 2015 +0000 Polymost: Enumify the lower bits of the method/dameth argument to various functions. From-SVN: r5464 commit e9f74299c1343dcd4a9e564569c57083da13ca0c Author: Evan Ramos Date: Fri Dec 4 11:52:51 2015 +0000 Factor out common handling of the end-of-level between sectors tagged 65535 and 65534, switches tagged 65535, and nukebuttons. This fixes the bug with user maps ending in 65534-tagged sectors, reported by FistMarine: https://forums.duke4.net/topic/8367-end-of-level-bug/ It also eliminates dead code belonging to the nukebutton. From-SVN: r5463 commit a5999c338c6fc7728f9361a5b2518db0340eff97 Author: Evan Ramos Date: Fri Dec 4 11:52:47 2015 +0000 Fix unused global variables in menus.c with DROIDMENU defined. From-SVN: r5462 commit b6636a21745104c2174b8821b15785a8a6e60049 Author: Evan Ramos Date: Fri Dec 4 11:52:43 2015 +0000 Fix an unused variable in menus.c with USE_OPENGL=0. From-SVN: r5461 commit 74e2248e81e05a3837e1b3c6e14f2f14aa51098e Author: Evan Ramos Date: Sat Nov 28 09:06:34 2015 +0000 Fix orientation bit 64 when applied to a tile with fullbrights in OpenGL with r_fullbrights enabled. This fixes (the most glaringly wrong problem) with WWII GI's LOGO.ANM in OpenGL, exposed by r5437. From-SVN: r5460 commit bb23e88cd6df950215a68db977352106f3f66a17 Author: Evan Ramos Date: Sat Nov 28 09:06:31 2015 +0000 More NAM/WWII GI "bluefont" xbetween fixes missed in r5452. From-SVN: r5459 commit dbc22b2104e19d1dd32ceb79afb19fec2cf1a398 Author: Evan Ramos Date: Sat Nov 28 09:06:28 2015 +0000 Fix a compiler error on introduced in r5445. From-SVN: r5458 commit a445eafd8c0b44ae89c445db94fc9658e79c9af8 Author: Evan Ramos Date: Sat Nov 28 09:06:25 2015 +0000 Fix typo in r5448. From-SVN: r5457 commit 91ba75f85e5e574a5ebf3e9356640eae48ef0e18 Author: Evan Ramos Date: Sat Nov 28 09:06:22 2015 +0000 Fix compiler warnings when building for 32-bit. From-SVN: r5456 commit 86b0d9390b70907045561141a759f856483bf1df Author: Evan Ramos Date: Sat Nov 28 09:06:17 2015 +0000 WWII GI: Use "GI2" as the cheat prefix instead of "WW2" because W conflicts with WSAD movement. From-SVN: r5455 commit 79a57d271fdbe53a4caa0c00c8efee6996d56726 Author: Evan Ramos Date: Wed Nov 25 12:08:37 2015 +0000 Duke3D/Startup: Autodetect the installation path of the World War II GI release on Steam. Windows and Linux only for now, as there appears to be no OS X support. From-SVN: r5454 commit 2b317d2e054c93093eafb3efb71e3ecfdeb52d8e Author: Evan Ramos Date: Wed Nov 25 12:08:34 2015 +0000 Implement WWII GI weapon display code. Remaining issues with the weapons (both functionality and display): - The "pistol", "shotgun", and "chaingun" fire too slowly. - The flamethrower fires too quickly. - The bazooka drop for reload is late. - Upon starting a level, the "pistol" should show a reload frame, but it does not. From-SVN: r5453 commit e10459d00dd54544381adf0cee83c90e6b146687 Author: Evan Ramos Date: Wed Nov 25 12:08:31 2015 +0000 Miscellaneous NAM and WWII GI tweaks/fixes. Remaining issues: - Inventory item gamefuncs still use their Duke 3D names. The buggy way custom gamefunc binds are saved and loaded needs to be addressed first. From-SVN: r5452 commit 5542643aa36a9c82431e5bfabca7ebb90b2ef97d Author: Evan Ramos Date: Wed Nov 25 12:08:28 2015 +0000 Implement NAM and WWII GI's replacement cheats. Whereas Duke starts cheats with DN, NAM starts with NVA and WWII GI starts with WW2. (Hackily: CheatKeys[] is still size 2, and the third character is at the start of every CheatString.) The cheats hyper (NAM-only), coords, view, skill, weapons, and inventory were not originally present but since they work properly and this is EDuke32, I have re-added them. Non-working cheats are now disabled. From-SVN: r5451 commit 23e3563dcee123087dd470ddffb0aba9c216806d Author: Evan Ramos Date: Wed Nov 25 12:08:24 2015 +0000 Don't implicitly define GAMEFLAG_NAM for WWII GI. Instead, implement a new macro NAM_WW2GI synonymous with (NAM || WW2GI). From-SVN: r5450 commit 9570a7cbc635f8fa7e00f9b6354fd973ba64f8be Author: Evan Ramos Date: Wed Nov 25 12:08:20 2015 +0000 Restrict the right-edge widescreen clamping of the Pistol reload and Freezer to Duke Nukem 3D only: NAM and WWII GI don't need it. From-SVN: r5449 commit 8eaf38265e465c8950abafcd333732cee3e87ceb Author: Evan Ramos Date: Wed Nov 25 12:08:17 2015 +0000 Duke3D/Startup: Instead of adding Megaton's music paths, don't remove the gameroot path and let my new S_OpenAudio take care of the SC-55 soundtrack. From-SVN: r5448 commit 4378be930360dd24f08523d63673aa9b1125f172 Author: Evan Ramos Date: Wed Nov 25 12:08:14 2015 +0000 Duke3D/Startup: Clean up the Windows registry reading code. There is no need to cache the result of a function called only once for each input. From-SVN: r5447 commit 1c1c09cc5c2cdf03b50c65915ad59e09baa6ebda Author: Evan Ramos Date: Wed Nov 25 12:08:10 2015 +0000 Duke3D/Sound: Add a hack to the previous commit so that Megaton's grabbag.voc will still upgrade to music/grabbag_voc.ogg, but its subway.voc will no longer upgrade to music/subway.ogg. From-SVN: r5446 commit c6d2ec5d8704bd4c1adc1b7f2657477a830e6b50 Author: Evan Ramos Date: Wed Nov 25 12:08:07 2015 +0000 Duke3D/Sound: Restructure S_OpenAudio to check in more paths. For each path, it performs the filename transformations and checks it does currently. First, it will try the local path (as previously). Second, it will check to see if the filename originally requested exists inside a GRP or SSI file (its parent), and if it does, it will check in "music//". Third, it will check in "music/". Do not rely on this when distributing mods: These checks are hacks and may potentially be removed. From-SVN: r5445 commit 321e543c2693fea811c43bc40cde82927b0ed163 Author: Evan Ramos Date: Wed Nov 25 12:08:04 2015 +0000 Duke3D/Sound: Make kopen4loadfrommod a tail-call from S_UpgradeFormat, rename the function to S_OpenAudio, and replace 4x calls to one and then the other. No functional changes. From-SVN: r5444 commit 2e20dd93945c4cff6a73cf5406f27661e9e4b867 Author: Evan Ramos Date: Wed Nov 25 12:08:00 2015 +0000 cache1d: Add kfileparent(). From-SVN: r5443 commit 175513c4b2a27ac4663612aabfb7179431f516ed Author: Evan Ramos Date: Wed Nov 25 12:07:57 2015 +0000 cache1d: Bikeshed some formatting in kopen_internal(). From-SVN: r5442 commit dc1ad22b1795ed4bc37d68d56c0da45d1ff82488 Author: Evan Ramos Date: Wed Nov 25 12:07:54 2015 +0000 cache1d: Save the filenames of GRP and SSI files that are opened. From-SVN: r5441 commit 55bf9ba0f0090f71b37abba79ce0d993360ebcb6 Author: Evan Ramos Date: Wed Nov 25 12:07:51 2015 +0000 Polymodes: Don't test (!usemodels || md_tilehasmodel(picnum, pal) < 0) in eligible_for_tileshades (called only from getshadefactor) because getshadefactor is only called when a model is *not* being drawn, and therefore results in incorrect shading when drawing a tile with a model defined and models enabled to the screen or as a skybox. From-SVN: r5440 commit 29a4ce855d1feabd5c1caeb03efd9788ace817f8 Author: Evan Ramos Date: Wed Nov 25 12:07:47 2015 +0000 Polymodes: Slight optimizations in getshadefactor. From-SVN: r5439 commit 5fedd297541a8949564d6bdcf3a045f2b1e1c722 Author: Evan Ramos Date: Wed Nov 25 12:07:44 2015 +0000 Polymost: Bookend the recursive call to polymost_drawpoly as part of the fullbright pass with bglDepthFunc(GL_EQUAL) and bglDepthFunc(GL_LEQUAL) to ensure that the fullbright overlay is always visible and never fights with the sprite itself. From-SVN: r5438 commit b182ecacf7a188e600f975c7d2766441a636eb20 Author: Evan Ramos Date: Wed Nov 25 12:07:41 2015 +0000 Polymost: Remove "indrawroomsandmasks" variable and its only use in polymost_drawpoly as a condition for the fullbright pass. From-SVN: r5437 commit 474db7e7076858d09bc9e54b41b690f27a4358d2 Author: Evan Ramos Date: Wed Nov 25 12:07:36 2015 +0000 Polymost: Connect spriteext[].x/ypanning to model UVs (range 0-255). From-SVN: r5436 commit 97e21b229b96804fea4814d2a7fc9dd56e87fb8e Author: Philipp Kutin Date: Sat Nov 21 12:42:47 2015 +0000 player.c: factor out large A_ShootWithZvel() block into A_ShootHardcoded() The block is taken over verbatim; 'vec3_t srcvect' is passed by value. The primary purpose of this is that it's easier to compare custom projectile behavior in A_ShootCustom() with the hardcoded one by reading the code of these two functions. For example, this may be of use to modders wishing to emulate a hardcoded projectile. DONT_BUILD. From-SVN: r5435 commit 9ee0ac9bf6721d5ef4c42f108359555b2d36ebf2 Author: Philipp Kutin Date: Fri Nov 20 20:26:52 2015 +0000 Mapster32: in drawspritelabel(), use fixed background color. Make it always one of the colors that the 2D color cycles to (base color + offset in [0 .. 4]) instead of -3, as that one might be in a different color ramp. From-SVN: r5434 commit 240c81aba41ddbc5a69721737a6e9d750353d4c9 Author: Philipp Kutin Date: Fri Nov 20 20:26:51 2015 +0000 Mapster32: add byte array editorcolors[256] to m32script variables. This makes it possible to set up editor colors at startup (from m32_autoexec.cfg). For example: script_expertmode 1 do for i range 256 ifge i 33 { set editorcolors[i] i } script_expertmode 0 Use this method in the description of how to get old-style 2D colors in tiles.cfg and suggest an alternative color index pair. From-SVN: r5433 commit b46bd39b87ffd60089a7701a7a8dbec91eee501e Author: Philipp Kutin Date: Fri Nov 20 20:26:49 2015 +0000 Mapster32: make 'script_expertmode' require an argument (0 or 1) to toggle. Without an argument, it prints the current state. From-SVN: r5432 commit 82dd50ad6036b76d81175358414cca2fc71bc3f7 Author: Philipp Kutin Date: Sun Nov 15 15:14:51 2015 +0000 In package/sdk/tiles.cfg, use the right word for "remove commenting". DONT_BUILD. From-SVN: r5431 commit ec5eee1303b2f3cbb37fa85b27b378de87fa96aa Author: Philipp Kutin Date: Sat Nov 14 23:41:00 2015 +0000 Mapster32: changes to aid getting the old color scheme (by customizing). - bump MAX_TILE_GROUP_ENTRIES to MAXUSERTILES - in loadtilegroups(), only assign a tile color if it wasn't already assigned - allow "hidden" tile groups by omitting the hotkey - Tweak the description added to tiles.cfg From-SVN: r5430 commit 7f3bac89feafad67cfab47ab670e7be33f840c99 Author: Philipp Kutin Date: Sat Nov 14 23:40:59 2015 +0000 Mapster32: honor "blocking color" declared with DEF 'spritecol' et al. Meaning tilegroup's 'colors' directive. Also, to the packaged tiles.cfg, add a description of how to emulate the earlier Mapster32 sprite coloring for one tile group. From-SVN: r5429 commit 73a0e2d0b5c36c2b6bfc61234869b1350ca5a720 Author: Philipp Kutin Date: Sat Nov 14 23:40:58 2015 +0000 Mapster32: in a.m32, draw color info ("set showpal 1") more informatively. - draw ticks above the palette "ruler" - draw all editor colors (colors in editorcolor[]) From-SVN: r5428 commit 4014441be30bbd267915b7acfb4aa2e1eb6c2772 Author: Philipp Kutin Date: Sat Nov 14 23:40:57 2015 +0000 Mapster32: introduce DEF command "2dcolidxrange ". is the editorcolor[] starting index is the actual color index start is the actual color index end So, editor colors from onward will be mapped to [ .. min(, 255)]. Takes precedence over '2dcol'. From-SVN: r5427 commit 0beb46cf070f0b40abad23026b76ea9c44a55a20 Author: Philipp Kutin Date: Sat Nov 14 23:40:56 2015 +0000 Mapster32: in drawscreen_drawsprite(), "sprite[j]." -> "spr->". Also a similar stylistic tweak in parsetilegroups(). From-SVN: r5426 commit 3da463d58b9886bae687d3147b735dd4c4aa5c0d Author: Philipp Kutin Date: Sat Nov 14 23:40:54 2015 +0000 Mapster32: formatting changes around 2D sprite/wall color code. From-SVN: r5425 commit 89f7f0f9ffccc6e00f86ba66867cdc5005b0b3a0 Author: Philipp Kutin Date: Sat Nov 14 19:54:27 2015 +0000 Fix POLYMER=0 build. DONT_BUILD. From-SVN: r5424 commit 56fa76f516575f280daa727495b72698a8b44c71 Author: Philipp Kutin Date: Sat Nov 14 17:21:15 2015 +0000 Mapster32: fix variable that is used uninitialized. From-SVN: r5423 commit 30e7a844c1286f98cc788d709d5e83c7f8ee929d Author: Philipp Kutin Date: Sat Nov 14 17:21:14 2015 +0000 premap.c: on prelevel(), clear bits 16 and 32 of effector sprites. From-SVN: r5422 commit 656e60a4bdc66416f869a08c63741b6fa04b68ce Author: Philipp Kutin Date: Sat Nov 14 17:21:13 2015 +0000 Mapster32: remove "Ludicrous Zoom!" message when reaching max 2D zoom. The problem is that it stays a few seconds afterwards, obscuring information on the status line. From-SVN: r5421 commit d7957d14edbaaf3f2d178ab605e9bef7ec48deac Author: Philipp Kutin Date: Sat Nov 14 17:21:11 2015 +0000 Mapster32: add var 'corruptcheck_game_duke3d' and enable by default. Currently, this checks for effector sprites that are not face-aligned. See https://forums.duke4.net/topic/8324-icestation-colossus-map-broken From-SVN: r5420 commit a0f1919a8ef543573f21e0d49d169f72ad431d02 Author: Evan Ramos Date: Mon Nov 2 17:07:54 2015 +0000 baselayer.c: Remove nested "#ifdef USE_OPENGL"s left over from the removal of the POLYMOST macro. DONT_BUILD. From-SVN: r5419 commit 6f07f547313a7a1ba617575c68fffe5045bf6731 Author: Evan Ramos Date: Mon Nov 2 17:07:50 2015 +0000 astub.c: Fix typos in console function definitions. DONT_BUILD. From-SVN: r5418 commit 3c3feb317fa3fd5c017cd48098d17261915e61a8 Author: Evan Ramos Date: Sun Nov 1 19:56:33 2015 +0000 Polymost: Clean up formatting of parallax sky code and comments, in part so that the floor and ceiling sections are line-for-line consistent. DONT_BUILD. From-SVN: r5417 commit 6f5a4bea8179839ad3c96bf0aa3df6d979feccf1 Author: Evan Ramos Date: Sun Nov 1 19:56:30 2015 +0000 Build tools/arttool: Port commit f874a10ef136f4de3c9a9cccf3eacd886bae0d2d from JFBuild: improved with info dumping and tile export From-SVN: r5416 commit 7e07b424c47f4f645a431a2dcf96089cb4a37feb Author: Evan Ramos Date: Sun Nov 1 19:56:27 2015 +0000 Build tools/arttool: long --> int From-SVN: r5415 commit bae27398d5223de09439c4abeb7aaa87e87ce211 Author: Evan Ramos Date: Sun Nov 1 19:56:22 2015 +0000 Use the script parser for names files instead of custom parsing. This allows names files to define labels as other labels. From-SVN: r5414 commit 7a81fca16343b9598412fa7f4f47dd16acb57494 Author: Philipp Kutin Date: Sat Oct 31 19:35:25 2015 +0000 Mapster32: various stylistic tweaks, no functional changes. DONT_BUILD. From-SVN: r5413 commit dbbdb4e09ab055ce92d10ba1e3418a143f2f766c Author: Philipp Kutin Date: Sat Oct 31 15:13:33 2015 +0000 Mapster32: in TROR-join sectors [Ctrl+J], print z difference hint. At the very least, this makes it easier to decide for one option ("Connect yellow ceiling w/ blue floor (1) or (v)ice versa?") when one of the differences is zero, which might have occurred from temporarily breaking TROR links. From-SVN: r5412 commit bb09672b8a6b570b1d08d67eb68acd27d543134c Author: Philipp Kutin Date: Sat Oct 31 15:13:32 2015 +0000 Mapster32: fix fillsector() calls before fade_editor_screen(). The latter allows one to specify a color to keep, but with r5302 the fillsector() highlights are drawn with transparency, thus making it ineffective. Add an argument to toggle transparency to fillsector() (now fillsector_maybetrans()) and two wrapper functions. From-SVN: r5411 commit 4abb7aa624ce33d2dd53d512720723d9692ad045 Author: Philipp Kutin Date: Sat Oct 31 15:13:29 2015 +0000 Mapster32: don't offer to "Insert outer loop and make red walls" w/ RAlt+RCtrl. This feature only makes sense with the complete de-selection of a set of sectors, i.e. when pressing RAlt to do this, not adding or removing sectors to/from the set of already highlighted ones. From-SVN: r5410 commit bfdd0005ae200748e4d387c745d7829cf4aadce6 Author: Richard Gobeille Date: Sat Oct 24 00:35:19 2015 +0000 Oops, forgot one. ;) From-SVN: r5409 commit 353e35c1ebcaace59d4421b6a11770008ef94232 Author: Richard Gobeille Date: Sat Oct 24 00:30:35 2015 +0000 Menu options to control Polymer light and shadow counts From-SVN: r5408 commit 57d348ae64fa8ee2c63771aa5b1e4142ccbea45d Author: Richard Gobeille Date: Fri Oct 23 23:00:25 2015 +0000 Fix cstat 1024 with Polymer From-SVN: r5407 commit 7b14ce45f1994cde235e72696e5d98ff9fe03fa7 Author: Richard Gobeille Date: Fri Oct 23 23:00:21 2015 +0000 Add r_pr_lighting 2, which disables the hard-coded lights while leaving lights added in maps enabled. This also adds a menu option to control r_pr_lighting. From-SVN: r5406 commit 9c27bc53cfa2aaff87e3d38d1c45792b0f3e013e Author: Richard Gobeille Date: Fri Oct 23 23:00:16 2015 +0000 Check whether the sprite is a wall, floor, or face sprite when deciding whether to bump it ahead of another entry based on position and owner. From-SVN: r5405 commit 4254afb5ef272f70f73fb34cec4d32e770b064d6 Author: Richard Gobeille Date: Fri Oct 23 23:00:13 2015 +0000 Disable Polymer lights attached to hidden switches. From-SVN: r5404 commit 16363b5b2ea540ef48b4c121a4ce8be8980206b6 Author: Richard Gobeille Date: Fri Oct 23 23:00:10 2015 +0000 Improve depth fighting mitigation for floor aligned sprites. From-SVN: r5403 commit 0b7518a72cd0078cde0ceb3fe5e1b3048485bd8f Author: Richard Gobeille Date: Fri Oct 23 23:00:06 2015 +0000 Don't spawn BLOODPOOL 256 units above the ground. From-SVN: r5402 commit 07f782ba97b3be6df7f3a52f535401ac7461886e Author: Richard Gobeille Date: Fri Oct 23 23:00:02 2015 +0000 Fix errant use of tsprite extra field to check an enemy's health. From-SVN: r5401 commit 8ec8e97b05f3ce87e739d9bfbe0cf1e7831b596e Author: Richard Gobeille Date: Wed Oct 21 19:54:14 2015 +0000 Sprite sorting changes: -Sort by owner now occurs only when two sprites have matching x/y coordinates. -Cstat 1024 now activates a special drawing mode that indicates a sprite should be drawn without depth after all other sprites have been drawn. The previous cstat 1024 functionality, an internal hack for shadows cast by models in Polymost, has been moved to bit 1 of a new graphical effects bitfield stored in a tsprite's .extra member. From-SVN: r5400 commit 4db7e6feac0a2a3301f1a105774baa1ad70f3128 Author: Richard Gobeille Date: Wed Oct 21 19:54:09 2015 +0000 Add colmatch to Android Makefile. DONT_BUILD. From-SVN: r5399 commit 7db5cb85e88fff91f3ca412450d24ffe7e53b4e4 Author: Richard Gobeille Date: Wed Oct 21 19:54:06 2015 +0000 Tweak the amount that distance is factored in when mitigating depth fighting in Polymost. From-SVN: r5398 commit 2c29e50b778a282a1fce7922acced5f5f6535c3a Author: Richard Gobeille Date: Wed Oct 21 19:54:02 2015 +0000 Improve the behavior of the BLOODSPLAT family of sprites. This improves the effect so that the blood doesn't stutter when it moves, and no longer occasionally appears to climb back up the wall for a fraction of a second. From-SVN: r5397 commit b3bb3f035b7d78bb9354fca7727fcc384c18e317 Author: Richard Gobeille Date: Wed Oct 21 19:53:57 2015 +0000 Minor cleanup to previous commit. DONT_BUILD. From-SVN: r5396 commit 91f9c8311ff328f1299af200212c18f543aad7a6 Author: Richard Gobeille Date: Tue Oct 20 07:15:28 2015 +0000 Additional depth fighting mitigation for face sprites From-SVN: r5395 commit 0e838025e6a3f2f96dbddc004bb82af2cbb8821e Author: Richard Gobeille Date: Tue Oct 20 07:15:25 2015 +0000 Sort tsprites by owner as a replacement for the sort by statnum removed by Helixhorned a while back. Seems sensible enough... From-SVN: r5394 commit e21c50f77842ea5b6f4fbe961e7dbc5a10a5bfea Author: Richard Gobeille Date: Tue Oct 20 07:15:21 2015 +0000 Fix SE17 warp elevator transition jumps. From-SVN: r5393 commit 6a1289fac0ff7107fe45b98cc7158e2e0fdb7c9e Author: Richard Gobeille Date: Tue Oct 20 07:15:18 2015 +0000 Fix up bloodsplat and decal positioning a bit. Nasty hacks removed. Yay. From-SVN: r5392 commit 98d02ec36e7842c90a2b82d21f3a82d6c3b3f2d4 Author: Richard Gobeille Date: Tue Oct 20 07:15:15 2015 +0000 New attempt at fixing the depth fighting with wall and floor-aligned sprites. From-SVN: r5391 commit 07cc14baabeabd11c6e9d362a1258adf57cf02f4 Author: Richard Gobeille Date: Tue Oct 20 07:15:12 2015 +0000 Add colmatch.c to VS project. DONT_BUILD. From-SVN: r5390 commit c7aa59b001770273cc65fd33bb759675d13a0774 Author: Richard Gobeille Date: Tue Oct 20 07:15:08 2015 +0000 Fix pathsearchmode in Mapster32 when using a .def which loads a .grp. From-SVN: r5389 commit 03644dbc45fc6e88470c4cc8fed5ea3c9778d823 Author: Richard Gobeille Date: Tue Oct 20 07:15:05 2015 +0000 Set hit data on spawned decals From-SVN: r5388 commit 1abc67c7d729461ca6de30fda27815a3295015e4 Author: Richard Gobeille Date: Tue Oct 20 07:15:01 2015 +0000 Fix saving and loading crosshaircolor, and fix fps counter color when using a palette that doesn't correspond to Duke3D's color indexes. From-SVN: r5387 commit 4b200474fcee3eb6e0a3416d3d13b0c5f2682a13 Author: Richard Gobeille Date: Tue Oct 20 07:14:56 2015 +0000 Add colmatch object to MSVC Makefile. DONT_BUILD. From-SVN: r5386 commit 20e44fe70455f216a243b70375ec395c7a103bbb Author: Richard Gobeille Date: Tue Oct 20 07:14:52 2015 +0000 Mapster32: fix 2d3d mode input issue when sector is -1 From-SVN: r5385 commit 43d6a000866e5745afd8b9a91e2e9c4b30690acf Author: Evan Ramos Date: Sat Oct 10 06:57:57 2015 +0000 Fix a crash in the editor when the basepalette is loaded from def instead of PALETTE.DAT, caused by trying to getclosestcol() without having initialized the colormatching code. Exposed in r5359; previously resulted only in erroneous matching to an all-#000000 palette. From-SVN: r5384 commit 9a9ca71a2913246972e81cb82a1d3b3b651f499c Author: Evan Ramos Date: Sat Oct 10 06:57:54 2015 +0000 Since gcc 4.2 complains about it on OS X 10.7, use initputs instead of initprintf when printing a single argument, even if it is already char const *. From-SVN: r5383 commit 49ff8ef9c7688b8c5c9887ca7b411c1be23f50e3 Author: Evan Ramos Date: Sat Oct 10 06:57:51 2015 +0000 Always compile with "-Wno-missing-braces", as the warnings it hides are useless. "-Wmissing-field-initializers" (part of "-Wextra") should cover us. From-SVN: r5382 commit f8e60737311c6193957d472b1937dadfcf13288c Author: Evan Ramos Date: Sat Oct 10 06:57:49 2015 +0000 Fix two unused function warnings in mdsprite.c when building with POLYMER=0. From-SVN: r5381 commit 6050b807d51603ea4ca16d8ae87d7822314ed0c7 Author: Evan Ramos Date: Sat Oct 10 06:57:46 2015 +0000 OS X: Fix -Wdeprecated-declarations compiler warnings in the startup windows. From-SVN: r5380 commit 39a08b5c8850018a3782442c10c342a68d6060b6 Author: Evan Ramos Date: Sat Oct 10 06:57:41 2015 +0000 OS X: Fix POLYMER=0 build. From-SVN: r5379 commit da5a62afbc20df0bb1983a2e6f298c9469d99439 Author: Evan Ramos Date: Sat Oct 10 06:57:38 2015 +0000 Fix warning: explicitly assigning value of variable of type 'CACHE1D_FIND_REC *' (aka '_CACHE1D_FIND_REC *') to itself [-Wself-assign] From-SVN: r5378 commit 48d0b567eb4770dfcbe1a75d238d5a6e4a656a53 Author: Evan Ramos Date: Sat Oct 10 06:57:36 2015 +0000 Fix some critical mistakes in my new def code (r5351 and r5367) caused by gaps in my attention. From-SVN: r5377 commit 3aaf793dbd351387770238bc51ea5a39bf77a908 Author: Evan Ramos Date: Sat Oct 10 06:57:32 2015 +0000 Split the colormatching portion of getclosestcol_lim into getclosestcol_nocache_lim in case speed is desired when processing an image with mostly unique colors. From-SVN: r5376 commit ba8b15a60c9136afd36dd8af57529105f5668191 Author: Evan Ramos Date: Sat Oct 3 11:53:19 2015 +0000 Duke: Add globalgameflag DUKE3D_NO_HARDCODED_FOGPALS, which prevents the game from automatically defining white, red, green, and blue fogpals in the first four adjacent empty palookup slots it finds. From-SVN: r5375 commit a75a27483bbe90e565045dc8b76c20879ef6d463 Author: Evan Ramos Date: Sat Oct 3 11:53:16 2015 +0000 Add globalgameflags to Duke-Mapster32's game-side def parsing. From-SVN: r5374 commit 3e365ee4cfe82724b17ebd5503c5100acc01d89c Author: Evan Ramos Date: Sat Oct 3 11:53:13 2015 +0000 Move PaletteIndexFullbrights back into the engine and autodetect fullbrights instead of hardcoding them. From-SVN: r5373 commit 4c738b01e15e7e49b9d695c894927d915a967805 Author: Evan Ramos Date: Sat Oct 3 11:53:08 2015 +0000 Makefile: Automatically disable ASM when "arm" is found in `uname -m` on Linux. From-SVN: r5372 commit a8c9c6d0748b0d3d05bdb26b6d9d612c95cecbe3 Author: Evan Ramos Date: Sat Oct 3 11:53:05 2015 +0000 Reverse the iteration direction of the getclosetcol fallback loop, preferring the tiebreaking color to be the first one numerically in the palette, not the last. From-SVN: r5371 commit 56abd046fffff7e940af88e69c581276be1a7e65 Author: Evan Ramos Date: Sat Oct 3 11:53:02 2015 +0000 Fix a typo in loadpalette that broke reading of the lognumalphatabs byte. From-SVN: r5370 commit 43196d78d5eda9f1a9a9ac1e1325b1134cb74651 Author: Evan Ramos Date: Sat Oct 3 11:52:59 2015 +0000 Add forgotten newlines to error messages in loadpalette(). From-SVN: r5369 commit 759351d65f2a620f53290fb72075ff1f3aa90ec9 Author: Evan Ramos Date: Sat Oct 3 11:52:56 2015 +0000 Before aliasing empty palookups to #0, check existing ones if they are identical to #0, and if so, also alias them. This saves memory in Polymost with tileshades enabled. From-SVN: r5368 commit e3d071ac0e31e99f38818348e3060f3db41fa8ee Author: Evan Ramos Date: Sat Oct 3 11:52:51 2015 +0000 Defs: Add "undef" subtokens to and undef-range versions of basepalette, palookup, and blendtable. From-SVN: r5367 commit b6a67bee169ca5374c7355dcb87e5653d2b0c24c Author: Evan Ramos Date: Sun Sep 27 21:18:24 2015 +0000 Defs: Add "numalphatables" token, which serves the same purpose as the lognumalphatabs byte in PALETTE.DAT. From-SVN: r5366 commit 076975d7c0f1d33fd301a31d65b5b71c6cf3a872 Author: Evan Ramos Date: Sun Sep 27 21:18:21 2015 +0000 Fix error in r5346 that broke the MoreBlendTab section of PALETTE.DAT. From-SVN: r5365 commit 3376591b546d08f81beda6c35ab72aa474aa2965 Author: Evan Ramos Date: Sun Sep 27 21:18:19 2015 +0000 Fix RENDERTYPE=WIN build by changing a const char* to a char*, which had been cast to (void *) before passing to free() (which is bad practice) prior to r5352. From-SVN: r5364 commit 1b4ddbffb98a0c4abff13e32a6a2d1385c7c58bf Author: Evan Ramos Date: Sun Sep 27 21:18:16 2015 +0000 Build tools: Clean up transpal and link it to colmatch.c instead of including a separate copy of the (old!) getclosestcol code. From-SVN: r5363 commit e465fd6b9944e5642bf93986fd71fc5b661eae43 Author: Evan Ramos Date: Sun Sep 27 21:18:12 2015 +0000 Split the initialization of the pragma.h's libdivide tables into its own function. From-SVN: r5362 commit b6409aae53651ba0831e3a3dfb86bb416c8c6c15 Author: Evan Ramos Date: Sun Sep 27 21:18:09 2015 +0000 Build tools/OS X: Fix build by satisfying compat.c's dependence on osxbits.m. From-SVN: r5361 commit 408010556ce906c6a1111dd8d128c3a69861ea95 Author: Evan Ramos Date: Sun Sep 27 21:18:06 2015 +0000 Build tools/Windows: Fix text outout by compiling without -mwindows. From-SVN: r5360 commit 450fe06c477a3a8d3ceb3a2293d3d8352c85bb46 Author: Evan Ramos Date: Sun Sep 27 21:17:59 2015 +0000 Split the getclosestcol functions into a new object, colmatch. From-SVN: r5359 commit 4d946edeb139015750f6ef697aca184fdf7bcf26 Author: Evan Ramos Date: Sat Sep 26 00:21:22 2015 +0000 Update Xcode project to reflect recent filename changes. DONT_BUILD. From-SVN: r5358 commit 0c1b95fd48c2133e1db366585376e2cb38d517b7 Author: Evan Ramos Date: Thu Sep 24 06:32:01 2015 +0000 Defs: Clean up the animtilerange token so that it is possible to specify backward animations in the logical tile1 > tile2 way. From-SVN: r5357 commit 9f1e502561f2d716c3a6b10126b754a666a22bf8 Author: Evan Ramos Date: Thu Sep 24 06:31:58 2015 +0000 Defs: Fix a bug with the tilefromtexture { texture } subtoken, where alphacut was interpreted in an inverse fashion, generally causing hightile textures defined this way to appear completely transparent. From-SVN: r5356 commit 9efb86d4f726bfa88315d4a98c29379206442001 Author: Evan Ramos Date: Thu Sep 24 06:31:55 2015 +0000 C-CON: Correct handling of size-zero gamearrays: Prevent a crash upon loading a savegame containing them, and allow resizearray to zero. From-SVN: r5355 commit f781a2a5157904f24d84ca03fbb9d7a562726c6a Author: Evan Ramos Date: Thu Sep 24 06:31:52 2015 +0000 C-CON: Fix a harmless "Internal compiler error" warning when using quick structure access on userdef. From-SVN: r5354 commit 7f46a81b32e13c12139fca5976ba668326c0443a Author: Evan Ramos Date: Thu Sep 24 06:31:44 2015 +0000 CON: Add "defstate" token which functions identically as in M32script: synonymous with CON's "state" only at top-level (when defining a state). Useful for syntax highlighting. From-SVN: r5353 commit ff0a2218f631e880c75bcb276e70dd8ff3dc627b Author: Evan Ramos Date: Wed Sep 23 17:55:31 2015 +0000 Remove NULL checks before calling free(): they are unnecessary as per the C standard. Other cleanup includes factoring code into DO_FREE_AND_NULL() macros. From-SVN: r5352 commit 96d3e1bec3ca884e6005bf9520cc95d7600e4922 Author: Evan Ramos Date: Wed Sep 23 17:55:19 2015 +0000 Defs: Add basepalette, palookup, and blendtable tokens. From-SVN: r5351 commit 1d238544d6141a7cdfc98a6b860ece2efafb8c5f Author: Evan Ramos Date: Wed Sep 23 17:55:15 2015 +0000 Defs: Prevent tilefromtexture from ever assigning index #255 (the transparent color) to the processed image. From-SVN: r5350 commit da497859911b5d6b5703a58887ad9d9f0fcd36ec Author: Evan Ramos Date: Wed Sep 23 17:55:11 2015 +0000 Internally, work with 24-bit palettes instead of 18-bit. From-SVN: r5349 commit 8976dfdeeecd1e8e023c14ba952b0df8d0908605 Author: Evan Ramos Date: Wed Sep 23 17:55:02 2015 +0000 Restructure the basepaltable subsystem to support up to 256 palettes and use dynamic allocation like palookup and blendtable. From-SVN: r5348 commit 08838ae7688b139e7f05dc7d1ead4551a10dd9c1 Author: Evan Ramos Date: Wed Sep 23 17:54:55 2015 +0000 Don't error out when lookup.dat can't be read. From-SVN: r5347 commit aab122dc9288e9d944ef5c0b43296e0a6dbc4918 Author: Evan Ramos Date: Wed Sep 23 17:54:50 2015 +0000 Restructure loadpalette() so that read errors are not immediately fatal and enforce that the necessary parts have been loaded in E_PostInit (after loaddefinitionsfile()). From-SVN: r5346 commit 1ee6eede3df49fd3871c2ececf6ba94d66d2de7f Author: Evan Ramos Date: Wed Sep 23 17:54:42 2015 +0000 Engine: Add E_PostInit, called from the game after loaddefinitionsfile(). From-SVN: r5345 commit c3cdf4b00e304ef30897eff80381e15c114f93cf Author: Pierre-Loup A. Griffais Date: Fri Sep 11 21:36:57 2015 +0000 sd From-SVN: r5344 commit 95274b8962ea962dd9c8288d37465e80e5fd06f8 Author: Philipp Kutin Date: Tue Sep 8 17:54:32 2015 +0000 Mapster32: call update_highlightsector() after 3D mode RCtrl+RAlt. From-SVN: r5343 commit 8a6b8afb47d9cce3fba33fdb8bf0aea2ef512570 Author: Evan Ramos Date: Tue Sep 8 02:58:10 2015 +0000 Update the precompiled Windows libraries: libogg 1.3.2, libvorbis 1.3.5 From-SVN: r5342 commit e306eb8ae46e559bb072bd87adaf473a83f34b24 Author: Evan Ramos Date: Tue Sep 8 02:58:03 2015 +0000 Merge compat-from-mingw-w64 into compat-to-msvc since we dropped support for mainline MinGW32, and add dll_dependency.S so we don't need to build the libs with "-fno-stack-check -fno-stack-protector -mno-stack-arg-probe". From-SVN: r5341 commit 02e7eb06753b60879ba75754d90f1d82db9c10e9 Author: Evan Ramos Date: Tue Sep 8 02:57:56 2015 +0000 Reinstate the printing of quote 121 when DNKEYS is used. From-SVN: r5340 commit 0998fc320f070ffaffd6ead91774b0e0da844f06 Author: Philipp Kutin Date: Sat Sep 5 08:30:59 2015 +0000 Mapster32: RCtrl+RAlt (+['] or [;]) selects sectors in 3D mode, by The Mechanic. From-SVN: r5339 commit ae2e5bff0a0791396f9cd5b08eb3f103ee9673bf Author: Philipp Kutin Date: Sun Aug 30 07:24:53 2015 +0000 Mapster32: in manual member editing, Shift+ENTER allows toggling individual bits For values that are displayed in hex. Patch by The Mechanic, with modifications. From-SVN: r5338 commit 69ca0133c6fa0ce41977f568f935b355fd55c19b Author: Philipp Kutin Date: Sat Aug 29 17:43:42 2015 +0000 CON: amend action's viewtype -8 to be more in line with the others. From-SVN: r5337 commit f32274bc8c745c8f0a5bfe020697186a406cb307 Author: Philipp Kutin Date: Sat Aug 29 17:43:40 2015 +0000 Mapster32: after playtesting with Esc+[T], break from the key polling loop. Bug noticed and fix located by The Mechanic. From-SVN: r5336 commit 77b17bf89a729cb6ffad265e874fcfea82513e40 Author: Philipp Kutin Date: Sat Aug 29 10:21:52 2015 +0000 CON: allow viewtype -8 for 'action', meaning to x-flip the shown sprite. Similarly to how -5 and -7 and are accepted since r3859. From-SVN: r5335 commit 2a7411306c505d1df265b3ed6f5f143eeb5a18b8 Author: Evan Ramos Date: Tue Aug 18 07:09:04 2015 +0000 Amend r5330. From-SVN: r5334 commit 66c9f692d576cae0acf52d56f8005b9c6b496338 Author: Evan Ramos Date: Tue Aug 18 07:08:50 2015 +0000 Fix GTK build. From-SVN: r5333 commit e9367072ac295822dc7c638291f7296c4eb6e0f2 Author: Evan Ramos Date: Sat Aug 15 21:28:49 2015 +0000 Fix USE_OPENGL=0 build. From-SVN: r5332 commit 8443a284dbef705be9a027c2dc2b1efb264585e8 Author: Evan Ramos Date: Sat Aug 15 21:28:31 2015 +0000 Menus: Mostly revert r5326, and instead restrict the starting and stopping text input to touch devices where we need the on-screen keyboard to appear. This maintains the bugfix on targets with a physical keyboard. From-SVN: r5331 commit f8057a51f7975436d54e3e781eb2fb9f49708b93 Author: Evan Ramos Date: Sat Aug 15 21:28:17 2015 +0000 Fix the Custom game content directory startup window option loading the folder alphabetically previous to the one selected when the "autoload" folder is present. From-SVN: r5330 commit 50d8090a3ea20a478305f057c49232a503366652 Author: Evan Ramos Date: Sat Aug 15 21:28:05 2015 +0000 M32: Add EVENT_PREDRAW2DSCREEN. From-SVN: r5329 commit 4d93f8cda64e58a6565b1db034b068c169d4d3e2 Author: Evan Ramos Date: Sat Aug 15 21:27:43 2015 +0000 Improvements to the MSVC project. From-SVN: r5328 commit d101e52eb92a069b1d0a484ba1bf4b4cde5f7d99 Author: Evan Ramos Date: Sat Aug 15 21:27:27 2015 +0000 KenBuild: Astyle and Uncrustify all source. From-SVN: r5327 commit 1e66c3f2629c0faad8da083a9c164bffd2f118b0 Author: Philipp Kutin Date: Sun Aug 9 09:58:47 2015 +0000 Menus: don't enable/disable SDL text input. At program start, text input is enabled anyway and it does not seem to have any adverse effects. However, disabling it after e.g. game save leads to the OSD not working properly any more: normal keys are passed via handleevent_pollsdl's SDL_TEXTINPUT case. From-SVN: r5326 commit 8a8e3109ada06aab3bb52819d1329c19e67d66a4 Author: Philipp Kutin Date: Sun Aug 9 09:58:46 2015 +0000 Menus: don't repeat #ifdef/#endif for SDL_{Start,Stop}TextInput(). From-SVN: r5325 commit 2ad7a8a7372449ee8dc8eb877dcd70446cfceb0a Author: Philipp Kutin Date: Sun Aug 9 09:58:45 2015 +0000 SDL2 layer: handle all Ctrl+[A-Z] keys passed to OSD_HandleChar(). See that function for a list of what these do in the OSD. From-SVN: r5324 commit e59525fcca5631290c4ebb537d81e3c59e441d15 Author: Philipp Kutin Date: Sun Aug 9 09:58:44 2015 +0000 OSD: fix oob write for Ctrl+K ("delete all to end of line"). From-SVN: r5323 commit b62d5acf88e2e5a4b5a7b479b974fea12fe41f7c Author: Philipp Kutin Date: Sun Aug 9 09:58:41 2015 +0000 Lunatic: in test/helixspawner.lua, make COLOR a global variable. DONT_BUILD. To demonstrate and test that it can be modified from outside, and that these changes are kept with savegame restores. From-SVN: r5322 commit e9bd31dce1db775f1f7e0bcaf8a388de5f85bef2 Author: Philipp Kutin Date: Sat Aug 8 11:03:07 2015 +0000 Mapster32: call AppGrabMouse() on show/retract OSD like in the game. This is necessary to hide the mouse cursor in some settings (such as with the debug build under Xfce). DONT_BUILD. From-SVN: r5321 commit 3454246d99caf415b0e95d99bc6870fab18ad764 Author: Philipp Kutin Date: Sat Aug 8 07:04:14 2015 +0000 Mapster32: add config variable 'corruptcheck_heinum'. With 3 modes: 0: auto-correction and warning disabled 1: auto-correction enabled (default, current behavior) 2: auto-correction and warning enabled From-SVN: r5320 commit c238bf66ff8638a14b34463605eae47fa4c03d78 Author: Philipp Kutin Date: Sat Aug 8 07:04:11 2015 +0000 Game: make BOUNCEMINE spawn FRAMEEFFECT only if moving horizontally. Also add "zshoot -4096 BOUNCEMINE" to lunatic/test/weaponvars.con to demonstrate that bouncemines can be shot. From-SVN: r5319 commit 8c067652e8d24aa6e1082e2a8d1dd7205e4bcd2e Author: Richard Gobeille Date: Sun Aug 2 08:50:31 2015 +0000 Revert r5316 which completely broke BOUNCEMINE. From-SVN: r5318 commit 5b5f1ab45c3c2de2d5f1f3671f8e7ec7e7c42fe0 Author: Richard Gobeille Date: Sun Aug 2 08:50:27 2015 +0000 Pragma fuckery. DONT_BUILD. From-SVN: r5317 commit 0b88015bfa38bb964c8bab82f5028490d9259f39 Author: Philipp Kutin Date: Sun Aug 2 08:40:42 2015 +0000 Game: don't spawn FRAMEEFFECT1 for BOUNCEMINE. There's no point, really. Since the bouncemine is immobile, the tsprites will all be overlaid at one point and show the same picture, as far as I can see. Worse, since r4876, the generated sprites may draw on top of the actual one. The former have their shade always set to sprite[t->owner].shade though, and will then appear fully bright (shade -127, since BOUNCEMINE sets it like this). This fixes issue number 4 from http://forums.duke4.net/topic/8042-five-minor-problems-report/ From-SVN: r5316 commit 9e07193b013f5ac6aeeed47db146eb6d4fb2514e Author: Philipp Kutin Date: Sun Aug 2 08:40:39 2015 +0000 engine.c: use swapptr() instead of swaplong() in two cases in drawmasks(). From-SVN: r5315 commit 1f51df1ba35265a6ae075535526b0138ab73e5b2 Author: Philipp Kutin Date: Sat Aug 1 08:41:14 2015 +0000 Polymost: don't redundantly adjust globalcursectnum in polymost_drawrooms(). See r5024 and the added comment. From-SVN: r5314 commit 14030fd6ee059c5940c1f07b43dd98fdaab064e3 Author: Philipp Kutin Date: Sat Jul 25 19:42:54 2015 +0000 Game: in DNCOORDS display, show x/y/z for VEL + ps->fric x and y components. Also, prettify some ps->fric-related code. DONT_BUILD. From-SVN: r5313 commit 5e57d0814b2dae3ccdafd5cc3979ba4080e3b3f0 Author: Philipp Kutin Date: Sat Jul 25 17:23:22 2015 +0000 Game: fix displayed viewscreen when its x/yrepeat isn't evenly divisible by 4. From-SVN: r5312 commit 62251551ae93708a4b18cec9a76378a0ee86acce Author: Philipp Kutin Date: Sat Jul 25 17:23:21 2015 +0000 baselayer: add DEBUG_FRAME_LOCKING functionality. From-SVN: r5311 commit ff8d9a30a3d68133caedbb3e8b686805e24f6529 Author: Philipp Kutin Date: Sat Jul 25 17:23:20 2015 +0000 engine: fix unbalanced begindrawing()/enddrawing() pair in printext16(). From-SVN: r5310 commit 5a0179825534c863fda6a4325174e833a9b931c1 Author: Philipp Kutin Date: Sat Jul 25 17:23:17 2015 +0000 Fix various, but not all warnings. Except: - missing braces around initializer [-Wmissing-braces]: due to union-in-struct vec3f_t - comparison between signed and unsigned integer expressions [-Wsign-compare]: in polymer.c From-SVN: r5309 commit b96553d5a6abbb45e97f5b90b7e5b4443efaf917 Author: Richard Gobeille Date: Thu Jul 23 23:51:30 2015 +0000 Mapster32: re-enable changing position in 2d mode with the right mouse button when dragging selected objects From-SVN: r5308 commit 7beaba06275cd02d3f544b0e94738060f7053b04 Author: Richard Gobeille Date: Wed Jul 22 02:06:23 2015 +0000 Mapster32: fix frame locking issue with 2d3d mode, crash when toggling bottom texture swap, issues with drawing certain types of walls. From-SVN: r5307 commit 51fa357a6f64ccc824033a406a91e8d6aabb1462 Author: Richard Gobeille Date: Mon Jul 20 20:25:32 2015 +0000 Mapster32: fix display of pal 4 sprites in 2d mode. From-SVN: r5306 commit 719694bdf71f81e3dd35ff4e48813bf4e10492b6 Author: Richard Gobeille Date: Mon Jul 20 20:25:29 2015 +0000 Mapster32: fix 3d mode status messages being overwritten with position/ang/horiz readouts. From-SVN: r5305 commit 8b31611d5b8c8425a6d4780f08f5d97642c891a2 Author: Richard Gobeille Date: Mon Jul 20 20:25:21 2015 +0000 Mapster32: fix unreadable status messages in 3d mode when working with a palette that doesn't align to Duke3d's color layout. From-SVN: r5304 commit e21b819e91e572508ddaf27155d0d46573b21840 Author: Richard Gobeille Date: Fri Jul 17 03:21:19 2015 +0000 Mapster32: change default 2d3d position to upper right corner, remove debug printf I accidentally committed. From-SVN: r5303 commit 7089d2f0223a00866a6d473c432331f35897b58f Author: Richard Gobeille Date: Fri Jul 17 00:12:48 2015 +0000 Mapster32: -Improved indication of selections in 2d mode. This includes both highlighted objects and multiple object selection. -2d3d improvements: it's no longer possible to end up with a black view due to the z position being out of range when moving the cursor position to a new area with the right mouse button. -The middle mouse button can now be used in place of the right alt key when selecting sectors, similar to how the left mouse button can be used in place of the right shift key to select points and sprites. -2d mode mouse cursor has been changed to a 1 pixel thick red cross with a shadow instead of a 2 pixel thick red cross with no shadow. This improves visibility when working in textured mode with lava sectors and other textures similar in color. -2d mode palette now changes when working in an underwater sector. -Misc tweaks From-SVN: r5302 commit 4eb30cd22caa2d376024d05b600c716fd6e2a767 Author: Richard Gobeille Date: Fri Jul 17 00:12:43 2015 +0000 Mapster32: don't warn about the map being corrupt if the only thing wrong with it is a sector ceilingheinum or floorheinum set without the corresponding bits to enable sloping set. DONT_BUILD. From-SVN: r5301 commit 446e61eb4c0d1dbbeee86ec4de1f51328a60226d Author: Richard Gobeille Date: Fri Jul 17 00:12:40 2015 +0000 Engine: misc cleanups, support for drawing transparent lines in 2d mode. DONT_BUILD. From-SVN: r5300 commit 18041d0b5ff5910e2d937bb0f78b7fe2b5f7c17d Author: Richard Gobeille Date: Fri Jul 17 00:12:33 2015 +0000 Fix warnings From-SVN: r5299 commit badce9dae4faa9b1cdf8ee10f93e59f6a4e000a2 Author: Pierre-Loup A. Griffais Date: Wed Jul 15 08:23:00 2015 +0000 Polymer: upload bucket indices through pinned host memory. From-SVN: r5298 commit 9407d8f8a82a5bfb2157d0377ac53d28a6151c7f Author: Pierre-Loup A. Griffais Date: Wed Jul 15 05:14:08 2015 +0000 Polymer: fix regression with Y-flipping bit. From-SVN: r5297 commit 4e56997337674ebd461307a3fbe05c5b597515ec Author: Pierre-Loup A. Griffais Date: Tue Jul 14 07:08:44 2015 +0000 Polymer: add preliminary support for batching draws. From-SVN: r5296 commit 337c2504d67f7fb88eb57640d7ebedf921746018 Author: Pierre-Loup A. Griffais Date: Mon Jul 13 16:01:18 2015 +0000 Polymer: fix synthesis warning. From-SVN: r5295 commit 7617d4f8634407e7020a059a9d3f31e9f9a999c1 Author: Pierre-Loup A. Griffais Date: Mon Jul 13 03:46:35 2015 +0000 Polymer: store map data in a single buffer with a unified vertex type. From-SVN: r5294 commit fa34b7bd4b72caaa099a2c06e4e1236fc8b9787a Author: Richard Gobeille Date: Sat Jul 11 23:07:47 2015 +0000 Mapster32: further 2d mode performance improvements. Sprites are also now displayed with their xrepeat and yrepeat taken into account. It's not perfect yet... needs more "jiggery-pokery" From-SVN: r5293 commit e8b225f2b9620a39fdaa44fb44e19b41147527b0 Author: Philipp Kutin Date: Sat Jul 11 17:06:30 2015 +0000 Mapster32: fix two "variable may be used uninitialized" warnings. I didn't produce a case when this could actually have happened, but reading the code, in the case of variable 'j' it seems possible with an empty map. From-SVN: r5292 commit 4e5da19185a9483bb5658215fa829f77efbad328 Author: Philipp Kutin Date: Sat Jul 11 14:13:04 2015 +0000 Mapster32: fix a possible oob read via drawspritelabel; sanitize 2d3d mode. That is, in m32_is2d3dmode(), also check if 2d and 3d mode resultions are the same. Otherwise, oob writes (e.g. via tileinfo_doprint()) and other thinkable niceties may ensue. From-SVN: r5291 commit 39002ce1a19fd9b3dfd87f36f49111318d656735 Author: Richard Gobeille Date: Fri Jul 10 21:19:41 2015 +0000 Mapster32: 2d mode performance improvements From-SVN: r5290 commit 171d9e2f1ef5d0ddb88d8778bcede00e86b650a1 Author: Richard Gobeille Date: Fri Jul 10 07:56:48 2015 +0000 Mapster32: improve 2d mode sprite label display. I want to test this further, so this is marked as DONT_BUILD. From-SVN: r5289 commit cc82ee6bedc45960a00acd8256cd9991dfe1e4d6 Author: Richard Gobeille Date: Fri Jul 10 07:56:43 2015 +0000 Update VS project. DONT_BUILD. From-SVN: r5288 commit c7c7c590c39a260fe8c49b680d5d789d07cff7d9 Author: Richard Gobeille Date: Fri Jul 10 07:56:41 2015 +0000 Disable FLAC in MSVC builds for now until I have time to build new libraries that are compatible with VS2015. DONT_BUILD. From-SVN: r5287 commit 521c11d726ca833c535867a6deca8aca285c5a5f Author: Richard Gobeille Date: Fri Jul 10 07:56:35 2015 +0000 Mapster32: fix 3d picture-in-picture when editing a map with TROR. From-SVN: r5286 commit 1a166441f75ab58a10981b7009db2ba0efa9e2e9 Author: Richard Gobeille Date: Thu Jul 9 05:58:05 2015 +0000 Mapster32: improve diagnostic message. From-SVN: r5285 commit fc69ed7a6a95aba2319017c77a85308442247734 Author: Richard Gobeille Date: Thu Jul 9 05:58:00 2015 +0000 A couple of Mapster32 tweaks to play nicer with different palettes. From-SVN: r5284 commit 8cfd130fdccbfdbb2a8daffe82531d31d9942596 Author: Richard Gobeille Date: Thu Jul 9 03:55:24 2015 +0000 Address complaints from the "Mapster32 problems and bugs" thread. From-SVN: r5283 commit 63b88b8ec972bc498fa55320e640cfafe81368c6 Author: Richard Gobeille Date: Wed Jul 8 03:34:46 2015 +0000 Mapster32 changes: -2d mode sprite colors are now automatically generated from the sprite's 8-bit tile. -Zooming in and out has been smoothed out. -The 2d mode crosshair cursor is now 1px thick instead of 2. -The left mouse button can now be used to select multiple wall points and sprites in 2d mode. -Ctrl-x now skips corrupt maps instead of going into an infinite loop. ;) -'-L function in 3d mode works again. -Sprites with a clipdist that has been changed from the default value of 32 will display a circular approximation of the distance in 2d mode. Note that the real clipping distance is actually closer to a square, but a circle looks much less confusing/stupid alongside the display of floor sprites. -2d mode status bar has been made a few shades lighter. From-SVN: r5282 commit f22fb7c36c6b91b1a528180efabaf6d98fdc6dc2 Author: Richard Gobeille Date: Wed Jul 8 03:34:42 2015 +0000 New experimental Mapster32 hybrid 2D/3D mode feature. Pressing F10 in 2D mode enables a picture-in-picture 3D view in the corner of the screen. When moving the mouse over the 3D view, the controls change to 3D mode controls and all 3D mode operations can be performed. The 3D view can be resized with shift + F10 and can be moved to different positions by holding CTRL and using the arrow keys. This commit also implements a much more useful automatic grid sizing feature and smooths out zooming in and out of the map. From-SVN: r5281 commit 1d2325ef6178fc67cf3e7878d32d7183494bdac1 Author: Richard Gobeille Date: Wed Jul 8 03:34:37 2015 +0000 Very minor OSD cleanups, no functional changes. I was planning on doing more with this but decided to do something else instead, so I want it out of my tree without losing it. DONT_BUILD. From-SVN: r5280 commit fcdbd3e7c3fb3c4c304160c6cea9a70a8220dc49 Author: Richard Gobeille Date: Wed Jul 8 03:34:34 2015 +0000 Makefile tweaks: remove BUILD_FINISHED because it frequently appeared in the wrong place when using make -j, and remove "executable" wording from linking phase. DONT_BUILD. From-SVN: r5279 commit a15a3707ed02eccfc317fcbe1a79cf812a0d7141 Author: Richard Gobeille Date: Wed Jul 8 03:34:31 2015 +0000 Enable sector drawing and textured map in Mapster32 sideview mode with a sideview elevation of 512 (straight up and down). From-SVN: r5278 commit b76961fcfadcc1cf28bb477a571ac8428f57e85e Author: Richard Gobeille Date: Wed Jul 8 03:34:27 2015 +0000 Improve r_preview_mouseaim and Polymost Mapster32 3d mode mouse selection. Also adds a display of the current coordinates, angle and horiz when moving around in 3d mode. From-SVN: r5277 commit 6c34f19eecc02ec96734799f30010d2b7b67c316 Author: Richard Gobeille Date: Wed Jul 8 03:34:24 2015 +0000 Minor Android changes. Barf. DONT_BUILD. From-SVN: r5276 commit 794f4c21b38bc64a8590a89c80d5380681bcdbc9 Author: Richard Gobeille Date: Wed Jul 8 03:34:20 2015 +0000 Slight further Polymost cleanup. Nothing of real importance. DONT_BUILD. From-SVN: r5275 commit b945b9f3d1b7c2030eab0e6967d53ce1b8c2cff4 Author: Richard Gobeille Date: Wed Jul 8 03:34:16 2015 +0000 Fix a bug where the editor was forced into game filesystem mode by default, and add a preference to mapster32.cfg to control the default filesystem mode. From-SVN: r5274 commit eb31e10c88bd73ffc6644e84124543dc6f3d72ef Author: Richard Gobeille Date: Wed Jul 8 03:34:13 2015 +0000 Prevent stack overflow when a grp configured via .grpinfo erroneously depends on itself. This should also be addressed in the .grpinfo parser, but this fixes it for now. From-SVN: r5273 commit 18bba1cd8e29d337e7d2889ec470989047cb6712 Author: Richard Gobeille Date: Wed Jul 8 03:34:09 2015 +0000 More audiolib cleanup, remove 8-bit output support. From-SVN: r5272 commit f91cdae4b779193026b75a0117630773e0adc96f Author: Richard Gobeille Date: Wed Jul 8 03:34:00 2015 +0000 Fix warning in defs.c. DONT_BUILD. From-SVN: r5271 commit a40d66c73e8e369f0f064703f62af5e27669621a Author: Richard Gobeille Date: Wed Jul 8 03:33:56 2015 +0000 Rework audiolib, interim commit before removing 8-bit output support. DONT_BUILD. From-SVN: r5270 commit b31f60a544d2ddf0502979d7bd32f087fa7501cb Author: Richard Gobeille Date: Wed Jul 8 03:33:48 2015 +0000 Add jaudiolib flac.c, formats.c, and xa.c to Visual Studio solution (they were missing). DONT_BUILD. From-SVN: r5269 commit 1af0574033b3841fd07b82c1317fe6c6e3df3c7f Author: Richard Gobeille Date: Wed Jul 8 03:33:43 2015 +0000 Move swapptr() to pragmas. DONT_BUILD. From-SVN: r5268 commit 85d9793404b1ac360ebc88634175281337ca823b Author: Pierre-Loup A. Griffais Date: Sun Jun 14 23:42:52 2015 +0000 Fix automap lines in Polymer mode From-SVN: r5267 commit 7f497100b36912808867ea61921a727d4800921f Author: Pierre-Loup A. Griffais Date: Sun Jun 14 23:42:31 2015 +0000 add pr_nullrender variable to toggle drawing and updating GL buffers From-SVN: r5266 commit f1a8b64d7559efc8537cd74f6245d9cd84bb650e Author: Philipp Kutin Date: Sun Jun 7 09:55:41 2015 +0000 Mapster32: fix an oob write in test_map(). From-SVN: r5265 commit 55c8245e547689b526c75fe9776621e9689bfcef Author: Philipp Kutin Date: Sun Jun 7 09:55:40 2015 +0000 mdsprite.c: from updateanimation(), if m->[cn]frame >= numframes, clear to 0. This prevents an oob access when rendering, the one observed was at polymer.c:4255. From-SVN: r5264 commit 13ebb65cdfd20d52f288ea1e7fe10609302f3627 Author: Philipp Kutin Date: Sat Jun 6 15:04:17 2015 +0000 Fix an out-of-bounds read in getpskyidx(). From-SVN: r5263 commit 07e9bec876f98c7277d98d6d98a0628c4bf5a800 Author: Philipp Kutin Date: Sat Jun 6 15:04:13 2015 +0000 m32exec.c fix "multiple unsequenced modifications to 'insptr' [-Wunsequenced]". From-SVN: r5262 commit 7bac47fee60e94d0bfd77dc031107148e68e7f89 Author: Richard Gobeille Date: Thu Jun 4 00:04:00 2015 +0000 Fix clipshapes, accidentally broken in my vec2_t rotatepoint commit. From-SVN: r5261 commit d4d26532a910e152f5e9d3b2d711df234d903a8d Author: Richard Gobeille Date: Thu Jun 4 00:03:55 2015 +0000 Fix crash when playing back an .ogg with comment metadata that doesn't contain "=". From-SVN: r5260 commit a7550e90b3adb4c865eaf21fefe526bfa29bb091 Author: Richard Gobeille Date: Sat May 30 23:31:59 2015 +0000 Android and MSVC build fixes. DONT_BUILD. From-SVN: r5259 commit cdee1f1230cfeb97e8135ff39370723d5e16ea96 Author: Evan Ramos Date: Wed May 27 08:48:22 2015 +0000 Define the formerly nonsensical combination of orientation bits 256 and 512 to mean "automatically zoom the tile so that the 320x200 coordinate system is vert-minus widescreen instead of horiz-plus". From-SVN: r5258 commit 3069521b6f5fdff404b757c04dfcf6f8e63e7d11 Author: Evan Ramos Date: Wed May 27 08:48:07 2015 +0000 Fix warning: narrowing conversion of 'img->vpx_image::d_w' and 'img->vpx_image::d_h' from 'unsigned int' to 'int32_t {aka int}' inside { } is ill-formed in C++11 [-Wnarrowing] From-SVN: r5257 commit 792b42241b31612e8878729734e3714c7de9555e Author: Evan Ramos Date: Wed May 27 08:47:50 2015 +0000 Defs: Add "multipsky" token. From-SVN: r5256 commit 1a77ae69e2734b0168439971a7e56d4a7bc8648c Author: Evan Ramos Date: Wed May 27 08:47:34 2015 +0000 Convert multi-psky handling to use dynamically-allocated arrays. From-SVN: r5255 commit a113d7863107ebec00320830d2e5bf857de5963a Author: Evan Ramos Date: Wed May 27 08:47:03 2015 +0000 Re-expose kpzbufsiz and set it to zero in uninitengine, preventing potential crashes from successive re-initializations of the engine. From-SVN: r5254 commit ad55b831cf939c3f81837c811683bdeda7c4143d Author: Evan Ramos Date: Wed May 27 08:46:44 2015 +0000 Revert recent icon changes. From-SVN: r5253 commit 3d473e90965c2fdc872c4567e0966db981fc07a7 Author: Evan Ramos Date: Wed May 27 08:46:19 2015 +0000 Update .gitignore. From-SVN: r5252 commit 5c464b678cf79d5dc63da09b1a3f976753ad2608 Author: Evan Ramos Date: Wed May 27 08:46:12 2015 +0000 Extend S_UpgradeFormat so that "filename.ext" first searches for "filename_ext.flac" and "filename_ext.ogg" before "filename.flac" and "filename.ogg". This fixes DUKETEAM playing grabbag.ogg instead of grabbag_voc.ogg when Megaton paths have been detected. From-SVN: r5251 commit 43ad0e5be0d3cc12b8f9ec22105035555b4734be Author: Evan Ramos Date: Wed May 27 08:45:59 2015 +0000 Add SFLAG_HURTSPAWNBLOOD, which allows actors (particularly useractor enemies) to spawn blood when hurt as hardcoded enemies do. From-SVN: r5250 commit 30d95d146edffc5423b07f8a11953a404f4289ae Author: Evan Ramos Date: Wed May 27 08:45:42 2015 +0000 Set htg_t 6, 7, and 8 on GROWSPARK sprites upon shooting, as is done for all other hitscan projectiles. From-SVN: r5249 commit 1a92d0f878a1364736cfc5041274f4dc49491214 Author: Evan Ramos Date: Wed May 27 08:45:30 2015 +0000 C-CON: Add userdef members "globalflags" and "globalgameflags", which control the values specified by the def commands of the same name. From-SVN: r5248 commit 40a34f036855b7e0a571d057b2689a6ebd60a2aa Author: Evan Ramos Date: Wed May 27 08:45:13 2015 +0000 Defs: Add "texture" convenience token to tilefromtexture, which will also define the image as a texture with implied nocompress and nodownsize flags. From-SVN: r5247 commit 36d033009b1fdd417fb0db6cbbea6e009bf85dda Author: Richard Gobeille Date: Tue May 26 00:48:20 2015 +0000 r5238 build fix From-SVN: r5246 commit 0d920e533eade2db2e71d378a592422646748761 Author: Richard Gobeille Date: Tue May 26 00:48:17 2015 +0000 Minor internal CON changes. From-SVN: r5245 commit e04cc1b1f8ab5e00626468b06eff756408a947af Author: Richard Gobeille Date: Tue May 26 00:48:13 2015 +0000 Minor VPX playback optimization. DONT_BUILD. From-SVN: r5244 commit 659c754a18e159aa880c7815c1cdf7dd54545605 Author: Richard Gobeille Date: Tue May 26 00:48:10 2015 +0000 Add line numbers to a couple of .def parsing warning messages. At some point these should probably all be cleaned up, similar to how they're handled with CON parsing. DONT_BUILD. From-SVN: r5243 commit fbdf197087520622bd173ccb438661d22d14a9b7 Author: Richard Gobeille Date: Tue May 26 00:48:07 2015 +0000 Misc Android. DONT_BUILD. From-SVN: r5242 commit 215847da84447ab4e87de7a352f9791c6a921b8a Author: Richard Gobeille Date: Tue May 26 00:48:04 2015 +0000 Shitcan the nausea-inducing r_projectionhacks mode 2. From-SVN: r5241 commit c42df195a6377381ed39d32644f8a21629eb45a2 Author: Richard Gobeille Date: Tue May 26 00:48:01 2015 +0000 Make 'L' key toggle grid lock in 3D mode, because it affects placement of sprites inserted with 'S'. From-SVN: r5240 commit e8c2a016bb2fefbf521838b4e385a1bc68e6b3f0 Author: Richard Gobeille Date: Tue May 26 00:47:54 2015 +0000 vec2_t rotatesprite, take 2 From-SVN: r5239 commit 2ec21eb1033e48e696154451ead49f6da0c93c38 Author: Philipp Kutin Date: Mon May 25 18:58:31 2015 +0000 C-CON: fix 'resizearray' after r4735: copy over old values, zero-init new ones. Make lunatic/test/gamearray.con run in C-CON, too. From-SVN: r5238 commit 11980e2d4a5ed28bd7d9204a0f3c494923ba0e6b Author: Philipp Kutin Date: Mon May 25 12:57:52 2015 +0000 LunaCON: fix negative alpha for 'rotatespritea'. BUILD_LUNATIC. Conceptually, this amends r4428. From-SVN: r5237 commit a7b4fc7ffadba326b6b91f75d5c126f85e3a5120 Author: Philipp Kutin Date: Mon May 25 12:57:51 2015 +0000 LunaCON: from 'definevolumename', make g_numVolumes be determined as in C-CON. From-SVN: r5236 commit f18e6121c54c4dedb1b4fd0452fb36e47e94b088 Author: Philipp Kutin Date: Mon May 25 12:57:50 2015 +0000 CON: check EVENT_ENTERLEVEL for nonzero RETURN, run w/ other players then. Background: AMC TC initializes per-player variables from this event. From-SVN: r5235 commit f661c9e3df2700cc5241d7751a55168e6458ef67 Author: Philipp Kutin Date: Mon May 25 12:57:49 2015 +0000 Free alloc'd anims in h_dukeanim. Adds a function hash_loop(). From-SVN: r5234 commit 1595012de626571ad495dd3bb3defb5678daa5de Author: Philipp Kutin Date: Mon May 25 12:57:48 2015 +0000 LunaCON: suffix gamearray file names with '.gar'. From-SVN: r5233 commit da4d7e614b64cddda0d5274d73bd4da2285e3121 Author: Philipp Kutin Date: Mon May 25 12:57:47 2015 +0000 LunaCON: expose g_tile[] members of 'tiledata'. From-SVN: r5232 commit 61a4b43e6eae441bacfe27c95b33ed94108a5c95 Author: Philipp Kutin Date: Mon May 25 12:57:44 2015 +0000 LunaCON: implement 'clearmapstate', fix 'resetplayerflags' parsing. From-SVN: r5231 commit 8e7f52f94f039d82a3849aac23843b0a9d839012 Author: Philipp Kutin Date: Fri May 22 12:43:26 2015 +0000 Polymer: fix rendering of middle part of 1-way masked wall. It does not depend on the "swap bottom wall parts" bit being set. The fix is by matching up the related code with Polymost. From-SVN: r5230 commit ca78d18d24aad7aea70012ff832cd018e731e7d0 Author: Evan Ramos Date: Tue May 19 22:11:02 2015 +0000 Re-expose clipmoveboxtracenum. From-SVN: r5229 commit 0b6eadef0b9c8fdb97f319ef3ed38a646c00405e Author: Evan Ramos Date: Tue May 19 22:10:37 2015 +0000 SW: Fix warning: array subscript is above array bounds [-Warray-bounds] From-SVN: r5228 commit 5d068342aea8a59e347f58544e2e3bc39e5f4802 Author: Evan Ramos Date: Tue May 19 22:10:20 2015 +0000 SW: Fix warning: variable may be used uninitialized in this function [-Wmaybe-uninitialized] From-SVN: r5227 commit 84a4fc30b76b74fa52f2d9bc952c2d159f480076 Author: Evan Ramos Date: Tue May 19 22:10:03 2015 +0000 SW: Fix warning: type does not match original declaration [enabled by default] From-SVN: r5226 commit 8b20c90f45ba643b0f50631dd406f816ceb227b2 Author: Evan Ramos Date: Tue May 19 22:09:41 2015 +0000 SW: Replace calls to Error() with buildprintf(). From-SVN: r5225 commit 30057713625121814d0b527ced46319466cc9bb0 Author: Evan Ramos Date: Tue May 19 22:09:25 2015 +0000 SW: Update MFILE to use the same calls KenBuild uses to save. From-SVN: r5224 commit 194afadc2937189804b880023c480b7ae866fcd4 Author: Evan Ramos Date: Tue May 19 22:09:07 2015 +0000 SW: Remove references to cachedebug and defaultspritecstat. From-SVN: r5223 commit 02ced67844182d9fbead32b32b921a43f069e3b1 Author: Evan Ramos Date: Tue May 19 22:08:48 2015 +0000 SW: Fix warning: passing argument 1 of 'allocache' from incompatible pointer type [enabled by default] and warning: pointer targets in passing argument 3 of 'allocache' differ in signedness [-Wpointer-sign] From-SVN: r5222 commit 6d40d09bae347d8bf61aef9ff69c80efd3ec91dc Author: Evan Ramos Date: Tue May 19 22:08:28 2015 +0000 MACT: Fix warning: passing arguments 2 through 5 of 'SCRIPT_PutDoubleString' discards 'const' qualifier from pointer target type [enabled by default] From-SVN: r5221 commit 1a1697dac86ea9192793834e3ae59bd0b9d84434 Author: Evan Ramos Date: Tue May 19 22:08:13 2015 +0000 SW: Remove redefinition of SEARCH_FLOOR and SEARCH_CEILING. From-SVN: r5220 commit 029de5c417e2a165cd682b30b7b89430c668a13e Author: Evan Ramos Date: Tue May 19 22:07:54 2015 +0000 SW: Fix warning: comparison is always false due to limited range of data type [-Wtype-limits] From-SVN: r5219 commit 9ee941b8f8bbab638d7c3419bb431a459ca09750 Author: Evan Ramos Date: Tue May 19 22:07:34 2015 +0000 SW: Fix warning: zero-length ms_printf format string [-Wformat-zero-length] From-SVN: r5218 commit 6423a73c4e9479f3f87680f17fa404314dfbd80f Author: Evan Ramos Date: Tue May 19 22:07:18 2015 +0000 SW: Some GRP/def infrastructure. From-SVN: r5217 commit de82dcac07acf9dbb4748676d9550872db8c8482 Author: Evan Ramos Date: Tue May 19 22:06:54 2015 +0000 SW: default_buildkeys From-SVN: r5216 commit 6ce76d5d53cac56983837f5f2341678bd20c8053 Author: Evan Ramos Date: Tue May 19 22:06:37 2015 +0000 SW: Fix conflicting types for: highlight, temppicnum, tempcstat, templotag, temphitag, tempextra, ExtAnalyzeSprites, ExtPreSaveMap From-SVN: r5215 commit a4975365881659142431d3f6d662066f460505dc Author: Evan Ramos Date: Tue May 19 22:06:21 2015 +0000 SW: Fix getnumber and printmessage in the editor. From-SVN: r5214 commit 3cefab92671a934ccae1e14a5813f29347804390 Author: Evan Ramos Date: Tue May 19 22:06:04 2015 +0000 SW: Update the rest of the AudioLib API. From-SVN: r5213 commit e91ae79621d5e8ecbfe3e96cecc0b7484800cf79 Author: Evan Ramos Date: Tue May 19 22:05:45 2015 +0000 SW: Rip out nonexistent calls to AudioLib CD playback functions. From-SVN: r5212 commit f1bba69173b293fc238e601fbcac7aa47dd7da18 Author: Evan Ramos Date: Tue May 19 22:05:20 2015 +0000 SW: Parallaxed skies. From-SVN: r5211 commit d6c473220d1a6c0de19646f21cd0449c14321f01 Author: Evan Ramos Date: Tue May 19 22:04:38 2015 +0000 Add uint32_t PaletteIndexFullbrights[8] so that Polymost can respect the lack of fullbrights in KenBuild and Shadow Warrior. From-SVN: r5210 commit 126a55e7373f89971c28de3a024f53416a741d9f Author: Evan Ramos Date: Tue May 19 22:04:06 2015 +0000 SW: Since sprite->filler is now fogpal, modify the CTF code that uses it to use a new variable in SW's USER struct instead. From-SVN: r5209 commit 430d1cabb904786d33456d1f62bd114a2045879b Author: Evan Ramos Date: Tue May 19 22:03:47 2015 +0000 SW: Modify the border-drawing code to work with our widescreen code. From-SVN: r5208 commit 43af0c0e5d455b7130f2254288235cbf636ec249 Author: Evan Ramos Date: Tue May 19 22:03:30 2015 +0000 SW: automapping (deleted), visibility --> g_visibility, numpalookups --> numshades From-SVN: r5207 commit b4f2d9b3acdfef0a141b8b88c17840928c144878 Author: Evan Ramos Date: Tue May 19 22:03:04 2015 +0000 SW: Update some API calls. From-SVN: r5206 commit 8f806121865f5e667bc4daa606f638a3c2a41d4f Author: Evan Ramos Date: Tue May 19 22:02:47 2015 +0000 SW: Misc adjustments. From-SVN: r5205 commit 10b16af0018852cfedfd350a1c7bac8bac71e6b1 Author: Evan Ramos Date: Tue May 19 22:02:25 2015 +0000 SW, KenBuild: tilesiz From-SVN: r5204 commit 33cb68615e5e6aa25e17eb544cb869a620f40dcd Author: Evan Ramos Date: Tue May 19 22:01:44 2015 +0000 SW: picanm_t From-SVN: r5203 commit dbd7ba102aabc3001266fbca1f91fa7cf6f452f5 Author: Evan Ramos Date: Tue May 19 22:01:22 2015 +0000 SW: hitscan From-SVN: r5202 commit 00e32a78f01f60c58ba9a19350c897902c65e3d4 Author: Evan Ramos Date: Tue May 19 22:00:38 2015 +0000 SW: setsprite, setspritez, getzrange, clipmove, pushmove, neartag, dragpoint, screencapture, md_tilehasmodel, preparemirror, saveboard, loadboard, pos From-SVN: r5201 commit 692a65a5a0d784d8f8cb3dcf4a3ee322b639535c Author: Evan Ramos Date: Tue May 19 21:59:39 2015 +0000 SW: Rename SendMessage() to SW_SendMessage() and DELETE() to REMOVE() to avoid conflicts with Windows headers. From-SVN: r5200 commit bd0e90ef4543f14d6f8223f575bfe5770380efe3 Author: Evan Ramos Date: Tue May 19 21:59:12 2015 +0000 SW: Remove references to files removed from our MACT. From-SVN: r5199 commit ee4d3a50a4e56aeae94bca3d2720036d23bc77b2 Author: Evan Ramos Date: Tue May 19 21:58:29 2015 +0000 SW: Nuke mytypes.h. Mostly. From-SVN: r5198 commit d87216d6ee96af4e6e78fb3c08ddf487c499112a Author: Evan Ramos Date: Tue May 19 21:56:03 2015 +0000 Add SW to our build system and make relevant changes to avoid fatal build errors. From-SVN: r5197 commit 33e1f94738f79e2bdcb7144d9d17c26a4aab6c6e Author: Evan Ramos Date: Tue May 19 21:54:34 2015 +0000 Add the Shadow Warrior source to our tree after astyling, uncrustifying, and renaming one file. From-SVN: r5196 commit 30fdee33ed887709f27af5646fef8fd4b40b6f91 Author: Evan Ramos Date: Sat May 16 20:16:27 2015 +0000 iOS: Set up and enable building with USE_OPENGL. DONT_BUILD. From-SVN: r5195 commit 48b235f2b665db3a67402fc00870b13d4e49d90e Author: Philipp Kutin Date: Sat May 16 14:27:03 2015 +0000 LunaCON: implement NODEFAULT per-actor gamevars in the C-CON fashion. For glocal gamevars, the LunaCON semantics (session gamevar) are kept. For per-actor ones, this now prevents resetting a gamevar's value to default on spawn or loadactor. BUILD_LUNATIC. From-SVN: r5194 commit 0b4be6f0c22247779c54efc93ef57705a6d9c708 Author: Philipp Kutin Date: Sat May 16 14:27:01 2015 +0000 config.c: fix an overlapping strcpy() in CONFIG_SetMapBestTime(). From-SVN: r5193 commit 9fdf95939b11fb88264d1558deffe7d8bf6b8e68 Author: Philipp Kutin Date: Sat May 16 11:56:50 2015 +0000 LunaCON: allow writing -1 to player[].newowner. For the other player members, where formerly negative values were allowed to be written, only -1 is now. From-SVN: r5192 commit 1bd59c04541dd585b4c43ddd6e11639a5a63673e Author: Philipp Kutin Date: Sat May 16 11:56:49 2015 +0000 savegame: fix g_tile[].proj memory leaks, halve number of projectile_t allocations. From-SVN: r5191 commit a692c7d0052bbe1c01b59ee818684e442ee69d54 Author: Philipp Kutin Date: Sat May 16 11:56:47 2015 +0000 When checking for SE7 water teleportation, regard sign of z velocity. This fixes RPGs fired upwards at a steep angle teleporting immediately to underwater when wading in water (reported via PM by Turok 64 Jr). From-SVN: r5190 commit 6d4193a5a88c9d47360ecd2feea63f205ed08311 Author: Evan Ramos Date: Sat May 16 09:12:12 2015 +0000 Merge glbuild_android into glbuild. DONT_BUILD. From-SVN: r5189 commit 816e92f46be6b3d47c467f0bd729c97166e19c4f Author: Philipp Kutin Date: Thu May 14 12:18:47 2015 +0000 Lunatic: account for the projectile changes in r5080. BUILD_LUNATIC. The (undocumented) Lua-side API stays almost the same. From-SVN: r5188 commit d0df4358e8a0699be52d1648ecbaf8d87e635220 Author: Philipp Kutin Date: Thu May 14 12:18:46 2015 +0000 LunaCON: allow ':' immediately after 'case' (legacy; warns), writing to ud.god. Also, on one "gamevar `xxx' is not per-*" diagnostic, print the location of the gamevar definition. From-SVN: r5187 commit be390c95d4e9c6b21f77c39e337271bb09bb2e1d Author: Philipp Kutin Date: Thu May 14 12:18:42 2015 +0000 Lunatic: fix build and user_defs definition mismatch. Left: projectile changes. From-SVN: r5186 commit 2e40cd55adbaaca9469eabaa5526bf9f2e193f48 Author: Evan Ramos Date: Wed May 13 08:57:27 2015 +0000 Add more expansion GRPs to the detection list. From-SVN: r5185 commit 481d9e4ab4b4108acd7459f14ff70f0959fb14d0 Author: Evan Ramos Date: Wed May 13 08:57:11 2015 +0000 Add autodetection support for Duke 3D as part of the Steam release of the 3D Realms Anthology. From-SVN: r5184 commit a9d66288305309bf8e1ca59d1eef9fd4fb96c0d2 Author: Evan Ramos Date: Tue May 12 23:23:39 2015 +0000 OS X: Fix startup window banner. DONT_BUILD. From-SVN: r5183 commit c7ec1d6d002b12ad243702b68f088c70f9ba642e Author: Philipp Kutin Date: Sun May 10 10:55:30 2015 +0000 Mapster32: honor r_usenewaspect, especially it being off. For this, add a setaspect_new() setup/restore pair in M32_DrawRoomsAndMasks() like for G_DrawRooms(). With this, changing viewingrange/aspect via m32script (in a.m32: [7] -- [9] on the upper row) can only be done in r_usenewaspect 0, though. From-SVN: r5182 commit e680e37869b1ff3957605f53668a2121a5a009b4 Author: Evan Ramos Date: Tue May 5 23:38:19 2015 +0000 Fix a typo in r5179. From-SVN: r5181 commit 14f97a0b1793804d56e13aaf90b1686c3ad63027 Author: Evan Ramos Date: Sun May 3 07:05:35 2015 +0000 Defs: Add "artfile" token, which loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def. artfile { file "whatever.art" } // loads whatever.art just as if it had been named TILES020.ART artfile { file "whatever.art" tile 2000 } // loads whatever.art starting at index 2000 instead of the tilestart value contained within it This is useful because ART files will load faster than images loaded through tilefromtexture (which must undergo a color matching process), and because tiles making use of palette indices which have duplicate colors in the stock Duke 3D palette but not in other palettes (such as the 3D Realms screen) are negatively affected by the aforementioned process. From-SVN: r5180 commit 536cb9eb3b7de2419321ee42571cad2ab71de98f Author: Evan Ramos Date: Sun May 3 07:05:21 2015 +0000 Add support for ART files containing exactly one tile as an input format for hightile textures and model skins. They are rendered in the global game palette and function as conventional hightile. From-SVN: r5179 commit 5d9eaa53ee1de2f9458ae76a9cffe5e985688d48 Author: Evan Ramos Date: Sun May 3 07:05:04 2015 +0000 Defs: Allow loading ART files as input to tilefromtexture. Note that they must contain exactly one tile; any more and the entire ART file will be rejected. From-SVN: r5178 commit 27f501de1b21ba606292ef72086ada313f8d08db Author: Evan Ramos Date: Sun May 3 07:04:49 2015 +0000 Restructure and expand some ART loading functionality in the engine. From-SVN: r5177 commit 0a6af272c14cc47c2fc60a66b4dbbd43a4202274 Author: Evan Ramos Date: Sun May 3 07:04:31 2015 +0000 Defs: Factor out dummytile creation code into E_CreateDummyTile and account for the case when a dummytile may be overwriting a faketile from tilefromtexture. From-SVN: r5176 commit 0033d993fe9437ccf58602a91e866e0163438f31 Author: Evan Ramos Date: Sun May 3 07:04:11 2015 +0000 Separate kpzload into two separate functions, kpzbufload (which now lives in cache1d, regardless of WITHKPLIB) and kpzdecode. From-SVN: r5175 commit d2ae06f81337baf60ec5df8e75e275b23d7794dd Author: Evan Ramos Date: Sun May 3 07:03:48 2015 +0000 Replace most instances of casting byte arrays to wider integral types with the B_(UN)BUF functions in compat.h that were previously used only in the netcode. I have commented out the versions of these functions that perform bitmasks and shifts and replaced them with versions that cast to and from integral types, pending performance and compatibility research across platforms. From-SVN: r5174 commit d35368bcece5a83500d947e63b3bdf1a75d1b4db Author: Evan Ramos Date: Sun May 3 07:03:12 2015 +0000 Replace the bswap function used in kplib with B_SWAP32, and merge the 32-bit MSVC and GCC assembly into compat.h. TODO: Review the value of the continued use of special cases of these swap functions, including the OS-based variants for BSD and OS X, and this assembly. From-SVN: r5173 commit 70d93e0dda0ea84427f2adf8e1d964f02ad73e1a Author: Evan Ramos Date: Sun May 3 07:02:54 2015 +0000 kplib: Replace [LS]SWAPI[BL] macros with the B_(BIG|LITTLE)(16|32) ones defined in compat.h and used everywhere else. From-SVN: r5172 commit 57a8c2e387735d4b5f5eab6fb70835b59f8476bb Author: Evan Ramos Date: Sun May 3 07:02:40 2015 +0000 Fix typo "maxtileallocsiz" --> "maxtiltallocsiz" for MAXYDIM < 640. From-SVN: r5171 commit eb8c79246cf4fbfa433c0b96928433ec4f9286e9 Author: Evan Ramos Date: Sun May 3 07:02:23 2015 +0000 Menus: Call SDL_Start/StopTextInput() at the appropriate times so that touch devices display the on-screen keyboard when the user is prompted for text input. From-SVN: r5170 commit 8a304eadd634471580631c8e84e5caf499ff3b30 Author: Evan Ramos Date: Tue Apr 28 21:30:42 2015 +0000 Set up input so that the menus are navigable under iOS. This also enables the SELECTDIR back button unconditionally instead of restricting it to non-touch devices. DONT_BUILD. From-SVN: r5169 commit dd175afeeae559721e29f7f5c8fdf047307ea001 Author: Evan Ramos Date: Sun Apr 26 00:58:08 2015 +0000 Ensure that Objective-C compiler invocations include the C-only options that we specify, especially -std=gnu99. DONT_BUILD. From-SVN: r5168 commit 868d79c00288abff66c5acb87f23bdf64548552f Author: Evan Ramos Date: Sun Apr 26 00:45:55 2015 +0000 Don't use #pragma push_macro in buildtypes.h, for compatibility with GCC 4.2. DONT_BUILD. From-SVN: r5167 commit 8e53fa6ceb8a99ab8b85696617dfe0ec895f7b84 Author: Evan Ramos Date: Sun Apr 26 00:08:14 2015 +0000 LunaCON: Expose all structs to inline access. Tiledata and paldata are still to-do. DONT_BUILD. From-SVN: r5166 commit 233d50923afde9bb5108b362faf9bd7f9f712ef7 Author: Evan Ramos Date: Sun Apr 26 00:07:57 2015 +0000 CON: Add player[].index, which returns the player ID that you put in. Mostly useful to get the magic value of THISACTOR when applied to the player struct. DONT_BUILD. From-SVN: r5165 commit d801db0f98d858dfd10758141f170e1899194aa3 Author: Evan Ramos Date: Fri Apr 24 00:10:00 2015 +0000 Menus: When toggling Music in the Sound menu, respect the LOGO_PLAYMUSIC flag in LOGO_FLAGS for the main menu. DONT_BUILD. From-SVN: r5164 commit 1088e10ca513f86bf60d61a8c5364bc6cb9b7621 Author: Evan Ramos Date: Fri Apr 24 00:09:42 2015 +0000 AudioLib: When handling a LOOP_END tag in FLAC or Ogg, truncate any blocks that read past it so that the specified value is respected precisely, instead of rounding up to the nearest block size. DONT_BUILD. From-SVN: r5163 commit 4342e5e19b5c0dbc9e20cbf79119bb9a48662723 Author: Evan Ramos Date: Fri Apr 24 00:09:19 2015 +0000 AudioLib: malloc + memset to zero --> calloc DONT_BUILD. From-SVN: r5162 commit 9efed1929096201042fdb0e7a8c6765d73a3beff Author: Evan Ramos Date: Fri Apr 24 00:08:46 2015 +0000 Add game-side def "globalgameflags" that takes a single value. Flag 1 disables hardcoded pinning of HUD weapons to the side of the screen in widescreen. DONT_BUILD. From-SVN: r5161 commit bece1e3087fd42979446f672142e6230a6b7f3c3 Author: Philipp Kutin Date: Mon Apr 20 20:46:42 2015 +0000 Savegame: for non-user level, don't write garbage into h.boardfn, allow per-map ART. From-SVN: r5160 commit a42086d2bb65f305ddcbda7f8e5d8318af0e627c Author: Philipp Kutin Date: Sat Apr 18 21:59:21 2015 +0000 Do "typedef projectile_t defaultprojectile_t;" instead of having an indetical-member type. Move projectile_t to player.h. From-SVN: r5159 commit 49752c96b03c382d77303c7e1737c66d55245f23 Author: Philipp Kutin Date: Sat Apr 18 21:59:20 2015 +0000 polymost.c: fix display of floor-aligned sprites ornameted to the ceiling. From-SVN: r5158 commit 7e17e92807c728866682f9fffc3d019997a568f5 Author: Philipp Kutin Date: Sat Apr 18 21:59:19 2015 +0000 polymost.c: split three overlong lines into three each. This was formerly "fix multi-tile ceiling skies.", but TX beat me to it and Git automatically figured out how to merge while keeping a linear history. (Our fixes were identical.) Nice! From-SVN: r5157 commit 59bddb229f2a3eff9a473bf510d9f583b12ebd79 Author: Philipp Kutin Date: Sat Apr 18 21:59:18 2015 +0000 Double the size of clouds[] (holding sectors with CLOUDYSKIES ceilings). Also, make cloudx[] and cloudy[] scalars, as the per-sector values were always identical. In prelevel(), warn if some CLOUDYSKIES-ceiling sectors could not be set up due to reaching the new 256 sector limit. From-SVN: r5156 commit 3e8d53afbd3975b5c4d37c19881d893d96744850 Author: Philipp Kutin Date: Sat Apr 18 21:59:17 2015 +0000 actors.c: fix 3 incorrect '/' -> tabledivide32_noinline rewrites in r4658. Division has higher precedence than bitwise-OR. The cases concerned SE3, SE4 and NEON* sprites. Incidental info: the blinking of NEON* sprites can be controlled via their lotag, similarly to how you how you give a "random flash number" as SE4 hitag. From-SVN: r5155 commit c203d5f7e7875e8defa06c3dcac8d5fb82f7e237 Author: Richard Gobeille Date: Sat Apr 18 21:49:36 2015 +0000 Revert "vec2_t rotatepoint()." This reverts commit b0eeef385aecf9cea3ec2bd0ee82f59982942ce0. From-SVN: r5154 commit 7974b24fe4d81f90684beb8e8fbade6de545bb3a Author: Richard Gobeille Date: Sat Apr 18 21:37:13 2015 +0000 Fix the sounds at the end of the episode 3 cutscene. From-SVN: r5153 commit f0c727bedfdfecece0dc58e45e424297e7b17ec7 Author: Richard Gobeille Date: Sat Apr 18 21:37:10 2015 +0000 Polymost parallax sky fix. From-SVN: r5152 commit 8186730a6fbe4bcc1f257a145b7bdda1d9180615 Author: Richard Gobeille Date: Sat Apr 18 21:37:07 2015 +0000 Further constification. DONT_BUILD. From-SVN: r5151 commit 4c7efffccf43c596d65f051a11fc0bd9cbad0b93 Author: Richard Gobeille Date: Sat Apr 18 21:37:01 2015 +0000 vec2_t rotatepoint(). From-SVN: r5150 commit 16e29ec0ad0ab442420bf3860c6f1d07083f530b Author: Evan Ramos Date: Tue Apr 14 21:18:08 2015 +0000 Make all the hictinting_apply blocks consistent. This should fix certain tints types being applied incorrectly in Polymer and the global tints (underwater and nightvision) not being applied to tints and models with certain flags. From-SVN: r5149 commit 110978af82e6ef03718ce6ac57bf5cdfb5e09789 Author: Evan Ramos Date: Tue Apr 14 21:17:52 2015 +0000 Correct the HICTINT_GRAYSCALE calculation for hightile. From-SVN: r5148 commit 2ee94b1eb1dd0f6f69422df5ce49319e3426c57d Author: Evan Ramos Date: Tue Apr 14 21:17:36 2015 +0000 Complete the necessary infrastructure so that more than one precomputed tint on a hightile texture will display. From-SVN: r5147 commit 837863a356eb39b369bbf11e9f5a9163dc4783d7 Author: Evan Ramos Date: Tue Apr 14 08:08:02 2015 +0000 Tints: Add blending modes Screen, Overlay, and Hard Light, as opposed to the default Multiply. This value is encoded in bits 6 and 7 of the "flags" parameter. In other words, calculate your flags besides these modes, then bitwise OR the resulting value with: 0 - Multiply 64 - Screen 128 - Overlay 192 - Hard Light Note: These will likely look terrible when combined with the Colorize flag, because of the nature of the Colorize flag. From-SVN: r5146 commit 177b7435b317f5801808c0b45d2d2d4179933dcd Author: Evan Ramos Date: Tue Apr 14 08:07:41 2015 +0000 Account for HICTINT_GRAYSCALE, INVERT, and COLORIZE when applying a tint on 8-bit art. From-SVN: r5145 commit 2a95599fdf52187e25509ab24a948f5f2da00ddc Author: Evan Ramos Date: Tue Apr 14 08:07:23 2015 +0000 Apply HICTINT_APPLYOVERALTPAL where it should in texcache_fetch. From-SVN: r5144 commit 8b16c2871115373e4f301d37765753a1bf5f5265 Author: Evan Ramos Date: Tue Apr 14 08:07:08 2015 +0000 Eliminate a check that a model's sector's floorpal is nonzero before applying a tint. From-SVN: r5143 commit 4a2d42177d010abc81a04ccbba17d2f5b42f0a6f Author: Evan Ramos Date: Tue Apr 14 08:06:51 2015 +0000 Polymer: Account for HICTINT_APPLYOVERALTPAL and HICTINT_USEONART. From-SVN: r5142 commit 1dc5a5d5942b283440541f02ea5938177029c930 Author: Evan Ramos Date: Sun Apr 12 08:07:59 2015 +0000 Fix omission of modules when parsing game-side defs. From-SVN: r5141 commit f48b55ccc31f272ae54c21544742780e6ad9d359 Author: Evan Ramos Date: Sun Apr 12 08:07:45 2015 +0000 Implement "renamefile" during game-side def parsing (normally for "loadgrp" et al.) in addition to engine-side def parsing. From-SVN: r5140 commit 2112638a2ed778d517be29df30e1ff9b919ef9ee Author: Evan Ramos Date: Sun Apr 12 08:07:30 2015 +0000 Defs: Add "copytile" token that allows you to copy existing 8-bit tiles from one slot to another, along with their x/yoffsets and flags. ART animation values are not copied. Examples: (assuming stock Duke palswaps) copytile 10000 { tile 0 } // tile #10000 is now the same as #0 copytile 10001 { tile 1 pal 8 } // tile #10001 is now #1 with a full-green tint copytile 0 { pal 1 pal 23 } // tile #0 now has a full-yellow tint From-SVN: r5139 commit 24c5cc3235c2e36643bde33ea84ad29f09fd7347 Author: Evan Ramos Date: Sun Apr 12 08:07:10 2015 +0000 Instead of keeping the entire contents of ART files loaded from within zips in memory, assimilate them into tilefromtexture's compressed faketiledata. This involves some refactoring. From-SVN: r5138 commit 91221d5d73942dfdc86236b0efb610327e28f157 Author: Evan Ramos Date: Sun Apr 12 08:06:51 2015 +0000 Defs: Expand use of check_tile(). From-SVN: r5137 commit 98080032e70541884f1ed0bc3df1fc04f4a4211c Author: Evan Ramos Date: Sun Apr 12 08:06:37 2015 +0000 Fix an OOB in the cheats menu when running with the v0.99 GRP. From-SVN: r5136 commit e9d5b47eac6ea20e237b312985776285c5293481 Author: Evan Ramos Date: Sun Apr 12 08:06:20 2015 +0000 Correct the month used in automatic names of savegames created by the "save" CON command. From-SVN: r5135 commit a6165c1b64c0809a92f3aec5e24220620740ce2d Author: Philipp Kutin Date: Sat Apr 11 13:53:09 2015 +0000 SDL2: map SDL_SCANCODE_NONUSBACKSLASH to the same Build code as COMMA. NONUSBACKSLASH is what is generated for the key between the LShift and 'Z' here. The aliasing with the actual ',' key is as with the SDL1.2 build. Fixes the issue reported in http://forums.duke4.net/topic/8029-cant-bind-key-anymore/ From-SVN: r5134 commit b5f66eb2e7b80054af8bc8bdb4bca6569b142d37 Author: Philipp Kutin Date: Sat Apr 11 13:53:08 2015 +0000 Makefile.common: for Clang, add -Wno-missing-braces. Because we get spammed otherwise, regarding initializations of 'vec3f_t' and 'vec3d_t' variables. Update: actually, it also happens for GCC builds for me. From-SVN: r5133 commit ca761c24e3e6cb5a0f09a63786ed792d481bfffb Author: Philipp Kutin Date: Sat Apr 11 13:53:07 2015 +0000 Mapster32/C++ build/non-Lua: probably fix a crash in showsectordata(). Reported in http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__220722 I could not reproduce it, but it is thinkable that 'searchsector' could have been out-of-sync with the 'sectnum' local. (For example, the former one could have been -1, triggering the crash.) From-SVN: r5132 commit baef01396db2a0c337b8bf48eb94c67d724e4a71 Author: Philipp Kutin Date: Sat Apr 11 13:53:06 2015 +0000 Fix freeze on pitch 0 sound playback introduced in r4616. Reported in http://forums.duke4.net/topic/3857-the-crash-thread/page__view__findpost__p__220954 Now, PitchTable[] in initialized with the same values as pre-r4608. From-SVN: r5131 commit 36c044e1ddb2ce736430f7bc2dec3f2385383afd Author: Philipp Kutin Date: Sat Apr 11 13:53:05 2015 +0000 LunaCON: update docs and comments in lunatic/test/event_chaining.con From-SVN: r5130 commit d2f640c428ea61594b7c768a61ce586980e01bf0 Author: Philipp Kutin Date: Sat Apr 11 13:53:04 2015 +0000 polymost.c: fix an out-of-bounds access in polymost_dorotatesprite(). To reproduce, lower the OSD, for example. From-SVN: r5129 commit aa85932145b680ac4fb9a395faee7200d9e88f49 Author: Evan Ramos Date: Thu Apr 9 07:56:36 2015 +0000 Amend previous commit. From-SVN: r5128 commit 23be509c4ebc4aaae43e40fd40f9e44d0df69df7 Author: Evan Ramos Date: Thu Apr 9 07:52:28 2015 +0000 Defs: Add "undefinetile" and "undefinetilerange". From-SVN: r5127 commit a97db9dbe1c31e6173e2f14c416acb3c1d51e7ee Author: Evan Ramos Date: Thu Apr 9 07:52:14 2015 +0000 Clear the player's quote timer for each MAIN_LOOP_RESTART. From-SVN: r5126 commit 303e0f00f1cc95718f12e88768cdda87804d2288 Author: Evan Ramos Date: Thu Apr 9 07:52:01 2015 +0000 Disallow "autoload" as a choice for the game dir in the Win32 startup window. From-SVN: r5125 commit 2b2b4b783d94fffa834c8c33aa1688496da24dde Author: Evan Ramos Date: Thu Apr 9 07:51:48 2015 +0000 Allow alpha fade-out for quotes and the menu mouse cursor in 8-bit when the supplied PALETTE.DAT has enough alpha tables to fully display each effect. From-SVN: r5124 commit df77cbdae29081d8b2d4c38ac00ff9c6df93f990 Author: Evan Ramos Date: Thu Apr 9 07:51:26 2015 +0000 Menus: Modify slider bar so that it uses a scale defined in the data structure instead of auto-scaling to the height of the row. From-SVN: r5123 commit ee278c76e8b6fec5d6389d3f209b4f584b82b386 Author: Evan Ramos Date: Thu Apr 9 07:51:14 2015 +0000 Menus: Remove all remaining TEXT_GAMETEXTNUMHACK. From-SVN: r5122 commit 886a946d7744b460850052644ccdccdb51be06df Author: Evan Ramos Date: Thu Apr 9 07:51:01 2015 +0000 Menus: Rename "pickup messages" to "game messages". From-SVN: r5121 commit 19dc505d90ee7d31e971ff1e719d4275ad4104da Author: Evan Ramos Date: Thu Apr 9 07:50:44 2015 +0000 In P_DisplayWeapon(), don't skip P_DisplaySpit() due to Fist/Knuckles/Tip/Access. From-SVN: r5120 commit e5ef5f2a7a8a6d376a0f0ed95212062a55931b5d Author: Evan Ramos Date: Wed Apr 8 22:45:14 2015 +0000 Build tools: Fix build. DONT_BUILD. From-SVN: r5119 commit 998350fc2d345f9b9f3bfbea391f4cd26f011b81 Author: Evan Ramos Date: Mon Mar 30 05:57:30 2015 +0000 Add events for the remaining player-related HUD display functions: EVENT_DISPLAYSPIT - loogies from the SPIT projectile EVENT_DISPLAYFIST - nukebutton fist (shrunk fists are part of EVENT_DISPLAYWEAPON) EVENT_DISPLAYKNEE - pstomp knee (quick kick is part of EVENT_DISPLAYWEAPON) EVENT_DISPLAYKNUCKLES - knuckle crack idle animation EVENT_DISPLAYSCUBA - scuba gear EVENT_DISPLAYTIP - tip hand EVENT_DISPLAYACCESS - access cards / keycards From-SVN: r5118 commit 2da07f724375b7475e5b4269d0fdf54fce93d782 Author: Evan Ramos Date: Mon Mar 30 05:57:11 2015 +0000 Move handling of ud.drawweapon from G_DrawWeaponTileWithID() to P_DisplayWeapon(). This fixes it not being applied to the quick kick and mighty foot. From-SVN: r5117 commit eb20bca033eb0c5e717ff03f21a6d0475ad49f70 Author: Evan Ramos Date: Mon Mar 30 05:56:52 2015 +0000 Replace the use of an "snum" parameter in the screen display functions with screenpeek because we need to keep screenpeek accurate for CON anyway. From-SVN: r5116 commit 3da1174a05313f0f64b382e39949afe9f7caa486 Author: Evan Ramos Date: Mon Mar 30 05:56:37 2015 +0000 C-CON: Add two new structs, tiledata and paldata, accessible only through quick-access. From-SVN: r5115 commit cb50e13dda4bff62cb99f074c4d89059519cf59b Author: Evan Ramos Date: Mon Mar 30 05:56:20 2015 +0000 Don't print quotes when not in-game. This is required after a change in the cheat menu commit that allows the cheat quotes to trigger from the in-game menu. However, a side-effect was that pressing F12 in the main menu would cause "SCREEN SAVED" to display indefinitely. From-SVN: r5114 commit e3fb4ae3997fd260eaa713fdac48576f7d844ec0 Author: Evan Ramos Date: Mon Mar 30 05:56:06 2015 +0000 Prevent a crash in mdloadskin() caused by an oversight in r5107. From-SVN: r5113 commit b494700368df083140e923658dae35f8312e7b87 Author: Evan Ramos Date: Sun Mar 29 02:40:27 2015 +0000 Avoid reading or writing savegame specdata arrays when the pointer to one is NULL or their count is zero. From-SVN: r5112 commit cb765554cb9ff929960abd866246361677123b0d Author: Evan Ramos Date: Sun Mar 29 02:40:15 2015 +0000 Avoid triggering undefined behavior in the allocator when loading or saving ProjectileData[]. From-SVN: r5111 commit f4caa2571d89d1fba38ee595c91bda45e103b019 Author: Evan Ramos Date: Sun Mar 29 02:40:03 2015 +0000 C-CON: Add checks to prevent invalid reads/writes when using get/setprojectile on a tile number that does not have a projectile defined for it. From-SVN: r5110 commit 2241d66a8918c60a93d5bf22cb00a940a411cd35 Author: Evan Ramos Date: Sun Mar 29 02:39:49 2015 +0000 Restore an insptr++ when executing "endswitch". From-SVN: r5109 commit 926ad16dc9f632e6950258b1492ede5e8cdd1ceb Author: Evan Ramos Date: Sat Mar 28 09:49:37 2015 +0000 Defs: Add token "forcefilter" to textures, skyboxes, and model skins. It forces the use of GL filtering for the resource in question. From-SVN: r5108 commit 359659ef8be5822bc117c53f587cb24675d4b9eb Author: Evan Ramos Date: Sat Mar 28 09:49:11 2015 +0000 Defs: Add "nocompress" and "nodownsize" tokens to model skin definitions. From-SVN: r5107 commit 327fe1023bd19d4cf6a7c62d9016f0b063b5549d Author: Evan Ramos Date: Sat Mar 28 09:48:51 2015 +0000 CON: Add projectile workslike flag PROJECTILE_NOSETOWNERSHADE = 0x00200000 = 2097152 that prevents actors from inheriting a projectile's shade when shooting it. From-SVN: r5106 commit 775462fcdc42577b06e01d789904b11ee6063e98 Author: Evan Ramos Date: Sat Mar 28 09:48:37 2015 +0000 C-CON: Really fix get/setprojectile. From-SVN: r5105 commit ca5e899074fb51d5a67529189735125122c7f26e Author: Evan Ramos Date: Sat Mar 28 09:48:21 2015 +0000 Re-apply r5053, which got lost in r5079. From-SVN: r5104 commit 59b3c6930a8eba1a33154ad947870b2b6d8bfddf Author: Evan Ramos Date: Fri Mar 27 12:30:35 2015 +0000 Restructure the GRP scanning functionality. Outwardly, this allows GRP selections with special handling (the add-ons and NAM) to function properly when the Windows or GTK startup windows do not run, namely with the OS X startup window, and using the -gamegrp command line parameter on any other platform, or on all of the both under dedicated server mode, From-SVN: r5103 commit 62af6edbc9da3e9cfc146045b8b471ee8f102dd1 Author: Evan Ramos Date: Fri Mar 27 12:30:09 2015 +0000 weapons.con.sample: Update to use the hudpal member so that fogpals and custom makepalookup definitions display properly. From-SVN: r5102 commit 5ac471ecc31753d4c8f8fa200aa1d645338362a4 Author: Evan Ramos Date: Fri Mar 27 12:29:52 2015 +0000 Defs: Add "nofloorpal " to "makepalookup", which, when specified, allows you to set exactly the value of g_noFloorPal that you want. From-SVN: r5101 commit 63f590b927bd676cca2913d5d5d7b989de0d30e8 Author: Evan Ramos Date: Fri Mar 27 12:29:37 2015 +0000 C-CON: Fix a mistake in r5086 that broke get/setprojectile. From-SVN: r5100 commit 0a6a398c39d462504fea71fa23c9088fdeec4383 Author: Evan Ramos Date: Fri Mar 27 12:29:24 2015 +0000 C-CON: Add read-only player structure member "hudpal", that returns the result of P_GetHudPal(). From-SVN: r5099 commit d95e813a0796865c45cff8967412cf1d7174308f Author: Evan Ramos Date: Fri Mar 27 12:29:05 2015 +0000 CON: Add EVENT_WORLD, EVENT_PREWORLD, and EVENT_PRELEVEL, which respectively function as EVENT_GAME, EVENT_PREGAME, and EVENT_LOADACTOR, but only running once instead of per-actor. From-SVN: r5098 commit 0ee35fd3f3ee19981c0721d0ee912b74dc6a3307 Author: Evan Ramos Date: Fri Mar 27 12:28:45 2015 +0000 C-CON: Redefine "break" within events to mean "skip the remainder of this event block", not "skip the remainder of execution of this event, through all chained blocks". The latter behavior is still available through the "return" keyword. From-SVN: r5097 commit dd504bc82a1316814f6455cb7bc6bccfef7b26e4 Author: Evan Ramos Date: Fri Mar 27 12:28:29 2015 +0000 Fix a typo in r5090. From-SVN: r5096 commit a6bfc6a027f60130dbee1f969d873ae81621e1e8 Author: Richard Gobeille Date: Thu Mar 26 21:42:19 2015 +0000 Fix Polymost issue reported at http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__220265 From-SVN: r5095 commit 3af35498f195b89c62c55093066689b64045b59a Author: Evan Ramos Date: Thu Mar 26 20:39:02 2015 +0000 OS X: Fix build. DONT_BUILD. From-SVN: r5094 commit 5be29217b4d998a6e9aa130584b3a36d44c806c8 Author: Evan Ramos Date: Wed Mar 25 21:31:11 2015 +0000 CON: Add token "appendevent", which functions identically to "onevent" except that the event's code is chained to the end of any previous events, instead of the beginning. From-SVN: r5093 commit e9800c4c43a50433cde232890975c60e1f52132b Author: Evan Ramos Date: Wed Mar 25 21:30:52 2015 +0000 C-CON: Fix processing the bytecode in an incorrect order when executing setplayer on a member with a second parameter, a missed instance of a consideration from r5086. From-SVN: r5092 commit 0d8864e92852706ebe817bd87b5abe0f13ae448f Author: Evan Ramos Date: Wed Mar 25 21:30:39 2015 +0000 C-CON: Remove the restriction that prevents userdef access when the current player is not myconnectindex. From-SVN: r5091 commit 75596bc112f9ad7e7d0a53dabdb4e172541b0f3f Author: Evan Ramos Date: Wed Mar 25 21:30:25 2015 +0000 C-CON: Implement tilesizx/y gamearrays in a fashion similar to M32Script's solution: a STRIDE2 flag. From-SVN: r5090 commit 68232ceab3b082b33dd9a5210b707b63826d15c6 Author: Evan Ramos Date: Wed Mar 25 06:28:09 2015 +0000 C-CON: Modify the parsing of definevolumename and defineskillname so that they only look for the text before a newline. // valid definevolumename 3 // invalid definevolumename 3 From-SVN: r5089 commit 239d330808bf0e8b6289c610b97c9caa77e8dce5 Author: Evan Ramos Date: Wed Mar 25 06:27:57 2015 +0000 C-CON: Add quick access for the remaining structures without it. From-SVN: r5088 commit e3820cf863960634a88a21a709c83c02cce28dbf Author: Evan Ramos Date: Wed Mar 25 06:27:42 2015 +0000 C-CON: Enumify quick structure access. From-SVN: r5087 commit 89f7c2984ba2a976183148fb31c91c4a414c3edc Author: Evan Ramos Date: Wed Mar 25 06:27:25 2015 +0000 C-CON: Factor fast struct access and get out into single functions. From-SVN: r5086 commit 380176f36ca2e40686659d024a526dd973d01152 Author: Evan Ramos Date: Wed Mar 25 06:27:08 2015 +0000 C-CON: Add PLAYER_PALETTE to quick player struct access, and add a setter that calls P_SetGamePalette(). From-SVN: r5085 commit e557c5ac06314e9caca26bc0af86b36c8435968d Author: Evan Ramos Date: Tue Mar 24 10:49:03 2015 +0000 Menus: Add a Cheats menu to options. It's old-school. From-SVN: r5084 commit 7e693183550bcfef44d86f17a35c21858c135199 Author: Evan Ramos Date: Tue Mar 24 10:48:34 2015 +0000 Menus: Rename MenuPassword_t to MenuTextForm_t, modularize more of its attributes into the data structure, and polish its display and behavior. From-SVN: r5083 commit b783ae3f7bb438c6b3de510c2c01f2e23ed131d1 Author: Richard Gobeille Date: Tue Mar 24 03:34:01 2015 +0000 Additional fix for building with newest MSYS2 packages. DONT_BUILD. From-SVN: r5082 commit 58cb8afcc2da6101adf51cf32f832ce43ccd149e Author: Richard Gobeille Date: Tue Mar 24 03:33:57 2015 +0000 Build fix. DONT_BUILD. From-SVN: r5081 commit 4f1a90e550206dedb8925ed8bb5a270bbb4a4c13 Author: Richard Gobeille Date: Tue Mar 24 00:40:55 2015 +0000 A lot of CON rewrites/optimizations. Converts projectile system to dynamic allocation, saving a bunch of memory (something like sizeof(projectile_t) * MAXTILES * 2). This commit also contains changes that reduce overhead for CON commands that take a lot of parameters, by way of adding a Gv_GetManyVars() to replace long strings of subsequent calls to Gv_GetVarX(). Savegame version has been bumped due to the projectile changes. There is no way this commit doesn't cause at least one bug, so DONT_BUILD. ;) From-SVN: r5080 commit 0076ca77fc33e6304cc59144a2b50f526e90821b Author: Richard Gobeille Date: Tue Mar 24 00:40:48 2015 +0000 Engine memory reductions/optimizations: -faketilesiz[MAXTILES] removed in favor of simple faketile[(MAXTILES+7)>>3] bitfield -h_xsize/h_ysize (tile size overrides from .def) are now uint16_t instead of int32_t -hudmem[2][MAXTILES] removed in favor of adding a hudmem ptr to mdmodel_t -tilefromtexture performance improvements -more tsectortype/twalltype usage in various engine functions that read but never write -continued Polymost cleanups and refactors. Please report any odd rendering errors. From-SVN: r5079 commit 3e8eedf2f93bc6ee64449e72f18ef62c8fd3f930 Author: Richard Gobeille Date: Tue Mar 24 00:40:43 2015 +0000 Fix building on case-sensitive filesystems on OS X, DONT_BUILD. From-SVN: r5078 commit fd374e84561e6a2b4d9aed2d0c67ac34c18d242e Author: Richard Gobeille Date: Tue Mar 24 00:40:40 2015 +0000 Minor kplib optimizations, DONT_BUILD. From-SVN: r5077 commit 9da2dfbb87ea6917f7f52ece97b52dd8afc84377 Author: Richard Gobeille Date: Tue Mar 24 00:40:36 2015 +0000 Win32 debug build filename case checking now uses GetShortPathNameA()/GetLongPathNameA() instead of the slow SHGetFileInfo(). Since this works by requesting the shortened 8.3 filename for a file and then requesting the proper long version of that result, it has the side effect of breaking the functionality on NTFS volumes where the user has explicitly disabled the creation of 8.3 filenames. DONT_BUILD. From-SVN: r5076 commit ad8fcba64f3bd943bd6f97e7602dc47d6ab45b3c Author: Richard Gobeille Date: Tue Mar 24 00:40:33 2015 +0000 Large batch of Polymost changes, including: -lots of stylistic rewrites -further improvements to anti-fighting code for wall and floor sprites (introduces three new cvars, r_wspr_offset, r_wspr_offset_variance, and r_fspr_offset) -fixed brief HOM when traversing through a one-way masked wall -seldomly used "alphahack" feature for hightile textures now represents alpha cutoff internally as a single byte instead of a float -fixes a handful of issues where geometry failed to draw at certain coordinates from certain angles in certain resolutions -renames a couple of cvars From-SVN: r5075 commit a5a1ede1f3a11ef2744a4866e09d9ceb4489e540 Author: Richard Gobeille Date: Tue Mar 24 00:40:27 2015 +0000 Abort animvpx playback if uploading the texture for a frame throws a GL error. DONT_BUILD. From-SVN: r5074 commit a565e8bf4833542a080b6d97a9d79627ebeb1147 Author: Richard Gobeille Date: Tue Mar 24 00:40:25 2015 +0000 int64_t -> uint64_t in swap64bit(). DONT_BUILD. From-SVN: r5073 commit cc7c028b790e3625c6af06510ccf24535085a416 Author: Richard Gobeille Date: Tue Mar 24 00:40:21 2015 +0000 Polymer tsectortype usage. DONT_BUILD. From-SVN: r5072 commit 4a4133287bff740d45df4055a59a2514e804fdba Author: Richard Gobeille Date: Tue Mar 24 00:40:18 2015 +0000 Minor stylistic changes, fix FPS counter and other 2D drawing in Polymer. From-SVN: r5071 commit 74f180debcffe0dcfa709aa5d1f08ef4de2ce1e0 Author: Richard Gobeille Date: Tue Mar 24 00:40:15 2015 +0000 Remove unused buffer to fix warning, DONT_BUILD. From-SVN: r5070 commit c700e8badc23238c8085ffb48421ccee4e8443f3 Author: Richard Gobeille Date: Tue Mar 24 00:40:12 2015 +0000 Further gamevar changes/optimizations. This also fixes a bug Fox reported with the "shortcut" access to structure members that's tacked on to GetVar, where if the value of the index you're trying to access happened to equal the ID of the current sprite, it would act as if the variable passed was THISACTOR. From-SVN: r5069 commit da1ebf70b33e758828e437822d37094a97684478 Author: Richard Gobeille Date: Tue Mar 24 00:40:08 2015 +0000 Swap position of "load game" and "options" on main menu so that "load game" follows "new game", for consistency with the slightly different menu you get while in-game. From-SVN: r5068 commit f22743a8712a680000ff284dce236fffe66f9d12 Author: Richard Gobeille Date: Tue Mar 24 00:40:05 2015 +0000 "Stylistic changes" Translation: I made some stuff const because I felt like it. From-SVN: r5067 commit 5e426c797cb3b9b6df118c0216d7c2a68a5fd4b2 Author: Richard Gobeille Date: Tue Mar 24 00:40:01 2015 +0000 More Android changes. DONT_BUILD. From-SVN: r5066 commit 736b89ed11d7af72411c1859d256918ec4ef3e1d Author: Richard Gobeille Date: Tue Mar 24 00:39:52 2015 +0000 Remove WeaponChoice* from eduke32.cfg and transition setting to "wchoice" cvar. This commit also removes an Android hack and changes the order of some of the in-game "F" key handling, just because it bugged me that some of them were out of order. From-SVN: r5065 commit ef3a7e5d5b8a367c0412fb4c471335d570e5039b Author: Evan Ramos Date: Mon Mar 23 08:30:41 2015 +0000 Amend "renamefile" def token to ensure its proper use. renamefile From-SVN: r5064 commit 01af2f3efd1c33cedf522d5779232a5d83842cc9 Author: Evan Ramos Date: Mon Mar 23 06:28:40 2015 +0000 Expand the quote #13 auto-replacement to catch "OPEN" and "ANY BUTTON" in addition to "SPACE". From-SVN: r5063 commit 852ac4df7fd40ead95d03c1b15cd258bfb3100d6 Author: Evan Ramos Date: Mon Mar 23 06:28:27 2015 +0000 Add the Duke DC and Duke Caribbean SSI files to the list of group files automatically detected and added to the startup window. From-SVN: r5062 commit 2625dad8fdd9f9916f3ea1d810d412353b5b2947 Author: Evan Ramos Date: Mon Mar 23 06:28:08 2015 +0000 Defs: Add token "renamefile", which renames a file in a GRP or SSI file, in memory. 8.3 restrictions apply. From-SVN: r5061 commit 45cbf61ffbec397d0bb83ab4e6e3e6ac8af1f96b Author: Evan Ramos Date: Mon Mar 23 06:27:49 2015 +0000 cache1d: Add support for loading SSI files. From-SVN: r5060 commit 510a979bb6695e064d880baee3fe14d911901cfc Author: Evan Ramos Date: Mon Mar 23 06:27:35 2015 +0000 cache1d: Allow loading GRP files from within other GRP files. From-SVN: r5059 commit 5a3a342f19fe953e2732f3b903e2854f5dfe1707 Author: Evan Ramos Date: Mon Mar 23 06:27:18 2015 +0000 cache1d: Enumify the magic constants for "file is in a zip" and "file is in the filesystem". From-SVN: r5058 commit 5d0b9cd2ae74eafa0a11922157689ecc5d9fa350 Author: Evan Ramos Date: Mon Mar 23 06:26:59 2015 +0000 Modify the modern mini-HUD so that: 1. Instead of the Mighty Foot using the Protective Boots inventory item as its icon, display no icon at all. 2. Adjust the ammo icon so that it is drawn at one-quarter size if its y-size is >=50 instead of >50. This fixes the display of Water Pistol Ammo in Duke Caribbean. From-SVN: r5057 commit 8f45487896bc063e6f1562cf7680d17b901f283b Author: Evan Ramos Date: Mon Mar 9 20:32:36 2015 +0000 Add "globalflags" def token. Flag 1 is a kill switch for the tileshades and artmapping features. Flag 2 is kill switch for the GL fullbright rendering pass. From-SVN: r5056 commit 0c62ac7f555a961935901c615fe600ea871cdd55 Author: Evan Ramos Date: Mon Mar 9 20:32:11 2015 +0000 Change HICTINT_USEONART so that it applies tints to pal 0 of 8-bit tiles instead of their palswapped selves. Add HICTINT_APPLYOVERPALSWAP which applies tints to palswapped 8-bit tiles. Add HICTINT_APPLYOVERALTPAL, which applies tints to alt-pals of hightile textures. From-SVN: r5055 commit a6b88c0cd160e5cb787c0d3fb9aa6e9a7df0f377 Author: Evan Ramos Date: Mon Mar 9 07:37:38 2015 +0000 Replace the drawing code for the level stats with nearly equivalent code that can be much more easily reproduced in CON. From-SVN: r5054 commit fe34bba315280c0b59139f2968b76dfd6cab8d15 Author: Evan Ramos Date: Mon Mar 9 07:37:23 2015 +0000 Defs: When undefining a model, reset the angadd of its HUD settings to zero. This fixes weapons not being displayed in Vaca+. From-SVN: r5053 commit 1c4dc303be879987145bf3336e209a8a62415724 Author: Evan Ramos Date: Sun Mar 8 23:40:08 2015 +0000 Amend r5048 to also reset ototalclock and lockclock, and to reset all three at the top of G_PlaybackDemo. From-SVN: r5052 commit cf97ff035b647bd782c87d56ce3fde5c6a4c1019 Author: Evan Ramos Date: Sun Mar 8 23:39:51 2015 +0000 Partially revert r5020. It's okay to update totalclocklock in G_DrawRooms(), but we must continue updating it in drawrooms() so as to not break the editor and every other BUILD game. ¿Por qué no los dos? From-SVN: r5051 commit 54828620e7bba4a4a17da8b7434d4b5659596ad4 Author: Evan Ramos Date: Sun Mar 8 07:59:03 2015 +0000 Expand the grpinfo feature to allow defining GRPs requiring NAM, NAPALM, or WWII GI. From-SVN: r5050 commit c3b8126749233778e9e1cd57474a23957160982d Author: Evan Ramos Date: Sun Mar 8 07:58:49 2015 +0000 In G_PlaybackDemo(), update totalclocklock when G_DrawRooms() is not called and therefore does not update it. This fixes ART animations displaying in the main menu. From-SVN: r5049 commit c0a6fa03cb123a61d21450e2dede01d98c44641d Author: Evan Ramos Date: Sun Mar 8 07:58:36 2015 +0000 Reset totalclock to zero for each MAIN_LOOP_RESTART. From-SVN: r5048 commit 37b9de59ece86f28dd299c351de0a57c37d1b23c Author: Evan Ramos Date: Sun Mar 8 07:58:24 2015 +0000 CON: Add EVENT_DISPLAYROOMSCAMERA and EVENT_DISPLAYSTART. EVENT_DISPLAYROOMSCAMERA functions exactly like EVENT_DISPLAYROOMS, including RETURN values, but for the ud.camerasprite >= 0 case. EVENT_DISPLAYSTART is executed immediately after the screen background is cleared and drawn. Ensure its RETURN value is zero, because it is currently not being used. WARNING: Consult the devs before using EVENT_DISPLAYSTART. Its position in the display code sequence is not finalized. From-SVN: r5047 commit 4304d8128ac009e755606e32f9265354f39b6698 Author: Evan Ramos Date: Sun Mar 8 07:58:06 2015 +0000 CON: Add EVENT_DISPLAYCAMERAOSD. Set RETURN to -1 to disable it. From this event, if "getactor[THISACTOR].htg_t 0" is zero, then the camera is functional. Nonzero values indicate the camera has been destroyed, which is only possible when the CAMERASDESTRUCTABLE parameter of gamestartup has been enabled. From-SVN: r5046 commit ba5eaf0ab5ada1b5b66beef6b451956eaa1cd76e Author: Evan Ramos Date: Sun Mar 8 07:57:47 2015 +0000 CON: Add EVENT_DISPLAYLEVELSTATS. Set RETURN to -1 to disable them. From-SVN: r5045 commit 386608e5f4f0e741bbe441f29528f41b198eb248 Author: Evan Ramos Date: Sun Mar 8 07:57:28 2015 +0000 C-CON: Add read-only userdef members "gametypeflags" and "m_gametypeflags", which return GametypeFlags[ud.coop] and GametypeFlags[ud.m_coop] respectively. From-SVN: r5044 commit d6c209a32995f76aca028a7b7c9c92cb1c44bbd7 Author: Evan Ramos Date: Sun Mar 8 07:57:13 2015 +0000 C-CON: Add read-only userdef members "usevoxels", "usehightile", and "usemodels". From-SVN: r5043 commit 3a00877ab870c6ff3b54c0c54665b3dc689787b7 Author: Evan Ramos Date: Sun Mar 8 07:56:57 2015 +0000 Restore the shade of a tiled MENUTILE to 8, rather than 16. From-SVN: r5042 commit 7579639102e653047a3ca72526f4a8520192cbe0 Author: Evan Ramos Date: Sun Mar 8 07:56:45 2015 +0000 Disable EF_HIDEFROMMP pending proper consideration when multiplayer is closer to being ready. From-SVN: r5041 commit 3f864fd509795aaa4d5844b540610f4a5497a6b3 Author: Evan Ramos Date: Sun Mar 8 07:56:29 2015 +0000 Fix a compiler warning with USE_OPENGL=0. From-SVN: r5040 commit c11eca499ae93af1bce239ab99d2b0b4611aac86 Author: Evan Ramos Date: Wed Mar 4 02:15:15 2015 +0000 CON: Add "resetplayerflags". Flag 1 means "don't ask the user if they want to load". From-SVN: r5039 commit ed03bc3a6c8009f88c7edaad80e0c1bb00998de1 Author: Evan Ramos Date: Mon Mar 2 08:15:28 2015 +0000 Amend previous commit. DONT_BUILD. From-SVN: r5038 commit f3c4dce230d693f0422cb064c474a5a3e9750d62 Author: Evan Ramos Date: Mon Mar 2 07:54:24 2015 +0000 BSD: Build system fixes/improvements. DONT_BUILD. From-SVN: r5037 commit 8336b80cc95258bdca2653bdfdb3a6f6e9ff74f0 Author: Philipp Kutin Date: Sun Mar 1 14:15:40 2015 +0000 LunaCON: add 'definevolumeflags' to keyword pattern, re-apply some changes of r5026. DONT_BUILD. From-SVN: r5036 commit 9f30f76a212038eba16f0b5ea7194a3cba8aa098 Author: Philipp Kutin Date: Sun Mar 1 14:15:36 2015 +0000 engine.c: style-cleanup getzrange(). DONT_BUILD. From-SVN: r5035 commit 95c0b348b5a754a11abce3a08303887bda78cf14 Author: Evan Ramos Date: Sun Feb 22 22:15:35 2015 +0000 Menus: Fix assorted issues in MENU_NETOPTIONS. From-SVN: r5034 commit be5fdd79d84745aa1c5ff703b0de8ef474279803 Author: Evan Ramos Date: Sun Feb 22 22:15:20 2015 +0000 CON: Add "definevolumeflags", currently equipped to hide an episode from the single player and/or multiplayer screens. enum { EF_HIDEFROMSP = 1<<0, EF_HIDEFROMMP = 1<<1, }; From-SVN: r5033 commit 89e20f761be532adc697521be14a0829a99914eb Author: Evan Ramos Date: Sun Feb 22 22:14:54 2015 +0000 CON: Extend undefinevolume so that it also undefines all levels in the specified volume. From-SVN: r5032 commit a8625cc72c8f2f74db7484f047b53027e8969b27 Author: Evan Ramos Date: Sun Feb 22 22:14:39 2015 +0000 CON: Rename "cutscene" command to "startcutscene". From-SVN: r5031 commit c3dae44d15668937db03c976c3aa0823936de390 Author: Philipp Kutin Date: Sun Feb 22 19:35:01 2015 +0000 synthesis.sh: CPLUSPLUS=0 for the 32-bit Lunatic build, too. BUILD_LUNATIC now, maybe? From-SVN: r5030 commit 6f2a8acdecf43ddeac4cd790084897f89b3832f2 Author: Philipp Kutin Date: Sun Feb 22 19:31:17 2015 +0000 Lunatic: update user_defs, CPLUSPLUS=0 in synthesis.sh, disable 'cutscene' for now. BUILD_LUNATIC. From-SVN: r5029 commit 992bf5b016ffe95fc5df1dded7ac04cf215d8a5d Author: Philipp Kutin Date: Sun Feb 22 19:31:15 2015 +0000 Makefile.common: fix "disallow building Lunatic with C++" (r4979). DONT_BUILD. From-SVN: r5028 commit ae4316d0f61b7871276b90e1089f82667735e1b5 Author: Philipp Kutin Date: Sun Feb 22 19:31:14 2015 +0000 Lunatic: update files from LuaJIT. DONT_BUILD. From-SVN: r5027 commit a66b0881d49e8a7e741a9ab0d2ae6972a32f5870 Author: Philipp Kutin Date: Sun Feb 22 19:31:11 2015 +0000 Lunatic: fix a couple of typo-like issues found by listglobals.sh. DONT_BUILD. From-SVN: r5026 commit baf2cd765ab0ca9465bb75a61a572f5da3f4a61e Author: Philipp Kutin Date: Sun Feb 22 12:43:04 2015 +0000 menus.c: fix two unused-variable warnings. From-SVN: r5025 commit d5441c3da770a35ae0f32adf73d015db7893e9e1 Author: Philipp Kutin Date: Sun Feb 22 12:43:02 2015 +0000 Classic/Polymost: factor out update of starting sectnum, use updatesectorbreadth(). The latter means that running perpendicular thin sector is handled better if there are e.g. TROR sectors in the same x/y space. From-SVN: r5024 commit 23108f2fb1231403785fca7d7cec5ef4a9092fed Author: Richard Gobeille Date: Sat Feb 21 23:15:27 2015 +0000 Remove a couple of Android-specific menu items I accidentally left enabled on PC. From-SVN: r5023 commit 6e87427caff3c345bb47b46e47be33cff4ff62e1 Author: Philipp Kutin Date: Fri Feb 20 22:10:28 2015 +0000 gamedef.c: tweak g_keywdate[] entries. From-SVN: r5022 commit feecf21df78a3da026257d92bcc2664a63b2752f Author: Philipp Kutin Date: Fri Feb 20 22:10:26 2015 +0000 actors.c: make Enforcers and Troopers avoid ST1 sectors as in Duke3D. That is, resurrect the stayput condition for LIZMAN and non-flying LIZTROOP, but only if changing from a non-ST1 sector. DONT_BUILD. From-SVN: r5021 commit cc5b11a3c52aefd7b0ec8cc6b48ee2f69f6c6de7 Author: Philipp Kutin Date: Thu Feb 19 22:19:05 2015 +0000 Stick update of 'totalclocklock' at beginning of G_DrawRooms() instead of drawrooms(). This fixes engine-side sprite animation in the following scenario: CON code wants to draw a scene from EVENT_DISPLAYREST, but since it covers the whole screen, disables the drawing of the 3D scene beforehand (RETURN set to 1 from EVENT_DISPLAYROOMS). DONT_BUILD. From-SVN: r5020 commit 4c63407fe618a7fc41765191629ea24ff39a042a Author: Philipp Kutin Date: Thu Feb 19 17:41:57 2015 +0000 m32script: in 'for i drawnsprites' handling, back up and restore sprite MAXSPRITES-1. This fixes the level 5 corruption encountered when issuing that iteration. (Because the last sprite would be changed from e.g. statnum MAXSTATUS to 0.) It is also mandatory anyhow since the last sprite may be contained in the map. From-SVN: r5019 commit 3f144256626e7be60a94228c024e7e2e49779850 Author: Philipp Kutin Date: Thu Feb 19 17:41:56 2015 +0000 Mapster32: style-cleanup check_spritelist_consistency() and VM_Execute(): 'for'. DONT_BUILD. From-SVN: r5018 commit a439cca9a0c44b0afb08083e6fa296c231cf3154 Author: Philipp Kutin Date: Thu Feb 19 17:41:53 2015 +0000 Under conditions of CLASSIC_Z_DIFF_64 (r4960), make some drawvox() vars 64-bit. - In drawvox(), make view-relative x and y high-precision on desktops. To a large extent (but not completely), this fixes "stray" fake floor shadow sprites for voxels. - In the mouse picking code for voxels, fix a possible integer overflow. A new engine.c-private function mulscale_triple30() is added. DONT_BUILD. From-SVN: r5017 commit 54e77cc2d1f7f557ac76ccd9024377cc47c60b9f Author: Philipp Kutin Date: Wed Feb 18 20:46:54 2015 +0000 Add lunatic/test/thisactor_getzrange.con, providing 'state thisactor_getzrange'. Also, note a place that is the real cause for "what makes the player slide off enemies", as far as I can see. From-SVN: r5016 commit 1747e120df760b465a4e205dcac600eacafb6383 Author: Philipp Kutin Date: Wed Feb 18 20:46:53 2015 +0000 gameexec.c: factor out 2x occuring pattern into VM_GetZRange(), clean up 3 funcs. - VM_GetZRange(), which updates actor[].{floor,ceiling}z, is called from A_GetZLimits() and A_Fall(). - Style-cleanup the following: A_Dodge(), A_GetFurthestAngle(), A_FurthestVisiblePoint(). DONT_BUILD. From-SVN: r5015 commit ddcb77a135a2874c77d2d38052d23f0bb3697744 Author: Philipp Kutin Date: Wed Feb 18 20:46:49 2015 +0000 Revert "gameexec.c: in VM_Move(), update actor[].{floor,ceiling}z for enemies." This reverts r4975. DONT_BUILD. From-SVN: r5014 commit 6f0e52c39e8689d17c0f8b7f5e3c96446a4d8380 Author: Richard Gobeille Date: Wed Feb 18 01:47:12 2015 +0000 MSVC build fix. From-SVN: r5013 commit d2e98b8e716af108b3ba7777a515b1a73224e59a Author: Richard Gobeille Date: Wed Feb 18 01:47:09 2015 +0000 Fix Mapster32 mouse cursor in GL From-SVN: r5012 commit b7b960c16d60071f42e4cda29a6d4448880e649f Author: Richard Gobeille Date: Wed Feb 18 01:47:06 2015 +0000 Fix Polymer when switching from Polymost From-SVN: r5011 commit 58ec768e4fade1ae237ff67cd8e5e136f4b90426 Author: Richard Gobeille Date: Wed Feb 18 01:47:00 2015 +0000 Nocompress and nodownsize for skyboxes From-SVN: r5010 commit 34cd98dd64357d7b43db8b268f804f3fa924dfe6 Author: Philipp Kutin Date: Tue Feb 17 16:23:04 2015 +0000 Fix swapbufreverse(), adding precondition of count >= 4. Also, in premap.c:G_CacheMapData(), comment out what was supposedly intended as a debugging message ("percentage ..."). From-SVN: r5009 commit b2024d16945f8c864a7e81b8583fe9973d39e2b0 Author: Philipp Kutin Date: Tue Feb 17 16:23:01 2015 +0000 LunaCON: add 'cutscene' and 'ifcutscene' as NYI commands. DONT_BUILD. From-SVN: r5008 commit 5de052cdf9cb87c3e92b7508c1a24cc4e9a493cc Author: Evan Ramos Date: Sat Feb 14 12:18:39 2015 +0000 Amend previous commit. DONT_BUILD. From-SVN: r5007 commit 56a2490b5d2901ef08812ca853d1d2e95708ecbc Author: Evan Ramos Date: Sat Feb 14 11:50:48 2015 +0000 Fix an assertion failure with NETCODE=0. DONT_BUILD. From-SVN: r5006 commit ca727c701e74dbf1729b82b2b5f081558f4bb6e4 Author: Evan Ramos Date: Sat Feb 14 07:26:10 2015 +0000 Apple: Update Xcode project and build system. DONT_BUILD. From-SVN: r5005 commit a776f9110b5f778c30c6f5d32a5dca9e4a331ab5 Author: Evan Ramos Date: Wed Feb 11 07:08:41 2015 +0000 Fix build without DROIDMENU. From-SVN: r5004 commit 5678597a60d5091a036decbc1a87b542e95966e8 Author: Evan Ramos Date: Wed Feb 11 07:08:27 2015 +0000 Replace erroneous use of EVENT_DISPLAYCROSSHAIR with new event EVENT_DISPLAYCURSOR. From-SVN: r5003 commit 5fab8550ff99d085226c88ad55abd94caeae55c1 Author: Richard Gobeille Date: Wed Feb 11 06:01:10 2015 +0000 Oops! :) From-SVN: r5002 commit 44d84f985de2e9abd027b12c041e8a4f8cef7adb Author: Richard Gobeille Date: Wed Feb 11 05:23:04 2015 +0000 Polymost changes to better support running under GL ES. Still need to investigate GL_LINES and GL_QUADS... neither work under either GL -> GL ES wrapper we've tried, so we must be doing something wrong. From-SVN: r5001 commit 24b6d36995c651214bb7c2d98270b73010c8b506 Author: Richard Gobeille Date: Wed Feb 11 05:22:59 2015 +0000 More Android work. DONT_BUILD. From-SVN: r5000 commit 8d1a3764857c8a475c40afc225ef8548e924dedc Author: Richard Gobeille Date: Wed Feb 11 05:22:55 2015 +0000 Smooth out the loading bar so that all percentage increments are displayed for at least a couple of frames each, and remove the "loaded x/x textures" message on Android. From-SVN: r4999 commit a3863cb95a5a5c1b0a01456579651807bf522d79 Author: Richard Gobeille Date: Wed Feb 11 05:22:52 2015 +0000 Remove animvpx's dependency on GLSL; adds in-place YUV420 to RGB888 conversion. From-SVN: r4998 commit 0cf8edda8001111b57b46c918602c003bd81b2a1 Author: Richard Gobeille Date: Wed Feb 11 05:22:48 2015 +0000 A whole bunch of mostly insignificant changes that didn't deserve separate commits. DONT_BUILD. From-SVN: r4997 commit aca816e41969cbec3307d7d133e44905b4105263 Author: Richard Gobeille Date: Wed Feb 11 05:22:41 2015 +0000 Get rid of the "press space to restart" message on mobile. DONT_BUILD. From-SVN: r4996 commit 8d43dd48d899f7f1fcc25a22888eed57ab2aa5e5 Author: Richard Gobeille Date: Wed Feb 11 05:22:38 2015 +0000 Forgotten changes from a previous commit that renamed functions. DONT_BUILD. From-SVN: r4995 commit 172d61a86f9be8bffd7a9c0f8ac0ae424aedf8c1 Author: Richard Gobeille Date: Wed Feb 11 05:22:35 2015 +0000 Android fixes: let the player climb stairs while crouched and fix the quick switch function of the weapon wheel. DONT_BUILD. From-SVN: r4994 commit a24da98ff1c53db71958d5469f48af77dcd19a04 Author: Richard Gobeille Date: Wed Feb 11 05:22:32 2015 +0000 Android menu changes. Moves a few settings in-game instead of in crappy system UI dialogs. DONT_BUILD. From-SVN: r4993 commit 8b5de2aff6e6308dc323286123f58450359cf2de Author: Richard Gobeille Date: Wed Feb 11 05:22:29 2015 +0000 Android SDLayer changes. DONT_BUILD. From-SVN: r4992 commit ab196072646281206398fde4c98194e7dbd72ecb Author: Richard Gobeille Date: Wed Feb 11 05:22:26 2015 +0000 Remove errant call to G_FadePalette() which caused a frame of corruption at map load under GL renderers, and invalidate all GL textures at map load time (just textures generated from .art on desktop, everything on mobile). This also makes Grabbag keep playing through the loading screen on Android (if no loadscreen music has been defined by a mod). DONT_BUILD. From-SVN: r4991 commit f5be0fc3bbe18f283c3c38ca11fc2c17432b8c60 Author: Richard Gobeille Date: Wed Feb 11 05:22:23 2015 +0000 Android savegame hacks. DONT_BUILD. From-SVN: r4990 commit 905e168250cd1b70d37b80c3efdc5733c81ae2b5 Author: Richard Gobeille Date: Wed Feb 11 05:22:19 2015 +0000 More Android changes. DONT_BUILD. From-SVN: r4989 commit 4c529a50addbc182d86b8bfde74e8541eba020a8 Author: Richard Gobeille Date: Wed Feb 11 05:22:11 2015 +0000 C-CON changes From-SVN: r4988 commit 9063d59b81e5d6988ac8a20a9e2bbfb52738fa17 Author: Richard Gobeille Date: Wed Feb 11 05:22:07 2015 +0000 Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: cutscene "somefile.anm" { delay 10 } // defines somefile.anm with a delay of 10 120Hz tics between frames. a more typical framerate method may come later, but this is how the originals worked. Once defined, they can be played through CON with the new playback command, also called "cutscene". It works like this: definequote 12345 somefile.anm define ANIM_SOMEFILE 12345 ... cutscene ANIM_SOMEFILE // halts game execution and immediately plays cutscene, resuming execution when finished ... Sounds can be played during animations (and tiles can be overlaid, etc) like this: onevent EVENT_CUTSCENE ifcutscene ANIM_SOMEFILE { ifvare RETURN 12 // frame 12 sound FLY_BY rotatesprite ... } endevent The value of the RETURN var at the end of EVENT_CUTSCENE determines the next frame to play. This can be used for looping, etc. Attempting to play animations backwards outright is not advised as animations only seek in one direction (so rewinding requires running it through from frame 0 again). This is will WIP and hasn't been heavily tested at all, so please try it out. From-SVN: r4987 commit 7a680ff326acdb939f33cae717a3c82a1a20152e Author: Richard Gobeille Date: Wed Feb 11 05:22:00 2015 +0000 Minor sound cleanup... clean up crappy old code, remove obsolete "FXDevice" and "MusicDevice" variables, etc. From-SVN: r4986 commit bdd5a6bb0cb61347086f8a02e4bea1ea345658b1 Author: Richard Gobeille Date: Wed Feb 11 05:21:56 2015 +0000 Rename build configurations in VS project. DONT_BUILD. From-SVN: r4985 commit af66ccf03ccb20097939f8075ae2a6743ee6dc8f Author: Richard Gobeille Date: Wed Feb 11 05:21:53 2015 +0000 Minor engine cleanup From-SVN: r4984 commit a79de556637c89d157cf29c4c6f7904917c42fbd Author: Richard Gobeille Date: Wed Feb 11 05:21:50 2015 +0000 Fix program entry point on win32, allows debugging SDL builds under MSVC. From-SVN: r4983 commit 9ac043dfbcc2fdcc630de2c5225b72f561f15a8f Author: Richard Gobeille Date: Wed Feb 11 05:21:46 2015 +0000 Macro for handling ud.bgstretch. DONT_BUILD. From-SVN: r4982 commit a18043643b71a995823255566fed9e6afe3270bc Author: Richard Gobeille Date: Wed Feb 11 05:21:38 2015 +0000 More twalltype From-SVN: r4981 commit 07263f3aaea5e22de5485e71c9fd4a5b8fa28eeb Author: Philipp Kutin Date: Tue Feb 10 19:51:15 2015 +0000 mdsprite.c: in md3load(), allocate m->head.surfs with Xcalloc, amending r4952. And preventing enormous corruption due to a free() called on a garbage (malloc'd) pointer values this time. DO_BUILD_VERY_FAST_PLEASE! From-SVN: r4980 commit e33c605f11a0ca837c92fa99da1493dcedb9aaa7 Author: Philipp Kutin Date: Tue Feb 10 17:50:23 2015 +0000 Makefile.common: disallow building Lunatic with C++ for now. DONT_BUILD. From-SVN: r4979 commit 7ac969ea6438b01c03e4ab916415099af0bcfa46 Author: Evan Ramos Date: Mon Feb 9 05:50:47 2015 +0000 Provide a RETURN value of -2 to EVENT_DISPLAYLOADINGSCREEN after G_CacheMapData(). From-SVN: r4978 commit c95d49dc61a01816e4a0747d2c50e657fea888b2 Author: Evan Ramos Date: Mon Feb 9 05:50:33 2015 +0000 CON: Add undefinevolume, undefineskill, and undefinelevel. From-SVN: r4977 commit 2ae5dbf6a3f908c8d5c67057c6e5930f7f2a10b1 Author: Evan Ramos Date: Mon Feb 9 05:50:08 2015 +0000 Rename "Polymost.f" string back to "Polymost" because it only confused users. From-SVN: r4976 commit d1f92dc2928f106bc2e5d33b0ba3312c9b530a5a Author: Philipp Kutin Date: Sun Feb 8 18:48:31 2015 +0000 gameexec.c: in VM_Move(), update actor[].{floor,ceiling}z for enemies. Previously, that was the case only with DRONE and COMMANDER. This makes non-falling enemies pass properly through TROR bunches. From-SVN: r4975 commit cbd7630cd0ca375d55820bdfedf6279d9f8a38c6 Author: Philipp Kutin Date: Sun Feb 8 18:48:31 2015 +0000 actors.c: style-cleanup A_MoveSpriteClipdist(). DONT_BUILD. From-SVN: r4974 commit d9bed02b20c844726bb5a1f1f21cf01e3d1c2dc7 Author: Philipp Kutin Date: Sun Feb 8 18:48:30 2015 +0000 Mapster32: in build.c, prevent oob of wall[] if joining non-adjacent sectors. Also, some minor stylistic cleanup. From-SVN: r4973 commit d465feda75da30c9c1b67ba1f2ec4bca1da24ca3 Author: Philipp Kutin Date: Sun Feb 8 18:48:28 2015 +0000 CON: Amend retrieval of STR_*TIME for qgetsysstr, fixing LunaCON and possible oob. - Add declarations of C functions to defs.ilua, names to dynsymlist, fix typo in con_lang.lua, ffi.string() calls in control.lua - Assert that G_LastMapInfoIndex() is always called with ud.last_level >= 1. (A stricter requirement than necessary to prevent follow-up oob accesses, but logically the most meaningful.) - In G_PrintParTime() and G_PrintDesignerTime(), return "" if the above does not hold. This can happen from EVENT_NEWGAME, for example. Add a test to lunatic/test/qgetsysstr.con. DONT_BUILD. From-SVN: r4972 commit c4b3328d3223f927e53b6f5aeb8ae141fd2decb7 Author: Evan Ramos Date: Sun Feb 8 08:04:23 2015 +0000 Engine: Remove some conditional disabling of spriteext features when !defined USE_OPENGL. From-SVN: r4971 commit 85a1610db33f193285b0b68bc8fc6fa7558ede36 Author: Evan Ramos Date: Sun Feb 8 08:04:09 2015 +0000 CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member. From-SVN: r4970 commit ed36379a12ef4460872612b16174594d9c50aefa Author: Evan Ramos Date: Sun Feb 8 08:03:50 2015 +0000 CON: Add STR_YOURTIME, STR_PARTIME, STR_DESIGNERTIME, and STR_BESTTIME to qgetsysstr. From-SVN: r4969 commit 82e3ad4481ecfdf8436a5221573634479b390a44 Author: Evan Ramos Date: Sun Feb 8 08:03:30 2015 +0000 Factor out generation of strings for time values in the bonus screen. This involves the creation of ud.playerbest. From-SVN: r4968 commit a95591156d4eb05a9f2a6942c38ea34787023096 Author: Evan Ramos Date: Sun Feb 8 08:03:06 2015 +0000 Correct the special behavior to select the pipebomb detonator when you have no pipebombs in your inventory but you have some thrown in the environment so that it animates properly and also applies with the next/previous weapon functions. From-SVN: r4967 commit 1aeb420e96b8dccb5e9ddf5287ee50c4b7ab1aa5 Author: Evan Ramos Date: Sun Feb 8 08:02:51 2015 +0000 Move EVENT_DISPLAYMENU to after the black translucent background is drawn when in-game. From-SVN: r4966 commit 55ebdcd7858136f92ed387cda3eff4d806d03889 Author: Philipp Kutin Date: Sat Feb 7 17:29:15 2015 +0000 Classic: fix underallocation of TILE_TILT and tilting at very small resolutions. Since TILE_TILT is only allocated once, it must be done with the maximum possible size. From-SVN: r4965 commit a4d870944c4f7245c0bf38957b7afbd66a47fc20 Author: Philipp Kutin Date: Sat Feb 7 17:29:14 2015 +0000 sdlayer.c: minor stylistic simplification of sdlayer_checkversion(). DONT_BUILD. From-SVN: r4964 commit 8db0534546b83210c3ab9335bdf052fe1374630a Author: Philipp Kutin Date: Sat Feb 7 17:29:13 2015 +0000 osd.c: in OSD_HandleChar() for TAB, fix use of uninitialized osd->editor.buf[i]. Exposed by Valgrind. DONT_BUILD. From-SVN: r4963 commit e12acb2b897faec7fedd911c541d8dfec064f947 Author: Philipp Kutin Date: Sat Feb 7 17:29:12 2015 +0000 LunaCON: make -fbad-getactorvar-use-pli enabled by default. DONT_BUILD. From-SVN: r4962 commit 4f27bf4aef4155eb93c4fbdeeb2c95ae65efbe04 Author: Philipp Kutin Date: Sat Feb 7 17:29:11 2015 +0000 Make g_player a +1 offset pointer into 'static g_player_s[1 + MAXPLAYER]'. This fixes the out-of-bounds read of former g_player[] in VM_EventCommon_(). From-SVN: r4961 commit aa631076d150917a9447976e8258041b707b4867 Author: Philipp Kutin Date: Sat Feb 7 17:29:10 2015 +0000 Classic: on desktops, handle abs. z diff. of floor/ceiling to camera >= 1<<24. From-SVN: r4960 commit 20cde1a20f57604f871e39119748c5ea6de50764 Author: Philipp Kutin Date: Sat Feb 7 17:29:08 2015 +0000 engine.c: style-cleanup owallmost() and wallmost(). DONT_BUILD. From-SVN: r4959 commit 67687572b9022daeb9ed062f73d6bfe099258d89 Author: Philipp Kutin Date: Thu Feb 5 17:17:05 2015 +0000 In DEBUGANYWAY=2/DEBUG_MAIN_ARRAYS build, declare tsprite[] as tspritetype. Fixing a bunch of warnings. DONT_BUILD. From-SVN: r4958 commit 160ec1fd4086ad7e082117972e6aeafb1a30d06a Author: Philipp Kutin Date: Thu Feb 5 16:30:15 2015 +0000 Lunatic: fix typos in control.lua (get/setmusicposition). From-SVN: r4957 commit 5b451ccf2bfee5c9fddaf65cd5e96c4aebcbb1a6 Author: Philipp Kutin Date: Thu Feb 5 16:30:14 2015 +0000 Add SFLAG_NOWATERDIP, unconditionally preventing actors from dipping into ST1 water. By default, the following enemies have this flag set: OCTABRAIN, COMMANDER, DRONE. DONT_BUILD. From-SVN: r4956 commit 7d18b442a4f57b4de23daf11ddbe066243c9a917 Author: Philipp Kutin Date: Thu Feb 5 16:30:13 2015 +0000 Actor ST1 handling: use A_GetWaterZOffset() with VM_Move(), too. DONT_BUILD. This is where things are changed at last. This fixes lizmen walking on water. From-SVN: r4955 commit 356a9f0fc52e177e11da42a1782b8f21732a5e41 Author: Philipp Kutin Date: Thu Feb 5 16:30:12 2015 +0000 Actor ST1 handling: cleanup part 2. DONT_BUILD. Factor out condition for whether a z offset is added or not ("fix for flying/jumping monsters getting stuck in water", etc.) into a function A_GetWaterZOffset() (and a helper A_GetVerticalVel()). From-SVN: r4954 commit 7657fa5c719b6f041788ee09ef4902bdf4bc3ce7 Author: Philipp Kutin Date: Thu Feb 5 16:30:12 2015 +0000 Actor ST1 handling: clean up code a bit. (Preparation for real changes.) In VM_Fall(), keep a temp preliminary new z position of the actor and assign only when we return. This is to each ease watching its value in GDB. DONT_BUILD. From-SVN: r4953 commit 60a895040d4700d06cf0aad1c5d06c921a7f69fd Author: Philipp Kutin Date: Thu Feb 5 16:30:09 2015 +0000 mdsprite.c: in md3free(), also free s->geometry for each surface. DONT_BUILD. This prevents a enormous leak being reported by LeakSanitizer. Not that it matters much, since we most frequently free models only at exit. (Sometimes one may be freed earlier though -- if there was an error loading it, AFAICS.) From-SVN: r4952 commit c469bd6ed9cb141c250766e41d2598e06424c4af Author: Philipp Kutin Date: Wed Feb 4 21:32:53 2015 +0000 menus.c: fix C build. DONT_BUILD. From-SVN: r4951 commit 8eb925d831ed9d4d950b576865b4863bd1636d42 Author: Evan Ramos Date: Sun Jan 25 12:27:52 2015 +0000 Fix next/previous weapon when the pipebomb detonator is active. From-SVN: r4950 commit 0b95258f9e8a78264bbc505f4cb624ff90831526 Author: Evan Ramos Date: Sun Jan 25 12:18:11 2015 +0000 Don't allow Ogg Vorbis or FLAC files to be defined from def if the binary was built without the proper libraries. From-SVN: r4949 commit 4b7f17664d3eea52ae3f81920c4e95f782e53552 Author: Evan Ramos Date: Sun Jan 25 12:17:59 2015 +0000 Modularize .mid --> .ogg --> .flac code to apply to sounds as well, and various cleanup in music/sound filename-handling code. From-SVN: r4948 commit 19c9c46d6b18636374935e372a1707988afe12fa Author: Evan Ramos Date: Sun Jan 25 12:17:25 2015 +0000 Fix a bug where FLAC sound effects would loop when they were not supposed to. From-SVN: r4947 commit 641e7fd9a1e502b7c00432a1dedc1c8b5ea6e9d5 Author: Evan Ramos Date: Sun Jan 25 12:17:10 2015 +0000 Menus: Mouse, touch, and pointer controls now take the origin into account. From-SVN: r4946 commit 639e9425743544491f4171fe8bd7e0ffeb55069d Author: Evan Ramos Date: Sun Jan 25 12:16:58 2015 +0000 Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y. This allows for CON screen display code to use menu animations. The following is an example of how to adapt screen features that should animate. before: onevent EVENT_DISPLAYMENUREST ifvare current_menu 0 // main menu { setvar x 1 setvar y 1 rotatesprite x y zoom ang tilenum shade pal orientation 0 0 xdim ydim } endevent after: state DisplayMenuCommon ifvare RETURN 0 // main menu { getuserdef[THISACTOR].m_origin_x x getuserdef[THISACTOR].m_origin_y y addvar x 65536 addvar y 65536 rotatesprite16 x y zoom ang tilenum shade pal orientation 0 0 xdim ydim } ends onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent From-SVN: r4945 commit 5517b3368b4936b0d739f5f1a8eba736a677c834 Author: Evan Ramos Date: Sun Jan 25 12:16:34 2015 +0000 Make my menu animation code a little bit more modular. From-SVN: r4944 commit 69aaaf7a1bd271f1a79334d9b6045f13d7cbaf12 Author: Evan Ramos Date: Sun Jan 25 12:16:22 2015 +0000 Revise r4707 to fix some remaining issues with next/previous weapon. From-SVN: r4943 commit 5c2439041a62709677aa657be52b9303207f0042 Author: Evan Ramos Date: Sun Jan 25 12:16:10 2015 +0000 Simplify the macros used for distinguishing between OS X and iOS. From-SVN: r4942 commit 024b127a14f71c43ebc933e1cff23d72914343f7 Author: Evan Ramos Date: Sun Jan 25 12:15:50 2015 +0000 Fix "rv may be used uninitialized". From-SVN: r4941 commit 9193ccdf37afb8b997750574c554dea653341439 Author: Evan Ramos Date: Sun Jan 25 12:15:37 2015 +0000 Fix "textsize.x may be used uninitialized". From-SVN: r4940 commit 82ddc69b0574b1000e21e1558beef1b1b49f22be Author: Philipp Kutin Date: Sat Jan 24 19:14:39 2015 +0000 compat_tools.c: match definition of 'editstatus'to declarations in other places. DONT_BUILD. From-SVN: r4939 commit 3e723d64f795fd8f90fa8e15d20afd84cefc5df9 Author: Philipp Kutin Date: Mon Jan 19 01:54:53 2015 +0000 engine.c: in qsetmodeany(), call initsmost() after setting xdim and ydim. This makes sure that the engine arrays have sufficient space allocated for usage in Mapster32's 2D mode, for example from drawmapview(). From-SVN: r4938 commit a2cea2bbc7b6fddaec9cd0a5e450cd67eb5084e7 Author: Philipp Kutin Date: Mon Jan 19 00:11:25 2015 +0000 Lunatic: fix build and linking. DONT_BUILD. - t{sector,wall}type are simply typedef'd to the non-t versions - make FORCE_INLINE unconditional of DISABLE_INLINING (otherwise there are multiple definitions of these functions) - update lunatic/doc/lpeg-lunatic.patch to apply against the LPeg 0.12 I just downloaded From-SVN: r4937 commit 5ff5631ed8aa5d4470c6ea786915792786de435c Author: Philipp Kutin Date: Mon Jan 19 00:03:00 2015 +0000 osdfuncs.c: get rid of a warning with GCC. DONT_BUILD. From-SVN: r4936 commit 561c752e5761751fa7e7c02e0192d605da9c5dd1 Author: Philipp Kutin Date: Sun Jan 18 23:16:37 2015 +0000 Classic: fix "windowed" modes (r_size >= 12) by reverting r4920; adapt. In setview(), we now assert windowx2 < xdim. The only calling places where its non-violation is non-trivial to ascertain are (1) showview from CON and (2) draw-to-tile for look-sideways in game.c. AFAICS case 1 should be fine. Case 2 is adapted; see comments there. From-SVN: r4935 commit c524d1419962a66ac10f100165f403ebe33f14cf Author: Philipp Kutin Date: Sun Jan 18 22:11:31 2015 +0000 Mapster32: remove unused key* options in mapster32.cfg and corresponding BK_* macros. DONT_BUILD. From-SVN: r4934 commit 9b6cc8a334626db83281e782b97a628beecf4172 Author: Philipp Kutin Date: Sun Jan 18 20:31:37 2015 +0000 Fix bsearch() call for user G_LoadMapHack(): don't access nonexistent storage. DONT_BUILD. From-SVN: r4933 commit 2bf66e424f69050eb6794960f97924a80bc7ca62 Author: Philipp Kutin Date: Sun Jan 18 20:28:59 2015 +0000 polymost.c: fix possible access of wallchanged[-1]. DONT_BUILD. From-SVN: r4932 commit 37ac97a430d8fb80141f8209dac852a2bcb87297 Author: Philipp Kutin Date: Sun Jan 18 20:22:25 2015 +0000 engine.c: fix memory leak. DONT_BUILD. From-SVN: r4931 commit cda8d3ceb3a2ce171720bc32181eb88f01f1ae7f Author: Philipp Kutin Date: Sun Jan 18 20:21:17 2015 +0000 polymost.c: fix C build. DONT_BUILD. From-SVN: r4930 commit 74c32eecbc3f8747438c4c295aba3d5e1873cc44 Author: Evan Ramos Date: Sat Jan 17 05:40:42 2015 +0000 Fix warning in previous commit. DONT_BUILD. From-SVN: r4929 commit a813e97053c63f5ff4846ea4c51e625db70e694f Author: Evan Ramos Date: Sat Jan 17 00:28:49 2015 +0000 CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track. // Example: Switch between tracks like radio stations. getmusicposition temp starttrackvar next_music_track setmusicposition temp Only implemented for Ogg Vorbis, FLAC, and XA. Consult the devs before using these commands. From-SVN: r4928 commit 411a6e34655e57cfb506e38cd5cb8bcfdc6446c4 Author: Evan Ramos Date: Sat Jan 17 00:27:46 2015 +0000 Fix a crash exposed by animating the menu back button. From-SVN: r4927 commit fc8c3c5c63180e4b8ae31115ba339ae722521052 Author: Evan Ramos Date: Sat Jan 17 00:27:19 2015 +0000 Clean up duplicate and strangely-formed cases in C_ParseCommand(). From-SVN: r4926 commit 4863cf428837e42ffe2241514469d4c6b89b8501 Author: Richard Gobeille Date: Fri Jan 16 06:30:51 2015 +0000 Fix kplib zip support From-SVN: r4925 commit 2c1a400575604636a09d186c0ba2385f8520ed12 Author: Richard Gobeille Date: Fri Jan 16 06:30:48 2015 +0000 MSYS2 build fix. DONT_BUILD. From-SVN: r4924 commit a82e1c33418ed532fa9d90fa74a24a10045e908e Author: Richard Gobeille Date: Fri Jan 16 06:30:42 2015 +0000 Fix savemapstate/loadmapstate (fixes a crash at shutdown, among other things) From-SVN: r4923 commit 75749cf09a2a7b3445dc8d988fa726baebde90a4 Author: Richard Gobeille Date: Thu Jan 15 06:45:27 2015 +0000 Fix wildmatch(), resolves errors matching things like "*.zip" with "duke3d.hrp.zip" for example. From-SVN: r4922 commit 698f72041460d0ba07244fc9da34d861683e0731 Author: Richard Gobeille Date: Thu Jan 15 06:45:24 2015 +0000 MSVC build fix... guess it was upset about the macro expansion From-SVN: r4921 commit dfea86eb26a724db61ec285c15abe31b4471b1ff Author: Richard Gobeille Date: Thu Jan 15 06:45:21 2015 +0000 Fix off-by-one error in setview() From-SVN: r4920 commit 69ecc2694c8a0ba60afebb37adb79292616778d9 Author: Richard Gobeille Date: Thu Jan 15 06:45:14 2015 +0000 Implement better fade-out for quotes and for the mouse cursor in the menu. From-SVN: r4919 commit 2753b47eca718f3e7ca6f5e14a1094a2666607f0 Author: Evan Ramos Date: Tue Jan 13 12:57:29 2015 +0000 Menus: Implement better back button. From-SVN: r4918 commit d47d53bf70b9daf4b102bc1ed04cf152f6d02d5a Author: Evan Ramos Date: Tue Jan 13 12:57:11 2015 +0000 Menus: Make black background boxes translucent again. From-SVN: r4917 commit ed79872091d1d6db2f6d32e660c0edcd00a8f06f Author: Evan Ramos Date: Tue Jan 13 12:56:54 2015 +0000 Menus: Add proper edging for the tops and bottoms of scrolling lists. From-SVN: r4916 commit ad484d6a836544ab8407c2cd3c7e45405dae59f8 Author: Evan Ramos Date: Tue Jan 13 12:56:36 2015 +0000 Improve weapon switching: 1. If you switch away from a weapon and switch to a third when the gun is still going down, continue lowering the first weapon instead of immediately raising the third. 2. If you switch away from a weapon and switch back to it before it lowers completely, raise it from its current position instead of going all the way to the bottom. From-SVN: r4915 commit d3586ad5ca26432f8e4fb0bd4cb841b25f846e18 Author: Evan Ramos Date: Tue Jan 13 12:56:19 2015 +0000 Convert some multi-line UI messages to single G_ScreenText calls with line breaks. From-SVN: r4914 commit aa1a5569d8f162b7f8e4d171b97251da5b082fe1 Author: Evan Ramos Date: Tue Jan 13 12:55:56 2015 +0000 Fix aligned screentext with newlines. From-SVN: r4913 commit f06be0da7cdc8515a5e368de5b50bbbdbb60bff7 Author: Richard Gobeille Date: Mon Jan 12 09:55:12 2015 +0000 Forgot this file in r4911 From-SVN: r4912 commit f6ba99767ed17843ffa030f1c84b8f61137ea4d0 Author: Richard Gobeille Date: Mon Jan 12 09:28:46 2015 +0000 Fix tdupsprite in m32script. From-SVN: r4911 commit 5b52515f6499a3b33d4bf1851975bf150d3dddfc Author: Richard Gobeille Date: Mon Jan 12 09:28:41 2015 +0000 Make dist() and ldist() take void pointers so we can compare spritetype with tspritetype without inserting casts everywhere. From-SVN: r4910 commit e882dff48fc3cf3177289a55a87c9ab67c7367ab Author: Richard Gobeille Date: Mon Jan 12 08:44:46 2015 +0000 Fix Mapster32 sector copying From-SVN: r4909 commit 3af7a932522f1e177bff6cf13e2f68db349ab660 Author: Richard Gobeille Date: Mon Jan 12 01:54:50 2015 +0000 Fix compiler warnings From-SVN: r4908 commit 72df67a5a533526a84e622c5f2aa2b2d60fe703c Author: Richard Gobeille Date: Mon Jan 12 01:54:33 2015 +0000 Fix undefined behavior in Polymost From-SVN: r4907 commit 3f08f4331a3c2a18189320442c65910d99638090 Author: Richard Gobeille Date: Mon Jan 12 01:54:18 2015 +0000 Disable mouse input affecting the menu when the console is down. This code is awful, because I am an awful man. From-SVN: r4906 commit 3dd782dfa0798d2c173b4dc4e4a5c6be0528b8e8 Author: Richard Gobeille Date: Mon Jan 12 01:53:55 2015 +0000 Crash fix From-SVN: r4905 commit 32e1a6ea127b28f58371b1602b182192cf89488a Author: Richard Gobeille Date: Sun Jan 11 04:56:58 2015 +0000 Polymost: fix wall and floor sprites clipping into or z-fighting with surfaces (replaces glDepthRange() hacks for sprites), add r_nofog cvar for debugging, reduce the total number of OpenGL calls by only calling glFogi() to set the fog mode when initializing the renderer or changing r_usenewshading. From-SVN: r4904 commit 5252359b9e0e2e3d514b89fa5efa49b9fcd671e1 Author: Richard Gobeille Date: Sun Jan 11 04:56:38 2015 +0000 Introduce "twalltype" for temporary uses of walltype where using wall_tracker_hook() would be invalid. This is similar to "tspritetype" and fixes a bunch of problems in the editor that cropped up when changing the tracker sanity checks to an assert that only exists in debug builds (branching upon any write to a sprite, sector or wall had an unacceptable impact on performance). From-SVN: r4903 commit e049e78b53d0f123a6ee6a85dc39be2c7a86abd4 Author: Richard Gobeille Date: Sun Jan 11 04:56:10 2015 +0000 Questionable CON changes and optimizations. <3 From-SVN: r4902 commit 1e3d2fb42fd60c0e276a96594919881e0ecb32fc Author: Richard Gobeille Date: Sun Jan 11 04:55:50 2015 +0000 Fix Mapster32 bug where pressing "O" on a sprite twice would corrupt your map due to unchecked use of hitscan results. From-SVN: r4901 commit d62b0dcefe6516f541b20026351294230ad16614 Author: Richard Gobeille Date: Sun Jan 11 04:55:36 2015 +0000 Place the current loading percentage into RETURN for EVENT_DISPLAYLOADINGSCREEN. From-SVN: r4900 commit 1bf7148274aea97622cd05d48c930e986bf13f78 Author: Richard Gobeille Date: Sun Jan 11 04:55:23 2015 +0000 Fix distrecip calculation From-SVN: r4899 commit f663c846f953ee0cb91912dd719ea0cfaa5bed33 Author: Richard Gobeille Date: Sun Jan 11 04:55:07 2015 +0000 Revise C++ structure trackers for performance and introduce "tspritetype", for temporary sprites or other usages where using the trackers would be invalid or undesired. DONT_BUILD. From-SVN: r4898 commit 0007cdf7a71af2f2588907cfc0042299315b8daa Author: Richard Gobeille Date: Sun Jan 11 04:54:11 2015 +0000 Faster/better optimized access to game structures from C-CON. From-SVN: r4897 commit 31d7ebb7f2b97a39e210bef9db053e008681ec32 Author: Richard Gobeille Date: Sun Jan 11 04:53:59 2015 +0000 Support r_windowpositioning in 8-bit. From-SVN: r4896 commit 788c95be7f8c3fea181a4a8120e06afbfcb971f5 Author: Richard Gobeille Date: Sun Jan 11 04:53:44 2015 +0000 Clean up/refactor a few gamevar related functions based on building as C++/C99 and some interesting articles I read about how GCC and Clang optimize switches. Worth a few FPS here. From-SVN: r4895 commit da4a043a36a2cf70d61d2f32bb69abbd1635e6d6 Author: Richard Gobeille Date: Sun Jan 11 04:53:30 2015 +0000 Minor cleanup and formatting changes. DONT_BUILD. From-SVN: r4894 commit 836030ba7a78ed48ea4c5321815cba09afb088bb Author: Richard Gobeille Date: Sun Jan 11 04:53:16 2015 +0000 Make FORCE_INLINE aware of DISABLE_INLINING. DONT_BUILD. From-SVN: r4893 commit 5490ee720b9458f2bf9772f49bee22d9ee191f15 Author: Richard Gobeille Date: Sun Jan 11 04:53:01 2015 +0000 Detect running under Wine. DONT_BUILD. From-SVN: r4892 commit 3dc058c989b7807e1fb26c888476a23c0e54ef90 Author: Richard Gobeille Date: Sun Jan 11 04:52:45 2015 +0000 Identify Windows 10 in the startup window/log. DONT_BUILD. From-SVN: r4891 commit 9773815cb90a5d7d803c949f48576eab557d5bfe Author: Richard Gobeille Date: Sun Jan 11 04:52:15 2015 +0000 MSVC C++ build fixes. DONT_BUILD. From-SVN: r4890 commit 1807f586dc7436fc1930b7881635f894402541ba Author: Richard Gobeille Date: Sun Jan 11 04:51:41 2015 +0000 Replace hightile grayscale method (usually combined with tints to produce replacements for the first handful of palette lookups) w8th superior "luma" method. DONT_BUILD. From-SVN: r4889 commit 1b7fe82e7023fff52c88faf7c14b0162f14750c8 Author: Richard Gobeille Date: Sun Jan 11 04:51:17 2015 +0000 Fix up weapon switching deficiencies From-SVN: r4888 commit 89264f5a2325b29edcc6a4a8ee0c88785378694e Author: Evan Ramos Date: Thu Jan 8 15:15:10 2015 +0000 When using search paths detected from a Megaton installation, also use the SC-55 oggs included with it. From-SVN: r4887 commit 526e736ca6dc5fe7ed286972330c505b71f42651 Author: Evan Ramos Date: Thu Jan 8 15:14:47 2015 +0000 Clean up autodetected game install search paths on all platforms that use them. This should prevent Lunar Apocalypse from becoming Nuclear Winter with Megaton on Linux and Mac. From-SVN: r4886 commit a2d59c6727dde7fc38ab4a197eda961636d3ef28 Author: Evan Ramos Date: Thu Jan 8 15:14:18 2015 +0000 Menus: Disable the spinning nuke icon back button on Android. From-SVN: r4885 commit 7d2060e6719c46348f808bbaf906f2069ae024dd Author: Evan Ramos Date: Thu Jan 8 15:14:00 2015 +0000 Implement UserMapHacks. From-SVN: r4884 commit 248952d6bb6d9c4f0f6340e211da9492f55f3f93 Author: Evan Ramos Date: Thu Jan 8 15:13:28 2015 +0000 Reinstate MD4. From-SVN: r4883 commit a914a2ddc1137f33dd6e12a8436b3aed601e99b1 Author: Philipp Kutin Date: Tue Jan 6 20:54:49 2015 +0000 engine.c: fix clipmove() against upper part of wall-aligned sprites. From-SVN: r4882 commit 60cbf248f4a36a3b57086151dee967f3fd2c79be Author: Philipp Kutin Date: Tue Jan 6 19:56:44 2015 +0000 engine.c: on non-touch devices, roughly double maximum voxel drawing distance. By setting DISTRECIPSIZ to 131072, as far as I can see the absolute maximum that's possible with the integer scaling convention of the voxel drawing code. BUILD_LUNATIC. From-SVN: r4881 commit 64eeba1fa3eddbf5f8a8e6ed3f7799bd727a1564 Author: Philipp Kutin Date: Tue Jan 6 19:56:41 2015 +0000 Mapster32: make sprite duplication examples in m32script_ex.map work again. - Work around a sequencing issue (assignment of searchstat) in M32_DrawRoomsAndMasks() - 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 m32script_ex.map DONT_BUILD. From-SVN: r4880 commit 12e07cd65ca73c7e58f605d2ae73cf89687d4537 Author: Philipp Kutin Date: Mon Jan 5 21:54:31 2015 +0000 game.c: revert changes of r4861 ("consult g_mirrorCount instead of gotpic[]"). From-SVN: r4879 commit 9959af3de0ab1bb1678f640f5e0ad37d63622df4 Author: Philipp Kutin Date: Mon Jan 5 21:54:28 2015 +0000 Lunatic: in control/lua, sync ALLOWED_VIEWTYPE with change from r4814 (allow 2). DONT_BUILD. From-SVN: r4878 commit 0d61c3d46f97176ce3bd822a21193f776d1b2286 Author: Philipp Kutin Date: Sun Jan 4 18:45:03 2015 +0000 engine.c: prevent multiple collection of same sector in scansector(). Also for polymost_scansector(). These were likely of little consequence because collection in scansector() is the exception than the rule (see added comments), and because the redundant drawwalls() would find the x range done the second and following times. Also, add a bound check for sectorborder[] (the limit was probably rarely hit in practice, but the check is mandatory nontheless) and add functions printscans() and printbunches() in the DEBUGGINGAIDS=2 build. From-SVN: r4877 commit 4a15a296f0e271a294af7676e9a474422396ccf7 Author: Philipp Kutin Date: Sun Jan 4 18:45:01 2015 +0000 engine.c: in drawmasks(), remove sorting sprites by statnum. There were various issues with that code. - It does not seem to be very meaningful to do so. - It was carried out on the same range as the sprites sorted by z coordinate (those with equal x/y) just a few lines away, effectively overriding it. The former is very meaningful, though. - It led to inconsistencies between editor and game, see http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__214873 From-SVN: r4876 commit e4df212f4cc376ef4eaa0815a22225121aa9d20d Author: Philipp Kutin Date: Sun Jan 4 18:45:00 2015 +0000 Cleanup of various engine functions. - factor out calculation of player-relative and screen+clipped-player-relative coordinates into get_rel_coords() and get_screen_coords(), respectively - the usual beautification stuff, especially since we're now on C99 From-SVN: r4875 commit 18722e9ca6384dbdcae8dbef2dc5486555c2dc1d Author: Philipp Kutin Date: Sun Jan 4 18:44:58 2015 +0000 CON: always return non-negative values from 'clipmove' and related. Previously, the C function clipmove() returned negative values when hit a wall (32768+wallnum) or sprite (49152+spritenum) because internally, these values were encoded into a *signed* 16-bit integer. This made no difference to C code using it, since it always proceeded by bit checks, but was inconsistent with documentation on CON 'clipmove' on the wiki. The following commands are affected too, since they use the value returned by clipmove(): 'clipmovenoslide', 'movesprite'. Also, the value of actor[].movflag ('htmovflag' from CON). Also, fix 'clipmove*' in LunaCON and add lunatic/test/checknearwall.con as an example of how to implement a being-close-to-a-wall checker as requested in http://forums.duke4.net/topic/7869-determining-closeness-to-a-wall/ From-SVN: r4874 commit 3002c1402ba4c899ba045431e0d89f5ee5af4b9e Author: Philipp Kutin Date: Tue Dec 30 20:05:22 2014 +0000 engine.c: fix clipmove() against floor-aligned sprites. Introduced in r3207. Oops. From-SVN: r4873 commit 90c99df7ecb22c13b7114630c70415d73d75fd1c Author: Philipp Kutin Date: Tue Dec 30 20:05:20 2014 +0000 engine.c: prevent an oob read of spriteext[] in drawsprite_classic(). From-SVN: r4872 commit a16b8d22a33571d033170012ab9d1c98737c0efe Author: Philipp Kutin Date: Sun Dec 28 22:12:40 2014 +0000 sounds.c: don't crash S_PlayMusic() if passed null pointer for 'fn'. This may happen if no title/end music is defined from CON. Thanks to Zaxtor for the bug report. From-SVN: r4871 commit 8f36da96f5e88ead581607a3df783d01df99986f Author: Evan Ramos Date: Sun Dec 28 21:36:09 2014 +0000 Menus: Amend r4862 so that touch devices, which do not display the crosshair as a cursor, are not completely prevented from using touch input by the lack of a crosshair tile. From-SVN: r4870 commit 2e223350aa980f1ebf4f9b07f61b84396c2e4ee2 Author: Evan Ramos Date: Sun Dec 28 21:35:56 2014 +0000 Menus: Fix the Screen Size slider so that it works properly after the screen size has been modified in-game with [-]/[+]. From-SVN: r4869 commit 29005f3d7140e78efeeac384315f99527f05060a Author: Evan Ramos Date: Sun Dec 28 21:35:44 2014 +0000 Menus: Fix selecting "None" for Anisotropy. From-SVN: r4868 commit 0af6ab7265ec1a61288911eca26797318990c5bf Author: Evan Ramos Date: Sun Dec 28 21:35:32 2014 +0000 Menus: Fix opening a MenuEntryOptionList when the option's value is "Custom". From-SVN: r4867 commit 8e8d96cf621d3bfab6dd3b9310c0b248641dacd0 Author: Evan Ramos Date: Sun Dec 28 21:35:20 2014 +0000 Menus: Convert MenuRange*_t's "displaytype" field to "flags", add a flag to enforce clamping to the defined intervals, and apply this flag to the Screen Size slider. From-SVN: r4866 commit d9fb37a16bee50eaa682b97ec2ac2e687f01b553 Author: Evan Ramos Date: Sun Dec 28 21:35:07 2014 +0000 Menus: When pressing left or right on a slider that has moved by the mouse to a position between the defined intervals, do not round to the nearest interval and then increment or decrement. Instead, check if rounding will satisfy the movement before moving further. From-SVN: r4865 commit 3741bf7546d85d01fceaa6e5f674a6388ebdb7f9 Author: Evan Ramos Date: Sun Dec 28 21:34:54 2014 +0000 Menus: Mouse controls now respect MenuEntry_t's disabled flag. From-SVN: r4864 commit 1fcb222c8e420a862fd31f6069f58e436289e91a Author: Philipp Kutin Date: Sun Dec 28 20:57:13 2014 +0000 actors.c: replace hard-coded list with missing check for SFLAG_NODAMAGEPUSH. In A_RadiusDamage(). The code snippet that is disabled for such actors increases the damaged actor's .xvel by (4 times the) damage amount and is responsible for the strange effect of enemies becoming faster TOWARDS the player on being hit with an RPG frontally. Thanks to Fox for a keen eye. From-SVN: r4863 commit 4ea2994fd14d5e819d0e4a9282f290fe61d2ce3b Author: Philipp Kutin Date: Sun Dec 28 19:48:20 2014 +0000 Menus: disable mouse pointer if CROSSHAIR is void. DONT_BUILD. From-SVN: r4862 commit 1abe83b1fd3d07d9faefa55e2a04faea1fbc72f2 Author: Philipp Kutin Date: Sun Dec 28 15:40:06 2014 +0000 In G_HandleMirror(), consult g_mirrorCount instead of gotpic[] w/ MIRROR. DONT_BUILD. From-SVN: r4861 commit e177cf043e484ed886f8f6fdea0f45b84bc172d3 Author: Philipp Kutin Date: Sun Dec 28 15:40:04 2014 +0000 Lunatic translator: add stand-alone option -fnames, generating names.h file. From-SVN: r4860 commit 609903188264debd583b71afbb86b6851b4d7bca Author: Evan Ramos Date: Sat Dec 27 20:39:43 2014 +0000 Fix playing end-of-episode ANMs. From-SVN: r4859 commit 245f900683871edc8e4fa84bda08d381db83a1f6 Author: Evan Ramos Date: Sat Dec 27 20:39:30 2014 +0000 If you save over an autonamed savegame and change the name, don't overwrite your edit with another autofill. From-SVN: r4858 commit 969b0a19120823bf33491cfa9a2911659698c8a8 Author: Evan Ramos Date: Sat Dec 27 18:37:39 2014 +0000 Menus: Enumify the "status" parameter of M_MenuText into MenuTextFlags_t. From-SVN: r4857 commit c6038e10874f23408879e6ff87b5a3bfd45b0d7f Author: Evan Ramos Date: Sat Dec 27 18:37:27 2014 +0000 Menus: Implement mouse/touch/pointer controls for all widgets. From-SVN: r4856 commit 2383ad10b43bc20fdc413e8d6bf07556fcb72912 Author: Evan Ramos Date: Sat Dec 27 18:37:12 2014 +0000 Menus: Replace the "disabled" member of MenuEntry_t with "flags" so that the other 31 bits can be utilized. From-SVN: r4855 commit 1375b2f5e7eb735453a727ac1414a6591eb4f36d Author: Evan Ramos Date: Sat Dec 27 18:36:58 2014 +0000 Menus: Disable normal left-click/touch menu functionality when the mouse is active. From-SVN: r4854 commit ca8d6a4a9aedf58bb9fea523dec9e99368353256 Author: Evan Ramos Date: Sat Dec 27 18:36:43 2014 +0000 Add the necessary plumbing to sdlayer to detect mousedown, mouseup, and dragging. From-SVN: r4853 commit 075d65771b650e7e35fccfdd362ea8381cf0bd98 Author: Evan Ramos Date: Sat Dec 27 18:36:14 2014 +0000 Introduce preprocessor token EDUKE32_TOUCH_DEVICES that covers both Android and iOS, and replace selected instances of __ANDROID__ with it. From-SVN: r4852 commit 00114890d924d0d8526c895010a3b3ba44f39411 Author: Evan Ramos Date: Sat Dec 27 18:35:48 2014 +0000 Menus: Add scrollbars to the FileSelect menu type. From-SVN: r4851 commit 47b5c2aa5bd9b68db3f3efddd9706747b1a6f8ad Author: Evan Ramos Date: Sat Dec 27 18:35:34 2014 +0000 Tabs to spaces in menus.c. From-SVN: r4850 commit dcb24b09c6ec191b9d4d5b86ea4bc465392a32a1 Author: Evan Ramos Date: Sat Dec 27 18:35:21 2014 +0000 Refactor menus in preparation for touch functionality. From-SVN: r4849 commit 6137492d3207c21f49751202f6fa9a3cb660348f Author: Philipp Kutin Date: Sat Dec 27 17:17:53 2014 +0000 Mapster32: disable all loop checks as they spam the log too much. DONT_BUILD. The one introduced with r4569. From-SVN: r4848 commit 549d0db6bb422a09c2e5dabff4e1c5aa12f6a4f0 Author: Philipp Kutin Date: Sat Dec 27 17:17:52 2014 +0000 Propagate 'smoothratio' to scenes drawn from the position of a camera. That is, make interpolation work properly there -- both when 'using' a VIEWSCREEN and when rendering the scene onto a TILE_VIEWSCR. This makes a difference only if the camera is in a moving sector. From-SVN: r4847 commit f8339cfcb8d2c5b6a26411f39d971f4602f924ef Author: Philipp Kutin Date: Sat Dec 27 17:17:50 2014 +0000 Minor cleanup, mostly in engine.c:drawalls(). From-SVN: r4846 commit ba4b31f17b86a3994b1525a0c16ad48528cc6e49 Author: Philipp Kutin Date: Fri Dec 26 18:05:41 2014 +0000 Prettify viewscreen turned to STATIC in breakable cameras mode. DONT_BUILD. From-SVN: r4845 commit a1e92df6b93022ddf399db6d23613893271e0dcb Author: Philipp Kutin Date: Fri Dec 26 17:30:01 2014 +0000 C-CON: fix 'writearraytofile' for 64-bit platforms. From-SVN: r4844 commit 5f63918c4df8ff1b40c181daf42c46be4182ede9 Author: Philipp Kutin Date: Fri Dec 26 17:30:00 2014 +0000 Tweak the behavior of viewscreens to what is more logical IMO. - At a given time, at most one viewscreen may display TILE_VIEWSCR, namely that one which is g_curViewscreen - sync kinds of distance to compare against VIEWSCREEN_ACTIVE_DISTANCE (was Manhattan vs. dist(), now both the latter) - fix resetting to VIEWSCREEN tile when player is greater from it than that distance. When the player is closer to it again, it is *not* reset to TILE_VIEWSCR. - more sync'd g_curViewscreen and sprite[i].yvel (for 'i' being the viewscreen sprite) Note: in a multiplayer context, this needs to be thought about once more. From-SVN: r4843 commit 817c9c8699cef29f367dcbf975a042b71f2c7003 Author: Philipp Kutin Date: Fri Dec 26 17:29:59 2014 +0000 engine.c: clamp all indices for distrecip[] access, as more OOBs were observed. From-SVN: r4842 commit 8555a88769aa8b18eab18c883b79fbf9888cebe4 Author: Philipp Kutin Date: Fri Dec 26 17:29:58 2014 +0000 CON: allow passing more than one flag to the 'spriteflags' directive. These will be bitwise-OR'd. From-SVN: r4841 commit ac4bb6fa376997284b77c7f643bdd5ecbb42742a Author: Philipp Kutin Date: Fri Dec 26 17:29:57 2014 +0000 gamedef.c: factor out some dup'd code into C_BitOrNextValue(), C_FinishBitOr(). From-SVN: r4840 commit e36edd433c8669ebc1e2894711c0e825b9d7bb53 Author: Philipp Kutin Date: Fri Dec 26 17:29:56 2014 +0000 In C-CON build, prevent leak of gamevar/gamearray labels on savegame loading. Also, rewrite the loops in Gv_Free() and Gv_Clear() in the plain fashion so that they are correct even if the number of gamearrays exceeds the number of gamevars. From-SVN: r4839 commit 5ce59468468483ee9db2c472ba14ea156dafff4c Author: Philipp Kutin Date: Fri Dec 26 17:29:55 2014 +0000 cache1d.c: Revert changes in r4665 unrelated to unrolling, fixing oob write. Specifically, we must make sure that dasizeof <= LZWSIZE (or so) in c1d_{read,write}_compressed() (what the assertion in the last commit was about, and is now redundant). This fixes saving of e.g. large gamearrays with the C-CON build. Bump BYTEVERSION. An alternative for setting dasizeof to 1 would be to factor it and keep dividing as long as it's > LZWSIZE. From-SVN: r4838 commit 79dc2a021b9a499a586c87f7ffa73a34115028f7 Author: Philipp Kutin Date: Fri Dec 26 17:29:54 2014 +0000 cache1d.c: in (de)compr. funcs, add an bound-checking assert that fails w/ AMC TC. Also, formatting. From-SVN: r4837 commit afabd5935f67d58211191b19aad777eeb9425599 Author: Philipp Kutin Date: Fri Dec 26 17:29:53 2014 +0000 Convert voxels to models only when starting or changing to Polymost. Analogously to the way models are processed in a deferred manner for Polymer. From-SVN: r4836 commit 83a0ee370a8d9dc99012d126bbeb916c54c04cc3 Author: Philipp Kutin Date: Fri Dec 26 17:29:52 2014 +0000 A couple of miscellaneous cleanups. defs.c: sync some dup'd code for 'definevoxel' and 'voxel' DEF tokens. engine.c: factor out PolymerProcessModels(). From-SVN: r4835 commit 50dac27da809129d892dd24f91d49796c6b5b83c Author: Philipp Kutin Date: Fri Dec 26 17:29:48 2014 +0000 engine.c: style-cleanup drawvox(). Also clean up ALL of voxmodel.c. No deliberate semantic changes here. From-SVN: r4834 commit 55ddd01547aecd6a3d00590a74142f18e2192025 Author: Philipp Kutin Date: Sun Dec 21 15:51:51 2014 +0000 Polymer: include wall[].ypanning in wall invalidation logic. Fixes bug reported here: http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__213759 From-SVN: r4833 commit 7c6451e02949b7a42a84d3472e7ff39b48ca2921 Author: Philipp Kutin Date: Sun Dec 21 15:51:50 2014 +0000 menus.c: Reset next-viewscreen-redraw counter from M_CloseMenu(). From-SVN: r4832 commit ad4892de9540a0b515d5c151cc2b09ba5a4389df Author: Philipp Kutin Date: Sun Dec 21 15:51:48 2014 +0000 Minor cleanup around security cameras / viewscreens. DONT_BUILD. The only semantic change is that an out-of-sync instance of a distance to check (viewscreen sprite <-> player sprite) is changed in actors.c:G_MoveStandables(), from 2048 (as in Duke3D 1.5) to 8192, now represented by the define VIEWSCREEN_ACTIVE_DISTANCE. I have not yet observed any change in behavior regarding this change (but there ought to be one). Also, in DNCOORDS display, print 'totalclock' count, too. From-SVN: r4831 commit b8b64e467f56c9b01d6e6a34b8a21f164e1ae128 Author: Philipp Kutin Date: Sat Dec 20 13:36:40 2014 +0000 Polymer: don't draw masked walls with void tile. DONT_BUILD. This prevents displaying W_FORCEFIELD+1 masks (as e.g. in front of viewscreens) completely black with ART mapping. The old behavior, which is inconsistent with classic, is kept for one-sided masked walls, though. From-SVN: r4830 commit 0d32cc4a0ce3030bdab26e8dd6ded7e6a0c5730b Author: Philipp Kutin Date: Sat Dec 20 13:08:27 2014 +0000 Lunatic: sync MAXJOYAXES, add lunatic/test/sprite_addtv.con. DONT_BUILD. From-SVN: r4829 commit a18f1cc9994904bc375c38726fe71a75955ca213 Author: Evan Ramos Date: Thu Dec 18 18:16:29 2014 +0000 Wii: Display all hat directions in the joystick buttons menu instead of just up. From-SVN: r4828 commit ee0323ac39c28d44c2f6cda622fc3bed8bcf1725 Author: Evan Ramos Date: Thu Dec 18 18:16:16 2014 +0000 Wii: Bump MAXJOYAXES to 9 to avoid menu corruption, and fix _functio.h, CONFIG_FunctionNameToNum, CONFIG_AnalogNameToNum, so that this does not crash. From-SVN: r4827 commit c2c9bb19fb4029b6f1e43936be38f47db29f6e41 Author: Evan Ramos Date: Thu Dec 18 18:15:51 2014 +0000 Fix the MAXJOYBUTTONS discrepancy between _control.h and gamedefs.h. From-SVN: r4826 commit 288cd732d8d43a98b732abf40161522a51a5a30e Author: Evan Ramos Date: Thu Dec 18 18:15:26 2014 +0000 Wii: Add non-interactive cases to wm_msgbox and wm_ynbox. From-SVN: r4825 commit 55975c3b4ad9a737a4809be0f504f83d213a0d89 Author: Evan Ramos Date: Thu Dec 18 18:15:05 2014 +0000 Wii: Output and package the binary as .dol instead of .elf. From-SVN: r4824 commit 761d316e9d81d04b82d84f5e8874f56cf489201b Author: Evan Ramos Date: Thu Dec 18 18:14:45 2014 +0000 Polish up the video menu a bit. From-SVN: r4823 commit e3dbdf72f582e3f22d4336a9eaec4b3c7ac750ce Author: Evan Ramos Date: Thu Dec 18 18:14:27 2014 +0000 Fix "bright red" player color. From-SVN: r4822 commit 777ef06fe44b61d0228f94eec0f4e9396968ca1f Author: Evan Ramos Date: Wed Dec 17 13:02:21 2014 +0000 Wii: Add a custom exception handler that saves the crash information to the log and directs the user to submit it to us. DONT_BUILD. From-SVN: r4821 commit b39647b626905724b5a04378e328098467f6e78b Author: Evan Ramos Date: Wed Dec 17 13:01:58 2014 +0000 Wii: Add a console to display startup messages to the screen instead of showing the user a black screen while the game initializes. DONT_BUILD. From-SVN: r4820 commit 5710bc9d731b71a6a075561ad59b6001352e77d8 Author: Evan Ramos Date: Wed Dec 17 13:01:13 2014 +0000 Wii: Work around a performance regression caused by r4080. DONT_BUILD. From-SVN: r4819 commit 53952ee1698b95b344efaacbeb5023596e853d9e Author: Evan Ramos Date: Wed Dec 17 13:00:54 2014 +0000 Wii: Tweaks. *Move the FPS display down from the top of the screen, as we do for quotes. *Don't show a non-functional mouse cursor in the center of the screen. *Don't display the "Startup window" option in Game Settings. *Display the IR pointer crosshair in addition to the aiming crosshair, not instead of it. *Eliminate some assumptions from wiibuild.bat. *DONT_BUILD. From-SVN: r4818 commit 33e500cc41f43334bc3d65718a5df3bb25347cc8 Author: Philipp Kutin Date: Mon Dec 15 19:50:52 2014 +0000 Makefile.common: in non-release builds, explicitly pass -fno-omit-frame-pointer. So that stack traces can be gotten with optimized DEBUGANYWAY builds, e.g. for Linux's 'perf' --> flame graphs. DONT_BUILD. From-SVN: r4817 commit 6543ee590ebbba34d874016db7aa2d8f6efb8ed8 Author: Philipp Kutin Date: Sun Dec 14 20:48:05 2014 +0000 Lunatic: for '(display)rand*', use math.floor(); correct create_additive_trans() help. DONT_BUILD. From-SVN: r4816 commit b941c46d769c829b8c538cad93a540f0e7edea16 Author: Philipp Kutin Date: Sun Dec 14 14:31:34 2014 +0000 Lunatic: show on-screen errors even in passive menu; fix '(display)rand*' for large values. Also, some minor style cleanup in game.c. DONT_BUILD. From-SVN: r4815 commit 3d3bd73afc3039ceaebb7a3abaedb11987248db8 Author: Philipp Kutin Date: Sat Dec 13 22:33:07 2014 +0000 LunaCON: expose more members, properly handle setting ud.screen_size. BUILD_LUNATIC. From-SVN: r4814 commit c65d313fcaae29635218e2bcdb3cb1ed405649b8 Author: Philipp Kutin Date: Sat Dec 13 22:33:06 2014 +0000 DEF: fix handling of 'remappal' attribute for 'makepalookup'. From-SVN: r4813 commit 174f7a6a81b81315698963da6000f41f7fee8e3c Author: Philipp Kutin Date: Sat Dec 13 22:33:05 2014 +0000 Pull setting g_noFloorPal[] further down, into makepalookup(). Now passed as last arg 'noFloorPal' to makepalookup(). Used as follows: - from loadlookups(): *false*, i.e. do take over floor pal. - from generatefogpals() [default fog pals] and fillemptylookups(): *true*, i.e. don't take over floor pal - from DEF 'fogpal': true - from DEF 'makepalookup': take over flag from pal from which we are remapping, or set to true if remapping from pal 0 - (CROSSHAIR_PAL: true) This should make the issue reported in http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__197583 resolve in a natural manner. From-SVN: r4812 commit 47e53e69bc2347cca456aac6e997b449d3f4aeb6 Author: Philipp Kutin Date: Sat Dec 13 22:33:04 2014 +0000 Move g_noFloorPal[] to the engine side and adapt other stuff accordingly. - 'nofloorpalrange' DEF token: now handled for both game and editor (for the latter, it's effective only for "shade preview" mode, [']+[X]). - in generatefogpals(), assign g_noFloorPal[] = 1 for every generated (default) fog pal; get rid of its return value / g_firstFogPal From-SVN: r4811 commit c900749b17773547512fa8beb448c88f41e6e465 Author: Philipp Kutin Date: Sat Dec 13 22:33:02 2014 +0000 engine.c: prevent an oob access of uwall[] in ceilspritescan(). From-SVN: r4810 commit 403e72045ad84f812ae756d2053ee6d578da20a3 Author: Philipp Kutin Date: Sat Dec 13 22:32:57 2014 +0000 engine.c: style tweaks (tighter var. declaration) in sprite drawing functions. From-SVN: r4809 commit 892676c8edef0a5b6abe3466322da94934c2a5c7 Author: Evan Ramos Date: Tue Dec 9 23:56:54 2014 +0000 Wii: Fix build. DONT_BUILD. From-SVN: r4808 commit ee460315ad0a264a63e6336de3b7d996e6c08269 Author: Evan Ramos Date: Tue Dec 9 23:56:31 2014 +0000 Fix building with `make -B`. (`make veryclean` is now obsolete.) DONT_BUILD. From-SVN: r4807 commit b65c08f260408a3b8aa09a64d36620cb75970007 Author: Evan Ramos Date: Tue Dec 9 22:51:41 2014 +0000 Fix building the Build Tools. DONT_BUILD. From-SVN: r4806 commit 752db637c47efa045fcc2bd61e2dbcc637a26ccd Author: Evan Ramos Date: Mon Dec 8 10:30:33 2014 +0000 BSD: Fix the previous commit. DONT_BUILD. From-SVN: r4805 commit a8ef92fae9bfdc83b9b7ac8ad5ce8767fb236c97 Author: Evan Ramos Date: Mon Dec 8 10:26:32 2014 +0000 Linux: Add detection of the Steam releases of Duke 3D and NAM. DONT_BUILD. From-SVN: r4804 commit 2245f498a899cb39dec8f59c384d524d66fb5543 Author: Evan Ramos Date: Mon Dec 8 09:18:29 2014 +0000 Fix a warning with Linux/GTK2. DONT_BUILD. From-SVN: r4803 commit 05a8911df21a7bc0e437c1c1b2d130b933395956 Author: Evan Ramos Date: Mon Dec 8 07:32:58 2014 +0000 Refine the previous commit a bit. DONT_BUILD. From-SVN: r4802 commit e004d38a66ac4ead3c1e165736602f72980d15d6 Author: Evan Ramos Date: Mon Dec 8 04:31:57 2014 +0000 Mac OS X: Add detection of the Steam and GOG releases of Duke 3D and the Steam release of NAM. DONT_BUILD. From-SVN: r4801 commit e75374e6afbe9e338ce77b654f201b6a2e215560 Author: Philipp Kutin Date: Sat Dec 6 21:05:36 2014 +0000 voxmodel.c: fix Polymost rendering of voxels. This reverts/corrects two semantic changes of r4639 as far as what is now voxmodel.c (formerly part of mdsprite.c) is concerned. One correction ends up having no effect (m->bscale is always 1.f for voxel models, as far as I can see), but is the proper rewrite. Also, in osdcmds.c:registerosdcommands(), tweak two help strings. From-SVN: r4800 commit 33e685059d67ce2eb2af1ef314e996668dff510d Author: Philipp Kutin Date: Sat Dec 6 19:09:53 2014 +0000 m32script: fix tilesizx[]/tilesizy[] access. Can also 'copy' from them. From-SVN: r4799 commit 1944b040a670935d6eab1174eca1354e2c17f9f9 Author: Philipp Kutin Date: Sat Dec 6 19:09:50 2014 +0000 M32Script cleanup. Fixes at least one non-minor and one minor bug. From-SVN: r4798 commit 051bfd79fb97cfcd03de6b67b5a5c09f1e0057b6 Author: Philipp Kutin Date: Fri Dec 5 23:12:36 2014 +0000 engine.c: minor stylistic changes. DONT_BUILD. Since we're targeting C99/C++ now, we can finally declare variables as close to their use as possible. From-SVN: r4797 commit 2b2b81edfda9634d88b4d164f69f4dd12c86346c Author: Philipp Kutin Date: Fri Dec 5 23:12:35 2014 +0000 Lunatic: fix actor[] and player[] indexing after LuaJIT bugfix 66515a054c0826ce. From-SVN: r4796 commit 568155789d0918eed50940ce3e59d12fdc753107 Author: Philipp Kutin Date: Fri Dec 5 23:12:33 2014 +0000 LunaCON: implement 'qstrncat' command. From-SVN: r4795 commit 1e635eea1f6041466f9e4a927be648e709fd52eb Author: Philipp Kutin Date: Fri Dec 5 23:12:30 2014 +0000 astub.c: revert portions of r4763, fixing display of some "member edit" dialogs. Specifically, this fixes edit lines for 2 members, e.g. "(X,Y)pan". From-SVN: r4794 commit 546863bc27d5b4c467591576f88f94a7d05abd8c Author: Philipp Kutin Date: Fri Dec 5 20:02:19 2014 +0000 gamevars.c: don't leak memory in Gv_NewArray(). DONT_BUILD. From-SVN: r4793 commit 350edd57a9b7dfec1b58c39950c79cfbe0101245 Author: Philipp Kutin Date: Tue Dec 2 21:56:28 2014 +0000 Bump BYTEVERSION, necessary since the changes of r4703. DONT_BUILD. From-SVN: r4792 commit 0c7d029faed79831cb157c25cd21f914dc1b65b7 Author: Evan Ramos Date: Tue Dec 2 06:16:15 2014 +0000 Add dummy command line parameters to allow us to serve as a drop-in replacement for the NAM Steam release's dosbox.exe From-SVN: r4791 commit d03b6678cea9cf9fbca8d0efc292eb806254e470 Author: Evan Ramos Date: Tue Dec 2 06:16:02 2014 +0000 Windows: Detect installation paths of 3DR's Duke Nukem 3D package, the 3DR Anthology, and the NAM Steam release. From-SVN: r4790 commit 039b044f3329d32b4f99dac7810cf3d13fc46134 Author: Evan Ramos Date: Tue Dec 2 06:15:49 2014 +0000 Remove the structure fields in grpscan.c that blocked my code for allowing NAM, NAPALM, and WWII GI to fall back to GAME.CON. From-SVN: r4789 commit 29ef35e4c621976955fa61081be6c070522d3ff6 Author: Evan Ramos Date: Tue Dec 2 06:15:33 2014 +0000 Remove the blackout when starting a new game on episode 4. From-SVN: r4788 commit 7af1c8019e8d82ca7524f151958beb9b00be7158 Author: Evan Ramos Date: Tue Dec 2 06:15:19 2014 +0000 Fix USE_OPENGL=0 build error in r4779. From-SVN: r4787 commit f8b4d9c27ab6bf104b7337cf672e501817dcf0c9 Author: Philipp Kutin Date: Mon Dec 1 19:52:08 2014 +0000 a-c.c: eliminate narrowing int32_t -> uint32_t conversions. DONT_BUILD. From-SVN: r4786 commit 26c2459e3f2757393e60652956be7da16257ae17 Author: Philipp Kutin Date: Mon Dec 1 19:21:48 2014 +0000 Fix build on platforms not magically #defining UNREFERENCED_PARAMETER. DONT_BUILD. From-SVN: r4785 commit 613496f5ce520290f7644427e6359f815e734a3a Author: Richard Gobeille Date: Sun Nov 30 23:19:11 2014 +0000 Fix EVENT_ANIMATESPRITES. From-SVN: r4784 commit d53f9cd332af44a496bdd0dfef9deb0d82f1a050 Author: Richard Gobeille Date: Sun Nov 30 23:18:57 2014 +0000 Fix warnings with VS2013 update 4. DONT_BUILD. From-SVN: r4783 commit b42f276edbb1ccb8262686faa515aa8f50244ba4 Author: Evan Ramos Date: Sun Nov 30 04:59:34 2014 +0000 Open the load and save menus with the last used slot highlighted. DONT_BUILD. From-SVN: r4782 commit c10becb3a95ac651d01ab9feeeabba03919ed9e8 Author: Evan Ramos Date: Sun Nov 30 04:56:09 2014 +0000 Fix names of savegames. DONT_BUILD. From-SVN: r4781 commit 69e1b7cdd3219247ad3ea0ba04f29533a5d4e09f Author: Evan Ramos Date: Sun Nov 30 04:23:22 2014 +0000 Fix displaying a savegame preview shot when in OpenGL and/or when the selected slot is empty. DONT_BUILD. From-SVN: r4780 commit 1ab6c3fdd7384b59c5b81a30de3f946f70fef4a6 Author: Evan Ramos Date: Sun Nov 30 03:37:56 2014 +0000 Re-allow the player color option to take effect. DONT_BUILD. From-SVN: r4779 commit bf308217e37b81c0e83bca809dff1f49093da57b Author: Evan Ramos Date: Sun Nov 30 02:04:36 2014 +0000 Menu structure revision. Structs reordered to eliminate slop. MenuGroup_t eliminated. MenuPos_t split into MenuMenuFormat_t and MenuEntryFormat_t. DROIDMENU build fixed. DONT_BUILD. From-SVN: r4778 commit 3e10fa8902ced6bce865c31aef1758ff1dd32c2e Author: Evan Ramos Date: Sat Nov 29 06:30:42 2014 +0000 Fix the crash in the ASM relating to the dynamic allocation of ylookup. From-SVN: r4777 commit f2b4c8526bffb89b9fd0b3582c63edf3d93f5c59 Author: Evan Ramos Date: Sat Nov 29 03:43:11 2014 +0000 Make sure the mouse is captured when the main menu transitions into MODE_GAME. DONT_BUILD. From-SVN: r4776 commit 8dc7112d505f74b62a1bce531fed3773ee30430a Author: Evan Ramos Date: Sat Nov 29 03:21:56 2014 +0000 Fix mousewheel under SDL 1.2. DONT_BUILD. From-SVN: r4775 commit 24938d9d3d546508c34fd96e539d4e7a016bd6bd Author: Evan Ramos Date: Sat Nov 29 03:07:33 2014 +0000 Restore SDL 1.2 on Windows to a working state. DONT_BUILD. From-SVN: r4774 commit 53191fd18773c6f2ed4874d97b309a1a4a7e96f5 Author: Evan Ramos Date: Sat Nov 29 02:29:42 2014 +0000 Fix POLYMER=0 GTK C++ build. DONT_BUILD. From-SVN: r4773 commit f06e259e389695f947fe307d84f6284c9cdb51df Author: Evan Ramos Date: Sat Nov 29 00:32:28 2014 +0000 Restructure dynamicgtk to comply with C++ casting rules. DONT_BUILD. From-SVN: r4772 commit b94aa6f2b69f85aba86e9f85af451ec58c5f5d21 Author: Evan Ramos Date: Fri Nov 28 23:57:21 2014 +0000 Eliminate -Wno-narrowing. DONT_BUILD. From-SVN: r4771 commit a712d7346e052b694b114fbe01985a7aff8ce81a Author: Evan Ramos Date: Fri Nov 28 23:47:46 2014 +0000 GTK: Fix warnings and errors related to the banners. DONT_BUILD. From-SVN: r4770 commit fbb4ab16eab1f9f7ff2e55d2dec9b72219e7ab35 Author: Evan Ramos Date: Fri Nov 28 08:30:31 2014 +0000 Fix C/GTK2/SDL1.2 build. DONT_BUILD. From-SVN: r4769 commit a0d998351cc25743ae78a01cf1d9684aa2f5c4e0 Author: Evan Ramos Date: Fri Nov 28 08:14:00 2014 +0000 Some minor fixes. DONT_BUILD. From-SVN: r4768 commit 9ec1e99bda69e78014df39638f0ec3b69adccf1b Author: Evan Ramos Date: Fri Nov 28 08:12:40 2014 +0000 Fix the Wii build with the refactored sdlayer. DONT_BUILD. From-SVN: r4767 commit c8905ff61a35faea1b9b7ad39bf0f991e19bd228 Author: Evan Ramos Date: Wed Nov 26 04:39:23 2014 +0000 Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. From-SVN: r4766 commit 4b01f68d6c689a772036d89a7059700ac2646a68 Author: Evan Ramos Date: Wed Nov 26 04:37:22 2014 +0000 Fix Lunatic C build. DONT_BUILD. From-SVN: r4765 commit 522945b6b1ce139fef33208f67fd3d7b32067dbe Author: Philipp Kutin Date: Tue Nov 25 23:46:28 2014 +0000 Fix POLYMER=0 build and a couple of unused-variable warnings with it. DONT_BUILD. From-SVN: r4764 commit 17f44132b93fc26cca12ec043858c04db9bd4466 Author: Evan Ramos Date: Tue Nov 25 21:08:58 2014 +0000 Eliminate the printf_nowarn stuff that has long since been supplanted by TrackerCast. DONT_BUILD. From-SVN: r4763 commit cad27222d0e1b07b25b04db4093719f6f1e7d0d0 Author: Evan Ramos Date: Mon Nov 24 08:19:50 2014 +0000 Fix some things when building on OS X. DONT_BUILD. From-SVN: r4762 commit 67b621f55dee141182ba9fc8622d20d6cca0f87f Author: Evan Ramos Date: Mon Nov 24 06:30:47 2014 +0000 Fix build with x86_64-MinGW-w64. DONT_BUILD. From-SVN: r4761 commit a06d29ae27a026e3bbf37ec5ff1b602daed17dc6 Author: Evan Ramos Date: Mon Nov 24 06:03:58 2014 +0000 Fix oversight in mouse cursor code. DONT_BUILD. From-SVN: r4760 commit bea74f5d2a463ba5629bbcf950e1bbd7fb3e10a9 Author: Philipp Kutin Date: Sat Nov 22 18:37:24 2014 +0000 In Lunatic build, make krand() a proper function again, called from Lua/FFI. DONT_BUILD. From-SVN: r4759 commit b1197689f1196f51d50b2c88e9b705185eeb57b9 Author: Philipp Kutin Date: Sat Nov 22 18:37:23 2014 +0000 a-c.c: Compile vlineasm4nlogy() only if CLASSIC_NONPOW2_YSIZE_WALLS is #defined. Also make three file-scope variables static. From-SVN: r4758 commit 8e7d94637e6c881fad41d6973fb23d4da41d1fd5 Author: Philipp Kutin Date: Sat Nov 22 18:37:21 2014 +0000 engine.c: in wallscan(), fix oob of umost[] and dmost[] when x2 == xdim-1. Analogously treat maskwallscan() and transmaskwallscan(), although I could not get the respective accesses to be oob, too. From-SVN: r4757 commit 2dc5f43d50ebe17cbd23ce6169066004f1c6a467 Author: Philipp Kutin Date: Sat Nov 22 18:37:19 2014 +0000 Makefile: do '(very)clean' with a plain "rm -f some/obj/*.o". Notes: - In the 'clean' target, the "core*" arg to 'rm' was removed as I find it too unspecific. (Someone could have an unrelated file with that prefix lying around.) - The targets 'clean' and 'veryclean' now echo the commands they are about to execute. Also, in Makefile.common, resurrect sanitized Clang builds if DEBUGANYWAY=2 is passed (previously, that was triggered with RELEASE=0 DEBUGANYWAY=1). From-SVN: r4756 commit 705268d311ec621e8583b2198637ea6e088a04d1 Author: Philipp Kutin Date: Sat Nov 22 18:37:16 2014 +0000 Fix C build and build on Linux/SDL2. - for the first point: 'struct glattribs sdlayer_gl_attributes[]' was defined at file scope, but 'glmultisample > 0' is not a compile-time constant. - for the second point: r4749 changed the meaning of some conditional compilation (supposedly, unintentionally). I'm reverting it to pre-r4749 but keeping the rewritten style. It's concerned with mouse thumb buttons. From-SVN: r4755 commit e029e8d786ad1d6bfec18b5d1716aa3796e88998 Author: Richard Gobeille Date: Sat Nov 22 12:44:06 2014 +0000 Fix MinGW build. DONT_BUILD. From-SVN: r4754 commit bc3cd4e51e30cbc5bca1b02bc495f882877696f2 Author: Richard Gobeille Date: Sat Nov 22 12:34:46 2014 +0000 Fixups to sync WIP SDL refactor up with r4738. DONT_BUILD. From-SVN: r4753 commit 5bc11911a5f894a52e1021d3080823a553f25be3 Author: Richard Gobeille Date: Sat Nov 22 12:34:29 2014 +0000 Minor cleanups, mostly just formatting. DONT_BUILD. From-SVN: r4752 commit 55df557a5896b1b80c66eafa32829a047b92849d Author: Richard Gobeille Date: Sat Nov 22 12:34:11 2014 +0000 Add missing "break" to M_RunMenuInput(), revert android gltexapplyprops() menu fuckery. DONT_BUILD. From-SVN: r4751 commit 5faa74c02195e272bed415cadd6952355b729952 Author: Richard Gobeille Date: Sat Nov 22 12:33:57 2014 +0000 Fix _FORTIFY_SOURCE redefinition warning on Ubuntu's patched versions of GCC. DONT_BUILD. From-SVN: r4750 commit ee5223604e91fd576fd6446cc3b63e3b2925d591 Author: Richard Gobeille Date: Sat Nov 22 12:33:47 2014 +0000 WIP refactor of SDL interface. DONT_BUILD. From-SVN: r4749 commit 930fe888baaa4de4c0388358bac775c8e9195883 Author: Richard Gobeille Date: Sat Nov 22 12:33:15 2014 +0000 Clean up the sound remapping stuff... remove the bits relating to sounds we haven't actually used anywhere in the source directly. DONT_BUILD. From-SVN: r4748 commit b3f21ef11ff0a37df80dcc528e66517394e17452 Author: Richard Gobeille Date: Sat Nov 22 12:32:56 2014 +0000 Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD. From-SVN: r4747 commit 581f441a04f067b2b0ac78c0b6696ea2301e80e0 Author: Richard Gobeille Date: Sat Nov 22 12:29:38 2014 +0000 Get rid of -Wdeclaration-after-statement as we're only targeting C99 and C++ now. DONT_BUILD. From-SVN: r4746 commit 1e09c0d5c299317a9f4e0aa91c3910b3ee61af2d Author: Richard Gobeille Date: Sat Nov 22 12:29:25 2014 +0000 Mainly misc cleanups (and a fix for the C++ build), but there are a few important changes in here. VM_OnEvent() has become VM_OnEvent(), VM_OnEventWithReturn(), VM_OnEventWithDist(), and VM_OnEventWithBoth() (the latter of which is only ever used once...). Of course, this required every call to VM_OnEvent() be changed. memberlabel_t and vmstate_t have been changed to use the regular "int" type versus explicitly specifying int32_t as they did previously. The rationale for this change is simply that it looks cleaner, and I think we should move toward just using "int" in most cases where there's no particular reason to specify an explicit data type. Also changes CON_KILLIT to just "return" instead of "continue". DONT_BUILD. From-SVN: r4745 commit f12d31c7cab9dd10d640001a4d7bf433843f9542 Author: Richard Gobeille Date: Sat Nov 22 12:28:52 2014 +0000 Inline krand() when not using KRANDDEBUG. DONT_BUILD. From-SVN: r4744 commit 4ddc2b7ca3deff61f8404bce1a04ee7564eddfe7 Author: Richard Gobeille Date: Sat Nov 22 12:28:34 2014 +0000 Add FORCE_INLINE to compat.h and apply it to a couple of things we'd strongly prefer be inlined. DONT_BUILD. From-SVN: r4743 commit ab21e0f2453c3a7cdc682f45d60a0f7a3f3ec5b6 Author: Richard Gobeille Date: Sat Nov 22 12:28:21 2014 +0000 Add my _clang-format file to the repository. These options are pretty close to what most of our code already looks like, the primary difference being that it enforces spaces between operators and operands. I was initially opposed to the spaces, but I would be lying if I said they didn't increase legibility of much of our code, in addition to making it a lot easier to identify the specific intent in cases where we have a lot of expressions nested within one another. DONT_BUILD. From-SVN: r4742 commit dd352e1532b3ad8a88aa059d7a7305e8e9df0e29 Author: Richard Gobeille Date: Sat Nov 22 12:28:12 2014 +0000 Fix up conveyor belts. This fixes breakage of the movement in general, as well as corrects the general behavior of the effect so that a player on a moving surface is moved at a constant rate, regardless of whether the player crouches, is shrunk, etc. DONT_BUILD. From-SVN: r4741 commit e578c34a589a5eb70a1b56a6bb2e6963991034ec Author: Richard Gobeille Date: Sat Nov 22 12:27:57 2014 +0000 Fix Mapster32 fullscreen video modes. DONT_BUILD. From-SVN: r4740 commit 3263a9c075acba6fd57354b99d21952c56600fbc Author: Evan Ramos Date: Mon Nov 17 08:14:33 2014 +0000 Fix minor menu bugs. DONT_BUILD. From-SVN: r4739 commit 5c6d80d4ad76df46185dabc73fb896a40b0b3b45 Author: Evan Ramos Date: Mon Nov 17 07:39:12 2014 +0000 Set up mouse cursor display in menus, with idle timeout fully implemented. No functionality yet. DONT_BUILD. From-SVN: r4738 commit c21b2ba42f2e462bb268d59dd3b3543eb24b264e Author: Philipp Kutin Date: Fri Nov 7 22:07:14 2014 +0000 Fix C++ build. DONT_BUILD. From-SVN: r4737 commit 2f932b7466c8a3bb23c207ba25cedccbace8abac Author: Philipp Kutin Date: Fri Nov 7 22:07:13 2014 +0000 In release builds, #define Xaligned_alloc as xaligned_malloc. Otherwise, the out-of-memory handler is not called in case of failure. From-SVN: r4736 commit c6bfb3a204dcbed2a480a976dd08bfdd3742a9e3 Author: Philipp Kutin Date: Fri Nov 7 22:07:12 2014 +0000 C-CON: fix 'readgamearray' and 'resizearray' on Windows. We must not use Xrealloc(), since gamearrays are now allocated with Xaligned_alloc(). NOTE: I did not check all potential problematic cases, only those to get LNGA3 up and running. From-SVN: r4735 commit 6d553e66c51e361fca8ac2affe690a47b0ef79ea Author: Philipp Kutin Date: Fri Nov 7 22:07:12 2014 +0000 C-CON: fix 'readgamearray' on 64-bit platforms. Also prettify P_DisplaySpit(). From-SVN: r4734 commit 94a87b706ef12013a5c4d183d862b0e6b10b3aea Author: Philipp Kutin Date: Fri Nov 7 22:07:11 2014 +0000 a-c.c: don't USE_VECTOR_EXT with Clang, since it doesn't compile here. From-SVN: r4733 commit 40c8ed00d1fd1129757f0396b4247710befa4717 Author: Philipp Kutin Date: Fri Nov 7 22:07:10 2014 +0000 LunaCON: player[].loogcnt, userdef[].color, minor fixes. From-SVN: r4732 commit 1f9b3b381f315fbed24bafbd8b16bdd98db3c33a Author: Philipp Kutin Date: Fri Nov 7 22:07:07 2014 +0000 LunaCON: fix tilesizx[] and tilesizy[] system gamearrays. From-SVN: r4731 commit 657357249b8f4d9f9ea4db0b0a058d2b78cecc5b Author: Evan Ramos Date: Fri Nov 7 07:53:28 2014 +0000 Replace DOS box-drawing characters in the ASM with sane ASCII. DONT_BUILD. From-SVN: r4730 commit f3d801e7554865810815cfca2f437fab111b4908 Author: Philipp Kutin Date: Thu Nov 6 23:58:33 2014 +0000 Lunatic: some minor doc tweaks. DONT_BUILD. From-SVN: r4729 commit 717b33da2f4939ce8a77cdd8e4575725aedef171 Author: Philipp Kutin Date: Thu Nov 6 23:43:52 2014 +0000 Fix voxels in classic -- my error, confusing divscale() and mulscale() in r4576. Optimizations are left to the reader :P. I would prefer to look for ways of giving the compilers hints about loops to unroll instead of having to read the resulting mess of manual unrolling, though. From-SVN: r4728 commit 84ee71c93fc2d2e2b8b407b3be8d30d72009eade Author: Philipp Kutin Date: Thu Nov 6 23:43:51 2014 +0000 gameexec.c: In VM_OnEvent_, don't form address like &sprite[-1]. The practical rationale: Clang-sanitize catches this, so this is bad. The real rationale: I *think* it is undefined behavior to even form such a pointer in C99. However, I would be hard pressed to provide a nice formal argument in terms of the Standard wording right now. It looks like 6.5.3.2#4 is to blame. From-SVN: r4727 commit 713f7bf85886556769064623a6c120a000ae31eb Author: Philipp Kutin Date: Thu Nov 6 23:43:50 2014 +0000 engine.c: prevent an oob read in drawsprite_classic() w/ floor-aligned sprites. From-SVN: r4726 commit ec874510c28939847260b1ede652726fdcd0680c Author: Philipp Kutin Date: Thu Nov 6 23:43:49 2014 +0000 Fix oob write with stepping 'up' in the OSD history. From-SVN: r4725 commit 5eb551bb42eefae309b5fe40ae00bbb243afd917 Author: Philipp Kutin Date: Thu Nov 6 23:43:47 2014 +0000 baselayer.c: fix an oob write to ylookup[] intoduced in r4695. On Linux, it started manifesting itself since r4719 as crashes whose backtraces pointed to malloc() and were not helpful. Valgrind finally uncovered this. From-SVN: r4724 commit 96981e981222d6751ef2a192434d411161da1f39 Author: Richard Gobeille Date: Sun Nov 2 05:44:27 2014 +0000 Useless change I forgot. DONT_BUILD. From-SVN: r4723 commit f2f0806e489b1aa12353d1d37610c5e6445ee390 Author: Richard Gobeille Date: Sun Nov 2 05:38:57 2014 +0000 Sometimes I wonder why MSVC neglects to provide useful warnings. DONT_BUILD. From-SVN: r4722 commit aa25f80a8c385e9021a5fe1470f972884f8c4807 Author: Richard Gobeille Date: Sun Nov 2 05:36:53 2014 +0000 Minor tweaks to VM_OnEvent_(). DONT_BUILD. From-SVN: r4721 commit ba5c0fb302aa500a3d103d7adaa9621c5a1a8859 Author: Richard Gobeille Date: Sun Nov 2 05:36:41 2014 +0000 Remove references to nonexistent enet_mmulti.h from Visual Studio project. DONT_BUILD. From-SVN: r4720 commit 68e251767b70e3b59dab03fab8afa44973b6a687 Author: Richard Gobeille Date: Sun Nov 2 05:36:28 2014 +0000 Fix a handful of crash bugs I caused with the 32-bit ASM version of the classic renderer. DONT_BUILD. From-SVN: r4719 commit 4be47fdbab74655fb103f92e64e45e153c9d9824 Author: Richard Gobeille Date: Sun Nov 2 05:36:05 2014 +0000 Fix a crash I caused with MSVC in OSD_SetLogFile(). Apparently, the behavior of setvbuf() when passed a NULL ptr for a buffer is actually left up to the implementation regarding what it does with the size parameter... DONT_BUILD. From-SVN: r4718 commit b5027a42b1e151d7c1f7208ee9e60cdd46a2b56d Author: Richard Gobeille Date: Sun Nov 2 05:35:50 2014 +0000 Clean up classic renderer header (a.h) a bit. DONT_BUILD. From-SVN: r4717 commit c4a7cb8d1ebdf59e159a84e700690aac0caec064 Author: Richard Gobeille Date: Sun Nov 2 05:35:36 2014 +0000 A couple of additional compat.h formatting changes. DONT_BUILD. From-SVN: r4716 commit a101f34599ce84b2387b6ea6d2bc50bbf75d0440 Author: Richard Gobeille Date: Sun Nov 2 05:35:22 2014 +0000 clang-format a couple of pragma headers. DONT_BUILD. From-SVN: r4715 commit f0950de51c31f7d77a94069789cada118ac08e0d Author: Richard Gobeille Date: Sun Nov 2 05:35:06 2014 +0000 LUT for slope recip calculations in classic. DONT_BUILD. From-SVN: r4714 commit 64e2962914b79fbdc80afb95673affb08cbfa042 Author: Richard Gobeille Date: Sun Nov 2 05:34:49 2014 +0000 Fix a couple of Makefile errors Helixhorned noticed. DONT_BUILD. From-SVN: r4713 commit f69791fbf85e68486466b2f3b941bf4bfa64364d Author: Philipp Kutin Date: Sat Nov 1 18:01:28 2014 +0000 menus.c: prevent using a null pointer as arg to "%s" format for sprintf(). DONT_BUILD. From-SVN: r4712 commit 1d1e0a10f86062a56e5f2393f00eb1d6a6fbcf9d Author: Philipp Kutin Date: Fri Oct 31 21:09:26 2014 +0000 Add forgotten events_defs.h, oops. DONT_BUILD. From-SVN: r4711 commit dc9324c643adcc1babc8a9f11e6418e4d9e7e033 Author: Philipp Kutin Date: Thu Oct 30 21:44:22 2014 +0000 Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD. - Needed to rip out enum GameEvent_t into own header file to prevent what would be a circular #include otherwise - Added some forgotten #ifdef LUNATIC - updated structure and function declarations on the Lua FFI side From-SVN: r4710 commit e26c99d2d2770271d6b4aebd61ca28372d301152 Author: Philipp Kutin Date: Thu Oct 30 21:44:21 2014 +0000 C-CON: fix possible crash when a CON error is raised due to access of invalid sprite. For example, in CON_ERRPRINTF("invalid target sprite (%d) %d %d\n", iActor, vm.g_i, TrackerCast(vm.g_sp->picnum)); vm.g_i can be -1 and vm.g_sp can be NULL then. (Not anymore.) DONT_BUILD. From-SVN: r4709 commit 96cd91e9c2fa445fb0aa939acbff88fbcb25afd5 Author: Philipp Kutin Date: Thu Oct 30 04:59:23 2014 +0000 compat.h: pedantic whitespace formatting. DONT_BUILD. From-SVN: r4708 commit 3fa610e7e8caa47937609e4af03d7804feda7be5 Author: Richard Gobeille Date: Wed Oct 29 17:08:03 2014 +0000 Alter weapon switching to cycle through GROW_WEAPON when using next/previous weapon keys. DONT_BUILD. From-SVN: r4707 commit c136f815563ef4418007cce9ed922ec84cef3acc Author: Richard Gobeille Date: Wed Oct 29 17:07:47 2014 +0000 Default map zoom to something a bit more useful on Android. DONT_BUILD. From-SVN: r4706 commit b0805016ef64f03d523c4f99b2621f78650c4ee1 Author: Richard Gobeille Date: Wed Oct 29 17:07:35 2014 +0000 CPLUSPLUS mode build fix. DONT_BUILD. From-SVN: r4705 commit 5eadf025e22fbe1804a4f7bc7b033335a747a407 Author: Richard Gobeille Date: Wed Oct 29 17:07:21 2014 +0000 CPLUSPLUS mode by default in Makefile.common, C99 otherwise. DONT_BUILD. From-SVN: r4704 commit 52998f192445aefd63355590b30e6f582d006d97 Author: Richard Gobeille Date: Wed Oct 29 17:07:11 2014 +0000 Clean up some player code a bit... make bobposx/bobposy a vec2_t, make fricxv/fricyv a per-player vec2_t (TODO: CON access), promote angvel in input_t to int16_t and allow for player angle changes that result in odd numbered angles (we were effectively artificially limiting the angle to 1024 values before), fix some HUD model ID stuff that should help with the weapons in the HRP, clean up a bunch of random functions (P_FireWeapon(), P_DisplayTip(), P_DisplayAccess(), P_DisplayWeapon(), P_GetInput(), etc). Also clean up G_SetupFilenameBasedMusic() to loop through flac/ogg/mid when searching for usermap music replacements. Some of this really needs a BYTEVERSION bump, but these commits aren't for synthesis to build so we're not doing it yet. DONT_BUILD. From-SVN: r4703 commit 059ce6488e566478f7ba64caf638cac9e215edaa Author: Richard Gobeille Date: Wed Oct 29 17:06:43 2014 +0000 Try out __restrict in the classic renderer. #define'd for easy removal in case it causes problems or is useless. From-SVN: r4702 commit d48c6344d05d7281d90fe97b2204f90d79fcde13 Author: Richard Gobeille Date: Wed Oct 29 17:06:20 2014 +0000 Fix MSVC warning in Polymer From-SVN: r4701 commit 2fa4325272ea5eac931573ae902c5a76919c645b Author: Richard Gobeille Date: Wed Oct 29 17:06:05 2014 +0000 Inline yax_getbunches with old map format. DONT_BUILD. From-SVN: r4700 commit 250f97108e4cedf307aa19076af20a08e6468d0f Author: Richard Gobeille Date: Wed Oct 29 17:05:46 2014 +0000 More EDUKE32_PREDICT_FALSE, mostly in OSD_Printf(OSD_ERROR...) cases From-SVN: r4699 commit 4f57534583a70b5f52afd8afe1d1981f4b919247 Author: Richard Gobeille Date: Wed Oct 29 17:05:29 2014 +0000 Aligned gamevar/gamearray allocation From-SVN: r4698 commit 67960e86df8df0c6a28b684fda702a6acbae3a92 Author: Richard Gobeille Date: Wed Oct 29 17:05:15 2014 +0000 Fix a couple of clang warnings. DONT_BUILD. From-SVN: r4697 commit 487a72080cbf289302a2ab070e5dd6f312b679ba Author: Richard Gobeille Date: Wed Oct 29 17:04:43 2014 +0000 Unify spritesx/spritesy/spritez into a single vec3_t spritesxyz. It still has a stupid name like "spritesxyz" because I wanted references to it to remain easy to find in case of problems. From-SVN: r4696 commit 290ede94829c1ea86bc21c1f0b13cdec92df1fb0 Author: Richard Gobeille Date: Wed Oct 29 17:04:28 2014 +0000 Get rid of all the static arrays with sizes based on MAXXDIM and MAXYDIM From-SVN: r4695 commit 5fbf6bea480467efa5856dfe7f70568333bcc338 Author: Richard Gobeille Date: Wed Oct 29 17:04:03 2014 +0000 Remove -DNO_GCC_BUILTINS, set _FORTIFY_SOURCE to 0. From-SVN: r4694 commit 644bd8d9f780aea74929bbfaac88ec336750c66e Author: Richard Gobeille Date: Wed Oct 29 17:03:50 2014 +0000 Android updates from Emile. DONT_BUILD. From-SVN: r4693 commit 6f4d9623e20a635577dfc8b2a4205cc399fa9d4d Author: Richard Gobeille Date: Wed Oct 29 17:03:29 2014 +0000 Minor additional pragma cleanup From-SVN: r4692 commit ea94a5739a588e30fd0dc7b6e1728d974f8bf042 Author: Richard Gobeille Date: Wed Oct 29 17:03:06 2014 +0000 Add missing "inline" to const TrackedType() From-SVN: r4691 commit be7c8001342a9351ad68f74840ea25c1e981c64b Author: Richard Gobeille Date: Wed Oct 29 17:02:50 2014 +0000 Fix a couple warnings, and something I fucked up after reading a loop wrong. DONT_BUILD. From-SVN: r4690 commit 8dfa145dbf23f5be0eb060fe54302f585a0a6009 Author: Evan Ramos Date: Tue Oct 28 20:46:14 2014 +0000 Fix the menu animations so that they are what I actually intended. DONT_BUILD. From-SVN: r4689 commit b191efdfb79e49f5ea488cfcca90c069affb485b Author: Evan Ramos Date: Mon Oct 27 10:14:50 2014 +0000 Menu transition animations. DONT_BUILD. From-SVN: r4688 commit 1a71ef8694c9c2291c04efa1dc8d40375b1c293e Author: Evan Ramos Date: Mon Oct 27 07:24:37 2014 +0000 Two files forgotten in the previous commit. DONT_BUILD. From-SVN: r4687 commit fab0e3ae352d4e18c03a22ccf4d5019e162323dc Author: Evan Ramos Date: Mon Oct 27 07:09:41 2014 +0000 Update the menu code so that everything drawn to the screen is relative to an origin point, which for now remains zero. The three things using windowx/y hackery to crop tiles (user map menu background, color correction panels, automatic scrolling indicators) have been rewritten not to, so that the origin point would work properly with them. All three are slightly different now. The changes are more extensive than you might predict, because I had to modify every rotatesprite/*text call to add its coordinates (shifted left by 16 if they weren't already) to the origin point. DONT_BUILD. From-SVN: r4686 commit efbd2f594f28ecaa9e12b8010a84b78860e0972a Author: Evan Ramos Date: Sat Oct 25 10:17:35 2014 +0000 Improve fine-grained GCC and clang version detection, fixing recently introduced build issues. DONT_BUILD. From-SVN: r4685 commit e797121c4c52aa9c44a5a48e0c8e8e808f35654f Author: Evan Ramos Date: Sat Oct 25 10:17:15 2014 +0000 Update Makefile.common to work with devkitPPC r27. DONT_BUILD. From-SVN: r4684 commit 6a85043d044b4e21ec6759a1763862713df4d102 Author: Evan Ramos Date: Sat Oct 25 10:17:04 2014 +0000 Remove Wii-specific ASM for scale(). Libdivide is likely faster; tests on a real Wii pending. DONT_BUILD. From-SVN: r4683 commit 389bbead9bda0553faac2c68e95ee03e84a70046 Author: Evan Ramos Date: Sat Oct 25 10:16:49 2014 +0000 Fix a few lingering issues with recent menu changes. DONT_BUILD. From-SVN: r4682 commit 800eb4fb0d3725af894afb5f7139e4e79cb13a86 Author: Richard Gobeille Date: Sat Oct 25 03:36:50 2014 +0000 Re-apply part of r4647. DONT_BUILD. From-SVN: r4681 commit c2cfb404d61edc514cad41a35a7c625e742b0140 Author: Richard Gobeille Date: Sat Oct 25 03:36:34 2014 +0000 Another 5000 lines of pain and tears. DONT_BUILD. From-SVN: r4680 commit 27bc4811b5de0d10d0e2a87749fd8c900e249447 Author: Richard Gobeille Date: Sat Oct 25 03:35:21 2014 +0000 Hi-res security viewscreens From-SVN: r4679 commit 53a867acaed71ebf2ed4ebde8a341567e164556e Author: Richard Gobeille Date: Sat Oct 25 03:35:05 2014 +0000 Minor OSD_Exec() tweaks that got lost when chopping up a larger set of changes From-SVN: r4678 commit 75d51a7512d4d305b5a944c36cd53800bbcf4741 Author: Richard Gobeille Date: Sat Oct 25 03:34:50 2014 +0000 Forgot this in a previous commit, just removes a function prototype I moved elsewhere From-SVN: r4677 commit 3f2cc55d6f3ae898659f08cdb3db597a9bfa2c83 Author: Richard Gobeille Date: Sat Oct 25 03:34:38 2014 +0000 Fix in-game sound menu (F4) From-SVN: r4676 commit 657e2c6b61a93080be58210eedc4f767edda8d14 Author: Richard Gobeille Date: Sat Oct 25 03:34:25 2014 +0000 Minor engine optimizations, worth a couple fps From-SVN: r4675 commit aaf8fd0be449ae1c22772b9573596a90dab6719a Author: Richard Gobeille Date: Sat Oct 25 03:34:08 2014 +0000 Fix warning in dxtfilter From-SVN: r4674 commit befb99c2796e23d3bf009ca739d076032d5e3732 Author: Richard Gobeille Date: Sat Oct 25 03:33:53 2014 +0000 Rename VM_OnEvent to VM_OnEvent_ and add move the checks for whether the event is actually defined or not to a wrapper declared static inline From-SVN: r4673 commit 4737a2595bf1dfa860db85fbde85781e31d38be7 Author: Richard Gobeille Date: Sat Oct 25 03:33:38 2014 +0000 Adjust default security camera refresh times From-SVN: r4672 commit 0615d5d7ce0755ebdec275fe3296c8fe96e2a823 Author: Richard Gobeille Date: Sat Oct 25 03:33:26 2014 +0000 vec2f_t drawpoly() From-SVN: r4671 commit 574a704c7973bbc593c54737f81a9aee88505d62 Author: Richard Gobeille Date: Sat Oct 25 03:33:11 2014 +0000 kplib warning fix. I admit to not testing this, because fuck .gif files. From-SVN: r4670 commit 026998fd942d69e39afaa505cf71cdf65717ca44 Author: Richard Gobeille Date: Sat Oct 25 03:32:57 2014 +0000 Fix warnings in texcache From-SVN: r4669 commit 9f2277c0bc334b5d6464de086e802022deafb5f6 Author: Richard Gobeille Date: Sat Oct 25 03:32:42 2014 +0000 Mapster32 build fix From-SVN: r4668 commit c6cbf0038d6abb8a6704c64a9a24a970c5f49f4f Author: Richard Gobeille Date: Sat Oct 25 03:32:26 2014 +0000 set_globalpos(), updates both integer (globalposx/y/z) and float (fglobalposx/y/z) representations of the current camera view position. Storing the float representation pre-converted saves us from the delay incurred on ARM when converting an integer and transferring it to the FPU, though this delay is mostly negated already by using the hardfp ABI. From-SVN: r4667 commit c025e8a4f46da324715cb9bf51f8c72a37c97a5b Author: Richard Gobeille Date: Sat Oct 25 03:32:01 2014 +0000 Minor texcache cleanup. Nukes the hilarious MAXTILES<<1 sized array of pointers in the global texcache struct. From-SVN: r4666 commit a1be5bebc95d1763a5e79b5c46cec3abe60c4041 Author: Richard Gobeille Date: Sat Oct 25 03:31:41 2014 +0000 Minor optimizations (loop unrolling) to LZW functions in cache1d, improves throughput ~20% on my i7 From-SVN: r4665 commit 4f605e753edb6f7e25556f054c0e76b9bf35a463 Author: Richard Gobeille Date: Sat Oct 25 03:31:27 2014 +0000 Fix some dumbass warnings I caused From-SVN: r4664 commit 7a6c43323522bbbc04b5d35f62e73302a1898190 Author: Richard Gobeille Date: Sat Oct 25 03:31:12 2014 +0000 Nuke unused lzwnew.c/h From-SVN: r4663 commit 634c1ef19e33006a03b53ef28c45726c3fad788a Author: Richard Gobeille Date: Sat Oct 25 03:30:51 2014 +0000 if 0 the input check at the beginning of animation playback as it seems to cause some cutscenes to be skipped. From-SVN: r4662 commit 1c16fbe13c00330c77182012fd48a70bcb7e36c4 Author: Richard Gobeille Date: Sat Oct 25 03:30:38 2014 +0000 Additional engine cleanups and optimizations. About as generic as it sounds. Also changes internal dummytile/tilefromtexture behavior so that the LZ4 compressed version of a texture is kept and the cache1d entries associated with the tiles can expire, like any other tile. From-SVN: r4661 commit 5a9602ffd23d7529c105c56e23611836fe5696bd Author: Richard Gobeille Date: Sat Oct 25 03:29:53 2014 +0000 Rewrite OSD_Exec() to allow executing a .cfg that lives in a .grp or .zip. Use _IOLBF instead of _IONBF for the log in release builds. From-SVN: r4660 commit c3052d9b59388aad04714a40c06bf5af8eb466ce Author: Richard Gobeille Date: Sat Oct 25 03:29:38 2014 +0000 Fix a couple of botched FindDistance3D calls From-SVN: r4659 commit 1d74df43da270d391524b8589d1eb2da28be8151 Author: Richard Gobeille Date: Sat Oct 25 03:29:21 2014 +0000 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. From-SVN: r4658 commit 8bb613f485bbc05f86e58497097d636b0206bba7 Author: Richard Gobeille Date: Sat Oct 25 03:27:50 2014 +0000 Fix r4643, NUM_HARDCODED_ANIMS was increased for a reason. DONT_BUILD. From-SVN: r4657 commit 415a95eceb80a8b7d948f1e72cf0697513a4e666 Author: Richard Gobeille Date: Sat Oct 25 03:27:35 2014 +0000 Additional Polymost cleanup, attempt to fix enemy shadows (they are still not right) From-SVN: r4656 commit 20bc39d279606778596192d5f62e8a0ae006eb03 Author: Richard Gobeille Date: Sat Oct 25 03:27:13 2014 +0000 Fix a bug where if you had a savegame with an active viewscreen, the tile in the world wouldn't update until totalclock > what totalclock was when the game was saved. From-SVN: r4655 commit 1be612fd864ccfd506b1ad08c401d712967fc40f Author: Richard Gobeille Date: Sat Oct 25 03:27:01 2014 +0000 Fix up some incorrect PWEAPON macro usage From-SVN: r4654 commit 63f278a85694f25e37511eb45c2f28d300459839 Author: Richard Gobeille Date: Sat Oct 25 03:26:46 2014 +0000 Nuke MFLAGS_NOCONV, hoist a few conditions out of loops in Polymost model drawing From-SVN: r4653 commit ef080aa5015810af4191dd9750ca82f472e91983 Author: Richard Gobeille Date: Sat Oct 25 03:26:31 2014 +0000 Fix z fighting issues with wall and floor sprites. This isn't perfect, and somebody like Plgman or Helixhorned who better understands how the depth buffer positions are calculated will be able to do a much better determination of how much to offset the glDepthRange values based on distance to the sprite. From-SVN: r4652 commit 48f50d987e9c09aa42d2f0fa5c89a263a0baf8a1 Author: Richard Gobeille Date: Sat Oct 25 03:26:13 2014 +0000 That's one hell of a typo From-SVN: r4651 commit ff519eec52cce3b40b2adaf5f0d6c63c4691f151 Author: Richard Gobeille Date: Sat Oct 25 03:25:57 2014 +0000 Tie a few random things previously hardcoded to p->curr_weapon == KNEE_WEAPON to curr_weapon being a weapon with a workslike of KNEE_WEAPON instead, and do the same with stuff hard coded for HANDREMOTE_WEAPON From-SVN: r4650 commit 769b601ca3ea63369ab4474f09d3825516285222 Author: Richard Gobeille Date: Sat Oct 25 03:25:35 2014 +0000 Clean up GL background tinting a little bit. Remove access to glRectd in favor of glRecti. From-SVN: r4649 commit 812a26afd780e1f1bba49f4977b729719a19b0b6 Author: Evan Ramos Date: Mon Oct 20 07:37:29 2014 +0000 Further work on the Xcode project. From-SVN: r4648 commit fe2c61637afafc8971864959cfeb3f5967998397 Author: Evan Ramos Date: Sun Oct 19 00:44:23 2014 +0000 Fix the Wii build and clean up remaining warnings. DONT_BUILD. From-SVN: r4647 commit bfd5a6535df965ae382724af81a9a8f4b9abe77b Author: Evan Ramos Date: Sat Oct 18 04:50:47 2014 +0000 OS X: Add a preliminary Xcode project. DONT_BUILD. From-SVN: r4646 commit b864b8c9693f9f15f383c18f60ddde41098b9fd5 Author: Evan Ramos Date: Thu Oct 16 22:21:00 2014 +0000 Fix warnings in menus.c. DONT_BUILD. From-SVN: r4645 commit 4e0fea7dda3bab246252ad6323c5e27847a439e9 Author: Evan Ramos Date: Thu Oct 16 21:03:24 2014 +0000 Clean up warnings and build issues when building under OS X 10.9. DONT_BUILD. From-SVN: r4644 commit 5467f4835c2883d9a60dad69b3eb32f8dca53819 Author: Philipp Kutin Date: Sun Oct 5 18:32:59 2014 +0000 Fix an oob access in parsedefinitions_game(). DONT_BUILD. From-SVN: r4643 commit c6a500fae7090836beeb6465903a3f240f6564fa Author: Richard Gobeille Date: Wed Oct 1 17:09:54 2014 +0000 Rename crc32() to Bcrc32() to avoid conflicts with the crc32() function in libpng/libz. DONT_BUILD. From-SVN: r4642 commit c4b20e4518fd3764f99b94fb64abad363b568e8d Author: Richard Gobeille Date: Wed Oct 1 17:09:24 2014 +0000 Set SDL_GL_ACCELERATED_VISUAL to 1 From-SVN: r4641 commit 24f4be89a0e46f53870acf8ea3763673c403c70e Author: Richard Gobeille Date: Tue Sep 30 18:18:15 2014 +0000 I'm retarded. DONT_BUILD. From-SVN: r4640 commit 0066380c0b8013c0f2adcc9eb373ffa0dc29e24f Author: Richard Gobeille Date: Tue Sep 30 04:18:43 2014 +0000 Misc additional optimizations, mostly to polymost/mdsprite. Also separate voxmodel into its own source file and object. This commit is pretty large because I was hitting the limit of what could realistically be carved up into smaller patches. DONT_BUILD. From-SVN: r4639 commit 0d09049d2b82c2eccacecd9187307070057ec5f2 Author: Richard Gobeille Date: Tue Sep 30 04:18:07 2014 +0000 Fix usage of uninitialized value From-SVN: r4638 commit 8a297082b394131d02520bc0ca22c5537e4f01c9 Author: Richard Gobeille Date: Tue Sep 30 04:17:53 2014 +0000 Re-use temporary buffer for tilefromtexture true color -> paletted conversion and free when finished with the .def instead of freeing and re-allocating for every tile From-SVN: r4637 commit 130a9886a354889b082f29e30f2fa2fa5fcd2f0c Author: Richard Gobeille Date: Tue Sep 30 04:17:37 2014 +0000 polymost_invsqrt(), reorganize pthtyp for better member alignment From-SVN: r4636 commit 28a8367e6934779c3693a62852edad79d4c63b11 Author: Richard Gobeille Date: Tue Sep 30 04:17:22 2014 +0000 Faster C versions of ksgn() and klabs() From-SVN: r4635 commit 80454c3f575c3685d93df42ad25a26911d464d5b Author: Richard Gobeille Date: Tue Sep 30 04:17:06 2014 +0000 kplib optimizations and cleanup; faster versions of some functions, #ifdef out support for a couple of useless formats From-SVN: r4634 commit df738b0f40026349a28c2901f8bd88ec2db3526b Author: Richard Gobeille Date: Tue Sep 30 04:16:47 2014 +0000 I thought I was clever, MinGW thought I should eat shit. From-SVN: r4633 commit 14b55ac33a795189f156b2cca551441929b1db70 Author: Richard Gobeille Date: Tue Sep 30 04:16:35 2014 +0000 Blrintf From-SVN: r4632 commit 84dd4fabc5438e5c5dc2e2a198407929573d962f Author: Richard Gobeille Date: Tue Sep 30 04:16:21 2014 +0000 Gamevar cleanup: drop "register" qualifiers, shuffle a few things around. From-SVN: r4631 commit 8a39b108e04663293957a93f8f220d62be26533e Author: Richard Gobeille Date: Tue Sep 30 04:16:06 2014 +0000 Suppress tile and sound remapping debug output in debug builds when not using -condebug From-SVN: r4630 commit 55e4f64c4015837250af11d54fe6b3164457876b Author: Richard Gobeille Date: Tue Sep 30 04:15:53 2014 +0000 Add assertion for memory error handler in debug builds, add .def load time information to log, call Gv_ResetSystemDefaults() at startup to populate fake tilesizx/tilesizy arrays for CON From-SVN: r4629 commit 2e7c8c3d41f2a7dfb11c07ecc4b2880b5a9f645e Author: Richard Gobeille Date: Tue Sep 30 04:15:41 2014 +0000 Free h_labels table when done compiling CONs From-SVN: r4628 commit 9908fa6a609144fa5b10cca1b589a9df6e7ceff7 Author: Richard Gobeille Date: Tue Sep 30 04:15:29 2014 +0000 CON VM: get rid of extra VM_Execute() calls on CON_LEFTBRACE and get rid of returns on CON_RIGHTBRACE From-SVN: r4627 commit b90e91420ac0abc3919fe48e4642aa32f3925479 Author: Richard Gobeille Date: Tue Sep 30 04:15:17 2014 +0000 Optimize .anm playback; update frames on screen at the .anm's framerate instead of blindly looping as fast as possible From-SVN: r4626 commit c9f6c486f44ca404715513c7258b5b67839f3524 Author: Richard Gobeille Date: Tue Sep 30 04:15:04 2014 +0000 Faster CRC32 implementation (slicing-by-4 for 32-bit platforms and slicing-by-8 for 64-bit) From-SVN: r4625 commit 738eac212687582c60634d6f4075a42e27a069f5 Author: Richard Gobeille Date: Tue Sep 30 04:14:35 2014 +0000 Use option name for menubar title for options that display as a separate menu page with a scrolling list From-SVN: r4624 commit ef4151712b1732f4ce8f2d6f76e095953974ed34 Author: Richard Gobeille Date: Tue Sep 30 04:14:21 2014 +0000 More Polymost cleanup, also consolidate tilesizx and tilesizy into a single tilesiz vec2_t to ensure both x and y are always in the same cache line. I may add a new vec2_16t later. Still need to take care of emulating the old flat array for the sake of CON access. From-SVN: r4623 commit ef3f0340ac49853943c6fd87dc4e5016355215a8 Author: Richard Gobeille Date: Tue Sep 30 04:13:14 2014 +0000 r_showfps 2, displaying min and max fps From-SVN: r4622 commit 6db136d7abeafbf6680dde57affbfc3efda9d6c2 Author: Richard Gobeille Date: Tue Sep 30 04:12:57 2014 +0000 Remove some #if 0'd functions from audiolib From-SVN: r4621 commit 58c8320af7d266cc6e8080b909897fbc265f8974 Author: Richard Gobeille Date: Tue Sep 30 04:12:41 2014 +0000 Fix build error From-SVN: r4620 commit 17734ea338ce8162e02e87c9663cb5345a6f24f9 Author: Richard Gobeille Date: Tue Sep 30 04:12:27 2014 +0000 Clean up the "X" variants of malloc and friends to avoid unncessary function calls and parameter passing From-SVN: r4619 commit 41e0b5f697737ae2e64d9d0c1d18b0a804942f45 Author: Richard Gobeille Date: Tue Sep 30 04:12:09 2014 +0000 Make glColor3f() available as bglColor3f() From-SVN: r4618 commit a41cf27a981dcd9e0e1ad6bd1af682e07dd56837 Author: Richard Gobeille Date: Tue Sep 30 04:11:50 2014 +0000 Remove "volatile" qualifier from mouse related variables, no longer required after the long ago removal of the hack that polled mouse input in a separate thread From-SVN: r4617 commit a68579902c46c088feee8438dcbf034bece8a313 Author: Richard Gobeille Date: Tue Sep 30 04:09:03 2014 +0000 Next time I'll test with sound enabled when attempting to fix a warning in audiolib ;) From-SVN: r4616 commit 4615a03a49843ba25bb3c95b295f5b965bc589a0 Author: Richard Gobeille Date: Tue Sep 30 04:08:47 2014 +0000 Add new headers to VS project From-SVN: r4615 commit ef532c7f6b9ac0a1b477115b962f6e458a155ea5 Author: Richard Gobeille Date: Tue Sep 30 04:08:35 2014 +0000 Respect ud.bgstretch when displaying the title screen during netplay From-SVN: r4614 commit 702989d4e1a27b427ae183bccafbc75640ef3fed Author: Richard Gobeille Date: Tue Sep 30 04:08:23 2014 +0000 On Android, remove the counter that automatically proceeds from the startup screen to the main menu and require a button press instead. From-SVN: r4613 commit cae6c80626264a1ade4d81ee1f28e5c59b7eb816 Author: Richard Gobeille Date: Tue Sep 30 04:08:10 2014 +0000 Don't display QUOTE_F1HELP on Android when starting a new game with the shareware version. From-SVN: r4612 commit 0cb20ef65e354aefaba866a0905a71df6a8f316b Author: Richard Gobeille Date: Tue Sep 30 04:07:57 2014 +0000 Change vid_brightness/contrast/gamma cvars to float vs double and do the same for OSD text scaling From-SVN: r4611 commit f90688a2505f6743cf0da84af486916b7732717a Author: Richard Gobeille Date: Tue Sep 30 04:07:41 2014 +0000 Allow loading the header from savegames with a different version. This is needed to allow starting a new game on the episode/level/skill saved in an incompatible savegame. From-SVN: r4610 commit 225e6ae6e5347a0058fd35c4b0f1f7c75cc9803f Author: Richard Gobeille Date: Tue Sep 30 04:07:29 2014 +0000 WIP menu restructuring and updates. Revolt is in the air... From-SVN: r4609 commit 17eeccef301d2bb1fd3af2bf82a2b961b549e0da Author: Richard Gobeille Date: Tue Sep 30 04:07:14 2014 +0000 Fix a compile warning From-SVN: r4608 commit 5f2a0814a922418921ada99f594dd8575987ea01 Author: Richard Gobeille Date: Tue Sep 30 04:06:57 2014 +0000 Extra files for previous commits From-SVN: r4607 commit 6a0928d43f99551e50ba7425c2361a233d44f2b8 Author: Richard Gobeille Date: Tue Sep 30 04:06:32 2014 +0000 Extra files to support previous commits. Change hashing stuff to intptr_t so it can be used as a dictionary of pointers, change brightness/gamma/contrast to float instead of double, other misc changes. None of these commits build on their own so don't even bother. From-SVN: r4606 commit b025570fa4ea5e27e0f16057409264bc2378a02c Author: Richard Gobeille Date: Tue Sep 30 04:06:05 2014 +0000 First commit for "Polymost.f", the single precision floating point conversion and optimization of Polymost. This work was primarily done for ARM but it also doubled the framerate on "Clear the Coast" on my i7. From-SVN: r4605 commit 94c66a38867b8cc18863e760c4c4a3303c556853 Author: Richard Gobeille Date: Tue Sep 30 04:05:40 2014 +0000 Remove a few unused things (tmulscale, etc) from the pragmas.h family of headers From-SVN: r4604 commit 70a4cd978540c788a622333bc432284a525432ba Author: Richard Gobeille Date: Tue Sep 30 04:05:19 2014 +0000 Default r_osdhightile to 1 From-SVN: r4603 commit 2e23da7ed41c5a176ee9681e91a17184a5b5d2ce Author: Richard Gobeille Date: Tue Sep 30 04:05:07 2014 +0000 Misc Android changes and fixes, add alternate HUD mode that displays at the top of the screen, add support for replacing the DREALMS tile during startup with a 3dr.anm/3dr.ivf, fix usage of widescreen menu background or status bar tiles, limit - key from actually sizing down the screen (which has decreased performance instead of increasing it for a long, long time). The size can still be set manually from the console for special cases. From-SVN: r4602 commit 86e1ffa36d2d08b8b5889b47d2c2ff6c03b54586 Author: Richard Gobeille Date: Tue Sep 30 04:04:53 2014 +0000 pragmas.h cleanup part 1: separate into pragmas.h, pragmas_arm.h, pragmas_ppc.h, pragmas_x86_gcc.h and pragmas_x86_msvc.h. Remove "boundmulscale" as it was unused. From-SVN: r4601 commit 65ce8e1d79d833df7d906e6c39954eafa979254f Author: Richard Gobeille Date: Tue Sep 30 04:04:30 2014 +0000 Minor polymer changes... reuse allocated _prplanelist structs to avoid potentially thousands of malloc calls per frame rendered, clean up "searchit == 2" functionality, move sector light invalidation to sector updates instead of wall updates (avoids a ton of unnecessary function calls), other minor changes From-SVN: r4600 commit d24225913b3035a8dcd895a36933e6fda58360b3 Author: Richard Gobeille Date: Tue Sep 30 04:04:12 2014 +0000 Update xxhash to r36 From-SVN: r4599 commit 4571ffd070c4527b9540e909b11a9a110a60a8a9 Author: Richard Gobeille Date: Tue Sep 30 04:03:54 2014 +0000 Move USE_LIBVPX definition to correct location in Makefile.msvc From-SVN: r4598 commit 124f9740eb82ebd68ec47ca1ea85a49348e0d303 Author: Richard Gobeille Date: Tue Sep 30 04:03:44 2014 +0000 JPG overrun fix from 6/10/14 kplib.c found in poly2vox.zip From-SVN: r4597 commit d9f7c616a5554963b2650dbe336701d998745636 Author: Richard Gobeille Date: Tue Sep 30 04:03:30 2014 +0000 Allow old version savegames to "load" by just starting a new game on the volume, level and skill written in the savegame header. From-SVN: r4596 commit 2e5443924260c5f5d6ed63a57354befaabfbcc7a Author: Richard Gobeille Date: Tue Sep 30 04:03:17 2014 +0000 HUD on the top of the screen and extra wide autoaim mode for Android From-SVN: r4595 commit 8c91a948ee5ea4830f48f3371507dd3f7de816da Author: Evan Ramos Date: Tue Sep 30 03:53:14 2014 +0000 Update the known locations of the addons in a Megaton installation. DONT_BUILD. From-SVN: r4594 commit eab26ce227f3e4dc5f632d05cd3d935985293e53 Author: Philipp Kutin Date: Sun Sep 7 18:10:18 2014 +0000 astub.c: fix warnings with CPLUSPLUS=1 related to forgotten TrackerCast(). From-SVN: r4593 commit 28f6684aebd5c40832615ad10732dcd5828d56a6 Author: Philipp Kutin Date: Sun Sep 7 18:10:18 2014 +0000 Fix taking over floor pal in the unlikely event that no fog pals are defined. This DOES NOT fix the more complex issue discussed at the forums. From-SVN: r4592 commit bb15d3d84adc89814daf9b370e223f3734f19838 Author: Philipp Kutin Date: Sun Sep 7 18:10:17 2014 +0000 Makefile: on 'clean' target, unconditionally rm -f game Lunatic objects. The 'clean' and 'veryclean' targets are usually run without environment options. It is preferable if they clean out all object files that are possible with any. From-SVN: r4591 commit 12bc8043843de654c29373dd00d756a0b3c09ef9 Author: Philipp Kutin Date: Sun Sep 7 18:10:16 2014 +0000 Lunatic: add actor.move() static function and documentation stub. From-SVN: r4590 commit b85b23e5c173edefbd9acfa7628986255d0e2ab1 Author: Philipp Kutin Date: Sun Sep 7 18:10:15 2014 +0000 For usermaps, save and restore currently playing music index with savegames. The volume and level number for the music are stored in the last two bytes of the board file name array. No version bump is required. From-SVN: r4589 commit 148410da60b70ab56baf085e7d08863d88f3cf85 Author: Philipp Kutin Date: Sun Sep 7 18:10:14 2014 +0000 Get rid of EnvMusicFilename[] and use MapInfo[].musicfn for that. The additional space was there all the time, so it's not understandable why another array was necessary. CON: for 'music', error if volume number is outside [0 .. MAXVOLUMES+1], and in LunaCON, additionally warn if it's MAXVOLUMES+1 (0 is preferred for that). From-SVN: r4588 commit dbe17e387576c66d8900914c5b411013c19134da Author: Philipp Kutin Date: Sun Sep 7 18:10:13 2014 +0000 Allow DEFining music for which there is no CON music; Add 'music' OSD command. The OSD command is invoked like "music E5L3" (case insensitively). From-SVN: r4587 commit d04e5147ca3d2a14e1fb50b6677e9c431f2208ce Author: Philipp Kutin Date: Sun Sep 7 18:10:12 2014 +0000 More music-related cleanup. From-SVN: r4586 commit 03d78cab31753fed03436ea64dd353426322ecf0 Author: Philipp Kutin Date: Sun Sep 7 18:10:09 2014 +0000 Some cleanup around S_PlayMusic() and related functionality. From-SVN: r4585 commit 371ed93d3ca157cc78bed9b4127cdbd3d29a7998 Author: Philipp Kutin Date: Sun Aug 31 11:15:23 2014 +0000 Fix USE_OPENGL=0 build. From-SVN: r4584 commit 6b58e16110f8a3176d4800399c5c45df951db244 Author: Philipp Kutin Date: Sun Aug 31 11:15:22 2014 +0000 LunaCON: implement 'qsubstr' command. Add source/lunatic/test/qsubstr.con. In C-CON's qsubstr, error if is not in [0 .. MAXQUOTELEN-1] or is negative. From-SVN: r4583 commit a405b21bd73c7238f03368803df0c29e5e6e57f7 Author: Philipp Kutin Date: Sun Aug 31 11:15:21 2014 +0000 Fix crash using INTERNAL DEFAULTS after CON error when CON modules were given. From-SVN: r4582 commit 654cee8ae2d3fc83b653e3cf32c1d55d2b448a4c Author: Philipp Kutin Date: Sun Aug 31 11:15:20 2014 +0000 LunaCON: ignore internal flag in gamevar redef check; allow "Pals" member. From-SVN: r4581 commit 70b0a2e887e10b7a0fe10b9413a043fca893f3ab Author: Philipp Kutin Date: Sun Aug 31 11:15:19 2014 +0000 Mapster32: demote wall check "corruptions" introduced in r4569 to level 2. The winding of a loop -- with clockdir() -- is determined by examining the two line segments spanned between the points following a leftmost point of the loop. If the loop contains a leftmost point that belongs to the "right" side (as can happen with sliding door constructions), there's a chance that an outer loop is misclassified. From-SVN: r4580 commit 6bddbd780684adebe387433f215da9d55bbfea4c Author: Philipp Kutin Date: Sun Aug 31 11:15:17 2014 +0000 Factor out [l]dist() implementations into static inline functions in common.h. And use these in jmact/mathutil.c's FindDistance2D()/FindDistance3D(). The main use is to allow passing dx/dy instead of sprite positions; the code that actually uses this is not committed. From-SVN: r4579 commit 244567b5f5932d0f6ace3bfdfd457d5acec05cd4 Author: Philipp Kutin Date: Sat Aug 23 10:28:18 2014 +0000 Classic: introduce two signed integer types, use in engine.c and a-c.c. They classify former uses of int64_t into two classes: - coord_t: those that represent coordinates and need 64-bit precision for proper functioning with large values - inthi_t: those that were added for e.g. casts merely to prevent undefined behavior on overflow DONT_BUILD. From-SVN: r4578 commit 01c8befa325e5c83c43d70b68fef9f0e6781c659 Author: Philipp Kutin Date: Sat Aug 23 10:28:17 2014 +0000 pragmas.h: introduce preprocessor switch USE_ASM_DIVSCALE, for testing only. From-SVN: r4577 commit d0f56cac5ec6a57f4fa583133dc0e56fbfed136b Author: Philipp Kutin Date: Sat Aug 23 09:00:36 2014 +0000 engine.c: prevent a 64-bit multiply in dosetaspect(). DONT_BUILD. From-SVN: r4576 commit 60cfbe9ec1c5c7817b06a53645a844f2190acc51 Author: Philipp Kutin Date: Wed Aug 20 17:58:21 2014 +0000 Amend r4378 to hopefully make "stuck in water" fix work properly. NOTE: lizmen may walk on water. I don't yet know why. From-SVN: r4575 commit 95b2a7df414162f314d1c779dce98979c771afb9 Author: Philipp Kutin Date: Sun Aug 17 19:42:01 2014 +0000 Properly consider sprites with a clipshape as bridge (p->spritebridge). From-SVN: r4574 commit d553526ca965a08b0dd6da2ab3f2f2ba1d4c91bf Author: Philipp Kutin Date: Sat Aug 16 18:32:49 2014 +0000 Mapster32: fix a crash when m32_settings.cfg contains video setting. Such as "vid_gamma". In that case, setbrightness() would have been called without basepaltableptr having been initialized. The fix is by moving the preparational setbasepaltable() call from ExtPostStartupWindow() to ExtInit(), just before the OSD command dispatching. From-SVN: r4573 commit 88348668b94ad146e0b63af5976e7e01a6c0b5b3 Author: Philipp Kutin Date: Sat Aug 16 18:32:47 2014 +0000 Mapster32: fix possible integer overflow in loopinside(). This could happen when building outside the "classic" grid limits and would then lead to e.g. incorrect loop assignment on sector splitting. Bug reported by MetHy. From-SVN: r4572 commit 3485d35ff4b53e66caa0f314e249878536358e90 Author: Philipp Kutin Date: Fri Aug 8 20:02:56 2014 +0000 game.c: fix -game_dir and -j by moving G_ExtInit() after G_CheckCommandLine(). From-SVN: r4571 commit 81dd5ebd0f9f19e9ca0afa3796789d65d72d2900 Author: Philipp Kutin Date: Fri Aug 8 20:02:55 2014 +0000 LunaCON: properly initialize values of session (NODEFAULT) gamevars. From-SVN: r4570 commit 87dcaf5952af0b2e734747083dba51a3f6972de6 Author: Philipp Kutin Date: Fri Aug 8 20:02:54 2014 +0000 Mapster32: prototypical checker for wall loops, enabled partially. Inspired by http://forums.duke4.net/topic/7506-tror-question/page__view__findpost__p__199151 the corruption checker now checks for certain conditions of the loops of each sector. Recall that CW loops are outer and CCW loops are inner. - If a sector has no or more than one outer loop, count that as corruption (level 4 and 3, respectively). - (Disabled) For sectors with exactly one outer loop, check that all inner ones are inside it. This is currently not compiled due to an asymmetry of loopinside() for degenerate cases, similar to pre-r3898 inside(). From-SVN: r4569 commit 9246349b20108ab1a3055a95a9b564a669e92d09 Author: Philipp Kutin Date: Fri Aug 8 20:02:53 2014 +0000 Clean up astub.c:CheckMapCorruption() and some build.c code a little. There are no intended changes of functionality, it's readability tweaks only. From-SVN: r4568 commit 676d618b174436cd8738ad0faa16554b7b3b3298 Author: Philipp Kutin Date: Sat Aug 2 17:24:39 2014 +0000 A couple of Lunatic updates. DONT_BUILD. - LunaCON: support for setting userdef[].m_volume_number, getting .last_level - bump con_lang.MAXEVENTS - fix compilation of astub.c From-SVN: r4567 commit b98b7becefd9b299ab0b7b88d4dabd6c4fa82be4 Author: Evan Ramos Date: Mon Jul 28 09:00:28 2014 +0000 Fix MSVC build. DONT_BUILD. From-SVN: r4566 commit dd941fd775df6c24d5b5a7b1a302a64beea48d83 Author: Evan Ramos Date: Mon Jul 28 08:59:58 2014 +0000 Nuke rev.h. Note to MSVC users: You can get the revision number if you run `make rev o=obj` with MinGW before you build. DONT_BUILD. From-SVN: r4565 commit a16df8633797cb00602ef3ae59638f12c3afd857 Author: Evan Ramos Date: Mon Jul 28 06:45:53 2014 +0000 Split parts of loadlookups() into generatefogpals() and fillemptylookups(), and move Duke-specific LOOKUP.DAT behavior to G_LoadLookups() in source/common.c, which contains the call to loadlookups() as factored out from astub.c and game.c. DONT_BUILD. From-SVN: r4564 commit 58405d21e65a91a61c347a65a0dcc2e2c1f563e9 Author: Evan Ramos Date: Mon Jul 28 06:45:18 2014 +0000 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. DONT_BUILD. From-SVN: r4563 commit d4f14d53755eebe25b31f28655ec1305d8a34f17 Author: Evan Ramos Date: Mon Jul 28 06:44:58 2014 +0000 Progress towards KenBuild Editor, part 3. DONT_BUILD. From-SVN: r4562 commit bae9bd32cf989e4fd3efd611710ec8d8ded805d4 Author: Evan Ramos Date: Mon Jul 28 06:44:37 2014 +0000 Move code non-specific to Duke Nukem 3D from astub.c to a new m32common.c. DONT_BUILD. From-SVN: r4561 commit b11fae2380695b05965972f00016f59200b1db1c Author: Evan Ramos Date: Mon Jul 28 06:44:14 2014 +0000 Progress towards KenBuild Editor, part 2. DONT_BUILD. From-SVN: r4560 commit 1dd4114604ce3e178f7fb4fcce6bff0ad613d810 Author: Evan Ramos Date: Mon Jul 28 06:43:46 2014 +0000 Move code non-specific to Duke Nukem 3D from source/common.c to a new build/src/common.c. DONT_BUILD. From-SVN: r4559 commit f127a7b4e01f6771017864b7b2596ec14f25ebda Author: Evan Ramos Date: Mon Jul 28 06:43:16 2014 +0000 Progress towards KenBuild Editor, part 1. DONT_BUILD. From-SVN: r4558 commit b7ab32507ac478f415d1e9b5393e346e6b29fcc8 Author: Evan Ramos Date: Mon Jul 28 06:42:28 2014 +0000 Elimininate some codedup between game.c and astub.c. DONT_BUILD. From-SVN: r4557 commit 9de5e9d7b947cae27d6dbeabbf43bafd9990bfb2 Author: Evan Ramos Date: Mon Jul 28 06:41:54 2014 +0000 Fix C++ -Woverflow warnings in KenBuild. DONT_BUILD. From-SVN: r4556 commit a0028a2ad5e85ac093819d00a9a72bc3f4bf2175 Author: Evan Ramos Date: Thu Jul 24 14:01:44 2014 +0000 KenBuild. DONT_BUILD. From-SVN: r4555 commit 53c4ddf634b390ffaf4684ca23134c8fc241d687 Author: Evan Ramos Date: Wed Jul 23 07:58:03 2014 +0000 Delete empty folders and update ignore properties. DONT_BUILD. From-SVN: r4554 commit ec580bf5392cba0ec2167bec8e4b07d28ec67220 Author: Evan Ramos Date: Wed Jul 23 07:21:29 2014 +0000 MSVC build system consolidation. DONT_BUILD. From-SVN: r4553 commit 2cb112348494a74818c4987dd5d2ee96f1433217 Author: Evan Ramos Date: Wed Jul 23 06:04:44 2014 +0000 Fix Synthesis (at least partially). From-SVN: r4552 commit 89f6d17f72c29818cd00b0cfa65ed51222cdde79 Author: Evan Ramos Date: Wed Jul 23 01:48:00 2014 +0000 Re-add $(abspath ...) wrapping to libdirs to try and fix Synthesis. From-SVN: r4551 commit cc83109963e4ff1320dd081cd51585918c6cecd5 Author: Evan Ramos Date: Tue Jul 22 11:20:13 2014 +0000 Normalize all rotatesprite calls to fullscreen panels so that they are centered at (160, 100) instead of top-lefted at (0, 0). From-SVN: r4550 commit e59ba328081f7cbebb2b96d70b24207b7341cf2b Author: Evan Ramos Date: Tue Jul 22 11:19:58 2014 +0000 Menus: Rearrange drawing so that MENUBAR (#2457) is always the first thing drawn after a menu's background, and its caption is always drawn last. From-SVN: r4549 commit 38cd3e95973c695949f5f773f03daf2cc267f0cd Author: Evan Ramos Date: Tue Jul 22 11:19:45 2014 +0000 Three Mac patches from rhoenie: -sdlayer: Apple and GTK are not mutually exclusive. -Makefile.common: Specify WITHOUT_GTK?=1 by default. -Makefile: Limit linking with the QuickTime framework to OS X 10.6 and below. One fix from me: -osxbuild.sh: Fix building tools. From-SVN: r4548 commit bb422dbbe54dea696df9cfdd1e27a68c51d74575 Author: Evan Ramos Date: Tue Jul 22 11:19:25 2014 +0000 Deal with a few common themes in downstream patches applied by OpenBSD, FreeBSD, Gentoo Linux, and possibly others. -Respect CC and CXX if already set in the environment. -Respect CFLAGS, CXXFLAGS, and LDFLAGS if set or specified. -Give packagers the setting "PACKAGE_REPOSITORY=1" to prevent us from adding our own optimization parameters. From-SVN: r4547 commit 5fc9f819af04153951cea9f6d5183663bd9c7bb3 Author: Evan Ramos Date: Tue Jul 22 11:19:13 2014 +0000 Handle a concern kludged by SlackBuilds (used by Slackware Linux and NetBSD) where a warning in texcache.c spams the log. From-SVN: r4546 commit 4614429620bcc8bd3896513998a4705ed9326ec9 Author: Evan Ramos Date: Tue Jul 22 11:18:59 2014 +0000 Apply/replicate patches from OpenBSD to dlopen .so names. From-SVN: r4545 commit 35ab81d0d104b1174a634ad1f8c04864f0f2e51f Author: Evan Ramos Date: Tue Jul 22 11:18:41 2014 +0000 Apply unpackssi_64bit_fix.patch from Gentoo Linux, with modifications. https://bugs.gentoo.org/attachment.cgi?id=342598&action=edit From-SVN: r4544 commit 4e5eaafdf3045d41b3d1111b4ea4e13ebda41e39 Author: Evan Ramos Date: Tue Jul 22 07:25:54 2014 +0000 Ball-busting Makefile restructure. DONT_BUILD. From-SVN: r4543 commit 2da96d4d4e14d4f154b0b4f62a9a32c15a70e078 Author: Evan Ramos Date: Tue Jul 22 07:25:09 2014 +0000 Delete a bunch of crusty old outdated unused files. DONT_BUILD. From-SVN: r4542 commit 0c139d21cc1a6909d2d3070a91f7643100224521 Author: Evan Ramos Date: Sun Jul 20 08:55:56 2014 +0000 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. DONT_BUILD. From-SVN: r4541 commit adb7eed582e5b167f095a3aa1567b128cfa961dd Author: Evan Ramos Date: Thu Jul 10 09:01:48 2014 +0000 Lunatic fixes: 1 compiler error. 2 compiler warnings. 1 runtime warning. Note that at this time, CPLUSPLUS=1 LUNATIC=1 fails to build due to C++ function mangling, and Win64 Lunatic crashes. DONT_BUILD. From-SVN: r4540 commit ed26d7b8379961ea677da0e41987be54849ac7a8 Author: Evan Ramos Date: Thu Jul 10 09:01:15 2014 +0000 Windows: Update libraries. - libpng to 1.6.12 - LuaJIT to Git HEAD >= 2.0.3 - instructions.txt DONT_BUILD. From-SVN: r4539 commit dc988b94247b7f0c72d7d652c5d16fcc37a5c536 Author: Evan Ramos Date: Sun Jul 6 22:38:02 2014 +0000 Extend ebacktrace in two ways. 1. The application must specify its proper name and technical name. Instead of eduke32_or_mapster32.crash.log, we now have eduke32.crash.log and mapster32.crash.log. 2. The exception handler will display a message box informing the user of a crash and requesting they send in the crash log. The box has three options: "Quit", the DLL's current behavior, "Continue", which passes the exception to the next handler, and "Ignore", which resumes execution immediately. These should allow the user to skip bogus exceptions picked up by ebacktrace, such as one I get with my laptop that causes EDuke32 no issues. From-SVN: r4538 commit 76312ee8f7c635b2ed2f411cfbdfb7384187d95b Author: Evan Ramos Date: Sun Jul 6 22:36:34 2014 +0000 Miscellaneous get/set(this)projectile cleanup. From-SVN: r4537 commit 739750aa235d457fd36161c5b850d63372e4e241 Author: Richard Gobeille Date: Sun Jul 6 00:12:25 2014 +0000 WIP OSD refactor, committing now before it stops applying cleanly to current svn. This shouldn't break anything in an obvious or major way. From-SVN: r4536 commit ec888db0694e31cc933ca9a63bc6ad8d008a1edc Author: Richard Gobeille Date: Sun Jul 6 00:11:58 2014 +0000 Looks like another MSVC build fix From-SVN: r4535 commit 7b71d7de6839a664f1d8e7dd853dedbb946000b7 Author: Richard Gobeille Date: Sun Jul 6 00:11:44 2014 +0000 Add sdl_inc.h to VS project From-SVN: r4534 commit a464074aaa39b6adf62cf4731c3524bf5a8e4832 Author: Richard Gobeille Date: Sun Jul 6 00:11:32 2014 +0000 I don't even remember which platform this fixes building on... probably MSVC. Cleaning out my tree. From-SVN: r4533 commit 03c69f3267df36c7a9f1355e3baca8c3c7d805ea Author: Richard Gobeille Date: Sun Jul 6 00:11:11 2014 +0000 MSVC build fix From-SVN: r4532 commit 9ebb3bf64e50fa23ef2a32a0fe783dbfe1cdfb11 Author: Richard Gobeille Date: Sun Jul 6 00:11:01 2014 +0000 Add support for pressing backspace to go up one dir in the file selector in Mapster32 From-SVN: r4531 commit 188a1f749ed85fc420329f5be0c4af2b815a5265 Author: Richard Gobeille Date: Sun Jul 6 00:10:46 2014 +0000 MSVC build fix From-SVN: r4530 commit 1f744bc02090b693e83b6b49f8de699ea5d393e2 Author: Richard Gobeille Date: Sun Jul 6 00:10:33 2014 +0000 Android updates from Emile From-SVN: r4529 commit 84def72914cb837ab2326b063a16c1d7dde34bfd Author: Richard Gobeille Date: Sun Jul 6 00:10:14 2014 +0000 Fix MSVC warning caused by r4488 From-SVN: r4528 commit 83b35a453c391e27f9961a19052a4086415fb085 Author: Richard Gobeille Date: Sun Jul 6 00:09:59 2014 +0000 lround for MSVC From-SVN: r4527 commit 9a43aa7caa94571b2ce225adf7cedf117a5662ed Author: Richard Gobeille Date: Sun Jul 6 00:09:41 2014 +0000 Enable -usecwd for Mapster32 on Windows (same functionality as EDuke32) From-SVN: r4526 commit 693ddc7f887bc3ef67d041513441731dac0d407f Author: Evan Ramos Date: Mon Jun 23 02:25:20 2014 +0000 Hotfix to allow display of E1L8's par time and 3DR time if no usermap has been played yet. Note that the user map function still overwrites everything in slot E1L8 for the time being, which is a deeper problem I need to address. From-SVN: r4525 commit e4d1fe35e0bc520af1d38e3da72aa7fd28516a76 Author: Evan Ramos Date: Mon Jun 23 02:25:07 2014 +0000 Keep track of allocated cache space for ANM files so they aren't allocated multiple times. Also, unlock the handles after playback is done so they can be freed if necessary. From-SVN: r4524 commit e34b4c76fde8b7fa575eb9ae64e81b3bee656f25 Author: Evan Ramos Date: Mon Jun 23 02:24:53 2014 +0000 Disable the diagnostic log message upon successfully using the "animsounds" def command. From-SVN: r4523 commit 62f5e1eecbb4ead1cc3b77dafa9bbe094b8f1d7a Author: Evan Ramos Date: Mon Jun 23 02:24:39 2014 +0000 Fix building ivfrate. From-SVN: r4522 commit cb40e714735e295b97886620589159e0a984fd8d Author: Evan Ramos Date: Mon Jun 23 02:24:28 2014 +0000 Fix a warning in menus.c, introduced in r4519. From-SVN: r4521 commit e5b5334440235b0cc30e2cdbc175189294dbde3e Author: Evan Ramos Date: Mon Jun 23 02:24:10 2014 +0000 Allow EVENT_SOUND to return -1 to cancel a sound without printing a warning to the console and log. NOTE: Other negative values are reserved! From-SVN: r4520 commit 28e246a9102c139fed94637bbe86b93999dd0ba8 Author: Evan Ramos Date: Sat Jun 21 15:31:01 2014 +0000 Fix saving a savegame's name. From-SVN: r4519 commit 3e28197f291315c367a7cb33afb359d2b108a62f Author: Evan Ramos Date: Sat Jun 21 15:30:48 2014 +0000 Fix a display error with the bonus screen when a map's 3DR time was zero. From-SVN: r4518 commit 5aa738bad0492a1c96aea5c60f8f5f489a2d5fcc Author: Evan Ramos Date: Sat Jun 21 15:30:33 2014 +0000 Fix a problem with r4514. From-SVN: r4517 commit 1250fcfd44bc122fa40f410566a1bc6f325d134a Author: Evan Ramos Date: Mon Jun 16 23:17:11 2014 +0000 Instead of displaying "Unknown GRP - EDuke32", simply display "EDuke32". Much classier this way. From-SVN: r4516 commit 7569d38addbcbbe6cc38292a4a31fecdb8d73ec8 Author: Evan Ramos Date: Mon Jun 16 23:16:55 2014 +0000 By request, implement EVENT_ACTIVATECHEAT. From-SVN: r4515 commit 1d938a8fa75d9237dc957cb94eb5bdd1baf8d489 Author: Evan Ramos Date: Mon Jun 16 23:16:37 2014 +0000 Add the following LOGO_FLAGS: LOGO_NOE1ENDSCREEN LOGO_NOE2ENDSCREEN LOGO_NOE3RADLOGO LOGO_NODUKETEAMTEXT LOGO_NODUKETEAMPIC As part of this, the LOGO_NOE*BONUSSCENE flags no longer remove the entire end sequence in one go. They now only remove the primary cinematic. If you want their previous effect, you'll have to add these additional bits. From-SVN: r4514 commit 26837e9ef255a08ca0d0d3261b1fe9906186dd21 Author: Evan Ramos Date: Mon Jun 16 23:16:23 2014 +0000 Fix build with GCC 4.9. From-SVN: r4513 commit 97bb1b547ee6068f241640853efcabab957dc43e Author: Evan Ramos Date: Mon Jun 16 23:16:08 2014 +0000 Fix Wii build. From-SVN: r4512 commit a9459b1d864e70d17a43d6af1d92a90feffe0256 Author: Evan Ramos Date: Mon Jun 16 23:15:49 2014 +0000 Clean up the menu input layer. From-SVN: r4511 commit 3a98d71e479775145f006f05af863fe08cdd6149 Author: Evan Ramos Date: Mon Jun 16 23:15:31 2014 +0000 Menus: Fix a bug that crept in with r4508 that prevented any editing of savegame names. From-SVN: r4510 commit 5b0258f7a70f25e5829c113ec8dd364b6aee938e Author: Evan Ramos Date: Fri Jun 13 09:04:31 2014 +0000 Menus: Bring MenuFileSelect_t up to speed with MenuMenu_t. >They see me scrollin' >They hatin' From-SVN: r4509 commit 407e03db868259a9922129ccaf318f1a77e99f87 Author: Evan Ramos Date: Fri Jun 13 09:04:17 2014 +0000 Menus: Fix the recently introduced bug where blank savegames would have their autogenerated names clobbered by the new menu code. From-SVN: r4508 commit 7b963a115effdf2eb307532f57eb9ec3eeeeee8b Author: Evan Ramos Date: Fri Jun 13 09:04:05 2014 +0000 Menus: Fix the recently introduced bug that would take the keypress given at "PRESS OPEN TO RESTART LEVEL" as a yes at the following prompt to load your most recent savegame, seemingly without asking. From-SVN: r4507 commit 2221f18b6f9c732a4af10791e54830d6ff25a059 Author: Evan Ramos Date: Fri Jun 13 09:03:52 2014 +0000 Menus: Revise the MenuFileSelect_t structure to remove the unnecessary dir pointer and rename currentlist to currentList. From-SVN: r4506 commit 772a3ac2016689be6d30062fe7735f59ba547954 Author: Evan Ramos Date: Fri Jun 13 09:03:38 2014 +0000 Menus: When at the top or bottom of a scrolling section, show the up/down indicator darkened instead of not at all. From-SVN: r4505 commit b19d0c630dac89190b13c18a8288dd4a4e09c10c Author: Evan Ramos Date: Fri Jun 13 09:03:25 2014 +0000 [Cosmetic] backtrace.c: tab --> space x 4 From-SVN: r4504 commit 3aa1c23809430abfb401d2ac75f346577c2a1755 Author: Evan Ramos Date: Fri Jun 13 09:03:06 2014 +0000 Update ebacktrace to avoid crashes and improve the quality of the diagnostic output. From-SVN: r4503 commit 6c94d2f8280ae94931deb97375c84b4e64be7c2d Author: Evan Ramos Date: Fri Jun 13 09:02:37 2014 +0000 Wrap most calls to exit() with a macro that will print the exit status, file name, line number, and function name to the log when using a debug build. From-SVN: r4502 commit 1853a303cf457ab47769823e5a4570b628e668a3 Author: Evan Ramos Date: Fri Jun 13 09:01:58 2014 +0000 Fix a recently-introduced C++ error. From-SVN: r4501 commit 70599aacd91a58b9dc06bc0fadbd70d61b5d485d Author: Pierre-Loup A. Griffais Date: Mon Jun 2 02:23:08 2014 +0000 Test commit to make sure synthesis works. From-SVN: r4500 commit 48190cb7e580e7b749ad9c206abf51f908d5dc26 Author: Philipp Kutin Date: Sun Jun 1 20:50:14 2014 +0000 lunatic/util/build.lua: in readdefs(), add option of requesting picnum->name mapping. That is, the reverse of what is returned with the first outarg. Use that in lunatic/util/foreachmap.lua. DONT_BUILD. From-SVN: r4499 commit bde015935fc9387a2070474b8d17659c1257bd86 Author: Philipp Kutin Date: Sun Jun 1 11:55:19 2014 +0000 Polymost: r_npotwallmode, emulating 8-bit for walls w/ nonpow2 height textures. When that mode is enabled (see below for caveats), wall textures that have a non-power-of-two height (call it 'h') will be modified to look like in classic: Let 'H' be the next power of two greater than 'h'. The texture will be uploaded with height 'H', made up from 'h' hlines of the original texture, followed by 'H'-'h' first hlines of the same. No panning "corrections" will take place. The mode is disabled by default. Caveats/notes: * the mode requires that r_hightile is disabled * it is not implemented in Polymer * in the Lunatic build, it is ineffective when a VX map is loaded, as those display walls with NPOT height textures correctly From-SVN: r4498 commit 4babd940f4ae3430dde09afd200d3d33f73a1f05 Author: Evan Ramos Date: Sat May 31 15:36:41 2014 +0000 Fix non-Windows building. DONT_BUILD. From-SVN: r4497 commit 3ad05cd23f85fe4db310b4011a41f8d80021d5b7 Author: Evan Ramos Date: Sat May 31 12:26:41 2014 +0000 Ball-busting new menus. Still WIP. Mouse/touch/pointer support is yet to come. #SOON. Exposure to scripting is a LONG way off. Months. The spec and data structure needs time for comment and revision. The eventual scripting access will be Lua-only. From-SVN: r4496 commit f23407bbeeaca9152d41191515197706e6f532f4 Author: Evan Ramos Date: Sat May 31 12:26:13 2014 +0000 Better compile timestamp handling. From-SVN: r4495 commit c09a9f2d4222279df28e003ae8630d137544db66 Author: Evan Ramos Date: Sat May 31 12:25:44 2014 +0000 Re-fix the C++ warnings in ENet. From-SVN: r4494 commit fe0472cc0858dd715c11d7d773cde55ec0c157a9 Author: Philipp Kutin Date: Fri May 30 19:39:08 2014 +0000 Mapster32: when pasting onto the bottom part of a [2]-wall, take over y-flipping. Note that x-flipping is determined by the cstat of the upper part of the wall (that is, the wall facing the player, not the nextwall, from which the picnum for the bottom part is taken.) From-SVN: r4493 commit d7f6be796484867d38eaf46847c011a2d76b3195 Author: Philipp Kutin Date: Fri May 30 19:39:06 2014 +0000 Replace two missed literal numbers with SE_* enum labels. From-SVN: r4492 commit dd349fd3f7a313a2973e3a7b9e6c463634bc0033 Author: Philipp Kutin Date: Fri May 30 00:02:19 2014 +0000 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 *(' and git grep '[^Xx]strdup *(' to see places where I left the B*alloc() calls intact. BUILD_LUNATIC. From-SVN: r4491 commit 65a4ceeadc0b7315d942853616c650cd4892770e Author: Philipp Kutin Date: Fri May 30 00:02:16 2014 +0000 Add X{m,c,re}alloc and Xstrdup macros that call an out-of-memory handler on failure. These wrap the x*alloc or xstrdup functions in compat.c. The handler gets passed __FILE__, __LINE__ and __func__ (if available) in debugging builds. Terminating the application process immediately in case of allocation failure will let us prune many error handling paths and simplify a good portion of code. From-SVN: r4490 commit b92466a6719c29a004570f87342cd5230ff8246d Author: Philipp Kutin Date: Fri May 30 00:02:14 2014 +0000 A couple of stylistic cleanups and missed DAMETH_* flags substitutions. From-SVN: r4489 commit 7687bab28acec028730fad4ea7d07f0d0083aa2a Author: Philipp Kutin Date: Wed May 28 22:40:19 2014 +0000 Miscellaneous cleanup, still with the same suspects... - in mdloadskin() and gloadtile_hi(), use new function check_nonpow2() (bit-twiddling) instead of loop - Replace a couple of missed literals with CACHEAD_* enum labels From-SVN: r4488 commit 45cbdb7b277ca987a488fa5de4616c1d658b1d53 Author: Philipp Kutin Date: Wed May 28 22:40:17 2014 +0000 Factor out commonly occuring hictinting[]-accessing code into three functions. Note: in polymer.c, this was buggy (but harmless) because .r is a char: if ((uint32_t)hictinting[MAXPALOOKUPS-1].r & 0xFFFFFF00) != 0xFFFFFF00) From-SVN: r4487 commit 3e408758fca468efd8e66afd461dbf608e16ab84 Author: Philipp Kutin Date: Wed May 28 22:40:16 2014 +0000 Replace various GL rendering related literal flags with enum labels. - pthtyp pth->flags bits - Flags of the argument of various functions - hictinting[].f / gloadtile_hi() and daskinloader() arg bits - hicreplctyp hicr->flags bits - texcacheheader cachead.flags bits From-SVN: r4486 commit c4d6c9e4f70ba3a4bdfd0f833b9d2256a405bf03 Author: Philipp Kutin Date: Wed May 28 22:40:15 2014 +0000 polymost.c: stylistic cleanup in gloadtile_hi, uploadtexture, fixtransparency. From-SVN: r4485 commit 827c748d66f888276a329fd9a9c50f0d956b1634 Author: Philipp Kutin Date: Wed May 28 22:40:14 2014 +0000 Polymost: in NPOT wall ypanning "correction", behave like Polymer in one corner case. Specifically, the handling of one-way walls ([1] in Mapster32) was slightly different. From-SVN: r4484 commit b2c75aa81f51d501ad811a20fb4df362d3dbccc0 Author: Philipp Kutin Date: Wed May 28 22:40:12 2014 +0000 lunatic/util/mapypan.lua: omit MIRROR, don't print maps w/o problematic tiles. From-SVN: r4483 commit 3f8f620e4bccd53f003f56fc63cedd4906881e6c Author: Philipp Kutin Date: Sat May 24 15:27:53 2014 +0000 sdlayer.c: for Windows, switch keyboard layout to/from US on init/uninit. Taking over the code from winlayer.c. From-SVN: r4482 commit a86f7abf18607f3f63ff76693e5389d8b33843fc Author: Philipp Kutin Date: Fri May 23 20:25:29 2014 +0000 Rip out S_FindMusicSFX() from A_CallSound() and use in SE6/14 on-spawn init. This makes the subway sound not played once on map initialization. From-SVN: r4481 commit 942ce46a5a7db640f177c57c55312efd5e17d613 Author: Philipp Kutin Date: Thu May 22 11:17:52 2014 +0000 shadexfog.lua: in menu, move creation of debugging shade tables below DEBUG line. BUILD_LUNATIC. From-SVN: r4480 commit d0a243a46140adbe8f985921536e8d660278f1ea Author: Philipp Kutin Date: Thu May 22 11:17:51 2014 +0000 lunatic/test/shadexfog.lua: add function create_brightpass_trans(). Also hook it up in the [;]+[F] menu. From-SVN: r4479 commit db7eac943e2d28a3c2758772a1c1be73168dc961 Author: Philipp Kutin Date: Thu May 22 11:17:50 2014 +0000 game.c: in A_Spawn(), protect CSTAT_SPRITE_NOSHADE of spawned MASKWALL* sprites. From-SVN: r4478 commit 4729f9a3c389beb8747c2db84221db41ed2dee03 Author: Philipp Kutin Date: Thu May 22 08:56:56 2014 +0000 actors.c: fix a A_CheckSpriteFlags() call for zombie actor to STANDABLE change. This only affects zombie actors in a sector with a parallaxed ceiling. If they have SFLAG_NOSHADE clear, their shade is taken from the ceiling upon changing the statnum. Previously, A_CheckSpriteFlags() received a value that could only be 0 or 1 for the sprite index (typo). From-SVN: r4477 commit 11fff10a612ac09e556b184ab927c41257af7cdf Author: Philipp Kutin Date: Sun May 18 09:55:43 2014 +0000 sdlayer.c: fix compiling wm_ynbox() for Linux/WITHOUT_GTK=1. From-SVN: r4476 commit 2d4418be9c5aa12b294461552c5563f4cf7b0163 Author: Philipp Kutin Date: Sun May 18 09:55:42 2014 +0000 LunaCON: add read-only variable 'Numsprites', r/w userdef member .mouseaiming. From-SVN: r4475 commit 24aeaf92dc051995a5104665c4556dbc58e3418a Author: Philipp Kutin Date: Sun May 18 09:55:41 2014 +0000 C-CON: scan label names according to stricter LunaCON rules instead of char blacklist. These ones: http://lunatic.eduke32.com/lunacon.html#_ambiguous_lexical_elements Seriously, defining a token kind by excluding certain characters (instead of allowing a given set) is really, really broken. From-SVN: r4474 commit bb20c1dbc53bd39c7ba9a18c06036f8bce4dda6b Author: Philipp Kutin Date: Sun May 18 09:55:39 2014 +0000 LunaCON: allow '.' as non-first identifer character. From-SVN: r4473 commit c4457c205ecdae10f7abfd77f4ee77f4f92822b0 Author: Evan Ramos Date: Sat May 17 12:36:40 2014 +0000 Replace some constants with preprocessor macros. From-SVN: r4472 commit 2a84454b0d1075be0ba7ac4a5a4ed230ea3ab8bc Author: Evan Ramos Date: Sat May 17 12:36:03 2014 +0000 Fix two Polymer crashes related to corrupted maps. From-SVN: r4471 commit 6bc0396f53963f4bcf76e043d50015adc288185b Author: Evan Ramos Date: Sat May 17 12:35:46 2014 +0000 Fix ebacktrace on 64-bit. New DLLs all around. From-SVN: r4470 commit 00ad731ef43bf6be29383eba2ed4560c7e4d6b5e Author: Evan Ramos Date: Sat May 17 12:35:03 2014 +0000 Add support for an SDL2-based wm_ynbox based on SDL2's testmessage. From-SVN: r4469 commit 22e4b27d46dc5a34c3fa42ccbcfaec2e0f83dae5 Author: Evan Ramos Date: Sat May 17 12:34:46 2014 +0000 Update libpng to 1.6.10. From-SVN: r4468 commit ac5dc0f9f028ce160a0cd83877b3572b87123268 Author: Evan Ramos Date: Sat May 17 12:34:14 2014 +0000 old menus: Fix parental lock password entry. From-SVN: r4467 commit cd015905f965619308a2d412d775c475205e2b82 Author: Pierre-Loup A. Griffais Date: Sat May 10 21:20:09 2014 +0000 Revert window fullscreen stuff until we have aspect-correct upscaling pass. From-SVN: r4466 commit 31cde1eca84a8d595b8302f2b0fcd32acdea6dec Author: Philipp Kutin Date: Tue May 6 22:15:24 2014 +0000 Mapster32: in linking tag determination, handle 'on' switch picnums (+1). From-SVN: r4465 commit b1a290a756b4f45b78e9e8665bd016eacd1cafae Author: Philipp Kutin Date: Tue May 6 22:15:19 2014 +0000 Mapster32: in e.g. F5 "next free tag" display, note object w/ greatest tag. From-SVN: r4464 commit 01531eca4111f26e9bd29cfa96d15287c12e657b Author: Pierre-Loup A. Griffais Date: Sun May 4 01:25:26 2014 +0000 Add some useful preprocessor definition to the checked-in MSVC project From-SVN: r4463 commit dc9361be4386d00613410e6003396bbd765c1e5c Author: Philipp Kutin Date: Sat May 3 15:39:24 2014 +0000 Mapster32: don't read some variables from mapster32.cfg redundant since r4344. Mostly, these are rendering-related variables. We keep *writing* them to mapster32.cfg so that older Mapster32 versions can be used side-by-side for now. From-SVN: r4462 commit 3cc072240b18e962df62c7c3efb9c81ac37decab Author: Philipp Kutin Date: Sat May 3 15:39:22 2014 +0000 src/config.c: fix what is apparently a copy-paste typo in readconfig(). From-SVN: r4461 commit dac7a130221f53482d1a336142e319032ae896f1 Author: Philipp Kutin Date: Thu May 1 22:02:21 2014 +0000 In non-lookup GL modes, if fog is due to fogpal, make fog params indep. of shade. From-SVN: r4460 commit 4753626362fe495c8f4adf0ae88f5549a4420d3c Author: Philipp Kutin Date: Thu May 1 16:55:50 2014 +0000 Polymost: make r_usetileshades 2 the default. This mode does not take a sector's visibility values into account for uniform darkening of a texture. It is more faithful to classic with respect to fog/visibility *distances*, but may be less so as far as the "tint" of the texture due to visibility attenuation is concerned. From-SVN: r4459 commit b2ef9deeb21d1fe0f692356a801a94c4b74f8636 Author: Philipp Kutin Date: Thu May 1 16:55:48 2014 +0000 engine.c: instead of fogpal post-tweaks (last 2 commits), normalize by numshades-1. That is, for every for palette (now, even ones created by the user) the last shade is the (or rather, a color close to the) full fog color by construction. In loadpalette(), reject a PALETTE.DAT with only one shade level. From-SVN: r4458 commit ecaee2c9afd9a89bf68696736c5fcb3ef00ccd6a Author: Philipp Kutin Date: Tue Apr 29 20:07:48 2014 +0000 engine.c: extend the last workaround to all four fogpals generated at startup. From-SVN: r4457 commit 1995d4b7fdefc8bc74534b565aff21e6757038c0 Author: Philipp Kutin Date: Tue Apr 29 19:34:25 2014 +0000 engine.c: after creating gray fog palookup, make its greatest shade map to same color. Concretely, for all 1 <= i <= 255, make graypalookup[31][i] := graypalookup[31][0]. Also document 'fogpal' in the Lunatic doc. From-SVN: r4456 commit 16339b054c71f5f9514dde7e1379f40e3f6e3d05 Author: Philipp Kutin Date: Tue Apr 22 18:10:19 2014 +0000 Classic: fix fog/visibility on ceilings. From-SVN: r4455 commit f17da2f49f72d7d772831e08882b497ee2ed7884 Author: Philipp Kutin Date: Mon Apr 21 17:00:54 2014 +0000 engine.c: clean up scansector(). From-SVN: r4454 commit ee0453d499d0ca24ccfac89a2f3ecda79a6e38e9 Author: Philipp Kutin Date: Mon Apr 21 17:00:51 2014 +0000 Classic: prevent visibility overflow on sloped ceilings/floors at large distances. From-SVN: r4453 commit 42afcb785b9c1e388daa906457bbe091d5a2b097 Author: Philipp Kutin Date: Sat Apr 19 22:42:23 2014 +0000 Fix r_usenewshading 3 visibility/fog for shades >= Numshades-1 (usually 31). BUILD_LUNATIC. From-SVN: r4452 commit 99cbd0df9a913a1c9031d4edc452f9ef993520ba Author: Philipp Kutin Date: Sat Apr 19 22:42:22 2014 +0000 Makefile.common: pass Clang sanitizer flags in release DEBUGANYWAY builds, too. Also, - add a static assertion to engine.c - gameexec.c: compile out an unused function in Lunatic builds From-SVN: r4451 commit dcdcd1ad565de0921d09b2c50c4bdb045f697061 Author: Philipp Kutin Date: Sat Apr 19 22:42:21 2014 +0000 In G_SavePlayer(), save timers at beginning and restore when finished. This makes the game not process as many ticks as have elapsed during the saving afterwards. From-SVN: r4450 commit 6148f4a55039ac510029e5d896a49fa328e1ccbb Author: Philipp Kutin Date: Sat Apr 19 22:42:20 2014 +0000 Keep displaying difficulty menu for as long as the *voice* plays. Previously, the check was for the hard-coded sound number. This made it impossible to change difficulty selection sounds via EVENT_SOUND. From-SVN: r4449 commit 45069bbad37696c793ec16ffa82d56f38c85ccb9 Author: Philipp Kutin Date: Sat Apr 19 22:42:18 2014 +0000 CON: add getactor[]/sprite[] member 'movflags'. This is exactly the same as the actor[].movflags member in the Lunatic build: http://lunatic.eduke32.com/lunatic.html#actor From-SVN: r4448 commit 04a9a750393c96edea1bb2d6342ffce5da391826 Author: Pierre-Loup A. Griffais Date: Sat Apr 19 02:51:33 2014 +0000 Fix crash with GTK+SDL2 on startup and use windowed fullscreen instead of exclusive fullscreen. From-SVN: r4447 commit f5e8c99e6207f0c3e29a5f17e12ed1c1a4f02465 Author: Philipp Kutin Date: Fri Apr 18 13:20:56 2014 +0000 sdlayer.c: fix grabmouse_low() with DEBUGGINGAIDS!=0 builds. DONT_BUILD. From-SVN: r4446 commit 3a5ed5e25276ff1cda715f0da6d0462b4159bc85 Author: Richard Gobeille Date: Thu Apr 17 20:00:24 2014 +0000 User-configurable security monitor refresh delay (r_camrefreshdelay) From-SVN: r4445 commit 237815a3ce4d454a48b1966b0c71f17d4ff50522 Author: Richard Gobeille Date: Thu Apr 17 20:00:07 2014 +0000 This seems to need SDL_MAIN_HANDLED in some configurations... not sure why yet. From-SVN: r4444 commit 678aa75a4af30e555b7523e87fc3c478c7144cd4 Author: Richard Gobeille Date: Thu Apr 17 19:59:52 2014 +0000 Update to ENet git commit 518144338dd2d55192446e5ef37bc2eb97fe9bc8 From-SVN: r4443 commit 3faf8d8fb5765a86cc8824bab5c71794a6f7f277 Author: Richard Gobeille Date: Thu Apr 17 19:58:31 2014 +0000 Move DO_FREE_AND_NULL macro to compat.h From-SVN: r4442 commit 60fd77629b584f7366a8e69cedb5431261a17ed6 Author: Richard Gobeille Date: Thu Apr 17 19:58:07 2014 +0000 Simplify mutex wrapper into simply differentiating between RENDERTYPEWIN (which is deprecated...) and everything else, which uses SDL mutexes. From-SVN: r4441 commit 54b94706f94328c9f6bef25d04e060f5acecb967 Author: Richard Gobeille Date: Tue Apr 15 19:02:48 2014 +0000 Android updates from Emile. DONT_BUILD. From-SVN: r4440 commit 1d8d419a96ebd6e96996a69207a7ebe26fec7740 Author: Richard Gobeille Date: Mon Apr 14 16:30:23 2014 +0000 More Android. DONT_BUILD. From-SVN: r4439 commit 66171f77dd2c86c2b148955d1a81febef179c991 Author: Philipp Kutin Date: Sun Apr 13 14:26:18 2014 +0000 shadexfog.lua: in "Save lookups DAT file" entry, allow to save additional lookups. BUILD_LUNATIC. From-SVN: r4438 commit b881cf53d280fe362a79b971e44162591ef31e96 Author: Philipp Kutin Date: Sun Apr 13 14:26:16 2014 +0000 Lunatic: (better) document sector[].visibility, sprite[].clipdist, player[].weapon. From-SVN: r4437 commit 4b3bc32a7684bda931400b630ad434c057d9f492 Author: Richard Gobeille Date: Sun Apr 13 03:20:17 2014 +0000 More Android. DONT_BUILD. From-SVN: r4436 commit 6576a1e24d1d8ea77a39dc243d056c6ab447e826 Author: Richard Gobeille Date: Sun Apr 13 03:19:50 2014 +0000 OSD scaling fixes (mostly) From-SVN: r4435 commit 3fbf594981396c30e96548e7bc5190593c7266bd Author: Richard Gobeille Date: Sat Apr 12 22:10:36 2014 +0000 Android code updates, pay no attention. DONT_BUILD. From-SVN: r4434 commit c91222f5a6c945fb472549c3f2f0bf39290fc4af Author: Richard Gobeille Date: Sat Apr 12 08:45:50 2014 +0000 Partial Android support cleanup. I actually have no idea if this even compiles ;) From-SVN: r4433 commit e203fc282d060498ff717887f7a79d68a0a71fdd Author: Richard Gobeille Date: Sat Apr 12 08:45:26 2014 +0000 Clean up sdlayer a bit From-SVN: r4432 commit 730b6c018d4fa53356b6baf057274370b6fd64d8 Author: Richard Gobeille Date: Sat Apr 12 08:45:08 2014 +0000 Clamp macros for floats From-SVN: r4431 commit fe6c4974abb8b8490cdefc5d22f68fc9ca1ed6e8 Author: Richard Gobeille Date: Fri Apr 11 16:19:36 2014 +0000 Hack around HOM when passing through a masked wall, but only on Android because the solution isn't very good. From-SVN: r4430 commit 2a463d8234e42dc3f5e079240d336c6e682864b7 Author: Philipp Kutin Date: Thu Apr 10 18:44:31 2014 +0000 Fix minor help text formatting issues in shadexfog.lua. Also, fix saving PALETTE.DAT tables without lognumalphatabs byte. DONT_BUILD. From-SVN: r4429 commit 0b1dfefdb0b1242c8e4788477ef3b666dc4e9beb Author: Philipp Kutin Date: Wed Apr 9 18:51:35 2014 +0000 CON: in rotatespritea and screentext, if alpha < 0, make -alpha denote blend. For convenience, orientation gets bit 1 (translucency) set automatically. Again, test/screentext.con is updated to show off this functionality (the code there assumes that additive blending tables are loaded at blend numbers 101 -- 132). BUILD_LUNATIC. From-SVN: r4428 commit b9a7007a3dc80b63d9f212f1c2770fd86b3ddc28 Author: Philipp Kutin Date: Wed Apr 9 18:51:33 2014 +0000 LunaCON: fix 'screentext' command. From-SVN: r4427 commit 35f06e20994b87a8dbe66962d5a3b32c9bfae587 Author: Philipp Kutin Date: Wed Apr 9 18:51:31 2014 +0000 In ext. PALETTE.DAT, store log2 of last alpha table index. Handle alpha in classic. The extended PALETTE.DAT format can now carry a trailing byte, called 'lognumalphatables'. If it is present, the engine assumes that alpha blending tables are loaded at blend indices 1 to 1< Date: Mon Apr 7 06:17:25 2014 +0000 Add "osdscale", allowing the console text to be resized anywhere from 1-4x. It's a float because that seemed more useful to Android, where this will probably be hooked up to a slider (its intended usage). From-SVN: r4425 commit a4361087d767b6e59c2d76e0f1ee80b4670012dc Author: Richard Gobeille Date: Mon Apr 7 06:17:08 2014 +0000 Credits menu update for Android From-SVN: r4424 commit 6b749508ecc7010442d6f0c385ebe81da6737e63 Author: Philipp Kutin Date: Sun Apr 6 22:24:20 2014 +0000 Mapster32/Lunatic: add descriptions to [;]+[F] menu entries shown in upper left. BUILD_LUNATIC. From-SVN: r4423 commit b0f7ef8e780345283a93904b3a0878b14751c7c1 Author: Philipp Kutin Date: Sun Apr 6 22:24:19 2014 +0000 engine.c: for printext16(), make newlines do what you expect them to. From-SVN: r4422 commit 9a5d3fd72bce99d8372507e85173ba0310571c44 Author: Philipp Kutin Date: Sun Apr 6 22:24:18 2014 +0000 a.m32: for showpal==1, also show editor colors with printext16. From-SVN: r4421 commit 40767da64ff87b138b5d81479b67408a66d78c79 Author: Philipp Kutin Date: Sun Apr 6 22:24:17 2014 +0000 Mapster32/Lunatic: hook up shadexfog.save() and saveLookupDat() to [;]+[F] menu. From-SVN: r4420 commit f00ba03b0d15a0b24bf76f54029ec0f0c619e431 Author: Philipp Kutin Date: Sun Apr 6 22:24:14 2014 +0000 Mapster32/Lunatic: add functionality to connect Lua funcs to s.bar menu [;]+[F]. Hook up those from test/shadexfog.lua and some debugging ones from engine.lua. From-SVN: r4419 commit 121e03a2025ed7109f7bf769d0069d78762a47f0 Author: Philipp Kutin Date: Sat Apr 5 20:27:34 2014 +0000 Mapster32: factor out [']+[F] common code into "class" StatusBarMenu. From-SVN: r4418 commit c18256e88c5158af2b734e900486537701512a0e Author: Philipp Kutin Date: Sat Apr 5 20:27:33 2014 +0000 astub.c: clean up [']+[F] menu code, fixing one oob access w/ dyn. entries. From-SVN: r4417 commit c889cebb8354bbf676474d30ff1463e16e3747b2 Author: Philipp Kutin Date: Sat Apr 5 11:28:10 2014 +0000 Rename sector[].filler member to '.fogpal'. From CON, keep the '.alignto' alias. The overall situation is thus as follows: - in C and from Lua, that member is called 'fogpal' - In CON (both C-CON and LunaCON), it's 'fogpal' with 'alignto' being an alias; 'filler' wasn't available before, either. - In m32script, it's 'fogpal' or 'alignto' ('filler' is not available any more) From-SVN: r4416 commit 19031916cd507b6928a78bdd33bfadd348443cc2 Author: Philipp Kutin Date: Sat Apr 5 11:28:08 2014 +0000 In non-lookup OpenGL modes, make sector[].filler (rename pending) override fogpal. That is, if that member has a nonzero value, that one is taken for the color of the GL fog instead of (most of the time) sector[].floorpal. "Sky sectors", that is, skyboxes or simply parallaxed floors/ceilings are *not* handled. From-SVN: r4415 commit 46fedd8663c018b6c24ed40c23a76b98c7144672 Author: Philipp Kutin Date: Sat Apr 5 11:28:08 2014 +0000 a.m32: add state 'for_sprites_near_picnum'. The state quries the user for four values: ref. picnum, target picnum, max. ldist and a lotag. Then, for all sprites i (of ref. picnum), for all sprites j (of target picnum), if ldist(i,j)<=maxldist, sprite j's lotag is changed to the provided one. Also add lunatic/test/maputil.lua, containing a similar function but allowing to customize the selection predicates of the ref. and target sprites, as well as the action to carry out. From-SVN: r4414 commit 6fa2f703eaedf5dcbb8fadac69910d574f35bb60 Author: Philipp Kutin Date: Sat Apr 5 11:28:06 2014 +0000 engine.c: clean up code around wallmost(), owallmost() and grouscan(). From-SVN: r4413 commit 403a73e6e56b22d4276fc411cbaddc8d13da20b4 Author: Philipp Kutin Date: Sat Apr 5 11:28:02 2014 +0000 Bump jit/bcsave.lua to the one from LuaJIT 2.0.3. From-SVN: r4412 commit 38c4af69fe579e74405305b6a7f23a9f6f5b140d Author: Richard Gobeille Date: Tue Apr 1 19:43:43 2014 +0000 Fix my mangled rev.h commit from a while back. I guess I forgot to revert it because it didn't break synthesis. :) From-SVN: r4411 commit 885b4ab2b33edf31a20a654094dc33d99d2cbe2f Author: Philipp Kutin Date: Sun Mar 30 20:36:00 2014 +0000 Add a second DNCOORDS/cl_showcoords mode, showing some renderer settings. Also, extend the documentation for r_usenewshading a little. Specifically, note when the different modes were introduced. BUILD_LUNATIC. From-SVN: r4410 commit f02375ba0d5a9963d627bac14b00775f49607c43 Author: Philipp Kutin Date: Sun Mar 30 20:35:59 2014 +0000 Polymer: disable normal/parallax mapping in rotatesprite. It was plainly noticeable in the editor's tile info display, for example. From-SVN: r4409 commit 7196fa96fdca0de038ef12bfce12a37cd08cac82 Author: Philipp Kutin Date: Sun Mar 30 20:35:57 2014 +0000 In COMMON_clearbackground() (for the OSD), disable fog. From-SVN: r4408 commit 4cd9b3431c3194381a86e1d54e84fd2f0799c71a Author: Philipp Kutin Date: Sun Mar 30 13:53:09 2014 +0000 Amend r4394: don't use full brightness (glColor() factor 1) with hightiles. This is done by factoring out some polymer.c:polymer_getbuildmaterial() code into polymer_eligible_for_artmapping() and using that. The one in polymer.c can still determine to not use ART mapping on some ("rare"?) occasions, so it's not 100% in sync. From-SVN: r4407 commit 7daba6df0f620b7a867a2e738de4324ffa0190a1 Author: Philipp Kutin Date: Sun Mar 30 13:53:08 2014 +0000 Minor Polymost code cleanup. - factor out eligible_for_tileshades() - remove some rendmode 1 code - move some auto vars further down From-SVN: r4406 commit d68d06bc1c3a4b1f1a75dc764742481b395f2211 Author: Philipp Kutin Date: Sun Mar 30 13:53:06 2014 +0000 checkdefs.sh: for DEFs, also handle 'include ...', use 'find -L' (follow symlinks). From-SVN: r4405 commit b403c495ede0b7f9aebc4e760e21a16138e318d7 Author: Philipp Kutin Date: Sun Mar 30 13:53:05 2014 +0000 Lunatic: add some shade/vis debugging functions. engine.lua: linearizeBasePal(), mapster32 only test/shadexfog.lua: create_depth_shtab(), create_vismarker_shtab() From-SVN: r4404 commit d58050e0d99e2a81d0b8c5076b5961f075cbf4d1 Author: Philipp Kutin Date: Sun Mar 30 13:53:03 2014 +0000 With r_usenewshade 3, do apply starting fog dist. eqn. for negative shade. From-SVN: r4403 commit 224480b4ddb0a1e314a6c76887a4d85f2099eef5 Author: Philipp Kutin Date: Sat Mar 29 21:48:44 2014 +0000 In 'tilefromtexture' DEF token, fix specifying -1 xoffset or yoffset. From-SVN: r4402 commit 3574da8d168c46d54d6348358cd05085a57956ea Author: Philipp Kutin Date: Sat Mar 29 21:48:40 2014 +0000 game.c: fix last step of p->visibility approaching ud.const_visibility. From-SVN: r4401 commit abc3937c134ca86d96282160f063be71e11841ee Author: Richard Gobeille Date: Fri Mar 28 03:42:15 2014 +0000 SDL 2.0.3 (plus a MinGW build fix that didn't make 2.0.3) for Windows builds. From-SVN: r4400 commit 5b6ea130237573fe15c660a165e815781d1763a1 Author: Evan Ramos Date: Wed Mar 26 09:14:01 2014 +0000 Tidy menu code in advance of complete redesign. This replaces all remaining magic numbers with enumerations thereof. It also tweaks the following, even though most will be irrelevant post-rewrite: -Remove unused menus -Properly center the nuke icon in Duke and the star icon in NAM -Fix the multiplayer macro editing menu: --Position the currently editing quote its proper spot instead of beneath the first row --Don't highlight the first quote while editing a different one --Select the quote just edited when finished editing instead of the first one -Fix the cursor of a centered text input field (such as the adult mode password) -Implement proper shade glowing of selected menu entries in Joystick Settings, Joystick Axes, and Joystick Dead Zones -Shift the the Joystick Axes menu down to avoid overlapping the title bar -Change the title of mouse digital axis assignment "Digital Axes Setup" instead of "Advanced Mouse" -Fix the behavior of the Next button in Joystick Dead Zones to not act like a scrollbar From-SVN: r4399 commit 1aa380ad2ba71fa6f9942e1216cfaf83e52ce93b Author: Evan Ramos Date: Wed Mar 26 09:13:38 2014 +0000 Revert rev.h. From-SVN: r4398 commit f0d197833e6b3e5c0cab767cf349ea2dc9585fae Author: Philipp Kutin Date: Tue Mar 25 21:04:39 2014 +0000 SDL2: handle Ctrl-K/Ctrl-U in the OSD. BUILD_LUNATIC. From-SVN: r4397 commit ad9c2af9845bc82300a1339611292577ec864410 Author: Philipp Kutin Date: Tue Mar 25 21:04:37 2014 +0000 LunaCON: provide access to wall[].blend. From-SVN: r4396 commit 2c8bc0cc504b0809d1fe1923a999792e2027b4a0 Author: Philipp Kutin Date: Tue Mar 25 21:04:33 2014 +0000 Really minor accumulated readability tweaks. From-SVN: r4395 commit ae4b9e22f8fe95f62f272e2de4f4fe78c018ebe0 Author: Philipp Kutin Date: Sun Mar 23 23:14:50 2014 +0000 Polymer/rotatesprite: don't redundantly apply shade glColor() with ART mapping. From-SVN: r4394 commit 7fe4ce3385784a30d6e426c05a28d78f201e4cab Author: Philipp Kutin Date: Sun Mar 23 23:14:48 2014 +0000 Polymost: introduce r_usenewshading 3 and make it the default. With this mode, the near distance of the linear fog is always 0, unlike being negative with r_usenewshading 2. From-SVN: r4393 commit fad402ab2a28d7344aa2190ad521f8b274bb1919 Author: Philipp Kutin Date: Sun Mar 23 14:29:09 2014 +0000 Factor out approaching val. to target val by half-difference steps into logapproach(). Fix a case in G_MovePlayers(), where the player sprite's shade is approached toward the ceiling/floor's shade. Before, it could stop at one above or below! From-SVN: r4392 commit 961ac58c710dcbb5f7ae9c63125896b4d2988964 Author: Philipp Kutin Date: Sat Mar 22 17:02:21 2014 +0000 Fix taking ARRAY_SIZE of PlayerSelfObituaries (not PlayerObituaries!) Also add two static assertions checking that the obituary quotes don't go out of the MAXQUOTES bound. BUILD_LUNATIC. From-SVN: r4391 commit 6156ce6d3644d3247e274b9c2425da9a4eda81d5 Author: Richard Gobeille Date: Sat Mar 22 13:21:03 2014 +0000 *nix ENet build fix. DONT_BUILD. From-SVN: r4390 commit be1936a794df8a2275eb6a2fc36c6550e1c7ceb9 Author: Philipp Kutin Date: Sat Mar 22 12:55:48 2014 +0000 Fix an unused variable warning with NETCODE=0. DONT_BUILD. From-SVN: r4389 commit 52855c2323cc5e80cca01877a20c236d9b928990 Author: Richard Gobeille Date: Sat Mar 22 09:27:21 2014 +0000 Upgrade ENet library From-SVN: r4388 commit 9495d0b7a12c4be2c93a4ca8939cb2ced8988d3d Author: Richard Gobeille Date: Sat Mar 22 09:26:39 2014 +0000 Add xxHash (https://code.google.com/p/xxhash/), a faster alternative to CRC32, and implement it in a few places. This is around 20-30% faster than CRC32 for me (it's also implemented into the "fileinfo" console command, so you can test for yourselves). I didn't have time to gather up all of the files supported by the startup window so this isn't used there yet. Additionally, this is by the same author as the LZ4 compression library we already use. From-SVN: r4387 commit 483af0cf0b19c51fd2fe8b7faafde1080e0abe6d Author: Richard Gobeille Date: Sat Mar 22 09:25:51 2014 +0000 Some basic changes for Android support. DONT_BUILD. From-SVN: r4386 commit a7c9e2674129e38011f0a903ba6359cfeac75ba5 Author: Richard Gobeille Date: Sat Mar 22 09:25:15 2014 +0000 Widespread use of ARRAY_SIZE macro. From-SVN: r4385 commit b7ca2dbe2b35f4b0490b6a6c9014d867095bc14b Author: Richard Gobeille Date: Sat Mar 22 09:23:55 2014 +0000 Clean up A_InitEnemyFlags() a bit. From-SVN: r4384 commit cff29a6d14b02a69c20bc96c5c9592138af97954 Author: Philipp Kutin Date: Wed Mar 19 19:53:12 2014 +0000 engine.c: check (non-)clipping over a floor curb of an upper TROR neighbor. From-SVN: r4383 commit c2b86751f65348b951f7f7e7e652d1bb2975802a Author: Philipp Kutin Date: Wed Mar 19 19:53:08 2014 +0000 engine.c: factor out two functions from clipmove(). From-SVN: r4382 commit 13eadca6d7554648499c0eac7d3e560310d5e989 Author: Philipp Kutin Date: Sun Mar 16 15:06:20 2014 +0000 LunaCON: patch up off-by-one line numbering problem. DONT_BUILD. From-SVN: r4381 commit 5889f60e415d97af6205ea40cf07033dd01f0b64 Author: Philipp Kutin Date: Sun Mar 16 14:37:54 2014 +0000 C-CON: add safety checks for qgetsysstr/STR_{,MAP,PLAYER,VOLUME}NAME. Add test/qgetsysstr.con. BUILD_LUNATIC. From-SVN: r4380 commit 682c30c2f14f5f6ae8d9bfdb2cfc3c41ed6370ff Author: Philipp Kutin Date: Sun Mar 16 14:37:53 2014 +0000 LunaCON: qgetsysstr/STR_MAP*NAME: add informative err. msg. for void vol/lev. From-SVN: r4379 commit 38c7b583ec4b3072238359bc332edec505f3fa12 Author: Philipp Kutin Date: Sun Mar 16 14:37:52 2014 +0000 Fix the "fix for flying/jumping monsters getting stuck in water". In C and Lunatic, split 'jumptoplayer' of enum amoveflags_t / action.MOVFLAGS into 'jumptoplayer_bits' and 'jumptoplayer_only' (see updated Lunatic doc). From-SVN: r4378 commit d3892a58d7fa9af57f4495be9d170ccfc524dfb6 Author: Philipp Kutin Date: Sun Mar 16 14:37:50 2014 +0000 In three missed places, use AC_MOVFLAGS instead of sp->hitag. From-SVN: r4377 commit e843c41d24c26fb18397051f43d4a82bceb3e5e7 Author: Philipp Kutin Date: Sat Mar 15 14:10:51 2014 +0000 Lunatic: fix 'spawn' OSD command when running with -Lopts=strict. BUILD_LUNATIC. From-SVN: r4376 commit 8df285aff2f2e9acae06fce33bae35f4b18f7f02 Author: Philipp Kutin Date: Sat Mar 15 14:10:50 2014 +0000 Lunatic: fix DBG_.testmembread after r4290. From-SVN: r4375 commit 387b70f98fd03ec5a19e2df0bbbbe6c2d507d013 Author: Philipp Kutin Date: Sat Mar 15 14:10:50 2014 +0000 Lunatic: for gameactor(), deprecate AF.replace_hard, make AF.replace default. That is, always bitwise-OR the per-tile actor flags with the existing ones. From-SVN: r4374 commit 15ca5d779de4e4ae0afbc92c5aede8d56b05cd93 Author: Philipp Kutin Date: Sat Mar 15 14:10:49 2014 +0000 LunaCON: warn if a 'spriteflags' is issued after its actor definition... ... or another 'spriteflags' or 'sprite*' directive. From-SVN: r4373 commit 02deebc4710c5db2ddd67875cdb24a43f3deae60 Author: Philipp Kutin Date: Sat Mar 15 14:10:48 2014 +0000 LunaCON: warn if using reserved bits in 'spriteflags'. Reserved bits are those that have no predefined SFLAG_* label in CON. From-SVN: r4372 commit 9d3c3c53fe7cc3f656e0b11189a05f83e3a3f91d Author: Philipp Kutin Date: Sat Mar 15 14:10:47 2014 +0000 Add new actor flag and predefined CON label SFLAG_NODAMAGEPUSH. This flag is set from C for some enemies that should not be pushed back when damaged, such as TANK. Both the tile flag and the per-sprite flag are used (i.e. the ultimate flag value is the XOR of the two). Add currently non-functional example to test.lua that attempts to set this bit for NEWBEAST. From-SVN: r4371 commit b5bfbc00cbd9b24771be3fc665d7bafe8fc6d702 Author: Philipp Kutin Date: Sat Mar 15 14:10:45 2014 +0000 Lunatic: implement passing string label to 'spawn' OSD command. Unlike in C-CON, it only tries an exact match with the given and uppercased label, not "full" case-insensitive search. From-SVN: r4370 commit b1a617796ee8da765ecc0de6b3dfcae24a88bb4a Author: Philipp Kutin Date: Sat Mar 15 14:10:42 2014 +0000 If 3rd person view gets outside map, try again w/o subtracting 3072 from player z. Also, clean up G_DoThirdPerson(). From-SVN: r4369 commit fac7439c8e13c76478e1dc830c1263439415dfc1 Author: Philipp Kutin Date: Mon Mar 10 20:08:27 2014 +0000 Lunatic: extend map-VX walltype by 'blend' member. BUILD_LUNATIC. Make Mapster32 save as map-text if there is a wall with non-zero 'blend'. From-SVN: r4368 commit 5eb009c1e156223f87b8704c7a6d730b426795fe Author: Richard Gobeille Date: Fri Mar 7 22:17:38 2014 +0000 POLYMER=0 build fix. DONT_BUILD. From-SVN: r4367 commit 97fc5c61ee0c015ff2c4880a32202407b377989f Author: Richard Gobeille Date: Fri Mar 7 22:17:25 2014 +0000 Make non-pal 0 enemy health doubling depend on running 1.3D or earlier From-SVN: r4366 commit ee20e12f8a6cad1ee98396c86960f34b9767be69 Author: Richard Gobeille Date: Fri Mar 7 22:17:12 2014 +0000 Zip support bugfix from a newer kplib From-SVN: r4365 commit cf97cabf15f54cb752224b19550a742c4cc517f5 Author: Philipp Kutin Date: Wed Mar 5 21:12:59 2014 +0000 Classic: implement screen tilting by 180 degrees without quality loss. BUILD_LUNATIC. From-SVN: r4364 commit 1c0efb196aa15eae85674732a53e9f82fa4de35f Author: Philipp Kutin Date: Wed Mar 5 21:12:58 2014 +0000 Adapt x86 GCC assembly copybufreverse() to x86_64 and enable unconditionally. For a 1680x1050 scene standing directly in front of a mirror, this increases FPS from ~90 to ~95 for me. From-SVN: r4363 commit 73071146c22e9fbb9d40dccd883670ebf803ab61 Author: Philipp Kutin Date: Wed Mar 5 21:12:57 2014 +0000 LunaCON: fix 'getincangle'. From-SVN: r4362 commit 8ec238ce28fe01d99bab6d4271cc415b9251d24f Author: Philipp Kutin Date: Wed Mar 5 21:12:56 2014 +0000 Mapster32: for wall alignment with [.]/[,], reverse meaning of Alt modifier. From-SVN: r4361 commit 149626b51563436dbbe90e3d3ca19579e106f652 Author: Philipp Kutin Date: Wed Mar 5 21:12:54 2014 +0000 Propagate 'blend' to rotatesprite_(), but don't hook it up to scripting yet. From-SVN: r4360 commit 44088660945e5b743b5fdf2c8f91eca4644f190e Author: Philipp Kutin Date: Tue Mar 4 22:20:05 2014 +0000 Mapster32: when failing to paste selected sectors into loaded map, unhighlight. DONT_BUILD. From-SVN: r4359 commit 1222bbd6358db839e02a855629b44b5c0ce05ba7 Author: Evan Ramos Date: Sat Mar 1 11:41:29 2014 +0000 When osdcmd_quit(), OSD_ShowDisplay(0). DONT_BUILD. From-SVN: r4358 commit d67592a0dc5841287cd388aa1c7e0b1521ce903a Author: Philipp Kutin Date: Fri Feb 28 20:33:47 2014 +0000 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). BUILD_LUNATIC. From-SVN: r4357 commit 0bd2b5c30d16c6e4b4340e31fd132c3ab98f5113 Author: Philipp Kutin Date: Fri Feb 28 20:33:46 2014 +0000 LunaCON: add and document option -ferror-negative-tag-write. From-SVN: r4356 commit 935e8a20235ea470b535361004124a0e41002286 Author: Philipp Kutin Date: Wed Feb 26 20:18:28 2014 +0000 engine.c: in loadlookups(), allow pal 0. BUILD_LUNATIC. From-SVN: r4355 commit 0ababbe4a72cf3d20f99f36dc9e6f05aae3d03c0 Author: Philipp Kutin Date: Sun Feb 23 20:44:43 2014 +0000 Fix crosshair color. From-SVN: r4354 commit 9f9cf586103635dd199e7f611c25f7b071418746 Author: Philipp Kutin Date: Sat Feb 22 19:38:54 2014 +0000 A few stylistic tweaks, like substituting missed SE_* enum constants. BUILD_LUNATIC. From-SVN: r4353 commit fa57adc286a6d930c27ed0ea2b291687771033a1 Author: Philipp Kutin Date: Sat Feb 22 19:38:53 2014 +0000 Amend r3822 ("Make deletion of an amb. sound MUSICANDSFX stop its sound again.") We shouldn't be using its actor[].t_data[8] because that one is used by the sprite rotation-fixing system (which fixes STAT_FX sprites to the positions relative to the pivot, too). Test case source/lunatic/test/delmusicsfx.lua still passes with this modification. From-SVN: r4352 commit 6bcfd8285c705b95bdb094fc3be69205cbb5247c Author: Philipp Kutin Date: Sat Feb 22 19:38:52 2014 +0000 Rename SPRITE_* flag enum constants to SFLAG_*, for consistency with CON. From-SVN: r4351 commit 285f36411a2e4c0e4dcc1026a51646bd642403df Author: Philipp Kutin Date: Sat Feb 22 19:38:51 2014 +0000 Give sprite cstat bit 2048 (NOSHADE, Mapster32 key [N]) a macro name. From-SVN: r4350 commit 79d1ce0c2ac7893545f0813795231368def5213d Author: Philipp Kutin Date: Sat Feb 22 19:38:49 2014 +0000 Mapster32: include .blend in sprite display/edit/search (Shift+TAB/F8/Alt+F8). From-SVN: r4349 commit 7fdab77978a69456fdb1dc98d1c6c38fc21a6d2d Author: Philipp Kutin Date: Sat Feb 22 19:38:48 2014 +0000 Mapster32: don't save comments to mapster32.cfg's command-line history. From-SVN: r4348 commit 7d0195a87db6a17de11ef4c8e9b95eabc68344ba Author: Philipp Kutin Date: Sat Feb 22 19:38:48 2014 +0000 Lunatic: generalize shadexfog.create_trans() further. It now accepts a number of tables to create as 3rd arg. The function that create_trans() takes as the 2nd argument is now being passed (r,g,b, R,G,B, tablei, numtables). Rewrite create_additive_trans() in terms of it. Rename create_128_trans() -> create_alpha_trans(). From-SVN: r4347 commit 0d41d5295b3a6cb16d8aaf3ac1c48b33601af764 Author: Philipp Kutin Date: Sat Feb 22 19:38:47 2014 +0000 A couple of very minor code beauty tweaks. From-SVN: r4346 commit 29aea7f7d6560d1695563ac0d2a2b12af1618f8f Author: Philipp Kutin Date: Sat Feb 22 19:38:45 2014 +0000 engine.c: in loadlookups(), error out if attempting to load at a reserved pal. From-SVN: r4345 commit afe60a9715395a1e30571c172046104a66b800aa Author: Evan Ramos Date: Sat Feb 22 08:03:02 2014 +0000 Mapster32: Introduce m32_settings.cfg, analogous to settings.cfg, so that you can save your cvars and aliases for the editor. One potential use is to add r_togglecomposition "0" if you don't like Aero turning on and off every time you switch between 2D mode and 32-bit 3D mode. From-SVN: r4344 commit cc8aadfc63b699781dc98cb5274c74ce3e9eaa87 Author: Evan Ramos Date: Sat Feb 22 08:02:41 2014 +0000 Build system: Detect the SVN revision and generate rev.h directly from the Makefile, if applicable. From-SVN: r4343 commit 0f91d0188f89eda0cf14a3920f0e8dc3b6d4a5f2 Author: Evan Ramos Date: Sat Feb 22 08:02:23 2014 +0000 Synthesis: Merge "sdk" package back into the game. From-SVN: r4342 commit 73084f642a9149c8e63455676b26881bb6dac255 Author: Evan Ramos Date: Sat Feb 22 08:02:13 2014 +0000 Further optimize our SDL_Renderer for 8-bit by making the SDL_Texture SDL_TEXTUREACCESS_STATIC, saving some RAM without any loss of functionality. From-SVN: r4341 commit 6e99a13c8696b4a5bd412c34fba13bf9103d94c7 Author: Richard Gobeille Date: Sat Feb 22 01:27:03 2014 +0000 Fix texcache From-SVN: r4340 commit 712b1c63c45920c9274cc14f5bab16ad4479f4d1 Author: Richard Gobeille Date: Sat Feb 22 01:26:34 2014 +0000 Indicate MSVC in build string From-SVN: r4339 commit 1573754ed40d58af4a44565e50a1691164388635 Author: Philipp Kutin Date: Wed Feb 19 19:47:28 2014 +0000 engine.c: always setup blending table whenever drawing translucent objects. BUILD_LUNATIC. From-SVN: r4338 commit e02cfa9bbf682f15b101662527fa6206a4a388df Author: Philipp Kutin Date: Wed Feb 19 19:47:25 2014 +0000 Lunatic: engine.setupDebugBasePal(), auto-detect 2nd+ shadexfog.translate(). engine.setupDebugBasePal() set up the water base palette such each of the first 15 "ramps" of 16 consecutive colors has a single, "representative" color. For example, color indices 0-15 and black, 16-31 are dark gray. In shadexfog.lua, list remappings from LOOKUP.DAT that are expressible as remappings of 16-tuples. From-SVN: r4337 commit 0f1f71bd0f129cca90b27cdc5b1e9f9158990dfa Author: Philipp Kutin Date: Sun Feb 16 19:16:06 2014 +0000 Lunatic: add engine.saveLookupDat() and document, related tweaks. - Mapster32: before loading LOOKUP.DAT, set palookup[0][239]=239 to make an identity map of the base shade table's shade 0 - Rewrite color index remapping case of makepalookup() for clarity BUILD_LUNATIC. From-SVN: r4336 commit 84da9c8b2800880250e53b1171db8a42b0975abd Author: Philipp Kutin Date: Sun Feb 16 19:16:05 2014 +0000 In loadlookups(), look for gap of 4 consecutive unused pals for fog pals. As opposed to the previous way, where the first fog pals was +1, where is the first byte value of LOOKUP.DAT. This allows to pack e.g. lookups [1 .. 25] and [30 .. ] into LOOKUP.DAT and have fog pals be generated at pals [26 .. 29] (i.e. the additional lookups don't shift the fog pals, making user maps depending on these numbers not look as intended.) From-SVN: r4335 commit d8ae1063714ef22ef56985b231787933c776a81b Author: Philipp Kutin Date: Sun Feb 16 19:16:03 2014 +0000 Factor out common parts of loading LOOKUP.DAT into engine.c:loadlookups(). Also, error if didn't read enough data and account for TITLE and REALMS swap between basepal number and on-disk order (sigh). From-SVN: r4334 commit 32d3b218cf128bfe284f0c6b28c617c3f076c6ed Author: Philipp Kutin Date: Sun Feb 16 19:16:01 2014 +0000 Lunatic: rewrite shadexfog.create_128_trans to allow creating fewer tables. It must be a power of two in [2 .. 128]. Rewrite test/sprite_access.con's liztroop example to account for that. Also, add function shadexfog.create_trans() which aceepts a function (r,g,b,R,G,B) -> blended (r,g,b) and rewrite shadexfog.create_additive_trans() in terms of it. From-SVN: r4333 commit 02c7b4d8e71624d88fc980123f51be9e122aebce Author: Philipp Kutin Date: Sun Feb 16 19:15:59 2014 +0000 Lunatic: in shade table 'remap16' method, allow sparse table, document it. Add shadexfog.createremap() convenience function. From-SVN: r4332 commit 73716ab13a0ad57dd39fc3caee1d592a8c11404a Author: Philipp Kutin Date: Thu Feb 13 15:39:28 2014 +0000 Lunatic: in engine.savePaletteDat(), open file in binary mode. BUILD_LUNATIC. From-SVN: r4331 commit ccad04696e8a796f577723d3447402a01a6dc0d5 Author: Philipp Kutin Date: Wed Feb 12 21:03:07 2014 +0000 synthesis.sh: add Mapster32 to Lunatic preview package. BUILD_LUNATIC. There's no separate SDK package, unlike for the regular builds. From-SVN: r4330 commit 7f25cbb3e26b8e91a7ed9c03269611e126f66ecd Author: Philipp Kutin Date: Wed Feb 12 21:03:06 2014 +0000 Lunatic: disallow saving map-text files in Mapster32 for now. From-SVN: r4329 commit 7197be468ef895875e289f5ad9dc3fb00098fafb Author: Philipp Kutin Date: Wed Feb 12 21:02:59 2014 +0000 Amend r4318: Lunatic doesn't need the safety check. From-SVN: r4328 commit 27f37871d81fa0c5bcd539bd4fb6acdff93aea09 Author: Richard Gobeille Date: Tue Feb 11 17:55:45 2014 +0000 Support "r_windowpositioning" in SDL builds. From-SVN: r4327 commit bf3b0456550481f6930430ad05c9521f7a342510 Author: Evan Ramos Date: Tue Feb 11 07:39:09 2014 +0000 MSVC: Set up support for SDL2. DONT_BUILD. From-SVN: r4326 commit 55f5c07c8d21aa1796a3fcae4b4bab564fc8aea1 Author: Richard Gobeille Date: Tue Feb 11 07:17:45 2014 +0000 Fix 64-bit MSVC builds. DONT_BUILD. From-SVN: r4325 commit d50b5d2f19e81b1d2b6a7bea6f29c28771a16429 Author: Evan Ramos Date: Tue Feb 11 06:14:03 2014 +0000 Fix 32-bit MSVC builds. DONT_BUILD. From-SVN: r4324 commit d52bc472b9dcd7a0d66f023a5dac1ac608d75312 Author: Evan Ramos Date: Mon Feb 10 11:00:34 2014 +0000 Synthesis: Start building Lunatic in 64-bit too. BUILD_LUNATIC. From-SVN: r4323 commit d5a36f42900de5bb9804d710c036aada60bc8797 Author: Evan Ramos Date: Mon Feb 10 11:00:25 2014 +0000 Networking updates. - Added preprocessor value NETVERSION, to be incremented in the source whenever changes are made to the network protocol. - Implemented proper server-side version verification of all clients upon connection. - Implemented connection refusal when we reach MAXPLAYERS. (Should be expanded to implement server player caps.) - Protected against OOB array accesses if an invalid player id is received. - Renamed all "Recieve" to "Receive". From-SVN: r4322 commit 71fc74820d5124ba84f3937164558d32a1cef325 Author: Evan Ramos Date: Mon Feb 10 11:00:07 2014 +0000 Fix warnings when building in C++11 mode, i.e. with CPLUSPLUS=1 CUSTOMOPT="--std=gnu++11". From-SVN: r4321 commit ac3cbef43f0d634ce55c1b013f9b94a19fb0ce3f Author: Evan Ramos Date: Mon Feb 10 10:59:42 2014 +0000 MSVC: Add support for x64 building and all synthesis libs (libpng/zlib, libvpx, libFLAC). External ogg/vorbis are no longer required. From-SVN: r4320 commit d3d64a6d91b94ec138c9e515e3e38bd651edf90f Author: Evan Ramos Date: Mon Feb 10 10:58:38 2014 +0000 Windows: Full library refresh. From-SVN: r4319 commit 38968cfe75df56477ad5e64504efb41e6b7591f8 Author: Evan Ramos Date: Mon Feb 10 10:56:27 2014 +0000 Don't crash if for some reason your CONs don't define actors like SHOTSPARK1, which has its strength value used in hardcoded behavior. From-SVN: r4318 commit c06d28bb05cb3a3d11f38699854f6e3398d048fa Author: Evan Ramos Date: Mon Feb 10 10:56:14 2014 +0000 Very minor changes after an investigation into the possibility of Polymost on Wii. From-SVN: r4317 commit a3b466780fa25a733dc3c9112ac2ea083d2d0c6c Author: Evan Ramos Date: Mon Feb 10 10:55:49 2014 +0000 Replace QuickLZ with LZ4. From-SVN: r4316 commit 01837bf3eafab59ea65b211ade0c84b5985f3057 Author: Evan Ramos Date: Mon Feb 10 10:55:13 2014 +0000 Fix errors and warnings with LLVM/clang 3.4 Windows. From-SVN: r4315 commit dcea2549a620772ae4a34b3402d1480152df8d02 Author: Evan Ramos Date: Mon Feb 10 10:54:50 2014 +0000 Update commented SDL2 key debug log output. From-SVN: r4314 commit c9098dcfa0791998ffebe6cfd0c172597a876aec Author: Philipp Kutin Date: Sun Feb 9 19:22:36 2014 +0000 C-CON: add *actor[].blend as an alias to .detail, *tspr[].tsprblend analogously. See lunatic/test/sprite_access.con for a LIZTROOP that periodically smoothly alpha-fades in and out. (Assuming that the 128 alpha blending tables from shadexfog.create_128_trans(1) are installed.) BUILD_LUNATIC. From-SVN: r4313 commit 1cf9dbcea17a657f6dc7c909b83e4f7eb060400c Author: Philipp Kutin Date: Sun Feb 9 19:22:35 2014 +0000 Extend PALETTE.DAT format to allow carrying additional blending tables. Lunatic: also, add an additional argument 'moreblends' to engine.savePaletteDat() and document that function. See test/shadexfog.lua for a "user-friendly" wrapper shadexfog.save() which prints success or errors. From-SVN: r4312 commit 3cd1d251f8f4175c7b65a7c8ceab0eefb3ea56a4 Author: Philipp Kutin Date: Sun Feb 9 19:22:33 2014 +0000 Lunatic: move code in test/shadexfog.lua to engine.savePaletteDat() and complete it. The function now writes out a full PALETTE.DAT: base balette, shade table and translucency table. From-SVN: r4311 commit 080548c5214cbc8a56c7bef9763b4ad74e09f0f4 Author: Richard Gobeille Date: Sat Feb 8 21:25:29 2014 +0000 Fix building on MinGW (MinGW-w64 was OK). DONT_BUILD. From-SVN: r4310 commit df6ec56b9e36076b840c6b016efd44e32072a4f6 Author: Philipp Kutin Date: Sat Feb 8 14:37:59 2014 +0000 Lunatic: update dynsymlists. Move blendtable[] from build.h to engine.c. BUILD_LUNATIC. From-SVN: r4309 commit 39bc76e9bf9cf49bfdc16c0a35beda428573c480 Author: Philipp Kutin Date: Sat Feb 8 14:37:58 2014 +0000 Lunatic: add a 'lastokcol' argument to engine.nearcolor() and document it. On the C side, slightly rewrite (now) getclosestcol_lim() for clarity. From-SVN: r4308 commit 754f70c7633e922c1e50251f2f32ecd2a5f124a6 Author: Philipp Kutin Date: Sat Feb 8 14:37:57 2014 +0000 Lunatic: document engine.*blendtab() and engine.getrgb() functions. From-SVN: r4307 commit 4cd097287aecf6b9fbe0e0c1adab3d89763870a3 Author: Philipp Kutin Date: Sat Feb 8 14:37:56 2014 +0000 M32script: remove sprite members 'detail' and 'filler', add 'blend', make r/w. From-SVN: r4306 commit ca3478129e45b2676a06c63f2929e817ce086998 Author: Philipp Kutin Date: Sat Feb 8 14:37:55 2014 +0000 In the C code, rename sprite[].filler to 'blend'. Also, fix a missed .filler -> g_ambiencePlaying[] rewrite in the editor. In C-CON, 'detail' is kept as alias to C-side (former) .filler / now .blend, but that name is *deprecated*. From-SVN: r4305 commit 7a3bf88a817092de08be2b1c33f81127b0f26d07 Author: Philipp Kutin Date: Sat Feb 8 14:37:53 2014 +0000 Polymer: factor out polymer_invalidateartmap(), use it in invalidatetile(). This fixes updating the viewscreen in Polymer's ART mapping mode. From-SVN: r4304 commit 4b42e43269ef7a3b75e0e49241a3ff2c65d5cc6c Author: Philipp Kutin Date: Sat Feb 8 14:37:52 2014 +0000 Polymer: factor out polymer_invalidatesprite(), use when viewscreen tex changed. Also, rewrite invalidatetile() for clarity. From-SVN: r4303 commit 4dc4aadcbea22282995ab945f952a5c1d954f5f7 Author: Philipp Kutin Date: Sat Feb 8 14:37:51 2014 +0000 Lunatic: rename sprite[].filler member to 'blend' on the Lua side. From LunaCON, remove 'detail' as alias to that member. From-SVN: r4302 commit 5c2f62f87a54f2fd05d21c736039f8e5e1c4bc62 Author: Philipp Kutin Date: Sat Feb 8 14:37:49 2014 +0000 Classic: support for multiple blending tables + Lunatic interfaces. Currently, sprite[].filler (to be renamed) selects a blending table. If none is installed with that index, the blending table at index 0 is taken (which is read from PALETTE.DAT on engine startup). Thus, for now, the non-Lunatic build will never use a custom blending table because there's no way to register one! But the functionality is there. From-SVN: r4301 commit 1aefcd3bbd79f8d6e671fb1ed596803762b633ba Author: Philipp Kutin Date: Sat Feb 8 14:37:48 2014 +0000 astub.c: in M32_MoveFX, use separate bit array to store "sound is playing". Instead of sprite[].filler. From-SVN: r4300 commit 693d4ee6d902ab909fea8baa873b3db704fe04e9 Author: Philipp Kutin Date: Sat Feb 8 14:37:47 2014 +0000 LunaCON: add and document -Wnever-used-gamevar and -Wnever-read-gamevar. From-SVN: r4299 commit 61367eeab3f81ecf3a8253153d3757539b2f9fc4 Author: Philipp Kutin Date: Sat Feb 8 14:37:41 2014 +0000 Add Makefile.common switch ALLOCACHE_AS_MALLOC, remove DEBUG_WITH_VALGRIND. From-SVN: r4298 commit 97678e5233907d2487124efb9a0ae6c31bdecc89 Author: Richard Gobeille Date: Sun Feb 2 22:18:35 2014 +0000 Fix yellow keycards From-SVN: r4297 commit 5314ece3a5e820f8148e80275a14dd7922218940 Author: Richard Gobeille Date: Sun Feb 2 22:18:21 2014 +0000 Fix a missing reference to WEAPON_POS_LOWER From-SVN: r4296 commit 5a6fcf251c956fa508b35f4282ceae1e66be1cd3 Author: Philipp Kutin Date: Sun Feb 2 15:56:13 2014 +0000 gloadtex() cleanup, make some vars in kplib.c static, add source/valgrind_errors.log. BUILD_LUNATIC. From-SVN: r4295 commit 757cb1b0a45683c858186c9efc3be157982851d8 Author: Philipp Kutin Date: Sun Feb 2 15:56:11 2014 +0000 sounds.c: exit S_PlayMusic() early if length of file is <4 bytes, clean up mem mgmt. From-SVN: r4294 commit c01eb444d5fc5ed8a9820b11a79b917ee30ddc82 Author: Philipp Kutin Date: Sun Feb 2 15:56:09 2014 +0000 engine.c: amend r4292, which introduced an even worse oob for NPOT xsize texs. From-SVN: r4293 commit 5b0dc50e2a7bcc53f97e1f06adb5de19cf5fc53a Author: Philipp Kutin Date: Sun Feb 2 10:50:44 2014 +0000 engine.c: in calc_bufplc(), cope with negative lwall[] values. This should fix the crash encountered here: http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__view__findpost__p__184069 a-c.c also gets a new switch macro, DEBUG_WITH_VALGRIND. From-SVN: r4292 commit ac028d6a8e6238a176576173488e4bcbd6fa1831 Author: Philipp Kutin Date: Sun Feb 2 10:50:40 2014 +0000 LunaCON: implement 'precache'. From-SVN: r4291 commit 6c7fe1a8db5216641a5380ab001883b8181d181b Author: Philipp Kutin Date: Sat Feb 1 16:19:59 2014 +0000 LunaCON: add option -ferror-nonlocal-userdef, on by default. BUILD_LUNATIC. From-SVN: r4290 commit 89daa61edc12bcf45163c9af25f9d2310c79769d Author: Philipp Kutin Date: Sat Feb 1 16:19:58 2014 +0000 sounds.c: do S_MusicVolume() in S_SoundStartup(). This fixes this initialization issue: http://forums.duke4.net/topic/7144-midi-volume-weirdness/ From-SVN: r4289 commit 87edf485e4482cb1ad4147bd44c61d7deb373ba5 Author: Philipp Kutin Date: Sat Feb 1 16:19:57 2014 +0000 Some functionality-conserving cleanup of jaudiolib code. From-SVN: r4288 commit 2f6e693bd41da2dbcc15d0754d41de6e4d56e646 Author: Philipp Kutin Date: Sat Feb 1 16:19:55 2014 +0000 LunaCON: accept empty square brackets for {g,s}etuserdef optional index part. From-SVN: r4287 commit a31e54b96bf979012ecd4804da47ccc985adb2e7 Author: Philipp Kutin Date: Fri Jan 31 21:13:03 2014 +0000 Lunatic: Fix compilation of C++ build, but not starting up yet. BUILD_LUNATIC. From-SVN: r4286 commit 2480480cb816e6e0796d5f92dbceab66c0cf228d Author: Philipp Kutin Date: Fri Jan 31 21:13:01 2014 +0000 LunaCON: error on userdefs accesses with non-local current player. Add lunatic/test/getuserdef.con. From-SVN: r4285 commit f5131db2c581a853deed653b5ff32e5003168556 Author: Philipp Kutin Date: Fri Jan 31 21:13:00 2014 +0000 Get rid of neartag* global variables. LunaCON: fix 'operate'. From-SVN: r4284 commit 60047ed707dd648acc027b7ad7783807d0227ad8 Author: Philipp Kutin Date: Fri Jan 31 21:12:59 2014 +0000 sector.c: factor out goto soup in P_CheckSectors() into function. From-SVN: r4283 commit 54dc22ffcd78609593655a9af2ee35c29a5c8422 Author: Philipp Kutin Date: Fri Jan 31 21:12:58 2014 +0000 sector.c: cleanup round 3, P_ActivateSwitch() refactoring. From-SVN: r4282 commit 40f6832ef72f7a8413a6e8c0f4160c71dd00cd6e Author: Philipp Kutin Date: Fri Jan 31 21:12:56 2014 +0000 sector.c and related cleanup, round 2. - use SPRITES_OF* iterator macros - new function: E_SpriteIsValid(); add some safety checks (e.g. hitag used as sprite index) - the rest is mostly "the usual code transformations" From-SVN: r4281 commit a37c5b116a1ea1f3e255da8018b4a00ca0ff7b3a Author: Philipp Kutin Date: Fri Jan 31 21:12:55 2014 +0000 sector.c: cleanup round 1, trivial changes. From-SVN: r4280 commit 9821d9c0c1e62c44c5f18e9a1e62dbf124168e7d Author: Philipp Kutin Date: Thu Jan 30 19:12:10 2014 +0000 Follow-up to RTS cleanup: factor out 2x almost-same code into G_StartRTS(). From-SVN: r4279 commit 8f83b1b8aeaec8a7b5d0d4fe6e3f69bbacf99a57 Author: Philipp Kutin Date: Thu Jan 30 19:12:08 2014 +0000 Reincarnate RTS sound functionality together with cleaning up related code. - Make Win+F* also make play and RTS sound, since modern OS's window managers like to eat Alt-F*. (Some Win+F* may be inaccessible too, but together all 10 should hopefully be covered.) - Fix an issue where keys other than F1-F10 were considered as starting an RTS sound and crashing EDuke32 in the process From-SVN: r4278 commit 73b3cb4babaf61a5dc54ad9582c2b7115b519242 Author: Philipp Kutin Date: Thu Jan 30 16:13:53 2014 +0000 Fix USE_OPENGL=0 build... again. DONT_BUILD. From-SVN: r4277 commit 35757ad7a75a84c22af0145f923e68a913dfa407 Author: Philipp Kutin Date: Wed Jan 29 18:32:51 2014 +0000 Fix respawn operation with monsters off, rewriting G_OperateRespawns(). BUILD_LUNATIC. From-SVN: r4276 commit 6006596c4c48a6532f9349b3f440d7175d283b4a Author: Philipp Kutin Date: Tue Jan 28 19:03:47 2014 +0000 TROR: when clearing bunch number of c/f with yax_setbunch(), don't reset xpanning. In the non-Lunatic build naturally, since the Lunatic one uses its own member. From-SVN: r4275 commit d79681ef24bfe7d47211175cd35390ce01e80d33 Author: Evan Ramos Date: Mon Jan 27 10:31:39 2014 +0000 Print "32-bit"/"64-bit" along with the version number in the log. From-SVN: r4274 commit 9b3e54104c08c032c3ad24128221a906370e4ed3 Author: Evan Ramos Date: Mon Jan 27 10:31:20 2014 +0000 Remove "-fpermissive" from C++ builds because we don't need it. From-SVN: r4273 commit c7d21cd771b50636a6d13c6c0f5d553d4955c60c Author: Evan Ramos Date: Mon Jan 27 10:31:08 2014 +0000 MapArt: gltexinvalidatetype(INVALIDATE_ART) so that loading or unloading an ART set will take effect when using the OpenGL renderers. From-SVN: r4272 commit c4cfe8d408b59b430d5ec4f2321df436b7e91bad Author: Evan Ramos Date: Mon Jan 27 10:30:54 2014 +0000 SDL2: Don't use SDL_Renderer if it is a software fallback, because that would only waste memory and speed. From-SVN: r4271 commit c85359b596117bf3c5a700aa11a7bd6c279c4595 Author: Evan Ramos Date: Mon Jan 27 10:30:39 2014 +0000 SDL2: Eliminate a memory leak when changing resolutions with SDL_Renderer 8-bit mode. From-SVN: r4270 commit 4c7035180d206bc5d0041776bd3acaccbf8b251a Author: Evan Ramos Date: Mon Jan 27 10:30:25 2014 +0000 SDL: Fix "the issue where if you hold down a key and enter the console then release it that the key remains held down until you hit it again outside the console". From-SVN: r4269 commit a1e5307ba563442d622749b37e8aa0b6242179ea Author: Evan Ramos Date: Mon Jan 27 10:30:00 2014 +0000 audiolib: Introduce support for PlayStation CD-XA audio, a simple ADPCM format. It's functional, but due to the odd 37.8 KHz nature of the format, I will need to add a resampler to the audiolib to prevent the aliasing artifacts that occur at present. I also hear clicks/pops every so often, but I do not know if a resampler would fix these as well or if they are a separate problem. Note that you cannot directly use the four XA files on the Total Meltdown disc because they each contain eight songs. They would need to be split using a utility I wrote that is outside the scope of this SVN. From-SVN: r4268 commit 392618515312871ddcedf63629b85f64cfa7c1c1 Author: Evan Ramos Date: Mon Jan 27 10:29:29 2014 +0000 MapArt: Fix a harmless C++ warning. (malloc casting, for those interested) EDuke32 has me so accustomed to straight C... using a template and pass-by-reference makes my day. From-SVN: r4267 commit 76dbb4a6f4c31592d751d79eb8d91de3c5d295c9 Author: Philipp Kutin Date: Fri Jan 24 21:39:04 2014 +0000 LunaCON: add codegen option -fbad-getactorvar-use-pli for C-CON compatibility. Also, improve -Wnumber-conversion warning by printing the resulting number. BUILD_LUNATIC. From-SVN: r4266 commit 917cf3dbfae7ff1e52f28394318fae74644df404 Author: Philipp Kutin Date: Fri Jan 24 21:39:03 2014 +0000 Mapster32: make wall texture alignment [.]/[,] work with bottom-swapped walls. In simple cases, it should be added. Combinations of alignment across TROR boundaries and bottom-swapping will probably not work right. From-SVN: r4265 commit 42327a58ed8de665bc606bee02cfcec2e8edbc2b Author: Philipp Kutin Date: Fri Jan 24 21:39:02 2014 +0000 Improve determination of when a sprite should be drawn before a masked wall. Concretely, in the "behind, outside" case, draw the sprite early if any of its 2 or 4 corner points are behind the masked wall, and inside the cone or on the other outside. From-SVN: r4264 commit d73bcf86362ee50d1d93a9ea67421e2af780723e Author: Philipp Kutin Date: Fri Jan 24 21:38:59 2014 +0000 jaudiolib: don't attempt audio format auto-detection for less than 12 bytes. From-SVN: r4263 commit 6c2b8ff760a15de66d7f44a8c5d2fbd6e19dd3bd Author: Philipp Kutin Date: Sun Jan 19 20:17:25 2014 +0000 Lunatic: document engine.*shadetab() functions. DONT_BUILD. From-SVN: r4262 commit 4b4f003a80ae613d3eb8d0c6beb981bf4aadd3bc Author: Philipp Kutin Date: Sun Jan 19 20:17:14 2014 +0000 Classic: in debugging builds, add cvar debug_maskdrawmode. From-SVN: r4261 commit e0202de3011078f31b5565dfdec4c669103c1ad7 Author: Philipp Kutin Date: Wed Jan 15 20:29:10 2014 +0000 Lunatic: make gv.current{Level,Episode} one-based and document them. Also, in LunaCON, make player .palette member read-only. BUILD_LUNATIC. From-SVN: r4260 commit e06e209e573a8b0845ad5aea56878b7444c7da1c Author: Philipp Kutin Date: Wed Jan 15 20:29:09 2014 +0000 Per-map ART tiles: don't back up or restore reserved tiles. This prevents a crash and maybe other badnesses when e.g. loading a map with ART tiles, doing something that allocates a reserved tile (such as looking into a viewscreen), then loading another map where the tilesiz* of TILE_VIEWSCR is restored to 0. From-SVN: r4259 commit bd7fe5cc2c038d3fb6cfa30bd7355cf0085ed41e Author: Philipp Kutin Date: Wed Jan 15 20:29:06 2014 +0000 ivfrate: fix one error message, make -h/--help display usage. Actually, right now, any first arg starting with '-' will show the usage. From-SVN: r4258 commit bf441719f04c567570a851f0252823292063d20c Author: Philipp Kutin Date: Sun Jan 12 14:54:36 2014 +0000 Engine-side per-map ART file support. When a map named .map is loaded ( may also contain directory separators), the engine checks for existence of _XX.art in the virtual file system, where XX is a 0-padded number from 00 to 19. It loads a consecutive sequence of these ART files, i.e. aborts whenever a number in the sequence isn't found (in contrast to normal ART loading). Restrictions: - the per-map ART files must not reside in ZIP files - if a tile number is attempted to be overridden that has a dummytile or is cache1d-locked, per-map ART loading fails On failure, the map is still loaded, but a diagnostic message is output to the log/OSD. Loaded per-map ART data are cleared whenever the map is "left". In particular: - whenever another map is loaded - in the editor: when a new map is started - in the game: after the bonus ending screen of a finished level, after going to the title screen via the menu A final note: file names are supposed to be looked up and compared case-sensitively. That is, must match EXACTLY between the map's and per-map ART one; 'art' must be lowercase. Otherwise, the cookie monster will come and eat you! BUILD_LUNATIC. From-SVN: r4257 commit fa3918110e44c9bea1b53709f7bf918471d04a34 Author: Philipp Kutin Date: Sun Jan 12 14:54:34 2014 +0000 LunaCON: for readgamevar, if ud.config.scripthandle < 0, keep value, don't err. From-SVN: r4256 commit 49082899370965d25679735a35a45a69c91f6403 Author: Philipp Kutin Date: Sun Jan 12 14:54:33 2014 +0000 Stylistic/formatting tweaks in cache1d code. From-SVN: r4255 commit b806c14efc84e2133a9225d24080279a7a754cd1 Author: Evan Ramos Date: Sun Jan 12 14:06:15 2014 +0000 Fix the startup window freeze under SDL2+Windows when a Yes/No box was supposed to be displayed. From-SVN: r4254 commit 65073d213b6962939307d3486ef31e4de8772407 Author: Evan Ramos Date: Sun Jan 12 14:05:56 2014 +0000 SDL2: Reintroduce SDL_Renderer for the classic renderer so that the Steam Overlay can function with it. From-SVN: r4253 commit d5abdbcdce996def153e8363f208377bd3a0b762 Author: Evan Ramos Date: Sun Jan 12 14:05:39 2014 +0000 Fix a case where the bonus screen would immediately end with an input press because all code between iterations of the bonus screen would execute in less than 1/120th of a second, not leaving any time for totalclock to increment. EDuke32. Where our code runs so fast, it breaks old code. From-SVN: r4252 commit 666dee741305a335efc39c02772c3836fa9e5b11 Author: Evan Ramos Date: Sun Jan 12 14:05:23 2014 +0000 Fix the display of the multiplayer results screen. From-SVN: r4251 commit 911e02462267530f9d60f668ca261290be747c6d Author: Evan Ramos Date: Sun Jan 12 14:05:07 2014 +0000 Run Net_SendClientInfo() after game state creation to properly set up the player's user_name. From-SVN: r4250 commit bcb0cded492931628e43ff24a28164c623e45d59 Author: Evan Ramos Date: Sun Jan 12 14:04:51 2014 +0000 Block off hacks for the primitive splitscreen CON mod with SPLITSCREEN_MOD_HACKS so they are no longer compiled. These hacks could no longer be allowed to co-opt the fake multiplayer mode, used for local testing and mod development. I have half a mind to remove the hacks outright because they could be likened to drilling bolts directly into your car engine just so you could mount a bowling ball as a hood ornament. However, I don't want to take away the splitscreen hack mod from anyone who uses it, and the work done on these hacks should be useful if proper splitscreen were implemented internally using per-player input and multiple renderer/audio passes. From-SVN: r4249 commit 71a5595e4897377e9ebb44a1743a06eaae8ddd4e Author: Evan Ramos Date: Sun Jan 12 14:04:19 2014 +0000 Novelty: Add Ken's "todo list from the Build days" alongside his other documentation. From-SVN: r4248 commit 907a61d427c326e3a7bfc9df77519f1f589319b0 Author: Evan Ramos Date: Sun Jan 12 14:04:02 2014 +0000 For DISABLEINLINING=1, apply __fastcall to make up for the lack of inlining. From-SVN: r4247 commit 0bd4a277d12606c78ee1fd09f746dc3a58c2ddfd Author: Evan Ramos Date: Sun Jan 12 14:03:37 2014 +0000 Always run tsprites with statnum TSPR_TEMP though EVENT_ANIMATESPRITES, such as the "show opponent's weapon" in multiplayer. From-SVN: r4246 commit 6995547fc5bb9d1133dff2847cdb98e3133a9acb Author: Evan Ramos Date: Sun Jan 12 14:03:21 2014 +0000 SDK/Samples: Add "startpos.m32", a helper script for spawn points. You can: -Cycle your position through all DM or coop spawn points. -Jump to the primary spawn point. -Dump full spawn point information to the log file. From-SVN: r4245 commit 78c4ed7c149c63709aaac781132008fbe7214f21 Author: Evan Ramos Date: Sun Jan 12 14:03:00 2014 +0000 Mapster32: Add EVENT_LOADMAP, EVENT_SAVEMAP, EVENT_PRELOADMAP, and EVENT_PRESAVEMAP. Some are more useful than others. From-SVN: r4244 commit a88765a1783f017f885f319e9cb887c24ea48cd6 Author: Evan Ramos Date: Sun Jan 12 14:02:30 2014 +0000 Allow the episode 4 cutscenes to be skipped in their entirety with one keypress, as in the original DOS game, instead of requiring input for each ANM file. From-SVN: r4243 commit c27c5f74e32fc86d864dbe7dabe9f169a631e1fa Author: Philipp Kutin Date: Sun Jan 5 14:06:14 2014 +0000 Lunatic: remap16 method for engine.shadetab, 2nd attempt at recreating orig. one. BUILD_LUNATIC. From-SVN: r4242 commit 35034fce9a5a8d1c2fa860d3f1614e03aeb9fa36 Author: Philipp Kutin Date: Thu Jan 2 17:08:08 2014 +0000 Fix USE_OPENGL=0 build. DONT_BUILD. From-SVN: r4241 commit 3fd89eb8647119046454ea5793f3155b411fb855 Author: Philipp Kutin Date: Thu Jan 2 00:08:41 2014 +0000 synthesis.sh: include test/{damagehplane,shadexfog}.lua for BUILD_LUNATIC. From-SVN: r4240 commit dff4b0734267b455174e163e7b919ac9a8ca186e Author: Philipp Kutin Date: Thu Jan 2 00:08:39 2014 +0000 Lunatic: document fundamentals of shade tables, but not 'engine' API yet. From-SVN: r4239 commit 7442887f53088562d75eaec1f5469a5457d6dad9 Author: Philipp Kutin Date: Thu Jan 2 00:08:36 2014 +0000 Lunatic/m32: make Mapster23 actually start stand-alone, oops. From-SVN: r4238 commit 6f84bed9d4492ba345825dfc065c5497c89608b5 Author: Philipp Kutin Date: Tue Dec 31 11:52:01 2013 +0000 Lunatic/m32: include the Lua bytecode into the binary, exit if setup failed. From-SVN: r4237 commit 4f9751812bcc1bb8862b20f0592b65f71a2726bf Author: Philipp Kutin Date: Tue Dec 31 11:52:00 2013 +0000 Lunatic: add 'engine' module, currently allowing to create custom shade tables. Available in the game and editor. Provide test/shadexfog.lua, containing a function to creating a set of 32 shade tables corresponding to different shades of the same fog palookup table, together with some tests and convenience functions. Also, - Add gv.LUNATIC_CLIENT{,_EDUKE32,_MAPSTER32} - Add LUNATIC_FIRST_TIME in the global env for the game - defs_m32.lua: add reload() convenience function - Failed attempt at recreating the base shade table. It is NOT a linear ramp of the base palette colors to (0,0,0). That is, it's not created by build/util/transpal.exe! From-SVN: r4236 commit 2944e115718e09c11753924890282a2353763c90 Author: Philipp Kutin Date: Tue Dec 31 11:51:57 2013 +0000 build.lua: add a flag toggling multiplication of the color components by 4. From-SVN: r4235 commit 21d3e9e5e7ea4052430720621c1886bf2a1573d0 Author: Philipp Kutin Date: Tue Dec 31 11:51:55 2013 +0000 Lunatic: fix setup under Mapster32, remove a few obsolete lines in defs_common.lua. From-SVN: r4234 commit e13d9f60f6bc84023a20ceb13ea8e0f900b2e11b Author: Philipp Kutin Date: Tue Dec 31 11:51:54 2013 +0000 In the no-netcode build, don't expose four internal engine functions. Also don't compile three multiplayer related OSD commands there. From-SVN: r4233 commit 7587d0eeb6191b8d12fbde3eccf1950fa4013ec4 Author: Philipp Kutin Date: Tue Dec 31 11:51:52 2013 +0000 defs.c: in '2dcol' DEF token, clamp R, G, B values to [0 .. 63]. From-SVN: r4232 commit b63da079bf6aa4caf2d5a8257f52b61cf09b9006 Author: Philipp Kutin Date: Tue Dec 31 11:51:50 2013 +0000 Lunatic: run EVENT_INIT after initial Lua state creation. From-SVN: r4231 commit 30f1ff810f1b4980ad4a1fb924f9e133edd81cd8 Author: Philipp Kutin Date: Sat Dec 28 17:04:39 2013 +0000 Lunatic: allow access to sprite[].yvel through set_yvel() member, document. BUILD_LUNATIC. From-SVN: r4230 commit acd3dc1418bce8fd80edd0138e9cd535ea59675c Author: Philipp Kutin Date: Sat Dec 28 17:04:36 2013 +0000 Remaining sanitizing of .yvel usage plus minor cleanup. From-SVN: r4229 commit f2af30faf446588ac1d1f3d4e879819d707e6577 Author: Philipp Kutin Date: Sat Dec 28 17:04:34 2013 +0000 Clean up legacy ROR code and introduce LEGACY_ROR define in game.h. Also, bound-check two .yvel meant as sprite indices in actors.c. From-SVN: r4228 commit d3f5ec2981cbe31737bb8d32912bd71fa629006c Author: Philipp Kutin Date: Sat Dec 28 17:04:31 2013 +0000 Make a couple of player functions take player indices instead of DukePlayer_t *. From-SVN: r4227 commit d41b47da9d0aefb420edaee5e99884997d6bf5f2 Author: Philipp Kutin Date: Sat Dec 28 17:04:27 2013 +0000 Guard retrieval of player index (.yvel) from APLAYER sprite. It is unacceptable that yvel is on one hand modifiable without restriction from scripting, but can be used as an array index without prior bound check in the C code. Because that member has an overloaded meaning and is also used for innocuous purposes such as the green color intensity of an SE light, it's infeasible to restrict access from scripting. Consequently, we must add bound checks on the C side. This is the first part of the effort to make .yvel safe, adding two functions P_Get() and P_GetP(). There are a couple of other uses as some kind of index. From-SVN: r4226 commit a4e15dbcca23b3013f49ebbb73b71360ad76ffa1 Author: Philipp Kutin Date: Sat Dec 28 17:04:22 2013 +0000 Reserve 16 tiles from the end of MAXTILES, don't allow as user tiles from ART/DEF. From-SVN: r4225 commit 0fcc46aeca834eb2bb53bffb5e2e917ad9c868ef Author: Philipp Kutin Date: Sat Dec 28 17:04:18 2013 +0000 Lunatic: add example toggling forcefield wall to test.lua. From-SVN: r4224 commit 41178a69bcb0dc1672e7c9870997cd8d27cde566 Author: Philipp Kutin Date: Thu Dec 26 19:45:17 2013 +0000 engine.c: clean up code related to ART loading. BUILD_LUNATIC. From-SVN: r4223 commit 6b6e7c27adaeb270fa65c8013087b25516d92d4a Author: Philipp Kutin Date: Thu Dec 26 19:45:15 2013 +0000 Don't consider W_FORCEFIELD+2 (surgery instruments) a forcefield picnum. From-SVN: r4222 commit 166ba156b0f73399fedb804281a8b0f058ed6c58 Author: Philipp Kutin Date: Thu Dec 26 19:45:14 2013 +0000 Clean up code related to forcefield player damage etc. From-SVN: r4221 commit dc200217a290b804b8ba7ba3cbbaef61e2255c9f Author: Philipp Kutin Date: Thu Dec 26 19:45:12 2013 +0000 Rename 'camsprite' to 'g_curViewscreen', other related cleanup. From-SVN: r4220 commit 8adbfbd3006a944798d5e91725ccd833fd7b22b1 Author: Philipp Kutin Date: Thu Dec 26 19:45:09 2013 +0000 Add helper utility lunatic/util/cmpart.lua. From-SVN: r4219 commit dcfc146679d13f3faca12f4883633f6e458441ea Author: Philipp Kutin Date: Thu Dec 26 19:45:06 2013 +0000 Lunatic: swap con.insetsprite's 4th and 5th positional arguments. From-SVN: r4218 commit a7fdf5cd328765ef0a36bdd0afe16d170e081dee Author: Philipp Kutin Date: Thu Dec 26 19:45:03 2013 +0000 Lunatic: expose player[].gotweapon, document it and *_weapon() methods. From-SVN: r4217 commit ee00c611423b9fe5e8e03c5221c2dcde9b97e0ef Author: Philipp Kutin Date: Thu Dec 26 19:45:00 2013 +0000 Consolidate P_AddWeaponNoSwitch into an additional P_AddWeapon argument. From-SVN: r4216 commit 257b4c124582bf6751d310a477612c36a4d025eb Author: Philipp Kutin Date: Thu Dec 26 19:44:56 2013 +0000 Minor stylistic tweaks of code related to weapon switching. From-SVN: r4215 commit 1488b943ccdc7a71f0bfe316cef0ca07d7654005 Author: Philipp Kutin Date: Tue Dec 24 09:44:25 2013 +0000 premap.c: stylistic cleanup in map loading code. From-SVN: r4214 commit c15568e22e8b209eca68042d50f49aea6361d0a9 Author: Philipp Kutin Date: Tue Dec 24 09:44:24 2013 +0000 Factor some code in config.c into OSD_WriteAliases(), move symbol_t to osd.c. From-SVN: r4213 commit 7a0bdbda6012d3298b1fa360875ed00cf56c541f Author: Philipp Kutin Date: Tue Dec 24 09:44:23 2013 +0000 Don't autoexec .cfg files for clipshape maps. From-SVN: r4212 commit 07152013fd06992f8f329add8af3297da6a7ef6d Author: Philipp Kutin Date: Tue Dec 24 09:44:21 2013 +0000 Lunatic: don't allow starting demo recording, since gamevar diffing is NYI. From-SVN: r4211 commit 806e9929f797a41ca199e2a25d630b60f83420c6 Author: Philipp Kutin Date: Tue Dec 24 09:44:20 2013 +0000 osd.c: patch up a possible oob access of osdtext[]. From-SVN: r4210 commit 684793d0827dd401a003df1b3520e088bbe0cecc Author: Philipp Kutin Date: Tue Dec 24 09:44:19 2013 +0000 Lunatic: error on invalid static data read like 'sprite.picnum'. From-SVN: r4209 commit 84fdf446c22689d421658d89164596eddba69acf Author: Philipp Kutin Date: Tue Dec 24 09:44:14 2013 +0000 Pass RETURN to EVENT_DAMAGEHPLANE in the 'dist' arg to allow chained callbacks. From-SVN: r4208 commit 8951b94e95908d61bfaa665560b46d4da3a9ecd2 Author: Philipp Kutin Date: Fri Dec 20 18:31:35 2013 +0000 Lunatic: add ceiling-or-floor method set_picnum(). BUILD_LUNATIC. From-SVN: r4207 commit b2cbc25d4349bed8a102b990231fd5dece76272f Author: Philipp Kutin Date: Fri Dec 20 18:31:33 2013 +0000 Scripting: Add EVENT_DAMAGEHPLANE and document it in Lunatic doc Appendix B. Also add test/damagehplane.lua with these demonstrations: - custom breakable ceilings - breakable TROR glass From-SVN: r4206 commit fe4942e851492e5db7dc138fd548dd1482ba024f Author: Philipp Kutin Date: Fri Dec 20 18:31:29 2013 +0000 Generalize Sect_DamageCeiling to Sect_DamageCeilingOrFloor, use appropriately. - in the function itself: for floor, currently, do nothing (but this commit is in preparation of the next one, again) - In Proj_MaybeDamageCF(), Proj_MaybeDamageCF2() and the A_RadiusDamage() use if the function, generalize to floors, but with the special case that parallaxed floors keep blocking projectiles, as before (in constrast to parallaxed ceilings). However, Sect_DamageCeilingOrFloor() is only called for non-parallaxed ceilings *and* floors. From-SVN: r4205 commit c46905a0a8b1bec4cc9654c1a5be7bd7e16921ec Author: Philipp Kutin Date: Fri Dec 20 18:31:26 2013 +0000 Minor no-functionality-changing tweaks. - factor out: G_WallSpriteDist() - factor out: Proj_MaybeDamageCF() and Proj_MaybeDamageCF2() in preparation for the next commit - Make PROJ_DECAYVELOCITY macro take an arg for readability's sake From-SVN: r4204 commit ace11fc2f6283797368095778e970c0f0cb5f7b8 Author: Philipp Kutin Date: Fri Dec 20 18:31:24 2013 +0000 sector.c: in ST9 handling code, prevent oob for improperly constructed doors. From-SVN: r4203 commit d0f9a95278c4b8906fe2e0209761d273a2bba8f9 Author: Philipp Kutin Date: Fri Dec 20 18:31:22 2013 +0000 Lunatic: fix a couple of spelling mistakes in the doc, found using Emacs ispell. From-SVN: r4202 commit fdae8fc8ef71e7c3d43c5c8cf7347506ce9354ce Author: Philipp Kutin Date: Fri Dec 20 18:31:20 2013 +0000 Lunatic: expose "con.shoot(tilenum, i [, zvel])". Document and add example. From-SVN: r4201 commit afcc3930ca5a719f5cd0738bfaae23d9bd98448e Author: Evan Ramos Date: Fri Dec 20 07:24:09 2013 +0000 Rewrite and unify the handling of the scrollwheel between layers, fixing it in the editor's 2D mode and tile selector under SDL. The scrollwheel is unique among PC input because it has no innate "hold length". Previously, the layers gave the mousewheel a fake hold length to allow the not-necessarily-synchronous game/editor code to pick up the input before the layers marked it as "no longer pressed". This passed under Windows, but it didn't slide under SDL. Besides the two problems listed above, it also potentially limited the rate of weapon selection, where scrolling too fast would not register every clicks. [Unrelatedly, this is still the case when you scroll faster than the game's own tickrate, but addressing that would require rewriting input handling to go through a list of "events" for each tic instead of looking at overall pressed/unpressed states.] From-SVN: r4200 commit 643e7ead180b8b4aa051376d29497b7860d2493d Author: Philipp Kutin Date: Thu Dec 12 19:22:16 2013 +0000 Various stylistic cleanup. - Move ARRAY_SIZE() macro to compat.h, add another one ARRAY_SSIZE() - In A_RadiusDamage(): note maybe-unaligned access issue, prevent unlikely oob - sector.c: use SPRITES_OF* macros where appropriate From-SVN: r4199 commit c0d7e6a61c1ddabd1bfe1b278c4f01bec8f17309 Author: Philipp Kutin Date: Thu Dec 12 19:22:14 2013 +0000 Lunatic: add "for s, what in sectorsofbunch(bunchnum, gv.BOTH_CF)" iterator. From-SVN: r4198 commit 2f000845f4a4ccfcaa48dd10f7dc52d2dd83eabd Author: Philipp Kutin Date: Thu Dec 12 19:22:11 2013 +0000 a.m32: don't clamp SE50 extra (=horiz) to [-500 500] with KP8/KP5. From-SVN: r4197 commit 6fd8270654b69019b6e8a8082e1552d26642525f Author: Philipp Kutin Date: Wed Dec 11 21:23:47 2013 +0000 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. From-SVN: r4196 commit e97989f73edbf7c14210c14a9f7eaed54d9ca5ff Author: Philipp Kutin Date: Wed Dec 11 21:23:42 2013 +0000 LunaCON: statically check some member assignments with literal numbers. And issue warnings whenever the assignment would fail (error) at game time. From-SVN: r4195 commit 558ffb0a3864d9206b9ea32d73dc0c32409477d7 Author: Philipp Kutin Date: Fri Dec 6 18:56:46 2013 +0000 Makefile: add target 'print-compiler-options'. May come in handy at times. BUILD_LUNATIC. From-SVN: r4194 commit 88278b1ba1546aaddd755190eec2a64d571b4ada Author: Philipp Kutin Date: Fri Dec 6 18:56:44 2013 +0000 Really fix the Pause key on Windows/SDL2. This requires enabling the same workaround as for Linux. Maybe it's not system-dependent at all. From-SVN: r4193 commit bd5f97c82debb51caba9ffecd5a134d7bcd98c89 Author: Philipp Kutin Date: Fri Dec 6 18:56:42 2013 +0000 Polymer: invalidate a wall when its sector's visibility has changed. From-SVN: r4192 commit 3d6303ba55d7bb74a900dd169ec03759f3f47027 Author: Philipp Kutin Date: Fri Dec 6 18:56:39 2013 +0000 Do not consider system gamearrays for updating from demos. This generally fixes demo playback. Before, tilesizx[]/tilesizy[] were written into twice as many bytes as needed. Now, don't do that at all. From-SVN: r4191 commit 82b616441a5788c8d0d0d61e3ae0ccd84ef831e6 Author: Philipp Kutin Date: Sun Dec 1 18:28:03 2013 +0000 Fix mouse buttons 4 and 5 on SDL2/Windows. From-SVN: r4190 commit 43fdc32eeae5383f944a84b54b35981ce030541f Author: Philipp Kutin Date: Sun Dec 1 18:28:02 2013 +0000 Lunatic: in fs.listpath() use FIND_NOCURDIR. Also document that function. From-SVN: r4189 commit 95e6b0df1934f5195e48aa184aeac47b4f02bc00 Author: Philipp Kutin Date: Sun Dec 1 18:27:59 2013 +0000 cache1d: add FIND_NOCURDIR option to klistpath(). From-SVN: r4188 commit fd0a235ad2bcd4db57c08b7289764f00e3e26825 Author: Philipp Kutin Date: Sun Dec 1 18:27:57 2013 +0000 Fix building stand-alone libcache1d.so. From-SVN: r4187 commit b05d5b946b9b98eccdedfb4556c3e1b7911352f6 Author: Philipp Kutin Date: Sun Dec 1 18:27:55 2013 +0000 defs.c: in check_tile(), pass 'tile' by value. From-SVN: r4186 commit 7932a55c5f4156d93536490ffb1fddb351aa2a69 Author: Philipp Kutin Date: Sun Dec 1 18:27:52 2013 +0000 Guard a sprite/actor access with sector[].hitag as index from OOB. Unlikely but possible for rogue CON code. From-SVN: r4185 commit 80f3d8f3a0f1432fcb74f25074887e67167530b8 Author: Philipp Kutin Date: Thu Nov 28 21:18:11 2013 +0000 Lunatic: document a couple of player members, especially some 'bool' ones. Important because in Lua, a value of zero yields true in a boolean context. BUILD_LUNATIC. From-SVN: r4184 commit 987a079d9a71b2229f27c84865c349ee0a440330 Author: Philipp Kutin Date: Thu Nov 28 21:18:09 2013 +0000 multivoc.c: use a local variable instead of a file-scope one used locally. From-SVN: r4183 commit bc7eea7dd2c4f095382bb9ac3c2de7a4664ad072 Author: Philipp Kutin Date: Thu Nov 28 21:18:07 2013 +0000 a-c.c: Make vector extensions also be compiled with Clang. I was checking for GCC >= 4.7, while Clangs pretends to be GCC 4.2. Use a feature test macro instead. The comment I made in r4161 regarding GCC vs. Clang code was wrong. Now, Clang generates slightly faster code for these cases (solid and masked 4-pixel wide vlines). From-SVN: r4182 commit a067d923f324b4dd3c0545c075797b1e441b8b71 Author: Philipp Kutin Date: Thu Nov 28 21:18:05 2013 +0000 In P_HandleSharedKeys(), clean up weapon index bound checking. In particular, (int32_t)j != -1 is replaced by (uint32_t)j < MAX_WEAPONS to prevent a value >= MAX_WEAPONS to be assigned to p->wantweaponfire (it's used as a weapon index in P_CheckWeapon(). From-SVN: r4181 commit efc7a02a581f7469b5aa1f7abd07aea558ae77c6 Author: Philipp Kutin Date: Thu Nov 28 21:18:04 2013 +0000 Don't assign result of A_PlaySound() to p->scream_voice if the former is >127. Because p->scream_voice is an int8_t. This is an unlikely situation (126 voices ought to be playing simultaneously while starting the "scream" sound), but still... From-SVN: r4180 commit 35e1bc56d81547a0760f0dab184d52e9989f4de2 Author: Philipp Kutin Date: Thu Nov 28 21:18:02 2013 +0000 LunaCON: disable some player members, tweak decls of others. The ones disabled are because they were found to not be used in any mod I tested. Exposing members directly is rarely good API. - bool toggle_key_flag -> const uint8_t ... (because value 2 is used) - make scream_voice, cheat_phase read-only From-SVN: r4179 commit 3897c06e1794331d131ca7000b0a35f2bb1a7fa5 Author: Philipp Kutin Date: Thu Nov 28 21:18:00 2013 +0000 Lunatic: slightly tweak the event/actor times printout when exiting. From-SVN: r4178 commit 0b46fbca9b2227f325fdeba0082a41bf5bc3a9ba Author: Philipp Kutin Date: Thu Nov 28 21:17:56 2013 +0000 LunaCON: fix assignment to projectile sound/bsound/isound. From-SVN: r4177 commit 672ade1492f1ef65fe9da8b30efb1ae136820fc0 Author: Philipp Kutin Date: Fri Nov 22 19:26:54 2013 +0000 In fullscreen_tint_gl() disable GL_FOG, preventing nasty flickering. Which was especially noticeable in the Lunatic build. Also, use glPushAttrib/glPopAttrib there. From-SVN: r4176 commit 89d03e39f88dc15e2d561a29cbbf4ce191c651d6 Author: Philipp Kutin Date: Fri Nov 22 19:26:52 2013 +0000 Give rotatesprite 'orientation' bits enum names, too. From-SVN: r4175 commit 85f466d6070f2f761668a315e3b0cd4c26eaaaf0 Author: Philipp Kutin Date: Fri Nov 22 19:26:50 2013 +0000 Use named enum constants for the HUD flags instead of literal numbers. From-SVN: r4174 commit 3f430a0b066c1a9b806739a91f5669a88e28291d Author: Philipp Kutin Date: Fri Nov 22 19:26:48 2013 +0000 Polymodes: bump the allowed range for 'r_pr_hudangadd' to [-1024 .. 1024]. From-SVN: r4173 commit b803e887dc6e98e02ba993039d4b457448fceb52 Author: Philipp Kutin Date: Fri Nov 22 19:26:46 2013 +0000 Polymost: handle HUD model 'fov' DEF token. This "simply" requires an appropriate factor in the projection matrix. Also, get rid of a special-case factor for >=1.6 aspects (making HUD models wider then, I think). From-SVN: r4172 commit 3b6b754aa1faf529765a0c69ea3ac844235c7538 Author: Philipp Kutin Date: Fri Nov 22 19:26:44 2013 +0000 A couple of trivial changes. From-SVN: r4171 commit 131a9ddf1eb02d0388bf2a2ae500060d4253c41d Author: Philipp Kutin Date: Fri Nov 22 19:26:21 2013 +0000 Classic: implement horiz. tex panning for sprites (spriteext[].xpanning). Known as getactor/sprite[].xpanning from CON, values are 0-255. It should be assumed that this is only valid for wall-aligned sprites (currently, face sprites also pan). A test is provided in lunatic/test/animatesprites.con. It should be run in E1L2 and only with the Lunatic build. From-SVN: r4170 commit 5b38c965dc27278ecc9e7d35819f42e8a577a72d Author: Philipp Kutin Date: Tue Nov 19 19:00:02 2013 +0000 a.m32: add [']+[F] menu function setting xvel=1 on all sel. wall/floor sprites. For sanitizing underwater sections, see r4166. Also, don't print "Menu function executed successfully" when the function printed something itself. From-SVN: r4169 commit b215d41f31f55ea12f12850d75d388be9655923d Author: Philipp Kutin Date: Mon Nov 18 10:51:26 2013 +0000 Amend r4142: make e.g. 'include a' (names shorter 4 chars) append ".m32". DONT_BUILD. From-SVN: r4168 commit 257c23b1e9c660fa193dfe826fb39a44f6ddd252 Author: Philipp Kutin Date: Sat Nov 16 18:47:23 2013 +0000 sdlmusic.c: disable FORK_EXEC_MIDI. Also, if it were to be reenabled again, use execv() instead of execvp(), i.e. don't look up $PATH for the executable. From-SVN: r4167 commit a74f6281505ad8641abedb97070222b2b373c246 Author: Philipp Kutin Date: Sat Nov 16 18:47:21 2013 +0000 Game: make underwater blocking floor sprites w/ xvel 1 NOT act like sprite bridge. Likewise for blocking wall sprites. This makes it possible to construct underwater sections containing complex spritework without losing the "underwater-ness" when over such sprites, in a backward-compatible way. Actually, the check is for bit 1 being set, but all other bits should be considered reserved. From-SVN: r4166 commit e72a406a8d7240c179cfe231222254e0c22d7faf Author: Philipp Kutin Date: Sat Nov 16 18:47:19 2013 +0000 lunatic/util/foreachmap.lua: don't expand .xxx after ']'. Add an example searching for all maps containing blocking floor-aligned sprites in underwater sectors. From-SVN: r4165 commit ef0be3042e3405850551c5a558dd03a84eaa68c7 Author: Philipp Kutin Date: Sat Nov 16 18:47:16 2013 +0000 Mapster32: show a message when setting the initial position with SCROLL LOCK. From-SVN: r4164 commit 1316145bb3e6a4f6e99c3db6cc6880bd3a519078 Author: Philipp Kutin Date: Sat Nov 16 18:47:15 2013 +0000 SDL2: fix Ctrl-F/Ctrl-G as "key FIFO" keys, used in Mapster32. By detecting them in the SDL_KEYDOWN events. This list is getting a bit ridiculous... From-SVN: r4163 commit 9ff4fce113e66330995cde6426512cb1b77a6a20 Author: Philipp Kutin Date: Sat Nov 16 18:47:12 2013 +0000 a-c.c: use GCC vector extensions only on 64-bit targets. Compiling a 32-bit NOASM build resulted in code containing a MOVAPS instruction that accessed a memory location not aligned to 16 bytes (MinGW, GCC 4.8). From-SVN: r4162 commit f3d2c1b392d861caa8b89de8c1f74130f2fc5b3e Author: Philipp Kutin Date: Sat Nov 16 18:47:11 2013 +0000 a-c.c: prevent stray lines on bottom of sprites by saturating v. tex coords. The functions mvlineasm1, mvlineasm4 and tvlineasm2 can now be set to clamp the vertical texture coordinate (vplc), preventing the unsightly stray lines on the bottom of non-y-flipped sprites. (The first part of this effort, r3483, handled their top). However, this is only enabled for the mvlineasm ones: the vectorized variants suffered almost no slowdown (even though a PADDUSD SSE instruction would be a nice thing to have), while it was pretty significant for the sequential translucent ones. Summarizing, this leaves two cases where stray lines may appear in the non-ASM build (the saturation is NYI for a.nasm): - at the bottom of y-flipped sprites - at the bottom of translucent sprites (can be toggled by #define) Another observation is that recent GCC generates much faster code for this stuff than Clang from SVN. From-SVN: r4161 commit 5ca8517cb1987d54df2663cd7a24ba45898941ff Author: Philipp Kutin Date: Sat Nov 16 18:47:07 2013 +0000 a-c.c: in {v,mv}lineasm4, use vector types for vplc/vinc with GCC >=4.7. For a full 1680x1050 screen drawing a solid/masked wall, the FPS increases from 118 to 133 and from 114 to 116 (respectively) for me. Guarded by the macro USE_VECTOR_EXT in the source. From-SVN: r4160 commit a2d8b7254f84f851eb2721c77ae0cb823097eb3c Author: Evan Ramos Date: Fri Nov 15 20:05:20 2013 +0000 Synthesis: Augment changelogs a little bit. DONT_BUILD. From-SVN: r4159 commit 3d69fd8441b0576570fdda360adc9a8044642093 Author: Evan Ramos Date: Fri Nov 15 19:41:02 2013 +0000 At least now I know exactly what this is doing. BUILD_LUNATIC. From-SVN: r4158 commit bd5cb232e4dc80adaa91b5295c6cdf13bade6e3e Author: Evan Ramos Date: Fri Nov 15 19:18:10 2013 +0000 BUILD_LUNATIC. Right now. From-SVN: r4157 commit 2fa757e6b3ca8bed41216b09e4860ec157bce1ef Author: Evan Ramos Date: Fri Nov 15 19:02:52 2013 +0000 This one better work. BUILD_LUNATIC. From-SVN: r4156 commit 587b487b86fdba4ce268ba0a770ed10c9c9b9015 Author: Evan Ramos Date: Fri Nov 15 07:24:33 2013 +0000 This should fix Synthesis for real. BUILD_LUNATIC. From-SVN: r4155 commit 25916df3e184ffb2028254dcf13585272c6a3048 Author: Evan Ramos Date: Fri Nov 15 05:45:22 2013 +0000 A stab in the dark at fixing the Synthesis problems. BUILD_LUNATIC. From-SVN: r4154 commit b1d9db4874569f9c9333d92a8323ccbc412f31c6 Author: Philipp Kutin Date: Tue Nov 12 21:03:23 2013 +0000 LunaCON: for gamevar-already-defined warnings/errors, show old location. Synthesis, BUILD_LUNATIC! Got the build? Good synthesis. From-SVN: r4153 commit 42ffb358b3c2040636a5168ca630cb67ab7ecafd Author: Philipp Kutin Date: Tue Nov 12 21:03:20 2013 +0000 LunaCON: In lunacon.lua, make room for a couple more locals at file scope. Also, really reset all label-related tables in reset.labels(). From-SVN: r4152 commit 87b6178594852fd4cb0c00a85a76ece2774810ae Author: Philipp Kutin Date: Tue Nov 12 21:03:18 2013 +0000 LunaCON: for *-already-defined style warnings/errors, show location of old def. From-SVN: r4151 commit 51f0231ded4c7c4e76abaa5cd00b6bea48948ea9 Author: Philipp Kutin Date: Tue Nov 12 21:03:16 2013 +0000 LunaCON: add a couple of userdefs members, fix tsprite's sectnum for writing. From-SVN: r4150 commit b160397607198f00191f7ba06f7a92de1ec3ec0b Author: Philipp Kutin Date: Tue Nov 12 21:03:11 2013 +0000 LunaCON: implement 'ssp' command. From-SVN: r4149 commit 02710d92860cb2365f070a03e32e412396c89cd3 Author: Philipp Kutin Date: Mon Nov 11 20:33:55 2013 +0000 Mapster32: don't produce erratic behavior w/ crash when not in 3D mode. Also, BUILD_LUNATIC. From-SVN: r4148 commit e730c570d1640e03faf4dbc8ad291f9426ae93c0 Author: Philipp Kutin Date: Mon Nov 11 16:48:23 2013 +0000 Lunatic: add 'fs' module containing 'listpath' function, 'd' in global env. See the updated documentation for (ATM sparse) details. From-SVN: r4147 commit bcc7cde9adfdbe32e74ab24756cdde7baa4915ff Author: Philipp Kutin Date: Mon Nov 11 16:48:17 2013 +0000 CON: add sprite pseudo-member 'isvalid', getting 1 if the sprite is valid. And 0 otherwise. Before accessing a sprite that is not not known to be definitely valid (e.g. a loop over all sprites from 0 to MAXSPRITES-1), one should check for validity before accessing it in any other fashion. From-SVN: r4146 commit de6df1da72df1167144448513007ee7ec754d55d Author: Philipp Kutin Date: Fri Nov 8 18:08:49 2013 +0000 Lunatic: add two names forgotten for dynsymlist. Let's BUILD_LUNATIC to see whether it still works... From-SVN: r4145 commit df909cd8af565488458531287d5abefc49703626 Author: Philipp Kutin Date: Fri Nov 8 18:08:47 2013 +0000 In C_SetCfgName, don't use unsafe string functions with unknown-length input. From-SVN: r4144 commit 1cb5e3e0542f52fd1df3436f2b0881c7b043abcf Author: Philipp Kutin Date: Fri Nov 8 18:08:45 2013 +0000 LunaCON: implement 'setcfgname'. Factor out a block of code into C_SetCfgName() and use that from lunacon.lua. From-SVN: r4143 commit f0ae7e0422bd338db95e5f9bb907c5afa0b72868 Author: Philipp Kutin Date: Fri Nov 8 18:08:42 2013 +0000 LunaCON: on 'starttrack' with null music, issue a 'soft' error. That is, one that doesn't break the control flow. From-SVN: r4142 commit a8fb7f8d84c6c9f064786154f38729baebdb37e0 Author: Philipp Kutin Date: Fri Nov 8 18:08:40 2013 +0000 Lunatic: fix ported A_FurthestVisiblePoint(). From-SVN: r4141 commit 1163403a158b0087dcae027c694e2024f7f4e8a0 Author: Philipp Kutin Date: Fri Nov 8 18:08:37 2013 +0000 LunaCON: implement NORESET flag for gamevars. From-SVN: r4140 commit ca21d1b33ac5b8d37f9ebda1542629c8ec1efe42 Author: Philipp Kutin Date: Mon Nov 4 22:56:12 2013 +0000 OSD: on non-Windows, make textmode=0 the default, just like in Windows. This fixes some init and update anomalies: before, - init would always be the graphical mode (0), but writing merely "osdtextmode" would switch it - osdtextmode would not get saved to the cfg From-SVN: r4139 commit 1431afea20da2c570d0ef22e4ba5df90d474e043 Author: Philipp Kutin Date: Mon Nov 4 22:56:10 2013 +0000 OSD: retire OSD_GetFmt(), OSD_GetFmtPtr() and OSD_GetTextPtr() functions. These were too much "looking into the implementation of a module" for my taste, hence OSD_GetShadePal() earlier. From-SVN: r4138 commit fb01b747c443aea17edd852843e065edda9ce0b4 Author: Philipp Kutin Date: Mon Nov 4 22:56:09 2013 +0000 OSD: make plain display (osdtextmode=1) colorized, too. From-SVN: r4137 commit bbed3d04d1d68a73174e727f58f099352bdc97ea Author: Philipp Kutin Date: Mon Nov 4 22:56:08 2013 +0000 OSD: factor out getting sh/pal using format+text buffers into OSD_GetShadePal(). From-SVN: r4136 commit 29fdc9b39995269113f9d5038622aba40fdcc9a2 Author: Philipp Kutin Date: Mon Nov 4 22:56:06 2013 +0000 textfont.c: make TAB character display blank. This renders tweaks like r4122 unnecessary. Also, note a "bug" with the program generating that C code. From-SVN: r4135 commit 4f1675480be1835f617febf885137c1e8f32cf8c Author: Philipp Kutin Date: Mon Nov 4 22:56:03 2013 +0000 Lunatic: add 'lua' OSD command, permitting to execute arbitrary code. That is, everything that would be possible via scripting. From-SVN: r4134 commit 7d7cf24733b1a30a673624427fb96a207381e782 Author: Philipp Kutin Date: Mon Nov 4 18:21:09 2013 +0000 For demos, make savehead.savename[] carry the SVN revision number. Also, shorten "FAILED STARTING DEMO RECORDING." message so that it fits on the screen. DONT_BUILD. From-SVN: r4133 commit ea03a191ffaf4164398869d610b7ad56adc73043 Author: Philipp Kutin Date: Mon Nov 4 18:21:07 2013 +0000 In exprs like "Bmemcpy(&p->pos.x, &sprite[i].x, sizeof(vec3_t))", drop the ".x". From-SVN: r4132 commit c3dd9f5acc6ae659ef3fab46d1a46739040920bb Author: Evan Ramos Date: Mon Nov 4 04:32:28 2013 +0000 Everybody makes mistakes. From-SVN: r4131 commit 9c6d0861b0b18038a9cc8862fc503252f1f51d93 Author: Evan Ramos Date: Mon Nov 4 03:59:26 2013 +0000 Sweeping modifications to synthesis and the package directory structure so that every potential binary is in its own package. While we're rearranging files, ensure all SVN mime-types are set correctly. From-SVN: r4130 commit 737f52a847dc752c0dbfe627986ccbd9016e876a Author: Evan Ramos Date: Mon Nov 4 02:35:39 2013 +0000 Synthesis now outputs .7z instead of .zip and .tar.xz instead of .tar.bz2. DONT_BUILD. From-SVN: r4129 commit ebd921c08722a189d6c54271d0340af0373f5ea7 Author: Evan Ramos Date: Sun Nov 3 04:02:23 2013 +0000 Allow -g, -x, -h, -j, and for the game, -d, to take their file name after a space. This allows quotes to be used with them properly. I updated the help windows to prefer these variants because they are superior to the -xSquished versions. Also, factor out the command-line processing code for the above, plus con/def modules and clipmaps. From-SVN: r4128 commit 989ae6c86a55dcc173eb269b14a9c52f0429d3c6 Author: Evan Ramos Date: Sun Nov 3 04:02:01 2013 +0000 RegCloseKey when we are done with RegOpenKeyEx. From-SVN: r4127 commit 88c9e677c18e3546bd101d947e3760a0ef889ee5 Author: Evan Ramos Date: Sat Nov 2 01:41:45 2013 +0000 Update SDL2 to 2.0.1. From-SVN: r4126 commit 9eda0443ac64bc5a8933b60b6a009f25ec906c1f Author: Philipp Kutin Date: Mon Oct 28 21:26:32 2013 +0000 In G_SaveMapState, fix 1024-byte write beyond array bound on 64-bit platforms. This was caused by mismatched for types mapstate_t's animateptr[] and the global one (int32_t vs. int32_t *). Bump BYTEVERSION. From-SVN: r4125 commit 1a7c3bb8d6469f6d6f8480a68076b18977a2a7ea Author: Philipp Kutin Date: Mon Oct 28 21:26:30 2013 +0000 m32script: when failing to load file, don't append '.m32' if already there. So that there are no error messages like "M32 file `a.m32.m32' not found." Also, in build.c's 'save as' code, add a bound check that would probably always pass in practice, but looks a bit safer and may fail in very cornerly cases. From-SVN: r4124 commit 170782cb4ce887407ebb4f1804e3ba9f04ffb547 Author: Philipp Kutin Date: Mon Oct 28 21:26:28 2013 +0000 Mapster32: save r_usetileshades and r_pr_artmapping with mapster32.cfg. From-SVN: r4123 commit 2b415f2691f62701262d3451c341d787032f1cb0 Author: Philipp Kutin Date: Mon Oct 28 21:26:27 2013 +0000 m32script: when printing error line, replace tabs with spaces. From-SVN: r4122 commit d1765f729246c9db3603ea18f2c799d707b6f693 Author: Philipp Kutin Date: Mon Oct 28 21:26:25 2013 +0000 Mapster32: take initial map file name from ExtPreInit()->G_CheckCommandLine(). Instead of directly in build.c:app_main(). Previously, it was possible that an argument to an option, e.g. "WGR2" with "-game_dir WGR2", would get interpreted as the initial map to load. This in turn would attempt to execute WGR2.cfg as sequence of OSD commands -- where that file is an EDuke32 config file instead! Now: maps are passed without any options, e.g. "mapster32 [opts...] debug.map". The map file name is not added to the "additional parameters" for map testing. From-SVN: r4121 commit 3a719c37c9fe60262b7f3575e237a6f2b66d5724 Author: Philipp Kutin Date: Sun Oct 27 21:12:25 2013 +0000 SDL2/non-Windows: Before showing "simple message box", replace tabs with spaces. Because the one implemented on top of X shows a special mark for tabs instead of whitespace. Also, in wm_msgbox(), use vsnprintf. From-SVN: r4120 commit 2083f2eb8a784a350dab2190d55d20eb15252c8c Author: Philipp Kutin Date: Sun Oct 27 21:12:22 2013 +0000 LunaCON: very primitive gamevar handling logic for {save,load}mapstate. From-SVN: r4119 commit 057d26d46968e42234f43785bfc7075b15271aaf Author: Philipp Kutin Date: Sun Oct 27 21:12:20 2013 +0000 LunaCON: in {save,load}mapstate, warn that saving/restoring gamevars is NYI. From-SVN: r4118 commit 881eff62db7fb19a3ebe22569fb733f230880f83 Author: Philipp Kutin Date: Sun Oct 27 21:12:16 2013 +0000 SDL: Add SDL scancode -> ASCII value translation for the "key FIFO" for ESCAPE. This fixes ESC in certain situations such as the editor map selection menu. From-SVN: r4117 commit 65dd71a524c6be5059d3d08da2ac1bc1cb41f78f Author: Philipp Kutin Date: Sun Oct 27 21:12:13 2013 +0000 SDL: factor out 2x repeated code into keyascfifo_{isfull,insert}. From-SVN: r4116 commit f910462b69f7e7338040ba1cf28389db5c703fc2 Author: Pierre-Loup A. Griffais Date: Sun Oct 27 18:14:25 2013 +0000 Use gcc 4.8 specifically for synthesis builds. From-SVN: r4115 commit 7e23c888c310072ba00be3f6dd9b64282e257937 Author: Philipp Kutin Date: Fri Oct 25 21:57:09 2013 +0000 At end of G_RestoreMapState(), update g_player[].ps->i from STAT_PLAYER sprites. This fixes a potential crash caused by violating the expected invariant sprite[g_player[player_index].ps->i].yvel == player_index otherwise. From-SVN: r4114 commit b31aaa25bf60b466ad3c4d63d713702cfa7706da Author: Philipp Kutin Date: Thu Oct 24 17:48:19 2013 +0000 Lunatic doc: add Lua source code highlighting using GNU Source-highlight. DONT_BUILD. From-SVN: r4113 commit 078445ca269c25af5868c0be998afac36b38b49f Author: Philipp Kutin Date: Sun Oct 20 12:35:06 2013 +0000 LunaCON: implement NODEFAULT flag (1024) as session variables. This is in contrast to C-CON, where the implications are not clearly obvious. See this discussion/monologue: http://forums.duke4.net/topic/955-eduke32-scripting/page__view__findpost__p__159613 Currently not implemented for session gamevars: - per-player, will be made a global one instead - per-actor, will be made a plain per-actor one instead DONT_BUILD. From-SVN: r4112 commit 24dde705bbfaa5b0c13970fc8a9f54c6c0efd17a Author: Philipp Kutin Date: Sun Oct 20 12:35:03 2013 +0000 LunaCON: add necessary identifier-is-not-gamevar check. From-SVN: r4111 commit e7960258904522c36eda0ec5deba024a26a1c2ab Author: Richard Gobeille Date: Sat Oct 19 22:35:36 2013 +0000 Set the SDL window icon when changing video mode From-SVN: r4110 commit 5e6cf2d43c40399d015db18b91a334a58bea323b Author: Philipp Kutin Date: Thu Oct 17 16:44:28 2013 +0000 CON: Add LOGO_FLAGS bits 4096-32768 to disable E1-E4 bonus scenes, respectively. Each scene is disabled in its entirety, there's no way to disable only a particular part. DONT_BUILD. From-SVN: r4109 commit 0f1d9ba4cc6af6273931149db781b6bacaced3e2 Author: Philipp Kutin Date: Wed Oct 16 19:43:07 2013 +0000 SDL2: fix quote and pause keys. - Add SDL scancode -> our key code map for SDL_SCANCODE_APOSTROPHE - Remove duplicate map for SDL_SCANCODE_PAUSE From-SVN: r4108 commit 26773ce262336f5510b392d5b3accd6b83c7332e Author: Philipp Kutin Date: Wed Oct 16 19:43:06 2013 +0000 Lunatic: make it possible to build with LuaJIT 2.1, add -Lopts=profile there. From-SVN: r4107 commit 2705956d7fe7482639141448d4ad969f693b1dbc Author: Philipp Kutin Date: Wed Oct 16 19:43:03 2013 +0000 build.lua: add read_basepal(). From-SVN: r4106 commit a0b709df8d0505ad348d00d8c4f12ec2aca7e728 Author: Philipp Kutin Date: Wed Oct 16 19:43:01 2013 +0000 foreachmap.lua: remove the need for a space for certain '.' accesses. That is, now it's not necessary to write e.g. "io. write" -- .xxx is translated to [i].xxx only if it's a matching member name. From-SVN: r4105 commit 2bc6da399a72c989aa6f50d2d998595921fd573f Author: Philipp Kutin Date: Wed Oct 16 19:42:59 2013 +0000 build.lua: add "artfile" class, allowing to open and get pics from an ART file. From-SVN: r4104 commit 7f845b3807ab6369abc0a24a38bdc94461c3ab56 Author: Evan Ramos Date: Sun Oct 13 09:16:25 2013 +0000 Wii: Fix wiibuild.bat so that revision numbers have the "r" prefix like they are supposed to. From-SVN: r4103 commit 629ce6a7929224a2f24e47757793b8ed5133a48e Author: Evan Ramos Date: Sun Oct 13 09:08:31 2013 +0000 Wii: Fix build and add custom headers and libs to SVN. (It's helpful to set up a build system from scratch.) DONT_BUILD. From-SVN: r4102 commit 9037f8eb67516b45ea063a57b4c74691e17d7326 Author: Evan Ramos Date: Sun Oct 13 06:17:41 2013 +0000 r4087, attempt #2: Fix "warning: iteration 1461 invokes undefined behavior [-Waggressive-loop-optimizations]" in initkpeg(). From-SVN: r4101 commit f148ac659e6dd4d4f95ea5d6f0b2c2615eb9162c Author: Evan Ramos Date: Sun Oct 13 06:17:27 2013 +0000 Change the default SDL version to SDL2 and the default Windows RENDERTYPE to SDL. From-SVN: r4100 commit 1647a17204415ef5edc84794ef10b46e7531fba7 Author: Evan Ramos Date: Sun Oct 13 06:17:07 2013 +0000 Windows: Add SDL2 headers and libraries to the repo for quick-and-easy building and static linking. (SDL2 uses the zlib license so we are in the clear.) From-SVN: r4099 commit 7ac130e99651a85ea4b61fdf188ef5004a77514e Author: Evan Ramos Date: Sun Oct 13 06:16:27 2013 +0000 Update synthesis to build and package 64-bit executables next to the 32-bit ones. From-SVN: r4098 commit cf6a93e049631e8f22f1220e1e298304213c9adf Author: Pierre-Loup A. Griffais Date: Sun Oct 13 03:13:53 2013 +0000 Make synthesis use i686-w64-mingw32-gcc-dw2-4.8.0-linux64 + native NASM. If you see any weird behavior in synthesis builds after this change, please let Plagman know! From-SVN: r4097 commit b3fddd358571c671ef2a6cf26088e5d9c448f4de Author: Philipp Kutin Date: Fri Oct 11 22:20:46 2013 +0000 Fix OpenGL texture cache "leak" and slightly tweak hash string construction. The leak happened because a struct was hashed that had uninitialized bytes in padding inserted by the compiler. The hash string in now constructed as concatenation of three CRC32s as 8-byte hex strings, i.e. the individual CRC32s are padded with leading zeros. Note to users: because of the hash change, it's sensible to delete the 'textures' and 'textures.cache' files. From-SVN: r4096 commit 969199662528f64f9ff196665b3f979ef07a4a74 Author: Philipp Kutin Date: Fri Oct 11 22:20:45 2013 +0000 Fix mouse grabbing in SDL debugging builds. From-SVN: r4095 commit ebba7a664b41508819e6d01d0809c686c2f254e0 Author: Philipp Kutin Date: Fri Oct 11 22:20:43 2013 +0000 Polymer: fix ANM playback. References: - r3742 - r4038 (fixing savegame screenshots, but introducing the now fixed bug) From-SVN: r4094 commit 3ccf5ac640955e47d570c3b4de5111358b9f9509 Author: Philipp Kutin Date: Fri Oct 11 13:43:39 2013 +0000 Revert "Move CONTROL_ProcessBinds() to CONTROL_GetInput()." [r3981] That change confounded character-based input with e.g. HUD control under certain circumstances, see http://forums.duke4.net/topic/6845-eduke32-savegame-annoyances/ Also, BUILD_LUNATIC ... just for the hit.sect -> hit.sector change. From-SVN: r4093 commit 5cbafa611d65d567b8de5d681138c9af5b6ce1b6 Author: Philipp Kutin Date: Fri Oct 11 13:43:37 2013 +0000 Lunatic: add forgotten g_argv to dynsymlist_m32. From-SVN: r4092 commit e83ad3818a9d0dc94ba39b4a5b7d8208fbf48dc0 Author: Evan Ramos Date: Tue Oct 8 10:00:44 2013 +0000 Clean up some GUI/WM minutiae. Should fix linking Mapster32 on *nix with HAVE_GTK=0. From-SVN: r4091 commit 72f085f0bbb80b590795e27c3ddb696dbdbbe88b Author: Evan Ramos Date: Tue Oct 8 10:00:25 2013 +0000 Fix the vsync menu option so that it actually works. Variables at global scope which share a name tend to actually be the same variable. Not good when you pass such a variable to function that immediately returns if the passed parameter (the variable) equals said variable (itself). From-SVN: r4090 commit d6837de590e834dcdd19c9a2552212873f59da56 Author: Evan Ramos Date: Tue Oct 8 09:59:59 2013 +0000 Merge a patch and suggestions from NY00123 improving SDL2 support. This fixes the flickering in OpenGL in SDL2 on Windows. It also provides a proper list of resolutions. From-SVN: r4089 commit 609bccafeb33ec86d26e683feed97c8b599fcf2b Author: Evan Ramos Date: Mon Oct 7 10:06:09 2013 +0000 Fix OpenGL under SDL && Windows. (Almost. SDL 1.2 works fine, but SDL2 has an unresolved problem where OpenGL screen updates flicker over a black background.) From-SVN: r4088 commit b9f1d650a399ca6727c01a28ab0dec576a1a1f58 Author: Evan Ramos Date: Mon Oct 7 10:05:54 2013 +0000 Fix "warning: iteration 1461 invokes undefined behavior [-Waggressive-loop-optimizations]" in initkpeg() by promoting the variables in question to int64_t. NOTE TO TEAM MEMBERS: Please review this, as I am not sure what is actually intended here. From-SVN: r4087 commit 16d49fa34019a05c98c668ff4895e0e92e1bafbf Author: Evan Ramos Date: Mon Oct 7 10:05:41 2013 +0000 Windows startup window tweaks: - Don't print osd.szCSDVersion when it is empty, preventing an extra space between the OS name and version number. (An example of what this field holds is "Service Pack 1".) - Under SDL, allow the "console" edit field to repaint after "OK" is clicked. Important when a long def file is loading. From-SVN: r4086 commit 0f66ea362b9898192f1090f42bb3936d26412fac Author: Evan Ramos Date: Mon Oct 7 10:05:24 2013 +0000 Allow wm_msgbox() to use SDL_ShowSimpleMessageBox() under SDL2. Unfortunately, SDL2 does not (yet?) provide a Yes/No box for wm_ynbox(). From-SVN: r4085 commit b9674205aad10b4675b393b7003813032820cbea Author: Evan Ramos Date: Mon Oct 7 10:05:03 2013 +0000 Split the handling of audio based on RENDERTYPE into a new variable named MIXERTYPE, allowing Windows builds to use SDL for input and rendering (RENDERTYPE=SDL) while using DirectSound and Windows' MIDI interface (MIXERTYPE=WIN [current default]) so that EMIDI works. From-SVN: r4084 commit fc50ffc258cc4bf50922461a089536a02ab19ab2 Author: Evan Ramos Date: Mon Oct 7 10:04:16 2013 +0000 Fix the RETURN and KP_ENTER keys under SDL2. From-SVN: r4083 commit 253998da60388728748ed1c28e9d0f9fb28a5199 Author: Evan Ramos Date: Mon Oct 7 10:04:02 2013 +0000 Fix the Classic renderer under SDL2. From-SVN: r4082 commit 5e3bc327d17afd516dbabebabbe39c4bd6162573 Author: Evan Ramos Date: Mon Oct 7 10:03:49 2013 +0000 Fix USE_OPENGL=0 build. From-SVN: r4081 commit 0323da19586e6cd4597ad9a5b87ae5da0d06d9db Author: Evan Ramos Date: Mon Oct 7 10:03:37 2013 +0000 Merge a patch from NY00123 that draws the screen to a temporary surface under the selected bit depth then blits it to a surface at the system desktop bit depth, under SDL. This allows 8-bit classic to run in fullscreen under certain *nix configurations and Windows 8. From-SVN: r4080 commit 8294f5c4e1867c2eab159f52d75ab103728e7db7 Author: Evan Ramos Date: Mon Oct 7 10:03:23 2013 +0000 Fix the long-standing trivial warnings in net.c. Cognitively, so much time has passed that these unused variables would offer little help indicating the roadmap for networking. In any case, I have taken care only to comment rather than remove anything that is more than just a throwaway loop counter. If this commit inconveniences anyone in any way, please contact me personally and I will make it right. From-SVN: r4079 commit d11e93f7771587240ca6d67c9098001cefe1fbf6 Author: Evan Ramos Date: Mon Oct 7 10:03:11 2013 +0000 Iron out all errors and warnings when compiling with MinGW-w64, targeting either 32-bit or 64-bit. From-SVN: r4078 commit 6bc7f25b1f9bea2af844baf98162e133f97e85da Author: Evan Ramos Date: Mon Oct 7 10:02:50 2013 +0000 Update prebuilt ebacktrace1 dlls. This allows r3625 to take effect. Rejoice as the 32-bit dll built by i686-MinGW-w64 works, resulting in a 1.0 MB file instead of MinGW32's 5 MB dll. From-SVN: r4077 commit e38f1c995fddec7a89ca6cde84c91abf35aab1d5 Author: Evan Ramos Date: Mon Oct 7 10:02:33 2013 +0000 Fix ebacktrace1 under MinGW's GCC 4.8 and binutils 2.23.2. We keep needing more and more hacks as libbfd keeps becoming dependent on additional libraries we don't need... From-SVN: r4076 commit 0169da4036a7e4009a8701630f58a44b76c41938 Author: Evan Ramos Date: Sun Oct 6 07:50:16 2013 +0000 Build tools: Fix all compiler warnings and errors with MinGW/GCC 4.8 || SDL2. From-SVN: r4075 commit 5cb82e827b1aa35764d7b45772e06305912c735b Author: Evan Ramos Date: Sun Oct 6 07:49:53 2013 +0000 Improve SDL2 support as much as I can, for now. The game compiles, links, and starts, but all three renderers either don't display correctly or crash. To build with SDL2: make RENDERTYPE=SDL SDL_TARGET=2 From-SVN: r4074 commit 74a9b52011a934a0c078a64b8cf9df3139077433 Author: Evan Ramos Date: Sun Oct 6 07:49:26 2013 +0000 Work around a bug in MinGW 4.8 / mingwrt-4.0 where a function named main() in misc/src/libcrt/gdtoa/qnan.c takes precedence over the proper one in src/libcrt/crt/main.c. From-SVN: r4073 commit 858c365db4ecd1806b45d103d7c86fe71c738a93 Author: Evan Ramos Date: Sun Oct 6 07:49:10 2013 +0000 Fix building of astub.c with MinGW 4.8. We have to work around namespace pollution in . From-SVN: r4072 commit fbbde92ed7053d0b97df80f82acd66a6726dd597 Author: Philipp Kutin Date: Sun Sep 22 12:42:06 2013 +0000 Lunatic: rename hitdata_t member 'sect' to 'sector' for consistency. DONT_BUILD. From-SVN: r4071 commit 9a9cee14e89a5f664de8a784328e398beddd5eb3 Author: Philipp Kutin Date: Sun Sep 22 12:42:00 2013 +0000 Lunatic: document xmath.kangvec() and hitscan(). From-SVN: r4070 commit 2af67dde2e0e7118a12e0373a4971fc7f8e545c3 Author: Philipp Kutin Date: Sat Sep 21 13:38:56 2013 +0000 In C++ build, fix "narrowing conversion inside { } is ill-formed" warning. This also exposes an actual issue. The sound definitions may be dynamically remapped, in which case they are not necessarily <=255 any more. BUILD_LUNATIC. From-SVN: r4069 commit 50502d504673d6b7c8f9b9cb28ae5daeaffb81ab Author: Philipp Kutin Date: Sat Sep 21 13:38:44 2013 +0000 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 http://blog.frama-c.com/index.php?post/2013/08/24/Function-pointers-in-C 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 From-SVN: r4068 commit 6b166fbd54070a5b1335f61dea750b1f2a7ba583 Author: Philipp Kutin Date: Sat Sep 21 13:38:07 2013 +0000 Minor changes for Lunatic utils, replace missed sound flag literals with macros. From-SVN: r4067 commit d0a1186c0e44ef37359335efd58aed2150553a1c Author: Philipp Kutin Date: Sat Sep 21 13:37:31 2013 +0000 Add WIP x86_64 assembly texture mapping routines. - Currently: only tvlineasm1 and tvlineasm2, but incomplete (no reverse translucency, nonpow2 textures will crash) - For System V AMD64 calling conventions; requires YASM From-SVN: r4066 commit e22fb363ad8b2acfe45ff6653132bc45ca4d4e0c Author: Richard Gobeille Date: Sun Sep 15 17:59:21 2013 +0000 Additional fix for the shareware version From-SVN: r4065 commit 676fc9f7dbe16b03987d14f504be136689ff2285 Author: Richard Gobeille Date: Sun Sep 15 16:00:55 2013 +0000 Fix shareware version breakage introduced in r3913 From-SVN: r4064 commit e44934159107e943c66a26b14c3105bb61e6fd79 Author: Richard Gobeille Date: Sat Sep 14 17:59:01 2013 +0000 Clear GL depth buffer before drawing a frame in Polymost. This should fix the issue with skies in the Duke64 TC. From-SVN: r4063 commit 2ce83601b6485e339f8769f4845727a83bc9d29c Author: Richard Gobeille Date: Sat Sep 14 17:58:46 2013 +0000 Add support for "orig_sizex" and "orig_sizey" parameters to "texture" block in def files. This is the same as using "dummytile" before defining a texture. Needed for compatibility with the .def files from Megaton, not because I like arbitrarily adding extranneous shit. :p From-SVN: r4062 commit 39fdececc9ed3212784fcb978103f416dedc2303 Author: Philipp Kutin Date: Fri Sep 13 20:23:59 2013 +0000 Revert "Prettify the DEF progress meter by relocating '\n' en masse." This reverts commit c7e51147f1869d42fc8365f748bb8f6bd4c6fc2f. [r3835] Conflicts: eduke32/build/src/defs.c [Dunno what caused this, but I cleaned this out. Also, the change from build.c was not reverted.] From-SVN: r4061 commit ae7ccf6a225f134dda6621ace86c67327040dc07 Author: Philipp Kutin Date: Fri Sep 13 20:23:56 2013 +0000 Polymer: in model preprocessing, implement cos/sin by table lookup. This reduces the proportion of time the trig calculations take of the whole preprocessing from 50% to about 13%. From-SVN: r4060 commit b6137c1869ca8a18e757f7d70c7159ca22d38b41 Author: Philipp Kutin Date: Fri Sep 13 20:23:54 2013 +0000 Lunatic: make hitscan accept ray as vector, add xmath.kangvec. Also, add hitscan test to test.lua -- a crosshair-like sprite is spawned and continuously updated to the position of where the player aims at. From-SVN: r4059 commit 5f73609359005150797302ed2406410d6e298135 Author: Philipp Kutin Date: Fri Sep 13 20:23:45 2013 +0000 Polymost: make spriteext[].{x,y,z}off independent of xdimen/viewingrange/aspect. The offsets (that will translate the axes for .pitch/.roll rotation) were calculated improperly with screen sizes other than 1280 x 1024 and were dependent on other related variables. The fix proceeded empirically, i.e. mostly trial, error, and some educated guesswork. (It's telling that the magic constant 1280 is needed.) A test for Lunatic is added to test.lua that will rotate SEENINES. Bug pointed out by Mblackwell. From-SVN: r4058 commit 11119c3baecafcfa063090f3287416dbe5be8314 Author: Richard Gobeille Date: Tue Sep 10 22:41:19 2013 +0000 Add -usecwd parameter on Windows, to disable searching for Megaton Edition or GOG.com game data From-SVN: r4057 commit 5a00f66967b5102ccfa903480a5e8064eff08881 Author: Philipp Kutin Date: Tue Sep 10 19:17:06 2013 +0000 Add foreachmap.lua module 'colenemy', allow passing module name to findmaps.sh. The 'colenemy' module searches for colored enemies in maps, excluding pal-21 liztroops. DONT_BUILD. From-SVN: r4056 commit 7959654708eaff24341f2f75f0a3e298ae9d7e01 Author: Philipp Kutin Date: Sun Sep 8 20:18:56 2013 +0000 Replace literal g_sounds[].m bits with enum constants. DONT_BUILD. From-SVN: r4055 commit d96d55447731fb9189d47bc58501c322254b0daa Author: Philipp Kutin Date: Sun Sep 8 20:18:51 2013 +0000 Lunatic doc: add some text and examples for using require()/module(). From-SVN: r4054 commit 3b9e01155b37a0c6f5491a7d38debccc081189aa Author: Philipp Kutin Date: Fri Sep 6 14:43:21 2013 +0000 Lunatic: document gv.getangle(), -Lopts=strict, sec:zrangeat(). DONT_BUILD. From-SVN: r4053 commit 6c5260c23ef6b70de1bb8f532715de9f49ace6c9 Author: Philipp Kutin Date: Fri Sep 6 14:43:20 2013 +0000 Lunatic: r/w gamearrays in binary mode, checks for mapdiff.sh, add test/gamearray.con. From-SVN: r4052 commit 2c4c98c4d8b441d443f3bdcb6a47dc3fd7f95897 Author: Philipp Kutin Date: Fri Sep 6 14:43:17 2013 +0000 Lunatic/util: fixes for Windows. - Need to open some files in binary mode. - MinGW's "find" doesn't provide -L option, detect that. From-SVN: r4051 commit 823706cb76302a3e8d7a76c949d08d9ac9dacf05 Author: Philipp Kutin Date: Thu Sep 5 17:37:47 2013 +0000 Lunatic: make -Lopts=strict also error on some table reads w/ nonexistent keys. Specifically, for the tables returned with require"DEFS" etc. This allows to check if maybe parts of a bundle of files is missing (because comparisons like "spr.picnum == D.NONEXISTENT_NAME" do not yield errors normally). From-SVN: r4050 commit e4bd31ebc4e4ae8e6bbef4c45c449b9866f068c3 Author: Philipp Kutin Date: Thu Sep 5 17:37:46 2013 +0000 Lunatic: add option -Lopts=... from command line. Permitting to enable various debugging options. See "eduke32 -debughelp" for which ones those are: they were previously settable from defs_common.lua, and a new option 'strict' has been added that makes accesses to void sprites error. (That is, already "sprite[i]", not "sprite[i].some_member".) From-SVN: r4049 commit 504574724d0165b6dba2682673011614b6d7e055 Author: Philipp Kutin Date: Thu Sep 5 17:37:44 2013 +0000 A couple of minor changes. - engine.c: comment out some unused decls with RELEASE=0 DEBUGANYWAY=1 - Lunatic: update dump.lua and v.lua - Lunatic: test/test_geom.lua: note a perf regression (wrt older LuaJIT, or I mis-configured / built something wrong) From-SVN: r4048 commit c03abdd53c5cc47eece7fddd82cba6f87fbde955 Author: Philipp Kutin Date: Thu Sep 5 17:37:42 2013 +0000 Lunatic: fix _digitalnumber, remove player._INPUT_BITS, add sprite.all(). From-SVN: r4047 commit d0cf7d985c5b9fcef6f3ec0218b784e82f3ac909 Author: Philipp Kutin Date: Thu Sep 5 17:37:40 2013 +0000 util/build.lua: lose packing, use fread(), make bound-check nan-safe. From-SVN: r4046 commit 6a75cc2b79301894a721c598208f0c3caa027ce2 Author: Philipp Kutin Date: Thu Sep 5 17:37:38 2013 +0000 premap.c: delete GPSPEED/CYCLERs only after the loop with EVENT_LOADACTOR events From-SVN: r4045 commit 022c5cd4723c96260b8b24c0ab6db13636203d54 Author: Philipp Kutin Date: Thu Sep 5 17:37:36 2013 +0000 Lunatic: gv.getangle() vs. analogous Lua function test, add some anchors to doc. Also, in listglobals.sh, check for file existence. From-SVN: r4044 commit aaef65eb2776d7bbfe70fc718f0fd16eb5b8451d Author: Philipp Kutin Date: Thu Sep 5 17:37:35 2013 +0000 Lunatic: in control.lua, use C's fwrite() to write gamearray to disk, fix typo. From-SVN: r4043 commit 0a2bda3314ad069862f3560f276f083137484985 Author: Philipp Kutin Date: Thu Sep 5 17:37:31 2013 +0000 a.m32: add 'moveselsects', moving them so that each sector's 1st pt is at (0,0). From-SVN: r4042 commit 9d44e296bf5fc34e1eea2b7701816c101ed77baa Author: Richard Gobeille Date: Sat Aug 31 04:58:07 2013 +0000 Update Windows application manifests to allow GetVersionEx() to return Windows 8.1 on systems running Windows 8.1. Microsoft is pretty stupid sometimes. :/ From-SVN: r4041 commit 5df309998ae19b219b1c1b37d77d19669c928ff0 Author: Richard Gobeille Date: Sat Aug 31 04:57:46 2013 +0000 Update the info displayed in the "details" tab of the application properties dialog in Windows--change copyright date to 2013, update Duke Nukem trademark ownership from Apogee Software, Ltd to Gearbox Software, LLC From-SVN: r4040 commit be7fb61c4114e8ebadd8110ac56362d4fdc113ca Author: Richard Gobeille Date: Sat Aug 24 22:55:49 2013 +0000 Remove unused SYSTEM_POOL_SIZE definition (was used with nedmalloc), change in3dmode() into macro similar to bkbhit() From-SVN: r4039 commit f92344c850f4d6ef60ded2815297c25d8374d68b Author: Richard Gobeille Date: Sat Aug 24 22:55:37 2013 +0000 Fix "The latest builds show the same screenshot for every save game entry", reported at http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__169847 From-SVN: r4038 commit ffb70cfc8fcd27842292177289fd2d46d5e0f145 Author: Richard Gobeille Date: Sat Aug 24 22:55:23 2013 +0000 Add Lunatic stuff to the Visual Studio project. This is just the file view in the IDE, not Lunatic compilation with MSVC! DONT_BUILD. From-SVN: r4037 commit 8dae8b8db87ddf5b380878ed17b110af1662dab7 Author: Philipp Kutin Date: Fri Aug 23 17:01:19 2013 +0000 Lunatic doc: move icons to doc/ root, as they were not showing up properly online. That is, here: http://lunatic.eduke32.com/ or more specifically in lunatic.html. BUILD_LUNATIC. From-SVN: r4036 commit 5d927f642d123d103bcde459611afdb93ba378d9 Author: Philipp Kutin Date: Fri Aug 23 17:01:16 2013 +0000 Lunatic doc: add appendix with hints on how to read Programming in Lua, 1st ed. From-SVN: r4035 commit 0dcd705b8faad6bc8319069c361d4b7e719f67f7 Author: Philipp Kutin Date: Fri Aug 23 17:01:14 2013 +0000 Bounds-check the tile number gotten from EVENT_GETMENUTILE. From-SVN: r4034 commit 354e9f9adcfe8c4b7a2ab91109e7084f61270f11 Author: Philipp Kutin Date: Fri Aug 23 17:01:13 2013 +0000 Mapster32: after auto-inserting inner sector, change sectnums for sprites now in it. (Auto-insertion of an inner sector from a loop happens either because the loop is created in an extended sector, or because it has been punched through a ceiling/floor into the upper/lower neighbor sector.) From-SVN: r4033 commit 6c85243e4390cae017eaf25ff6875c6b49be4aca Author: Philipp Kutin Date: Fri Aug 23 17:01:12 2013 +0000 Lunatic: update documentation a bit. - add gv.GET, gv.WEAPON, gv.RETURN - specify that sprite[].x/y/z and wall[].x/y are 32-bit ints - add an example for con.longjmp() - add an appendix listing the RETURN usage of various events From-SVN: r4032 commit 5e8bc52b5fca7a2913a699c22e93f6aaaf05ee2b Author: Philipp Kutin Date: Fri Aug 23 17:01:10 2013 +0000 Lunatic: on the Lua side, rename gv.g_RETURN to the prettier gv.RETURN. On the C side, keep the name g_RETURN. I'm still superstitious about dropping the "g_". From-SVN: r4031 commit bba5d03fe48c9d6cc27c82bc88dddfc8a432d208 Author: Philipp Kutin Date: Fri Aug 23 17:01:09 2013 +0000 Lunatic: retire gv.*_WEAPON and gv.GET_* for gv.WEAPON.* and gv.GET.*. From-SVN: r4030 commit 1812472af10f062d6bdadaa18b61c4f3986d6a06 Author: Philipp Kutin Date: Fri Aug 23 17:01:04 2013 +0000 Lunatic: fix passing some string members to con.action(), rewrite conststruct(). ... by creating a struct with 'static const int' members, as recommended on http://www.freelists.org/post/luajit/Performance-implications-of-large-FFI-constants,4 From-SVN: r4029 commit 0e8a089eb79d1bd968be6f4f8f3dde6a7b1fe11e Author: Richard Gobeille Date: Tue Aug 20 21:49:59 2013 +0000 Slightly tweak r_usetileshades 1 visibility weighting. It's still not right (and it's impossible to ever truly be right) but at least things aren't pitch black now. I considered changing r_usetileshades to default to 2, but there are some areas where mode 2 is also noticeably darker than it should be... the exit area of E1L1 is a prime example. From-SVN: r4028 commit 92b7ad599cb7775f4a39f101f5563999bae0d747 Author: Richard Gobeille Date: Tue Aug 20 21:49:44 2013 +0000 Rip out all traces of nedmalloc. Sorry, XP users--it's time to upgrade to something newer than an OS from 2001 if this affects you. From-SVN: r4027 commit 4a7a4e017ff5fadaffa2ce6590c593026d5ee825 Author: Philipp Kutin Date: Mon Aug 19 19:27:02 2013 +0000 Mapster32: allow inserting point on wall line even if a sprite is highlighted. Note: the wall line will not light up periodically, but point insertion will be possible nontheless. A bit inconsistent, but I didn't want to do a full analysis of which side effects allowing a sprite highlight and a line highlight to coexist at the same time would have. From-SVN: r4026 commit cbae1c82457d6d48776e2f423aea060b5ddedcea Author: Philipp Kutin Date: Mon Aug 19 19:26:58 2013 +0000 LunaCON: allow a certain type error present in 1.3D GAME.CON to pass. From-SVN: r4025 commit 74dfeb7de2517273de8399267a9fa4f7909962a1 Author: Philipp Kutin Date: Sun Aug 18 21:54:48 2013 +0000 synthesis.sh: remove 'psd' from 'not_src_packaged' (giving 'rm' error later). DONT_BUILD. From-SVN: r4024 commit 6132ff868af46285ddb743274b3ca702e2e4356a Author: Philipp Kutin Date: Sun Aug 18 21:14:37 2013 +0000 When building Lunatic from synthesis, tell LuaJIT to generate PE object files. BUILD_LUNATIC, third attempt. From-SVN: r4023 commit 78316359471b25eaa9867bd462193a63d7961ae8 Author: Philipp Kutin Date: Sun Aug 18 19:24:27 2013 +0000 synthesis.sh: package some Lunatic test files when attempting to BUILD_LUNATIC. From-SVN: r4022 commit cceb965a2e8a80a6a109dfdb3d8bcfb58e93e25f Author: Philipp Kutin Date: Sun Aug 18 19:24:25 2013 +0000 Lunatic: a couple of trivial changes. From-SVN: r4021 commit 5b05d3809eee61470603cd240dc42ef95474a1fe Author: Philipp Kutin Date: Sun Aug 18 19:24:15 2013 +0000 For Clang debugging build, only pass selected UBSanitizer options. This makes CLANG=1 RELEASE=0 DEBUGANYWAY=2 OPTLEVEL=1 builds definitely pretty playable (only Polymost tested) while having a decent amount of sanitization. From-SVN: r4020 commit f2e8c18dc75782f229bcfc56f06ce75d78bc6eed Author: Richard Gobeille Date: Sat Aug 17 22:48:31 2013 +0000 Fix issue with PIPEBOMB_CONTROL mode 2, reported at http://forums.duke4.net/topic/6721-grenade-lifetime From-SVN: r4019 commit 7eb36e22e053f87acd70d1a6c039a2c594701b5c Author: Richard Gobeille Date: Tue Aug 13 01:07:41 2013 +0000 MSVC build fix. DONT_BUILD. From-SVN: r4018 commit 9641c669103964a46361e4387d64e6afd8df4627 Author: Philipp Kutin Date: Mon Aug 12 15:18:22 2013 +0000 polymer.c: remove redundant NULL pointer check in polymer_invalidateplanelights(). Redundant for the same reason as the preceding one: the pointer has already been dereferenced at the point the check is made. Also, all 5 calls of that function pass a valid pointer (provided the pointers from which the expressions are derived are valid). Reported by Stack, too. From-SVN: r4017 commit a8cbe27e91a3792055c4508738d796eb926f4cc8 Author: Philipp Kutin Date: Mon Aug 12 15:18:20 2013 +0000 game.c: remove dead bounds check for cheatbuf[], add assertion. The check is dead because it is made after the fact (oob access), but the cheat string matching logic below actually assures that cheatbuflen < sizeof(cheatbuf) at all times. Exposed using the Stack tool from http://css.csail.mit.edu/stack/ . Also, in gamedef.c's definecheat handling, print the string length (19), not the buffer length (20) if the cheat was truncated. From-SVN: r4016 commit 28ddc33ac97ac5b3a6e328d5ee7f88e8201df81a Author: Philipp Kutin Date: Mon Aug 12 15:18:19 2013 +0000 When issuing "setrendmode" OSD command with mismatched vidmode, auto-switch. From-SVN: r4015 commit a26957f667a05eb1ba7ef52733810dca06df6778 Author: Philipp Kutin Date: Mon Aug 12 15:18:18 2013 +0000 Fix taking address out of bounds of stack'd array, introduced in r3983. Clang's UBSan reports this as undefined behavior. I think that the reason is as follows: C99 6.5.3.2#1 (Constraints) says: The operand of the unary & operator shall be either a function designator, the result of a [] or unary * operator, or an lvalue that designates an object that is not a bit-field and is not declared with the register storage-class specifier. But in case of an expression like "&array[-1]", the operand ("array[-1]") does not designate a valid object. Moral: check first -- assure that an expression is valid for a particular operation before carrying it out. Keep in mind that otherwise, the compiler is absolutely free to optimize out the *check*. From-SVN: r4014 commit 017e2f2cad35f50d6946b608cf958fe7ffc3bed7 Author: Philipp Kutin Date: Mon Aug 12 15:18:16 2013 +0000 baselayer.c: remove baselayer_onvideomodechange, onvideomodechange. From-SVN: r4013 commit 22510e1055e436122f9d451df611964865d7b3ee Author: Philipp Kutin Date: Mon Aug 12 15:18:15 2013 +0000 Mapster32/non-Lua: don't keep tags used for TROR nextwalls when c&p-ing sector. Again, in case a bunch is discarded. The tags would appear as really tagging the walls instead of being "hidden". From-SVN: r4012 commit 8fb0162bfb7aa7307e805df4ed93f4f54615cf53 Author: Philipp Kutin Date: Mon Aug 12 15:18:13 2013 +0000 Mapster32/Lunatic: clear bunchnum and TROR nextwalls when c&p-ing sectors. That is, if a bunch is discarded when copying a sector to the clipboard. (This happens if not all sectors that are part of the bunch are copied.) From-SVN: r4011 commit ec3fcf903ffea930110b3334b3eb63f3cf7f86eb Author: Philipp Kutin Date: Mon Aug 12 15:18:12 2013 +0000 Polymost: fix my r_usetileshades==2 sub-method. Don't touch TerminX's r_usetileshades==1 or it being the default. From-SVN: r4010 commit 8625d28f8df46114920ab396e00da2da77191260 Author: Philipp Kutin Date: Mon Aug 12 15:18:11 2013 +0000 checkdefs.sh: check first and second args, handle definelevelname. From-SVN: r4009 commit 4f93f4ec58ed35d79d200cc41e0c5b82dfd61fd8 Author: Philipp Kutin Date: Mon Aug 12 15:18:10 2013 +0000 net.c: move a necessary bound check to BEFORE the oob access happening. Fixes the undefined behavior discussed here: http://forums.duke4.net/topic/3857-the-crash-thread/page__view__findpost__p__152612 From-SVN: r4008 commit 0aace60ddb881f51191ae477d95b38d7c53ad1fd Author: Philipp Kutin Date: Mon Aug 12 15:18:05 2013 +0000 Mapster32: Clean up "show height indicators" mode. - For setting 1, don't draw them for red walls whose sector floors have equal height. - Make setting 1 the default, because I consider drawing them for such walls (and white walls) noise (as opposed to information). The "verbose" setting 2 is still available. From-SVN: r4007 commit a1a36d75037b6c7184df1a6dd8216b1cb94d4cb9 Author: Philipp Kutin Date: Sun Aug 11 15:28:51 2013 +0000 Retire MultiPsky_TileToIdx() in favor of engine-side getpskyidx(). DONT_BUILD, because there have been no significant changes of the non-Lua build. From-SVN: r4006 commit 6e0eb646e763eb33c7ab131f6adab3c3920c10e8 Author: Philipp Kutin Date: Sun Aug 11 15:28:50 2013 +0000 Lunatic util: add foreachmap module 'plax', looking for maps w/ multiple psky tiles. In foreachmap.lua, make init() be able to return a start index for cmdline args, for the case where the run worker script wants to handle options, for example. From-SVN: r4005 commit 33c8156e2229d585f52f7c9298f973e1882a400b Author: Philipp Kutin Date: Sun Aug 11 15:28:48 2013 +0000 Lunatic: sync defs.ilua's user_defs with r3993, adding member MasterVolume. From-SVN: r4004 commit 590cd5cd7caf708e0d7ded65dccdc82074b57133 Author: Philipp Kutin Date: Sun Aug 11 15:28:47 2013 +0000 synthesis.sh: keep executable extension in a variable. So that the script can be tested in e.g. a native Linux environment. From-SVN: r4003 commit 29316be829b00e7c64b68325c90fede25f105b51 Author: Philipp Kutin Date: Sun Aug 11 15:28:46 2013 +0000 synthesis.sh: fix DONT_BUILD and BUILD_LUNATIC. From-SVN: r4002 commit aa49219f6530bf93ad4ec40bfe1c890d14dd3b09 Author: Philipp Kutin Date: Sun Aug 11 15:28:45 2013 +0000 Lunatic: add LuaJIT's jit/bcsave.lua and headers for synthesis build preparation. From-SVN: r4001 commit fd719082397781392042a24188273ba3eb005905 Author: Philipp Kutin Date: Sun Aug 11 15:28:42 2013 +0000 Lunatic: prepare Makefiles for synthesis build. - libs and headers are expected in platform/Windows/* (not there yet) - prefix Lua #includes with luajit-2.0/ - build bytecode objects with absolute path name (used for debug info) From-SVN: r4000 commit 90d926489b93fdfc72f5f38f6070e8ebe3c3e35e Author: Philipp Kutin Date: Sun Aug 11 15:28:40 2013 +0000 synthesis.sh: replace '-r' option by '-f' in "rm -r $lockfile". Strictly speaking, forcing the delete should be unnecessary too, but it can't harm in case the lock file is deleted from outside while the script is running. From-SVN: r3999 commit 5c0c6bde59411dd3d0e48a13a1c9288bdc30973c Author: Richard Gobeille Date: Sat Aug 10 23:09:14 2013 +0000 Fix keyboard layout issue reported at http://forums.duke4.net/topic/6683-eduke32-forces-my-keyboard-to-us-layout-rather-than-uk From-SVN: r3998 commit 9d57ee6ac7206ab3b2d9e6df7e5fc1759b5d7435 Author: Richard Gobeille Date: Wed Aug 7 14:29:22 2013 +0000 Enable ATI FBO color attachment workaround for Intel as well. Fixes some HD4000 issues. From-SVN: r3997 commit a8fe747a1d91f8ebae7c47e410aa14306727f1e6 Author: Richard Gobeille Date: Wed Aug 7 14:29:10 2013 +0000 Fix net.h, dunno why MSVC accepts functions that don't match their prototypes without complaining... :p From-SVN: r3996 commit 0d86637a42b0b149b69b49db03a0ade140cf0730 Author: Richard Gobeille Date: Wed Aug 7 00:56:37 2013 +0000 Revert "Silence FBO initialization failure message on Intel HD 4000 by moving the glCheckFramebufferStatusEXT() call to below the glBindFramebufferEXT() call. The error returned on HD 4000 previously was something to do with the framebuffer being incomplete, and this seems to fix it, so hopefully it's right." This reverts commit 9a2617eb263e53a348e10c82bf1ba58feed65afc. From-SVN: r3995 commit e1bf4ca3bd0d55aa56c94906835832d498b5bfda Author: Richard Gobeille Date: Tue Aug 6 23:54:09 2013 +0000 Factor some duplicate code into Net_SpawnPlayer(), adjust Net_ExtractPlayerUpdate() a bit. From-SVN: r3994 commit d5c03cdac6ac1c21c33c9d8116893b989860dc0e Author: Richard Gobeille Date: Tue Aug 6 23:53:55 2013 +0000 Implement a master volume control that functions separately from the sound effect and music volume controls. This is important because it allows waveform based music (like the SC-55 music pack, etc.) to play back at a louder volume than the sound effects if the end user so desires. From-SVN: r3993 commit 806731aded39495f6f378f8e3b7bab802c5708c6 Author: Richard Gobeille Date: Tue Aug 6 23:53:34 2013 +0000 Refactor projectiles a bit. Tested with all of the original weapons and with the weapons in the Duke 64 mod. From-SVN: r3992 commit 725b4c05c2cf1a2e9d2bb6df1ac7de1f576b09bf Author: Richard Gobeille Date: Tue Aug 6 23:53:21 2013 +0000 Silence a MSVC warning From-SVN: r3991 commit b110087d3ab800e4a8df18ace4e97d627be5e6b6 Author: Richard Gobeille Date: Tue Aug 6 23:53:12 2013 +0000 Add support for listing symbols of a specified prefix to the "listsymbols" console command From-SVN: r3990 commit c2016d94df8516a553cb4d7145af8508e39e27bb Author: Richard Gobeille Date: Tue Aug 6 23:53:00 2013 +0000 Bring GROWSPARK a bit more in line with the other hard-coded hitscan projectiles, and give it the same sort of accuracy adjustment as the pistol gets when autoaim is disabled. From-SVN: r3989 commit dd44a6f08d92939a47a54fc8407bc027c2c70842 Author: Richard Gobeille Date: Tue Aug 6 23:52:49 2013 +0000 Update ud.config.LastUpdateCheck even when G_GetVersionFromWebsite() fails. SourceForge was down today and it irritated me. From-SVN: r3988 commit 81c30ff82f65cd4ae2d89b9db38a3edd12b89de8 Author: Richard Gobeille Date: Tue Aug 6 23:52:39 2013 +0000 Update win_printversion() to handle Windows 8.1/Server 2012 R2. From-SVN: r3987 commit fbc65099db1ea14d1fde0cea148ffc0213e45c46 Author: Richard Gobeille Date: Tue Aug 6 23:52:27 2013 +0000 Fix http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__164747 (mikesnd error) From-SVN: r3986 commit 27fac0adb92471cef4dc6f215adac86613f977c4 Author: Richard Gobeille Date: Tue Aug 6 23:52:16 2013 +0000 Silence FBO initialization failure message on Intel HD 4000 by moving the glCheckFramebufferStatusEXT() call to below the glBindFramebufferEXT() call. The error returned on HD 4000 previously was something to do with the framebuffer being incomplete, and this seems to fix it, so hopefully it's right. From-SVN: r3985 commit 2cc0fb12b6a26f599440d91ce806d1fd1143654e Author: Richard Gobeille Date: Tue Aug 6 23:52:04 2013 +0000 Bump MAXSYMBOLS to 512. This was probably the cause for the savestate and restorestate debug commands not being registered with the OSD at startup. From-SVN: r3984 commit 8c1f1b5cf4d02f733d51f66e2cd2672cf9596a63 Author: Richard Gobeille Date: Tue Aug 6 23:51:51 2013 +0000 Fix up a couple of functions to adhere better to unwritten code formatting standards. Should be zero functional changes in terms of what the functions actually do. From-SVN: r3983 commit c47e25a73edebfcc83c6d838ab7936f0584a702d Author: Richard Gobeille Date: Tue Aug 6 23:51:38 2013 +0000 Revert "Polymost "use tile shades": don't confound shade and visibility." Temporarily add a r_usetileshades 2 to switch between Helixhorned and myself's ideas of how this should work. From-SVN: r3982 commit d64c9f855bba467efe77c3c0bbbd8d6321d44caf Author: Richard Gobeille Date: Tue Aug 6 23:51:25 2013 +0000 Move CONTROL_ProcessBinds() to CONTROL_GetInput(). I don't think this breaks anything; if it does, revert it! From-SVN: r3981 commit aaace091ea5ef2668a49be23693f0bfd93485b77 Author: Richard Gobeille Date: Tue Aug 6 23:51:10 2013 +0000 Fix a weird problem where the arrow keys would sometimes send a shift keypress on Windows, manifesting in odd things like inconsistent turning speeds when using the keyboard, the grid helper lines showing up in Mapster32 when they weren't supposed to, etc. For some reason, an extra raw input keyboard event is generated with an out of bounds VKey value (0xFF) which must be filtered for proper operation. I wasn't able to find any official documentation regarding this but I did find it mentioned in a couple of random newsgroup/forum postings. From-SVN: r3980 commit 7f12d14e1d9e602c4e8aa9711ea57b1d15206e7a Author: Philipp Kutin Date: Sun Aug 4 20:37:51 2013 +0000 Lunatic: disable printing debug messages for the preview build. BUILD_LUNATIC. From-SVN: r3979 commit 97d2f85d09e9a8ee050308883b36006884f66559 Author: Philipp Kutin Date: Sun Aug 4 20:37:50 2013 +0000 synthesis.sh: add two options specified by magic strings in the HEAD commit msg. - If the message of the HEAD commit contains DONT_BUILD, building is entirely skipped. - If it contains BUILD_LUNATIC, a Lunatic preview release EDuke32 is built (the editor is not built) and named leduke_PREVIEW.exe. From-SVN: r3978 commit 693e836c07976e0f9923cbbeca964532adc319b8 Author: Philipp Kutin Date: Sun Aug 4 20:37:49 2013 +0000 Polymer: slightly more complete handling of (multi-tile) ART skies. - Use the proper tile sequence when multiple pskies are present in a map. However, there's still only *one* psky chosen at map load time. - Handle three horizfrac cases: * 0, psky always at same level wrt screen * 65536, psky horiz follows camera horiz (e.g. E4L9) * otherwise, fall back to default hard-coded parallax implemented as an angle fraction From-SVN: r3977 commit 57bd221337711e52ebf9be119a30597cd401b0a7 Author: Philipp Kutin Date: Sun Aug 4 20:37:48 2013 +0000 Clean up parallaxed sky functionality, part 2. - Rename sky_t members: yscale -> horizfrac, bits -> lognumtiles. - Add default sky (8 tiles, horizfrac=32768 (i.e. 1/2 the scene horiz), offsets all zero) and CLOUDYOCEAN sky (8 tiles, horizfrac=65536, offsets all zero) to multipsky[]. - Get rid of "psky_t g_psky", merely maintaining a g_pskyidx instead. Set it up at map load time so as to keep the behavior of the legacy per-map psky: the last sector index with a matching psky ceiling wins. - In mapstate_t, save g_pskyidx too, not (former) pskybits and pskyoffs[]. - Make on-map-load global psky setup consistent for the game and editor by factoring it out into common.c: G_SetupGlobalPsky(). - Remove a couple of useless initializations, add some static assertions. This commit is more likely to introduce subtle differences in behavior. Specifically, getpsky() now always returns the default sky properties instead of the global sky ones (but with all-zero offsets) when no match for a suiting multi-psky is found. This is only likely to affect the yscale/horizfrac of non-multi-pskies when a global non-default multi-psky has been set up. Bump BYTEVERSION again. From-SVN: r3976 commit a1c12dd11e4f8d8a71131817290c8da9014d4712 Author: Philipp Kutin Date: Sun Aug 4 20:37:45 2013 +0000 Clean up parallaxed sky functionality, part 1. - Consolidate psky* arrays into a "typedef struct psky_t" "g_psky" and "multipsky[]". - Factor out getting parallaxed sky properties into getpsky(). - Condense initial multi-psky setup by memcpy'ing from multipsky[]. - New function: MultiPsky_TileToIdx(). - Add new define PSKYOFF_MAX and related consistency-checking assertions. - Lower MAXPSKYTILES to 8 to reflect current usage (was 256). - Game: make multi-pskies consider dynamically-remapped MOONSKY1, BIGORBIT1 and LA. (Not very useful as the editor will still only act for the static values -- 80, 84 and 89, respectively.) An attempt has been made to preserve behavior even in strange cases, so this commit is unlikely to introduce regressions. Because of point 6, BYTEVERSION had to be bumped. From-SVN: r3975 commit 5adbf08276eda1ca17d16636c66ca614e6bb7adc Author: Philipp Kutin Date: Sun Aug 4 20:37:40 2013 +0000 Lunatic: sanity-check some arguments passed to con.action(). From-SVN: r3974 commit 5dbea49cb7bf1f38b1b0485d36e962838ee05b43 Author: Evan Ramos Date: Sat Jul 20 03:37:10 2013 +0000 Updates to the processing of the tilefromtexture def command: - Allow xoffset and yoffset to modified independently of a tile definition, much like texhitscan and nofullbright. (Both still default to zero when a tile is specified, to keep current behavior, and because it makes sense.) - Add actual detection of the "nofullbright" keyword, which appears to have been overlooked in r3230. - Internal: Eliminate the need for one int32_t by condensing two variables into "flags". From-SVN: r3973 commit 5103daf123ac009b55664b88f207f56eb95041f0 Author: Evan Ramos Date: Sat Jul 20 03:36:54 2013 +0000 Patch from johnnyonflame to fix the GCW and Dingoo build process. From-SVN: r3972 commit c28fec5e385cc5de7d8f5c113937c38028972bb6 Author: Evan Ramos Date: Sat Jul 20 03:36:28 2013 +0000 Force orientation bit 2 for screentext in addition to qstrdim, to match all other screen drawing commands. From-SVN: r3971 commit 7909bd5193a72c68902c11ab541af587d0189dcf Author: Philipp Kutin Date: Fri Jul 19 12:49:13 2013 +0000 Lunatic: Add pre-compiled LPeg 0.12 for 32-bit Windows (MinGW). From-SVN: r3970 commit 22782e7b5cf4b9e48a82ea2f98bc131c587b0028 Author: Philipp Kutin Date: Fri Jul 19 12:49:10 2013 +0000 Lunatic: rename test.elua to test.lua. The old extension is an artifact from when I was thought that extensions should label whether a Lunatic module is to be used in internal/external contexts. Also, change test.lua slightly and commit a little updated documentation. From-SVN: r3969 commit 0e8220af6b8f0e5a0cf712a7278660370f2a442b Author: Philipp Kutin Date: Fri Jul 19 12:49:08 2013 +0000 Lose the 'packed' attribute on actor_t. Its members are already laid out on the natural alignment boundaries. Compilation tested with {32-bit, 64-bit} x {Lunatic, non-Lua} builds. From-SVN: r3968 commit fb31021290e49dd33ff3139b367fd2039720ce26 Author: Philipp Kutin Date: Fri Jul 19 12:49:07 2013 +0000 Lunatic: protect global environment. From-SVN: r3967 commit f631eb137ea58b742385ba0b86020a1f9f340691 Author: Philipp Kutin Date: Fri Jul 19 12:49:06 2013 +0000 Lunatic: remove DBG_ variable for _DEBUG_LUNATIC=0. From-SVN: r3966 commit 163bb019b53dc6479b3483d127bcd60b35d36e1d Author: Philipp Kutin Date: Fri Jul 19 12:49:05 2013 +0000 Lunatic: fix some must-fail tests and module()s without require'end_gamevars'. From-SVN: r3965 commit 12d78135e969a70eba6aaa85926d431326df4c24 Author: Philipp Kutin Date: Fri Jul 19 12:49:02 2013 +0000 Lunatic: replace 'idx >= BOUND+0ULL' idiom with 'not (idx >= 0 and idx < BOUND)' From-SVN: r3964 commit 025d2db0175dba17566c65943bf5b7ea737f1725 Author: Philipp Kutin Date: Thu Jul 18 18:08:16 2013 +0000 Makefile.common: disable -Wstrict-overflow. It didn't turn out that useful and was giving a warning with one of the preceding changes. From-SVN: r3963 commit 5aa9581493a30b26496f58cb5e6b23c48949ac2e Author: Philipp Kutin Date: Thu Jul 18 18:08:15 2013 +0000 Polymer/ART mapping: fix formula for globalvisibility. Also, very slightly tweak a factor toward a "brighter" (farther visible) scene overall to account for the "circular" nature of the fragment distance (as opposed to an "ortho" distance in Build). From-SVN: r3962 commit f198daa90a50c8d184d751cb614c05ba92cee053 Author: Philipp Kutin Date: Thu Jul 18 18:08:13 2013 +0000 Retire global 'lastvisinc'. It was only ever used as upper bound to the time that a visibility change decays, but since it does that in an exponential fashion, there's really no point. From-SVN: r3961 commit 516a3069e1d9e058c1ddbc725474c868c374b32b Author: Philipp Kutin Date: Thu Jul 18 18:08:11 2013 +0000 Make vis decay with time independent of FPS, treat p->visibility<0 like 0. Now, if p->visibility differs from the constant visibility, the former converges toward the latter by three-quartering the difference each second totalclock increment (1/60th second). Negative player visibilities are not handled consistently throughout the different renderers, so make it look the same as 0 (can view to infinity). From-SVN: r3960 commit 655464fb31a27201e62b73f3a8148b2a04cdd194 Author: Philipp Kutin Date: Thu Jul 18 18:08:10 2013 +0000 Polymodes: properly calc start/end fog dist for r_usenewshading=2, vis=0, shade>0 So there's no "jump" from vis!=0 to vis=0 making the texture appear brighter. From-SVN: r3959 commit a6de384c79cbd4ffdfeff3baf0583af788446380 Author: Philipp Kutin Date: Sat Jul 13 21:05:06 2013 +0000 Apply patch by forum user "John Jendro" fixing OS X build. From-SVN: r3958 commit 24240e77c19cb2ff5c4d0ae1d898c283ed7e7242 Author: Philipp Kutin Date: Sat Jul 13 21:05:05 2013 +0000 Makefile.common: make LUNATIC be set to 0 if not set from env ("?=0"). Also override LTO to 0 in Lunatic builds. From-SVN: r3957 commit c219062dc10927baa865310443617fdb4954bc55 Author: Philipp Kutin Date: Sat Jul 13 21:05:04 2013 +0000 Lunatic: document previous additions and more of the existing stuff. From-SVN: r3956 commit 426c987c0a60372459297fbfe95a322ab361b882 Author: Philipp Kutin Date: Sat Jul 13 21:05:01 2013 +0000 Clean up some player.c code. From-SVN: r3955 commit 36ce723f5c97b7b5f7adb281d0f54df22bc4b1a2 Author: Philipp Kutin Date: Sat Jul 13 21:04:59 2013 +0000 Lunatic: rework weapondata_t __newindex handling for the sound members. Also, in test.elua, add a currently failing must-fail test (i.e. it wrongly succeeds where it should not!). From-SVN: r3954 commit 1d54cdbb0905ac2b06f946b70f122d5e96314c62 Author: Philipp Kutin Date: Sat Jul 13 21:04:57 2013 +0000 Lunatic: revamp sector changing/updating functions of sprites. From-SVN: r3953 commit c8f1af50d1e67df8d2d4858151ec5c269f59a1d6 Author: Philipp Kutin Date: Sat Jul 13 21:04:55 2013 +0000 game.c: read sprites-on-screen count for DNDEBUG at end of G_DoSpriteAnimations. Because that function might have inserted tsprites itself, e.g. for the fake floor shadow. Also add one "spritesortcnt < MAXSPRITESONSCREEN" bound check in legacy ROR code. From-SVN: r3952 commit 464274b34bacdbe88ebc16bcdd7383ae7de1f7a7 Author: Philipp Kutin Date: Sat Jul 13 21:04:53 2013 +0000 Lunatic: create game Lua state just before EVENT_NEWGAME, not in G_EnterLevel(). From-SVN: r3951 commit 31add68681749fd6f8b862184d6334aa369bed3a Author: Philipp Kutin Date: Sat Jul 13 21:04:52 2013 +0000 Factor out repeated few-liner into G_NewGame_EnterLevel(), misc. cleanup. From-SVN: r3950 commit 2be0ce64524f4ca6b3dab216565ce5dbd507f28c Author: Philipp Kutin Date: Sat Jul 13 21:04:50 2013 +0000 LunaCON: add -ftrapv, -fwrapv opts, providing trapping/wrapping arith semantics. Currently only for multiplication. From-SVN: r3949 commit 5f9da46d68ee74731f8c5f666e9d894849495d3b Author: Philipp Kutin Date: Sat Jul 13 21:04:49 2013 +0000 Lunatic: call G_ShowView() using the Lua C API and not through the FFI. G_ShowView() may call events. Ouch! From-SVN: r3948 commit cc0a87c091d57841d317100ed105b2cbea093a6b Author: Philipp Kutin Date: Sat Jul 13 21:04:47 2013 +0000 In DNCOORDS display, show execution time in ms for all actors (G_MoveActors). Smoothed using an exponential moving average... with a time constant of 1 sec if I didn't miscalculate things. Also, split BYTEVERSION_JF into Lunatic and non-Lua. From-SVN: r3947 commit 42b9c193ceb134f4f6aca7f51e5399294ed56eba Author: Philipp Kutin Date: Sat Jul 13 21:04:45 2013 +0000 Lunatic: output timing results to CSV file, don't time unreg'd events/actors. The base name is taken from the environment variable LUNATIC_TIMING_BASEFN, which is suffixed with .actors.csv and .events.csv. From-SVN: r3946 commit 9ea52a3647f0eaad8ed7607fbc3d1725f573bbd8 Author: Philipp Kutin Date: Sat Jul 13 21:04:43 2013 +0000 LunaCON: add forgotted "screensound" to keyword list in con_lang.lua. Also, fix 'spriteflags' directive. From-SVN: r3945 commit 1f6f97d0e523cb64748c1a7d4e102205dcdde72b Author: Philipp Kutin Date: Sat Jul 13 21:04:41 2013 +0000 CON: Add predefined labels MAXSPRITES, MAXSTATUS and MAX_WEAPONS. From-SVN: r3944 commit 71159c235106b3c2a565e0f1fdbd2ca1ceb1db1a Author: Philipp Kutin Date: Sat Jul 13 21:04:38 2013 +0000 LunaCON: implement 'tossweapon'. From-SVN: r3943 commit 1c654be6f48dd37a551e4d00120405d8ec0606e2 Author: Philipp Kutin Date: Tue Jul 9 18:23:46 2013 +0000 Lunatic: document more stuff (not too carefully), add red DRAFT marker. From-SVN: r3942 commit 3b4e11a0ed55a630ccaf025969ca84a048008835 Author: Philipp Kutin Date: Tue Jul 9 18:23:44 2013 +0000 Polymost "use tile shades": don't confound shade and visibility. That is, for shade of objects, use shade tables. For visibility, use GL fog. Mixing these two does not produce satisfactory results in areas where both shade and visibility darkening are high, such as around the E1L1 restroom. From-SVN: r3941 commit 411ed1adc884d33201f77529620b9b74c0aa37f9 Author: Philipp Kutin Date: Tue Jul 9 18:23:43 2013 +0000 LunaCON: handle system gamearrays for some array commands. - 'copy' may have them as source, 'getarraysize' works fine - 'setarray' and 'resizearray' are obviously forbidden - 'readarrayfromfile' and 'writearrayfromfile' is not implemented for them (use case?) Also, in the Makefile: don't use realpath on directories. It may give an empty string. From-SVN: r3940 commit cfcba0d2b2a192f37c76c958d20ef28c6ccd172f Author: Philipp Kutin Date: Tue Jul 9 18:23:41 2013 +0000 Lunatic: swap first and second arg of con.spawn(). From-SVN: r3939 commit 9279a0c2938b710456d08aebc879d490cf14b9a0 Author: Philipp Kutin Date: Sun Jul 7 20:59:14 2013 +0000 Lunatic: slight Makefile tweak for Windows preparation. Add doc/how_to_build_lunatic.txt and doc/lpeg-lunatic.patch. From-SVN: r3938 commit ea9c73f0aefa1facbce974f2648241a4e3410cbd Author: Philipp Kutin Date: Sun Jul 7 20:59:10 2013 +0000 Lunatic: retire per-sprite tsprite access for per-tile animation callback reg. Don't yet make this official API though, since there are unresolved issues with newly created tsprites potentially being fed back to the animation loop. Add xmath.angvec(), xmath.bangvec(), tspr:set_sectnum(), tspr:setpos(). From-SVN: r3937 commit 8866a86ef6bb397ce9eddceff0590cdc399ab624 Author: Philipp Kutin Date: Sun Jul 7 20:59:07 2013 +0000 Remove one instance of duplicate code lines and now unused TSPR_MIRROR. From-SVN: r3936 commit 157ce43123c72a920c08b180e8c489e7eeee9fa6 Author: Philipp Kutin Date: Sun Jul 7 20:59:05 2013 +0000 Rename the external 'gethitickms()' to 'gethiticks()'. From-SVN: r3935 commit 1ac7c744f27940f89507dad1ee8ae9a2981090cf Author: Philipp Kutin Date: Sun Jul 7 20:59:00 2013 +0000 In Windows and SDL layers, rename *hitick* to *u64tick*. From-SVN: r3934 commit cb5b22cdb7270bef3181a11f85b873a812458b42 Author: Philipp Kutin Date: Sun Jul 7 20:58:57 2013 +0000 Lunatic: various unrelated changes and more documentation. - check map-text version on load - LunaCON: don't allow (back)slash as identifier char - LunaCON stand-alone: don't resort to default directory for root file names - document non-local control flow functions and for LunaCON, ambigious lexical elements From-SVN: r3933 commit 4a3d1ad08cc4b67806b0392408db0e2073f4c952 Author: Philipp Kutin Date: Thu Jul 4 19:38:53 2013 +0000 Lunatic: partially fix LTO=1 build with GCC. Having to tag these few variables and functions as ATTRIBUTE((used)) seems sensible, but what follows is just strange. OSD_Printf? headspritesect? From-SVN: r3932 commit b57c662c59928b3f28a7076e006d7d50343d7634 Author: Philipp Kutin Date: Thu Jul 4 19:38:50 2013 +0000 Lunatic: make g_playerWeapon an array of a corresponding bcarray type. From-SVN: r3931 commit 6cf8b58b176597e6a69f0b2ab2960e2100111c7c Author: Philipp Kutin Date: Thu Jul 4 19:38:48 2013 +0000 Lunatic: document the additions of the preceding commits. From-SVN: r3930 commit f9b80e4c939f429079d230367e27ec0e341f7f71 Author: Philipp Kutin Date: Thu Jul 4 19:38:46 2013 +0000 Lunatic: various changes. - swap 2d and 3rd args in xmath.rotate() -- now rotate(point, ang, pivot) - add vec3 method 'rotate', calling xmath.rotate - store game tic count in savegames From-SVN: r3929 commit bd3c67a38c4296c301a0a83c93d8cce9e9d0b95f Author: Philipp Kutin Date: Thu Jul 4 19:38:42 2013 +0000 Lunatic: many changes, motivated by writing test "helixspawner". - some renames of functions/methods - con.actorvar: explicitly allow (for now) boolean and number values - added gv.gametic, player.holdskey(), player.all(), actor.check*()/hit*(), gv.rendmode, gv.REND, :mask(), spr:getheightofs() - make read of nil var in "finalized" (live) module produce error, too - add test/helixspawner.lua From-SVN: r3928 commit 1676720066736659325356e9de701dd0010b8567 Author: Philipp Kutin Date: Thu Jul 4 19:38:39 2013 +0000 Lunatic: on palfrom from CON or C, set palsfade{speed,next} and regard prio. From-SVN: r3927 commit a13d0a775e1b727700d5634e3cf0abbc2017832b Author: Philipp Kutin Date: Thu Jul 4 19:38:37 2013 +0000 Polymodes/Lunatic: don't do y panning "correction" for nonpow2 ysize tiles. From-SVN: r3926 commit 12b1150100fad7d306dd2e33b4ea41474cc40d2c Author: Philipp Kutin Date: Thu Jul 4 19:38:35 2013 +0000 Lunatic: document con.action/move/ai and actor methods. Also, in some movement functions, replace e.g. (vel*TICSPERFRAME)>>2 with vel. From-SVN: r3925 commit bddeb3b913abbaf86ff17e80c1e2c03d14be1eb9 Author: Philipp Kutin Date: Thu Jul 4 19:38:32 2013 +0000 Lunatic: various tweaks and fixes. - fix getv movflags handling in VM_Move() - add actor.fall() - LunaCON: sanity-check some action members From-SVN: r3924 commit 83b17a50b2c0f2998dda4ec3b5f5d7b42384c306 Author: Philipp Kutin Date: Sun Jun 30 20:38:54 2013 +0000 Lunatic: in con.action and con.move, allow mixed number/string key tables. E.g. con.action{0, 4, delay=20}; for convenience, viewtype and incval are initialized to 1 (not 0) here. From-SVN: r3923 commit df70c1bedf9f3faffc8b61c5630166dd8dbf189a Author: Philipp Kutin Date: Sun Jun 30 20:38:52 2013 +0000 Lunatic: retire an actor's sprite[].hitag/lotag for new actor[] members. From-SVN: r3922 commit e01e05f3b2876a4a2f368da03da09e08472be99f Author: Philipp Kutin Date: Sun Jun 30 20:38:50 2013 +0000 Retire actor[].shootzvel, as it was only ever used in local scope. That is, its value was only referenced during the duration of a function call that had previously set it. It was also never accessible from CON. From-SVN: r3921 commit ed45cbe30464a8814a0af675f23eaa30aef79794 Author: Philipp Kutin Date: Sun Jun 30 20:38:48 2013 +0000 Actor-related code cleanup part 2: give actor t_data[] indexes names. Using macros like AC_COUNT(t). Clean up related code: - comment out the dead condition noted in the previous commit - Lunatic: use get_count() instead of get_t_data(0) in one place, rename to _get_t_data(), i.e. make that method internal From-SVN: r3920 commit 96c96ef2eb39b10a1d42aafc289bd642b522321e Author: Philipp Kutin Date: Sun Jun 30 20:38:45 2013 +0000 Actor-related code cleanup part 1: rename some locals, expose one dead condition ... due to making hi/lotag unsigned in r3174. This commit keeps the compiler warning, the next one will remove it. From-SVN: r3919 commit 7795e3a849f39ab1059ecbc0136c689600e418b1 Author: Philipp Kutin Date: Sun Jun 30 20:38:44 2013 +0000 Lunatic: add actor methods allowing overriding action delay and move hvel/vvel. Add testing code for an example actor 1275 (newspaper) to test.elua. From-SVN: r3918 commit f4deae52388ecd987e59241cc6fd077117df8bd9 Author: Philipp Kutin Date: Sun Jun 30 20:38:41 2013 +0000 Lunatic: require'CON.ACTION' etc. gets composites from CON; add actor.MOVFLAGS. From-SVN: r3917 commit dd5a85146d37054b01aadfbee1949b7734e6bc0c Author: Philipp Kutin Date: Sun Jun 30 20:38:39 2013 +0000 Lunatic: don't register con.action/move/ai by name, make these return a cdata. From-SVN: r3916 commit 9a67109593794c50b68f05a67a3a5ff87e2b1142 Author: Philipp Kutin Date: Sun Jun 30 20:38:37 2013 +0000 lunatic/listglobals.sh: allow passing multiple file names. From-SVN: r3915 commit c531d224729bf6e52521a6ecd72f2bb08c9e09ef Author: Philipp Kutin Date: Sun Jun 30 20:38:35 2013 +0000 Lunatic: serialization for cdata types, currently xmath.vec3 and ivec3. From-SVN: r3914 commit da1ac9fee5510e8ba49d51f314c5932b77a403ed Author: Philipp Kutin Date: Sat Jun 29 12:15:44 2013 +0000 Fix loading maps in Mapster32, introduced in r3911. Also, get rid of the strange filename[len]=255 hack in loadboard() and make its file name arg const char* at last. From-SVN: r3913 commit d9ef504e71a7e6916d75a051a44d98095bc9dda3 Author: Philipp Kutin Date: Fri Jun 28 14:07:46 2013 +0000 CON: New command 'screensound', unconditionally playing a session-wide sound. From-SVN: r3912 commit 6fa6ef0ec9c21f7fc2ce9190bc53b3ff120be55b Author: Philipp Kutin Date: Fri Jun 28 14:07:44 2013 +0000 Mapster32/Lunatic: ask when a Date: Fri Jun 28 14:07:43 2013 +0000 Lunatic: merge updatesector and ~breadth, making the former accept a flag. From-SVN: r3910 commit 6496ef558ee7838b3f1f02ca1566de14bfa54e7b Author: Philipp Kutin Date: Fri Jun 28 14:07:41 2013 +0000 Lunatic: retire 'geom' module, putting vector types into xmath. From-SVN: r3909 commit 3980ec143fe20d044b611f07ad40549a302192e7 Author: Philipp Kutin Date: Fri Jun 28 14:07:39 2013 +0000 Lunatic: allow serialization of tables in more general cases. From-SVN: r3908 commit 0244aa9c018fa8c010ba5685f32a71cf1bd1f32a Author: Philipp Kutin Date: Fri Jun 28 14:07:37 2013 +0000 Lunatic: begin writing LunaCON documentation. From-SVN: r3907 commit 1dc33c99a3abdad80d0a28a3e33d17c04a1535a8 Author: Philipp Kutin Date: Fri Jun 28 14:07:33 2013 +0000 Lunatic: don't pass 0x80000000 to int32_t arg, document xmath functions. From-SVN: r3906 commit 67ca11f817b2e976e60aeb972f1c90b5e4425b4a Author: Richard Gobeille Date: Thu Jun 27 23:05:24 2013 +0000 Apparently VS2013 doesn't like redefining "inline" either From-SVN: r3905 commit 6798d5dd1d03e0a9d4d431be73bae13e017ec9e8 Author: Richard Gobeille Date: Thu Jun 27 23:05:11 2013 +0000 Fix USE_OPENGL=0 build From-SVN: r3904 commit 9d5798b3f93b5c9eae8948693071a00e4ffb52ac Author: Richard Gobeille Date: Thu Jun 27 23:04:57 2013 +0000 Add a few defined constants for commonly used weapon_pos values From-SVN: r3903 commit 90543dd818fe630a1dacddd78b5e1e24f4b44ba0 Author: Richard Gobeille Date: Thu Jun 27 23:04:39 2013 +0000 Rename getinput() to P_GetInput(), add bounds checking for a few arrays used for weapon drawing that use kickback_pic as an index. From-SVN: r3902 commit d407e7444e6e504cf0f3ede997a5cd189fa136c0 Author: Richard Gobeille Date: Thu Jun 27 23:04:24 2013 +0000 Make P_PalFrom() static inline in player.h as the whole function is just 4 assignments From-SVN: r3901 commit db664665f67612f83d9d477b45c5ad7f7f106607 Author: Richard Gobeille Date: Thu Jun 27 23:04:11 2013 +0000 MSVC build fix (looks like the compiler version shipped with VS2013 has nearbyintf now...) From-SVN: r3900 commit 2835de18c1709c833c31cf11bb1016f5fbc0e2d0 Author: Richard Gobeille Date: Thu Jun 27 23:03:55 2013 +0000 Default r_usetileshades to 1 :) From-SVN: r3899 commit 788ed896860feae83e192d3027148db694fd21f4 Author: Philipp Kutin Date: Sat Jun 22 11:31:16 2013 +0000 engine: consider a point inside() a sector in all border cases (literally). In other words, for a test rectangular sector, a sprite would be inside the sector in on all 4 edges and all 4 corners. Previously, it would have been the lower right portion only (*excluding* LL and UR corners), which led to map editing issues. From-SVN: r3898 commit aa9f8f6da5388b93bbe78aa93f4073accf146033 Author: Philipp Kutin Date: Sat Jun 22 11:31:15 2013 +0000 engine.c: apply "usual readability transformations" on inside() and comment it. The main thing to note is the "half-open" nature of the x/y range checks. From-SVN: r3897 commit e67b3f0856fb937f699498e2dddf3aa6f3a05917 Author: Philipp Kutin Date: Sat Jun 22 11:31:13 2013 +0000 Substitute some symbolic SE_x_* labels for literal SE numbers that were missed. From-SVN: r3896 commit 4b5d6220f8940842e2c9aa98bb8d07dc0cc57b58 Author: Philipp Kutin Date: Sat Jun 22 11:31:12 2013 +0000 Lunatic: document vector types, add forgotten warning icon. From-SVN: r3895 commit d2304ffe9cd4b3ecfe990c1d7738e330db7b73b1 Author: Philipp Kutin Date: Sat Jun 22 11:31:09 2013 +0000 Lunatic: various minor tweaks and fixes. - Pass original module name (dot=dirsep) to module via our require() - geom.lua: fix some operations using the vector type constructor - geom.lua: provide constructor for ivec3, useable like vec3 From-SVN: r3894 commit b64829d3e8e086a93c6bde9b5992a01be4387db8 Author: Philipp Kutin Date: Thu Jun 20 18:31:50 2013 +0000 Lunatic: player method fadecol(), an improved palfrom. Also, an external 'minitext' with optional shade and pal. args and documentation for ps:padecol(). From-SVN: r3893 commit 6283fc00ac6f57708f376e2e4c6940e938fe8da4 Author: Philipp Kutin Date: Thu Jun 20 18:31:48 2013 +0000 Don't register "savestate" and "restorestate" OSD commands even in debug builds. They don't get registered on Windows for some reason, and mapstate debugging is best carried out using scripting code, anyway. From-SVN: r3892 commit 2ca74656232c0f1a2a92a91219a475caad81b4fd Author: Philipp Kutin Date: Thu Jun 20 18:31:47 2013 +0000 Lunatic: major overhaul of gamevar serialization for savegames. - Handle local gamevars. - Restore gamevars from require('end_gamevars'). From-SVN: r3891 commit 35a3c1ff66b94c889505195319fe8e0e7dca940a Author: Philipp Kutin Date: Thu Jun 20 18:31:45 2013 +0000 Lunatic 'geom': retire tovec2 and tovec3, make vec2 and vec3 accept cdata, too. From-SVN: r3890 commit ed03dde50cfd81c92600a19558b0db486b33c915 Author: Philipp Kutin Date: Thu Jun 20 18:31:42 2013 +0000 Lunatic: fix random angle movflag, Windows build; write more documentation. From-SVN: r3889 commit 4a7c48e129ab16cbece79bf01f47f131e7cc035f Author: Philipp Kutin Date: Sat Jun 15 12:52:08 2013 +0000 Classic: prevent a SIGFPE when attempting to draw p'lax with nonexistent tile. From-SVN: r3888 commit 1358b5baf1d381463d52f962d54ebf3076b555f8 Author: Philipp Kutin Date: Sat Jun 15 12:52:06 2013 +0000 Lunatic: write more documentation, handle randomangle movflag in a:set_move(). From-SVN: r3887 commit 1590f61c8fcfb2b12bd80481a1a37c83a5f63fce Author: Richard Gobeille Date: Fri Jun 14 21:29:14 2013 +0000 Forgot a file for a previous commit From-SVN: r3886 commit 4b92de88f1eea1e7f6c4e125e3a02e08aee60926 Author: Richard Gobeille Date: Thu Jun 13 21:17:17 2013 +0000 Fix 1.3D, sorry guys From-SVN: r3885 commit 0a7b7133dfe85c4a26dd8800760af30924a87947 Author: Richard Gobeille Date: Thu Jun 13 21:17:03 2013 +0000 Fix up handling of the Duke shareware beta a little bit, and change the dialog that pops up after running the shareware version too many times to take you to Steam instead of GOG (the Steam version is a better deal) From-SVN: r3884 commit 0822558174897c88ef962a4f078d794982cfac07 Author: Philipp Kutin Date: Thu Jun 13 17:11:09 2013 +0000 Lunatic savegames: store g_playerWeapon[][], fix 'require' with submodules. From-SVN: r3883 commit 68d5fd4e64ce11468312b50166f034238590c04d Author: Philipp Kutin Date: Thu Jun 13 17:11:07 2013 +0000 LunaCON: check reserved bits for sound and ai movement flags. From-SVN: r3882 commit 1fabf9cda3e524639adf8ab8701d729afc246977 Author: Philipp Kutin Date: Thu Jun 13 17:11:06 2013 +0000 LunaCON: make mail, money, paper be affected by tile remapping, fix one printf. From-SVN: r3881 commit a6954eea0238247184544879b2006cd3de7c19b1 Author: Philipp Kutin Date: Thu Jun 13 17:11:04 2013 +0000 cache1d.c: cover up preceding assertion failure by bumping size of lzwrawbuf[]. It's hard to call this a fix, since ideally, buffer sizes like these would be only as large as needed in the worst case. From-SVN: r3880 commit e25de9ac6c539128ab2d14a0cc36be1f0f60b1ce Author: Philipp Kutin Date: Thu Jun 13 17:11:02 2013 +0000 cache1d.c: prettify compression functions, add one currently failing assertion. See http://forums.duke4.net/topic/6526-eduke32-crashing-when-loading-a-dukeplus-map-save From-SVN: r3879 commit 49e3b15ba6da279bef1c1290cf8a0da9b82d1ceb Author: Philipp Kutin Date: Thu Jun 13 17:11:00 2013 +0000 engine: remove preceding assertion failure, continue loop then instead. Interestingly, that test case then appears to be drawn fully. Heh. Also, move one clamp from r1874 one up in the data flow chain. Doesn't seem to break textured overhead map view with Last Pissed Time. From-SVN: r3878 commit a82c756fc55f1da5206372e55828ed96cf2936ff Author: Philipp Kutin Date: Thu Jun 13 17:10:59 2013 +0000 engine: make fillpolygon() more readable with the usual code transformations. Also add an assertion that currently sometimes fails when zooming in too much in Mapster32 textured 2D mode. Example: DNF's LADYKILLR.MAP at (46000,-14000). From-SVN: r3877 commit 96576eab2b07a88743e224f508e4ed63564e43d5 Author: Philipp Kutin Date: Thu Jun 13 17:10:56 2013 +0000 Mapster32: fix construction of *_crash.map file name in crash handler. From-SVN: r3876 commit 0fe59dea36c65df0766a9381c2cdcad8a132bfc4 Author: Philipp Kutin Date: Wed Jun 12 17:49:56 2013 +0000 Lunatic: clean up 'geom' module, make walls readable with pseudo-member 'z'. From-SVN: r3875 commit 995d58b6f0ee8aaea33889cdeba83956c1ee482e Author: Philipp Kutin Date: Wed Jun 12 17:49:55 2013 +0000 Lunatic: rename spriteext[].*off->mdoff.*, actor[].actorstayput->stayputsect. From-SVN: r3874 commit 9aa55e65b3e236f93a465cff12156c0015656be0 Author: Philipp Kutin Date: Wed Jun 12 17:49:53 2013 +0000 Lunatic: make gameactor and gameevent be "table-called" functions. From-SVN: r3873 commit d25fafbb79980a691c5196bdf16d342bba8a54f9 Author: Philipp Kutin Date: Wed Jun 12 17:49:51 2013 +0000 LunaCON: implement qgetsysstr/STR_VOLUMENAME. From-SVN: r3872 commit 1625908035b29428fe298a975aaa3a69e1c3eef1 Author: Philipp Kutin Date: Wed Jun 12 17:49:49 2013 +0000 Lunatic: Propagate potentially remapped CON defines to the control module. (This is the module that implements much of the "hard-coded" functionality formerly on the C side.) From-SVN: r3871 commit 6ad20d0bb7e3e15b9b4aea48ef73f60921de809d Author: Philipp Kutin Date: Wed Jun 12 17:49:47 2013 +0000 Lunatic: provide CON-defined labels in read-only table require("CON.DEFS"). From-SVN: r3870 commit 7adcba4a7b6acdbaff1aa3cdf74bb1ab327da693 Author: Philipp Kutin Date: Tue Jun 11 20:03:39 2013 +0000 Polymer: Fix one-sided y-flipped floor-aligned sprites, introduced in r3776. Add a test case in test_tileoffsets.map. From-SVN: r3869 commit d9b404a54e28d65ed639862329a4b9d34136a028 Author: Philipp Kutin Date: Sun Jun 9 16:37:22 2013 +0000 Lunatic: commit preliminary, unfinished documentation written in AsciiDoc. Don't (yet?) commit the generated HTML. From-SVN: r3868 commit ed39be9c52784893e4fbc7b6fbe9809d92942018 Author: Philipp Kutin Date: Sun Jun 9 16:37:19 2013 +0000 Lunatic: make require() translate dots to dir separators, make those illegal. However, from the command line, reverse the situation: dirseps must be passed as '/', dots are forbidden (except in the trailing ".lua"). From-SVN: r3867 commit 6db903c95d9d0da30feb16e2e5332c9885b6d00b Author: Philipp Kutin Date: Sun Jun 9 16:37:18 2013 +0000 CON: add projectile member .userdata and predefined label PROJ_USERDATA. It is a 32-bit signed integer. No version bump necessary, although CON code accessing this new member will not work with earlier revisions (obviously). From-SVN: r3866 commit 998ea784c1bcfc0c0ed4ba267535d27a14272365 Author: Philipp Kutin Date: Sun Jun 9 16:37:16 2013 +0000 LunaCON: bound-check defineprojectile tile/sound members. Also from Lunatic, make these members read-only and provide methods that allow setting them to either -1 or a number in [0..MAX{TILES,SOUNDS}-1]. From-SVN: r3865 commit f8c824f5615867ea4a6d80fa0545bbad85c6bbe4 Author: Philipp Kutin Date: Sun Jun 9 16:37:13 2013 +0000 Lunatic: rename bitint members to *bits instead of *x. From-SVN: r3864 commit 9171a39ec00854ec071b8080a096c873b47c29e2 Author: Philipp Kutin Date: Fri Jun 7 14:26:35 2013 +0000 Fix accessing the wrong animation indices with negative viewtypes. (I think; untested.) From-SVN: r3863 commit 3db4f6eaa50e8a0f499ce7fff501ef3990878ada Author: Philipp Kutin Date: Fri Jun 7 14:26:34 2013 +0000 LunaCON: strip dir prefixes on file-not-found; _getpname, ud.m_player_skill. From-SVN: r3862 commit 38f267a60332aed80aa1b173927c014a0281ce1b Author: Philipp Kutin Date: Fri Jun 7 14:26:32 2013 +0000 LunaCON: showview and showviewunbiased. From-SVN: r3861 commit 35ca980161483f6d3fd6b9782becd723599c2f0a Author: Philipp Kutin Date: Fri Jun 7 14:26:30 2013 +0000 Lunatic: keep status number symbols in actor.STAT instead of gv.STAT_*. From-SVN: r3860 commit d3d66365ae35f59621578321334ca88ca7ac6f17 Author: Philipp Kutin Date: Fri Jun 7 10:18:21 2013 +0000 Allow negating an action's viewtype 5 or 7, meaning to x-flip the shown sprite. From-SVN: r3859 commit 729849b5ce9bc74f399d747cfe90bc3ce32ef5b2 Author: Philipp Kutin Date: Fri Jun 7 10:18:20 2013 +0000 Lunatic: add preliminary helper code for local gamevar saving. From-SVN: r3858 commit 640d72346746244c00166765c674f471c60beb46 Author: Philipp Kutin Date: Fri Jun 7 10:18:17 2013 +0000 Lunatic: fix current incarnation of gamevar saving/restoration. From-SVN: r3857 commit fafedf4e27b469a287b967d40e9aceb392f117fa Author: Philipp Kutin Date: Fri Jun 7 10:18:16 2013 +0000 Lunatic: prettify listglobals.sh output. From-SVN: r3856 commit 1b811bbbb35533a4150cd8d0a388957e78c56d72 Author: Philipp Kutin Date: Fri Jun 7 10:18:15 2013 +0000 LunaCON: properly generate references to gamevars named like Lua keywords. From-SVN: r3855 commit 2228cee80b3892873087220db94fed4b752eeb0f Author: Philipp Kutin Date: Fri Jun 7 10:18:12 2013 +0000 LunaCON: free a couple of file-scope local slots by storing stuff in tables. From-SVN: r3854 commit e6131a80a6c0260990d1ea9035dfb0fa34c0740b Author: Philipp Kutin Date: Thu Jun 6 11:22:39 2013 +0000 kplib: don't write an int32_t where a char is expected. From-SVN: r3853 commit 9edf1584ca76f37ecd733189b5619b37416a5e96 Author: Philipp Kutin Date: Thu Jun 6 11:22:38 2013 +0000 game.c: fix out-of-bounds write in G_GetSubString(). From-SVN: r3852 commit 0b22c8f7ff1498b8184a5f44ef5e9240b34ab2d5 Author: Philipp Kutin Date: Thu Jun 6 11:22:35 2013 +0000 Lunatic: tweak sector.STAT.* and other names a little. From-SVN: r3851 commit 89f1e299437f56a1596619bf102ca99b9b6e22a5 Author: Evan Ramos Date: Mon Jun 3 05:26:44 2013 +0000 Fix the display of numbers with TEXT_GAMETEXTNUMHACK and TEXT_XOFFSETZERO. (Fix level stats, part 2.) The commit revises the definition of qstrdim when TEXT_[XY]OFFSETZERO are used. With these flags, the offsets the user specifies are now the only dimensions the function cares about in terms of tile placement, so depending on the difference between the offset(s) and the size of the final tile, it may be slightly more or less than the dimensions actually displayed on the screen because tile size is never taken into account. (For example, if your font is nominally 9x7 like the Duke bluefont and you use a TEXT_XOFFSETZERO of 5 with a string five characters long, the total x dimension will be 25 even though the last character will overhang that amount by four pixels. If you use a TEXT_XOFFSETZERO of 12 with the same string, the total x width will be 60 even though there will be three pixels of empty space on the right edge.) This change was made because assigning text an arbitrary constant width in general implies an intent to keep character positions constant even with a variable width font, but returning the visible span of pixels on the screen that the tiles cover would have caused the string to move when alignment options other than the top-left were used. In other words, you can now safely use TEXT_[XY]OFFSETZERO with the alignment options and the text won't jiggle. Also, with TEXT_GAMETEXTNUMHACK, numerals are now effectively TEXT_XOFFSETZERO text that respect the above paragraph, so number count displays can look nice with alignment options too. Having to modify the extent/offset code makes me realize that I'm not quite happy with its structure because it gets tangled juggling different concepts like character width, X offset, and spacing, and how they relate when the line wraps or in terms of the final size. Fortunately, it produces correct results as far as I know, and it's not necessarily ugly, just hard to understand. Handle with care. From-SVN: r3850 commit c6aab25d4adc063d9c41e25c61fd9dc01085edac Author: Evan Ramos Date: Mon Jun 3 05:26:24 2013 +0000 Fix display of level stats by fixing G_ScreenText() handling of (orientation & 2). From-SVN: r3849 commit f9ab98579c71f98ab9d469ce492c9e0741151e4e Author: Philipp Kutin Date: Sun Jun 2 14:07:56 2013 +0000 LunaCON: proper handling of dynamic remappings with weapon defaults. That is, the gamevars named WEAPONx_* in CON will now have the remapped value if they were not overridden from CON ('gamevar' at file scope). For C-CON, everything except signaling an override from the CON parser is in place. From-SVN: r3848 commit 75c813326466af35f1f63a553cd44f04d192b722 Author: Philipp Kutin Date: Sun Jun 2 14:07:52 2013 +0000 LunaCON: hook up dynamicsoundremap. From-SVN: r3847 commit be6e1a190ee0e4b3c047b6a75f04c2340be2c7ae Author: Philipp Kutin Date: Sat Jun 1 20:09:46 2013 +0000 Make S_MenuSound() use stack'd array to get rid of S_StaticToDynamicMenuSound(). From-SVN: r3846 commit f326af7e1c018801b48f4229d2af0a7c837c8738 Author: Philipp Kutin Date: Sat Jun 1 20:09:45 2013 +0000 LunaCON: hook up qstrdim and screentext. Also add some recent keywords to the list in con_lang.lua which I had forgotten all along. From-SVN: r3845 commit 63cb1c009b92c74724b4884a937bc3c90bbd2704 Author: Philipp Kutin Date: Sat Jun 1 20:09:43 2013 +0000 Lunatic: sector[].ceiling/.floor gets a reference to a ceiling-or-floor struct. Also, make sector[].*stat a bitint type. Now, a piece of code could look like this: local sec = sector[i] local ceil = sec.ceiling ceil.statx:flip(sector.STAT.SMOOSH) From-SVN: r3844 commit 12485cc35b5a62097a07d4a0dc5f7382ddddcfc7 Author: Philipp Kutin Date: Sat Jun 1 20:09:42 2013 +0000 Lunatic: fix a couple of oversights, tweak some stuff. From-SVN: r3843 commit 0752f2965f9fe59ad25991b4a07b4e5f69681c8e Author: Philipp Kutin Date: Sat Jun 1 20:09:41 2013 +0000 LunaCON: real user per-player vars. The previous behavior was to translate them as global gamevars, since LunaCON currently has no support for multiplayer. However, then some errors would be missed where such gamevars are accessed in no-player context (e.g. EVENT_ENTERLEVEL). On by default, disabled with -fno-playervar. From-SVN: r3842 commit 5e8ccc54282caea26028235bc4fd90af35c65920 Author: Philipp Kutin Date: Sat Jun 1 20:09:39 2013 +0000 Lunatic/classic: in TROR maps (V10), enable non-power-of-two wall drawing. Also, fix clearing a bunch in new-format-map (=Lunatic) build. From-SVN: r3841 commit d647c47951457a7cb1a90d5d3452f58ab54f885e Author: Philipp Kutin Date: Sat Jun 1 20:09:37 2013 +0000 LunaCON: fix mistranslation of CON "else { if" to Lua "elseif". When encountering a non-empty statement inside braces, emit "do" ... "end". From-SVN: r3840 commit d8987b567ef1fa172b6cafa130f8d82dbda28de0 Author: Evan Ramos Date: Sat Jun 1 06:57:00 2013 +0000 Replace use of preprocessor macro WIN32 with _WIN32. (Blame clang.) From-SVN: r3839 commit 80888e024fe35a22682c2f4ace9deacd6c6d8b2b Author: Evan Ramos Date: Sat Jun 1 06:56:28 2013 +0000 Make improvements utilizing G_ScreenText(). From-SVN: r3838 commit dbabc94ed0cadac27e9069325016d6ab9ed9c2a6 Author: Evan Ramos Date: Sat Jun 1 06:56:13 2013 +0000 For all HUD and text shadows that use pal 4, also use shade 127. From-SVN: r3837 commit 9da66f6b3cc9d308b3ca22a43a4bd11a32b498bc Author: Evan Ramos Date: Sat Jun 1 06:56:00 2013 +0000 Text wrapper conversion. G_PrintGameText(), minitext_(), G_DrawTXDigiNumZ(), and menutext_() now wrap G_ScreenText(). G_GameTextLen() now wraps G_ScreenTextSize(). G_DrawDigiNum_() now wraps G_DrawTXDigiNumZ(). From-SVN: r3836 commit 6d4a9731c64576aec2a06616d1498618bd5404bc Author: Evan Ramos Date: Sat Jun 1 06:55:46 2013 +0000 Prettify the DEF progress meter by relocating '\n' en masse. It should be transparent even with the meter disabled. From-SVN: r3835 commit 5e058bf6943169c39c09021bfcc89a3b9351bfa8 Author: Evan Ramos Date: Sat Jun 1 06:55:30 2013 +0000 Dynamicsoundremap. From-SVN: r3834 commit d93b3a5499c5433547b3574235bd0f4570bea1d2 Author: Evan Ramos Date: Sat Jun 1 06:55:00 2013 +0000 Add qstrdim and screentext, powerful new functions for HUD text. From-SVN: r3833 commit ec6977ac249262f9add2da88b66f01496fb7fee8 Author: Evan Ramos Date: Sat Jun 1 06:54:29 2013 +0000 Remove an unused variable from startwin.game.c. From-SVN: r3832 commit baf7532deeeb87cbbad549f2388f0ae16f66d742 Author: Evan Ramos Date: Fri May 31 05:08:46 2013 +0000 Update credits. From-SVN: r3831 commit d200bf98a70763f844f7d3863165e64ba8fea8c7 Author: Philipp Kutin Date: Thu May 30 18:10:59 2013 +0000 Lunatic: also reset per-actor gamevars from spawns originating from C. Take care not to do it twice. Still untested though. From-SVN: r3830 commit 1ed204a7f1111a0fd7e13646c5018f6421c5f644 Author: Philipp Kutin Date: Thu May 30 18:10:54 2013 +0000 Lunatic: split 'replace' option for actor chaining flags into soft/hard. Hard replacement reassigns the tile flags, while soft replacement bitwise ORs them, as in CON (since some flags might already have been set using commands like spritenoshade). From-SVN: r3829 commit bfa1e36cc3bac61f190d56545dc5a7268459baad Author: Philipp Kutin Date: Thu May 30 18:10:52 2013 +0000 Lunatic: reset per-actor gamevars on actor spawn, untested. From-SVN: r3828 commit b41506f1dc1476f397ee05ad97788dc7ca5bf13f Author: Philipp Kutin Date: Thu May 30 18:10:50 2013 +0000 Compile DEF progress meter only on Windows or if having the startup window. The latter checked with #defined HAVE_GTK2, which is probably not correct for every platform. In builds without a startup window, the periods get mingled with stdout output otherwise. From-SVN: r3827 commit c32ac1a1bc0d3653c322393879434aae5e9d4e8e Author: Philipp Kutin Date: Thu May 30 18:10:49 2013 +0000 LunaCON: implement 'definegametype', allow writing userdef.level_number. Also, allow (implicit) actor index -1 to 'sound' like in C-CON and fix MULTIMODE gamevar definition (was 0, not 1). From-SVN: r3826 commit de54b28928dfb1a70aaf89f68d7ea25804e93d85 Author: Philipp Kutin Date: Thu May 30 18:10:45 2013 +0000 Mapster32: allow setting first walls of TROR sectors independently. In 3D mode, Alt+F now only attempts to set the first wall of the aimed at wall, not collecting upper/lower neighbors. For this, press Shift+Alt+F. In 2D mode, they are always collected. From-SVN: r3825 commit c9ba96ee35acd214fb976454475309ae3fd2aabf Author: Philipp Kutin Date: Thu May 30 09:13:34 2013 +0000 Fix potential oob access when flipping the floor [F] in 2D mode. From-SVN: r3824 commit e797b195867d408f8754fc0c8aa6d287f030759c Author: Philipp Kutin Date: Thu May 30 09:13:32 2013 +0000 Replace inline "qsetmode==200" checks with in3dmode(). Analogously for the negation; remove a couple of redundant decls of "qsetmode". From-SVN: r3823 commit 452dd7dce4182740c75ce47d50546d6fe935b52d Author: Philipp Kutin Date: Tue May 28 19:52:51 2013 +0000 Make deletion of an ambient sound MUSICANDSFX sprite stop its sound again. Add a test case source/lunatic/test/delmusicsfx.lua. From-SVN: r3822 commit d69f44f7a07ad1bfb5821b4c8b08c003976b0063 Author: Philipp Kutin Date: Tue May 28 19:52:48 2013 +0000 Lunatic: add actor.delete() and various 'length' methods to geom.vec3/ivec3. From-SVN: r3821 commit cd434fb9311a5118f5cc4b86a8f14327b5e4c6c7 Author: Philipp Kutin Date: Tue May 28 19:52:45 2013 +0000 C-CON: remove "found `gettspr' outside of EVENT_ANIMATESPRITES" warning. Because one may obviously use gettspr/settspr in states called from that event. From-SVN: r3820 commit 6ee9ef03d05bdc2eaa3382bd6d2c2a1586057176 Author: Philipp Kutin Date: Sun May 26 18:42:59 2013 +0000 Polymost: fix 'zadd' DEF token handling. (Polymer has it right.) From-SVN: r3819 commit 1c9a6b9256d28cbd930165f533fc01d05261a93c Author: Philipp Kutin Date: Sun May 26 18:42:56 2013 +0000 With DNCOORDS display, print number of sprites currently on the screen. Only in debugging builds. From-SVN: r3818 commit 746fd2e40884e869cef9e872fb411ffa07474d3f Author: Philipp Kutin Date: Sun May 26 18:42:53 2013 +0000 LunaCON: add a couple of ud members, gamevars; handle 'dynamicremap' only once. Also, allow MAXVOLUMES+1 to first arg of 'music'. From-SVN: r3817 commit ed97e5d0e7dbce26a91f8c81bea91541489a79e2 Author: Richard Gobeille Date: Sat May 25 22:50:46 2013 +0000 Well then, I sure fucked that last commit up didn't I From-SVN: r3816 commit 8b9f43458a568daf2f07d99592416a520bd23ff4 Author: Richard Gobeille Date: Sat May 25 20:25:39 2013 +0000 Fixes a crash after killing the boss in Duke 0.99 and fixes the issue with WGR2 SVN being detected as 0.99 due to malformed definelevelname statements From-SVN: r3815 commit 962115c65bd1e4202aded64b417af36a787b2852 Author: Richard Gobeille Date: Sat May 25 06:11:38 2013 +0000 Fix a reference to "RDR_POLYMER" that was missed in startgtk From-SVN: r3814 commit a0913da1bb307650b6e69ee65f8e146921629f5e Author: Philipp Kutin Date: Fri May 24 13:54:39 2013 +0000 Lunatic: -Wchained-loadactor option for LunaCON, clear errors on restart. The last only in release builds. From-SVN: r3813 commit 0a3114d832f958f35d5e48134a76437d18eafb4b Author: Philipp Kutin Date: Fri May 24 13:54:37 2013 +0000 LunaCON: implement dragpoint, clipmove*; fix gamearray serialization. From-SVN: r3812 commit ec6b3449102889cafaf654588ad08c566f3c3971 Author: Philipp Kutin Date: Fri May 24 13:54:36 2013 +0000 Engine: don't extern 'clipmovetraceboxnum', add a new func. clipmovex() instead. The 'x' is for "extended", since its last arg is a switch of whether to disable sliding. Use that from gameexec.c. From-SVN: r3811 commit ce2a97f9127128fd80394c37bd8226b0340d99ac Author: Philipp Kutin Date: Fri May 24 13:54:34 2013 +0000 C-CON: fix 'copy' on 64-bit archs. From-SVN: r3810 commit f2b63e7888a33b9e95a65bd2d7783b1c6b7b0299 Author: Philipp Kutin Date: Fri May 24 13:54:33 2013 +0000 LunaCON standalone: don't try default path on file-not-found for root names. From-SVN: r3809 commit 450ad0d17b22719decf5e438616b5d0e4bb15c8b Author: Philipp Kutin Date: Fri May 24 13:54:32 2013 +0000 For DNCOORDS display, add current sprite count and #inserted sprites / last sec. Only in debugging builds. From-SVN: r3808 commit fbd9e2a1884ef62553d6db628e4b4c8847955571 Author: Philipp Kutin Date: Fri May 24 13:54:30 2013 +0000 Lunatic: fix restoring of tables. Also add savegame.lua which I forgot! From-SVN: r3807 commit d9c640693411f1a11bd0b2d26449f2d80d8fd705 Author: Philipp Kutin Date: Fri May 24 13:54:29 2013 +0000 LunaCON: partially sync with r3803, link with lpeg.a (update to LPeg 0.12). For pre-1.3 CONs, determining the older script version with gamestartup and/or definelevelname is not implemented. From-SVN: r3806 commit 5bce3f4f574ed9a561d6249a9a19286fb3fb9d28 Author: Philipp Kutin Date: Fri May 24 13:54:27 2013 +0000 LunaCON: fix qsprintf, add test code for GAMEVAR_{NODEFAULT,NORESET} flags. From-SVN: r3805 commit bee4a3d6c40b0d06b1fd7bdee107075148ff94d8 Author: Philipp Kutin Date: Fri May 24 13:54:25 2013 +0000 LunaCON: Add -Wall option and sector[].*bunch, warn on some NYI gamevar flags. From-SVN: r3804 commit 8ea1a4d834b5ed8affc0cfbea9d00a3dcf75b66d Author: Richard Gobeille Date: Thu May 23 18:28:04 2013 +0000 Add support for shareware 0.99/1.0/1.1, for shits and giggles. From-SVN: r3803 commit 1f1619489d2875a0000a2e7362ef68be3477dc34 Author: Richard Gobeille Date: Thu May 23 18:27:36 2013 +0000 MSVC build fix From-SVN: r3802 commit ce60898137891a85aae1e29c5b2e8c5af917cab0 Author: Richard Gobeille Date: Thu May 23 18:27:24 2013 +0000 Add a simple indicator of progress when loading a large def (like the HRP)... print one period to the startup window per 50 passes of the main loop in defsparser() From-SVN: r3801 commit b9254e5e3d893d841ccc7205d0a672ef5875aa8c Author: Richard Gobeille Date: Thu May 23 18:27:06 2013 +0000 Support high DPI setups for the startup dialogs on Windows From-SVN: r3800 commit 3afa46fc8d0c1ef860b45d5f9675f37118e49d68 Author: Philipp Kutin Date: Wed May 22 16:23:14 2013 +0000 Polymer: fix possible NULL pointer dereference in polymer_getbuildmaterial(). From-SVN: r3799 commit 13bc8cab1e1274046b81cc02a5abe085f7b928a1 Author: Philipp Kutin Date: Mon May 20 19:58:54 2013 +0000 Lunatic: rename con.peractorvar to simply con.actorvar. NOTE: I'm committing this from my git clone again. If this works OK, everything is in good order again. If not, I hope that I won't damage the SVN repo. *Runs away...* From-SVN: r3798 commit 93a11928550f2214d21b8a04621bc4198c296d03 Author: Philipp Kutin Date: Mon May 20 19:50:35 2013 +0000 Test commit from SVN since I may have bricked my local git clone. (r3796 doesn't show up as SVN-committed for me, partial commit?) The change itself is a very small tweak in m32help.hlp. From-SVN: r3797 commit c82cb3044507dcd7da6e3d4f310485931d1cb7cb Author: Philipp Kutin Date: Mon May 20 19:31:42 2013 +0000 Lunatic: prototypical gamevar serialization, currently very CON-centric. From-SVN: r3796 commit 24b7a6a1c9da023f06553072d3fc58e07710aac2 Author: Philipp Kutin Date: Mon May 20 19:31:37 2013 +0000 Lunatic: initialize SPRITE_HARDCODED_BADGUY on Lua state recreation, too. From-SVN: r3795 commit 6036efc51edac22dd9533c8433cd0acde6904c31 Author: Philipp Kutin Date: Mon May 20 19:31:34 2013 +0000 LunaCON: partially implement {save,load}mapstate CON commands. What is missing is saving and restoring per-player and per-actor gamevars. Also add a test CON mutator 'mapstate.con'. From-SVN: r3794 commit 0186f0a2c67d741af334377b640f3bc1d80ef343 Author: Philipp Kutin Date: Mon May 20 19:31:18 2013 +0000 Windows: allow desktop-sized windowed modes, add 1680x1050 to defaults list. From-SVN: r3793 commit 74b17a4fc26874fffae96535199ea950cecbdb68 Author: Philipp Kutin Date: Sun May 19 19:29:26 2013 +0000 Make G_{Save,Restore}MapState() take no input arguments. Instead, MapInfo[ud.volume_number*MAXLEVELS+ud.level_number] is accessed inside these functions. From-SVN: r3792 commit 081b9387cc0bde6250914fca837e935434db436e Author: Philipp Kutin Date: Sun May 19 19:29:23 2013 +0000 Remove redundant checks for some map state function uses. Also, prettify G_FreeMapState(), remove some duplicate function decls and resurrect 'savestate' and 'restorestate' OSD commands for the debug build. From-SVN: r3791 commit e415576f31ab8f106e4cf90f85acf0750b948b85 Author: Philipp Kutin Date: Sun May 19 19:29:21 2013 +0000 LunaCON: fix Lua->CON line translation by recreating the line info, too. From-SVN: r3790 commit 887c935df6aba16905b2639297bba48fd91b6604 Author: Philipp Kutin Date: Sun May 19 19:29:18 2013 +0000 Lunatic: conditionally compile out more code in savegame/gamevars.[ch]. Also, make the savegame major version 2 in the Lunatic build. From-SVN: r3789 commit 2ddbc3fa81330707e6c7cd96ecb2f4d637b3bcf4 Author: Philipp Kutin Date: Sun May 19 19:29:16 2013 +0000 Lunatic: accept any number of *.lua modules on the command line. There's no option letter for loading them, and the extension is checked case sensitively. Lua modules are loaded after CON translated to Lua. Also remove -testlua option. From-SVN: r3788 commit 070d9738dc0a7a2bed23930c490faba4e5d1b2ac Author: Philipp Kutin Date: Sun May 19 19:29:13 2013 +0000 Lunatic: back up generated LunaCON code, recreate Lua state on map entering. From-SVN: r3787 commit 4ca6898717fe005a3221d8661e42c159df638544 Author: Philipp Kutin Date: Fri May 17 10:41:59 2013 +0000 Fix signed/unsigned comparison warnings and mismatched format char warning. From-SVN: r3786 commit ac5ed9b161f5b5c0974d4c7f41f944ca24a9ae31 Author: Philipp Kutin Date: Fri May 17 10:41:57 2013 +0000 Lunatic: fix randgen module after md4 removal, run DEFS_BC_SIZE cmd only once. From-SVN: r3785 commit 6c5dd8132b582193e439d67bd625db6d2e0b7a71 Author: Richard Gobeille Date: Fri May 17 03:44:09 2013 +0000 Sanitize hard coded render mode numbers... replace all references to rendmode 0, 3, 4, etc with proper REND_CLASSIC, REND_POLYMOST, REND_POLYMER labels. From-SVN: r3784 commit a7761eb2bc0dad9fb227288607dce40039141915 Author: Richard Gobeille Date: Fri May 17 03:43:20 2013 +0000 Alter cvar system to fill the cvar name into the description line automatically, and remove the cvar name from the descriptions for all cvars From-SVN: r3783 commit 24ac9a7e9444804b6427fae830bbe8da16bec89b Author: Richard Gobeille Date: Fri May 17 03:42:58 2013 +0000 Unify glow and detail texture setup between polymost and mdsprite From-SVN: r3782 commit bf49f5b493d8c201b4213879496234e03834e1dd Author: Richard Gobeille Date: Fri May 17 03:42:37 2013 +0000 Some further texcache refactoring. Removes all of the texcache globals and shoves them into a struct for easy management. From-SVN: r3781 commit dbab1cb3b02fc91943d546d32cc5194f5423e33e Author: Philipp Kutin Date: Thu May 16 21:54:59 2013 +0000 Mapster32: when 3D-inserting sprite higher than z extent, position at floor... ... when aiming at the floor. From-SVN: r3780 commit 5e21d976032286679016956d321c69b9e620c2c3 Author: Philipp Kutin Date: Thu May 16 21:54:58 2013 +0000 Polymer: fix centering of y-flipped wall sprites. (Case D in test_tileoffsets.) From-SVN: r3779 commit 84eec018e99616ec1a33d8a9939e1b655d97c19c Author: Philipp Kutin Date: Thu May 16 21:54:56 2013 +0000 Polymodes: make flipping closer to classic. This fixes cases A and B in test_tileoffsets.map. From-SVN: r3778 commit 42bc2d4e8a0d6a48f04b70bc88a48397e26ff68b Author: Philipp Kutin Date: Thu May 16 21:54:55 2013 +0000 engine.c: add tile offset debugging code guarded by DEBUG_TILEOFFSETS. Also, update test_tileoffsets.map with a new 'dimension': cstat 128 (sprite centering). It has an issue in Polymer marked with a silver D. From-SVN: r3777 commit 892036cc963d5001257acb1f3e0aed1799e85de1 Author: Philipp Kutin Date: Thu May 16 21:54:53 2013 +0000 Polymer: fix floor sprites with y flipping by removing special-case code. This fixes the case marked with the silver letter C in test_tileoffsets.map. The orientation of the sprites is correct (matches classic) as far as I can see, there are now only problems with translation. From-SVN: r3776 commit 47ddf6a540b3bef5a1ba41072bfcde2c078eccd4 Author: Philipp Kutin Date: Thu May 16 21:54:52 2013 +0000 Polymer: rewrite sprite x/y flipping so that data flow is explicit. Also, add some defines for sprite cstats to build.h (SPR_*) and use them. From-SVN: r3775 commit 80682144a0253d095275c204103295f633e94e08 Author: Philipp Kutin Date: Thu May 16 21:54:50 2013 +0000 Add package/samples/test_tileoffsets, a test case for t. offsets w/ flipping. It has all combinations of {STEAM,CEILINGSTEAM} x combinations(flipping) x combinations(alignment). Three silver letters are placed near cases that currently draw not like classic in Polymost or Polymer. From-SVN: r3774 commit 2a0f32c29e5627fc474d6662658e560c6a3ae949 Author: Philipp Kutin Date: Wed May 15 18:32:55 2013 +0000 Fix two possible signed left shift overflows. From-SVN: r3773 commit 03b45bb606dee1e43371664e39376a239db7846a Author: Philipp Kutin Date: Wed May 15 18:32:53 2013 +0000 texcache.c: use Bfilelength(), fixing Linux build. From-SVN: r3772 commit 0789bc8293d58a0900334d680ee8e934968fbe69 Author: Philipp Kutin Date: Wed May 15 18:32:52 2013 +0000 Lunatic: remove old gamevar/serialization code. From-SVN: r3771 commit 431aa3e408de6c3547bfe6eea8da61544d05a8d9 Author: Philipp Kutin Date: Wed May 15 18:32:50 2013 +0000 Lunatic rotatesprite: disallow FULL16 coordinates since Lua numbers are FP. From-SVN: r3770 commit 817934db05ccdd113afbe46f1cf3c422c3ae7daa Author: Richard Gobeille Date: Wed May 15 14:53:54 2013 +0000 Promote pr_customaspect to double from float to match the array of predefined aspect ratios that's in the menu From-SVN: r3769 commit 048fb76f87bca19cab6889e72c3bc1f75edd2392 Author: Richard Gobeille Date: Wed May 15 02:21:05 2013 +0000 Fix a warning and uncomment something I accidentally left commented during testing From-SVN: r3768 commit d8f79f0a74a63c101dfd277968c33ddde17e1aea Author: Richard Gobeille Date: Wed May 15 02:20:49 2013 +0000 Make the menus look the same in all rendering modes, because the LOADSCREEN tile looks like shit when any kind of palette-based shading is involved. So, now everyone gets the ugly metal looking MENUSCREEN. From-SVN: r3767 commit f3781bd0481dabf039fc460b92b518cff1130ff7 Author: Richard Gobeille Date: Wed May 15 02:20:35 2013 +0000 Properly handle shading models with traditional fog when r_usetileshades is also enabled. From-SVN: r3766 commit 4e49ac28fbd219bde7931975e00a2f97722d71f6 Author: Richard Gobeille Date: Wed May 15 02:20:08 2013 +0000 Rename gltexinvalidateall to gltexinvalidatetype and add an enum for the two currently accepted values, INVALIDATE_ALL and INVALIDATE_ART From-SVN: r3765 commit c32d5f43fbde52c82454399c63fbc487b548ccac Author: Richard Gobeille Date: Wed May 15 02:19:41 2013 +0000 Get rid of that old model occlusion checking hack I wrote for Polymost years ago. I actually didn't know this was still in EDuke32... it's one of the worst things I've ever written. :p From-SVN: r3764 commit f0342dde962cb2b76efebb3deddc2640b9f2eedc Author: Richard Gobeille Date: Wed May 15 02:19:14 2013 +0000 A bit more work on the Polymost shade table mode (r_usetileshades) From-SVN: r3763 commit 4521da9fe8c1a656f30f358617e0223ed87c3fcb Author: Richard Gobeille Date: Wed May 15 02:18:41 2013 +0000 Remove deleted md4 library related files from the Visual Studio project From-SVN: r3762 commit 11042b5be53c8f56b5256c862a2e33a25ba2614e Author: Richard Gobeille Date: Wed May 15 02:18:27 2013 +0000 Add an experimental shading mode to Polymost for .art tiles, in which extra textures are allocated for each shade level based on the classic mode shade tables. Enable with r_usetileshades 1 (disabled by default). This uses a lot of memory and is still very WIP (a lot of the shading is completely wrong at this point). Also, further refactor texcache code. From-SVN: r3761 commit 72169ab183aa82b63128ab673ae9c545f4a6cbdd Author: Richard Gobeille Date: Wed May 15 02:17:58 2013 +0000 Fix issue with Polymer checkbox in startup window, as reported at http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__158208 From-SVN: r3760 commit 09e9f7784d405c020152b9be3e1336e294e89b59 Author: Richard Gobeille Date: Wed May 15 02:17:44 2013 +0000 Remove md4 library, since we aren't using it anywhere anymore From-SVN: r3759 commit ee333bf48978f9c6a0e76272889a826881dbc047 Author: Richard Gobeille Date: Wed May 15 02:17:17 2013 +0000 WIP texture cache refactoring From-SVN: r3758 commit 7079964502e01be21d42bede6d1cad7b6cbec6de Author: Richard Gobeille Date: Wed May 15 02:16:19 2013 +0000 Add some new cvar flags to handle cvars that need to invalidate textures or reset the video mode after modifying From-SVN: r3757 commit 25223a5d67fc7c54796daace578c9d8389c948a3 Author: Richard Gobeille Date: Wed May 15 02:15:47 2013 +0000 Remove code disabled by #ifdef OBSOLETE_RENDMODES From-SVN: r3756 commit 12d348e2a05b628048a81b39cd7e4f7fb7c33e8c Author: Philipp Kutin Date: Sun May 12 18:51:32 2013 +0000 Classic rotatesprite: fix second assertion failure documented in prev. commit. From-SVN: r3755 commit 641e13e90b0cbb9990bdfb9936486b412d321287 Author: Philipp Kutin Date: Sun May 12 18:51:30 2013 +0000 Classic rotatesprite: add assertion failing with DNF mod, comment another. Among other things, rotatesprite doesn't cope well with large zoom values. Two assertions are added that guard qinterpolatedown16short() calls: in the failing case, they would write outside the destination arrays. Another (existing) assertion is commented a little and like for the first, instructions are given how to reproduce its failure. From-SVN: r3754 commit a0760380d73c4816785e4030ad028c2eabc1132d Author: Philipp Kutin Date: Sun May 12 18:51:28 2013 +0000 m32script: sync rotatesprite* with CON. From-SVN: r3753 commit a3d4105daa1de789dd8b5f520590631544d0c373 Author: Philipp Kutin Date: Sun May 12 18:51:26 2013 +0000 a.m32: rotatesprite testing. Variables dt_* are defined. If dt_t (tile number) is >=0 that tile is drawn using 'rotatespritea'. From-SVN: r3752 commit 8ef8800528bf31cc2485cf752b78685a76d31fe9 Author: Philipp Kutin Date: Sun May 12 18:51:23 2013 +0000 map-text: don't save sector[].wallnum, signal last wall of sector in point2. From-SVN: r3751 commit 70c3252e4ed7a823cbd8f7ab33d49222fd80f30d Author: Philipp Kutin Date: Sun May 12 18:51:19 2013 +0000 build.c: fix strcpy() with overlapping arguments. From-SVN: r3750 commit 97c201c623a641b2ed30b2eb6966e3d97cb04f8e Author: Philipp Kutin Date: Sun May 12 18:51:16 2013 +0000 Clean up some build.c code. - factored out: tweak_sboardfilename(), menuselect_try_findlast() - quickloading a map now doesn't require loading one first - the usual From-SVN: r3749 commit ed3fc9fa2bf193abbbbcae49086c4a426fe9c74a Author: Philipp Kutin Date: Fri May 10 12:31:40 2013 +0000 premap.c: remove a missed unused variable. From-SVN: r3748 commit b01baa095efd78ddc1fc381431d08237083440ab Author: Philipp Kutin Date: Fri May 10 12:31:39 2013 +0000 Mapster32: make 'corruptcheck tryfix ?' (or '??') not require c. number range. From-SVN: r3747 commit 80208de42182b53bd5d456f6b47fd28db49f7263 Author: Philipp Kutin Date: Fri May 10 12:31:38 2013 +0000 Mapster32: for some nextwall/nextsector corruptions, suggest making wall white. Selected by writing e.g. 'corruptcheck tryfix 1-14 ??' in the console. Like with the first alternative, the corruption numbers / range (here, 1-14) must be given. From-SVN: r3746 commit 1bdfb4fcf5ca13e7c93769977051ba1966a44214 Author: Philipp Kutin Date: Fri May 10 12:31:37 2013 +0000 Mapster32 corruptcheck: on nextsector/nextwall oob, suggest making wall white. ... in the auto-correction. Also, - make two similar corruptions level 5 (wallptr oob, wallptr+wallnum oob). - in drawscreen_drawwall(), do a more strict bound check, not only >=0. From-SVN: r3745 commit 4ffabcee31a97835a62fe757d8e08ac16b647dbd Author: Philipp Kutin Date: Fri May 10 12:31:35 2013 +0000 Mapster32 corruptcheck: if some members out of MAX bounds, signal level 5. From-SVN: r3744 commit 31d3f771a5e56ccb754fd89eeb1c122fb2cbbaf8 Author: Philipp Kutin Date: Fri May 10 12:31:33 2013 +0000 Tweak r3681 to obtain the same behavior in the pre-r3681 undefined behavior case. That is, assume that switch(DYNAMICTILEMAP(-1)) (which is an oob access and thus undefined behavior) gets us to the 'default:' label. From-SVN: r3743 commit 0beabc081d008691ad299dbee076b1ba4b4edd73 Author: Pierre-Loup A. Griffais Date: Thu May 9 07:22:40 2013 +0000 Ignore ART mapping for TILE_ANIM, which is dynamically populated by the game during ANM playback. From-SVN: r3742 commit 9e03de4446f00e00511ee3d7efb35cc1afad36d0 Author: Pierre-Loup A. Griffais Date: Wed May 8 06:53:38 2013 +0000 Polymer: Hook ART mapping to rotatesprite. The visibility calculation relies on the distance, which might not be entirely accurate in rotatesprite, so maybe it'll be too dark in some cases. From-SVN: r3741 commit 8cc0934df502b6ab2cc1f75db1b6e4501800c8b4 Author: Pierre-Loup A. Griffais Date: Wed May 8 06:18:31 2013 +0000 Polymer: Make ART mapping work with any number of shade offsets (eg. BLOOD pal) From-SVN: r3740 commit 81cdaec35b4836e802ab93ee788b3df5dc0f81ff Author: Pierre-Loup A. Griffais Date: Wed May 8 05:03:36 2013 +0000 Revert to spherical shading; it's not like you could look up in classic anyway. From-SVN: r3739 commit 63a18a6e6b8915b9113ccf8c22d09ebad1b1ba81 Author: Pierre-Loup A. Griffais Date: Wed May 8 05:03:29 2013 +0000 Fix interaction between ART mapping and lighting. From-SVN: r3738 commit 55c003d9caa85ccb2bd3fa9a3307d0c0cdfa892d Author: Pierre-Loup A. Griffais Date: Tue May 7 07:48:08 2013 +0000 Finish Polymer cancer mode and enable by default. TODO: figure out wtf is wrong with rotatesprite, linear filtering. From-SVN: r3737 commit f6d434f92a0708a72dda2d9be8a4d24e0ad1d86f Author: Philipp Kutin Date: Mon May 6 19:43:42 2013 +0000 Lunatic: reading of map-text prototype. Also fixes a couple of oversights (introduced) with the saving. From-SVN: r3736 commit 6e5ef673f19e84f8a4173bd86d730377b1af4cb8 Author: Philipp Kutin Date: Mon May 6 19:43:38 2013 +0000 Factor out four instances of duplicate code into append_ext_UNSAFE(). From-SVN: r3735 commit d8b43fc460aae0f30c0b70fb48602cca3b58548d Author: Philipp Kutin Date: Mon May 6 19:43:35 2013 +0000 Lunatic: move readintostr() into defs_common.lua, fix an oversight. From-SVN: r3734 commit e8f6ee3f7acc4bf767eb1ed78b057d1c5aa79c86 Author: Philipp Kutin Date: Mon May 6 19:43:34 2013 +0000 Lunatic: first prototype of map-text saving. From-SVN: r3733 commit 8c545b0be7a14383710aa1548695d143ef603b4b Author: Philipp Kutin Date: Mon May 6 19:43:30 2013 +0000 LunaCON: make on-disk gamearray footer contain non-printable chars. Also, allow writing userdefs[].auto_run. From-SVN: r3732 commit ae55b872f5b41a59ecf1de00c27b427099057d61 Author: Philipp Kutin Date: Mon May 6 19:43:28 2013 +0000 Map-int VX: rearrange members so that ceiling* and floor* are contiguous. From-SVN: r3731 commit 64a1a78c50639d98291d28cd2e02c827ab267ce7 Author: Richard Gobeille Date: Mon May 6 18:46:34 2013 +0000 MSVC build fix From-SVN: r3730 commit 9406684c3eba6949a881bb5324b800e0203ee3ef Author: Pierre-Loup A. Griffais Date: Mon May 6 03:12:38 2013 +0000 New Polymer feature: shitty mode. From-SVN: r3729 commit 3329e09f84b1ad2aae81d38e579c485e44ead7e8 Author: Pierre-Loup A. Griffais Date: Mon May 6 03:12:29 2013 +0000 Fix Makefile fuckery. From-SVN: r3728 commit 81c1b3afacc705c3560f2a36cf73bd6a21bde5a2 Author: Philipp Kutin Date: Sat May 4 16:36:13 2013 +0000 osd.c: Fix OSD_StripColors() with empty input string. From-SVN: r3727 commit aecd172d3234ddea546579a4a8d0979013db16b8 Author: Philipp Kutin Date: Sat May 4 16:36:12 2013 +0000 Classic: fix oob read of frame buffer when leftmost vline has a mirror. In the mirror reversing code, get rid of the padding. This may produce seams, but they appear to be extremely transient and shouldn't be noticeable. In game.c, add a debugging compilation switch DEBUG_MIRRORS_ONLY. From-SVN: r3726 commit ecc90881f20fc9001c9920f88d768cfc4ce45f3d Author: Philipp Kutin Date: Sat May 4 16:36:10 2013 +0000 Makefiles: allow overriding the optimization level with debugging builds. From-SVN: r3725 commit 8a8ec1e2a4e656d3751166898f58ca6fd0e40d7a Author: Philipp Kutin Date: Sat May 4 16:36:08 2013 +0000 Fix one more 1<<31 calculation, remove one unneeded cast. From-SVN: r3724 commit 2254b35cd7a34c785a8890ebfe326acbb87b8a6b Author: Richard Gobeille Date: Wed May 1 18:49:03 2013 +0000 I am not a smart man. Fix startup window hangs with grpinfo files. From-SVN: r3723 commit f579fd3b9fa2188ae72fe6494828da33bc3f5e73 Author: Philipp Kutin Date: Wed May 1 17:42:07 2013 +0000 Fix model HUD weapons not showing in Polymer, introduced in r3717. From-SVN: r3722 commit 7bdd67c52a66425d6aee3bbef8af860d4cbbf1f3 Author: Philipp Kutin Date: Wed May 1 17:42:05 2013 +0000 Classic: optimize background 'rainbow' drawing in use for editor/debug. Also, draw it at shade 18 and don't use fullbright colors. From-SVN: r3721 commit 14751b1eee207f024335110bc4257b4e1a323d47 Author: Philipp Kutin Date: Wed May 1 17:42:03 2013 +0000 Makefiles: do not pass $(STDCPPLIB) to final eduke32/mapster32 linking step. From-SVN: r3720 commit a9bcf23226c5893ce01fa45cfd50e32593b31756 Author: Philipp Kutin Date: Wed May 1 17:41:59 2013 +0000 Classic: clean up mirror drawing code. No functional changes, but a (commented out) debug line for an oob read of the frame buffer when the mirror covers the whole screen is inserted. From-SVN: r3719 commit 64e6948d7fa9f5e86da7360a5f3e7e3139336b89 Author: Richard Gobeille Date: Tue Apr 30 18:51:15 2013 +0000 Fix GTK build From-SVN: r3718 commit ebb2e4ca163c8bb1d63fe2c165d02902996f7083 Author: Philipp Kutin Date: Mon Apr 29 19:24:19 2013 +0000 Fix two bugs found by Clang's undefined behavior sanitizer. - Return early from drawsprite_classic() if tspr->owner if oob. Commonize that check between renderers into bad_tspr(). - Make the BIT() macro a left-shift of the *unsigned* number 1, preventing expansion to (1<<31). From-SVN: r3717 commit 1ad7ecad2e8e0d173217720899dd3b8028ca75a0 Author: Philipp Kutin Date: Mon Apr 29 19:24:15 2013 +0000 Fix debugging builds with Clang 3.2 and up. In those Clang versions, -fcatch-undefined-behavior was replaced by -fsanitize=. For Clang 3.2, we enable the address sanitizer and for 3.3 also the miscellaneous undefined behavior one. Currently, there's no version auto-detection from the Makefiles, it's set to 3.3 and the others are commented out. From-SVN: r3716 commit cdb7304bb07a62d2c602a88bfdb1e5ae4aac4c1a Author: Philipp Kutin Date: Mon Apr 29 19:24:12 2013 +0000 Generalize ZRANGE and ANGRANGE to accept any nonnegative number. Numbers 0 and 1 mean 'no spread', but the latter does one krand() call. Negative numbers are reserved for potential future use. From-SVN: r3715 commit c46ea7a1befc57c2d29289f9d95f9d97f4c75e83 Author: Richard Gobeille Date: Mon Apr 29 15:13:48 2013 +0000 My love/hate relationship with git stash is quickly becoming a hate/hate relationship. :p From-SVN: r3714 commit ad316bc94e1bea47e88dca72005dcbffd0300219 Author: Philipp Kutin Date: Sun Apr 28 16:45:29 2013 +0000 Fix TARGET sprites used as switches, introduced in r3679. From-SVN: r3713 commit 0cc33495b567fee17e055d0d9c0db3d385c4f5d0 Author: Philipp Kutin Date: Thu Apr 25 21:10:29 2013 +0000 In G_LoadAddon(), remove inner 'struct grpfile *grp', fixing uninited access. ... four lines later. I don't know if that is the intended semantics for this function, but nasal demons is clearly not what we want. Please review! From-SVN: r3712 commit 963cee81905e5c9bfb2682538ab6c5ff3e64bcb6 Author: Philipp Kutin Date: Thu Apr 25 21:10:25 2013 +0000 Fix two harmless warnings and reindent one switch block. Also, make G_LoadAddon() local to game.c. From-SVN: r3711 commit 9587ca75f2b0b7bd376ab11af07f5d12408809ab Author: Philipp Kutin Date: Thu Apr 25 21:10:22 2013 +0000 Lunatic (map-int VX) build: implement loading Date: Thu Apr 25 21:10:15 2013 +0000 Engine: auto-detect LameDuke's PALETTE.DAT and read tables accordingly. LameDuke's shade table has 32 gradients of shade, like Duke3D. For the translucency table though, only the diagonal + one half is stored because it's symmetric (50/50 translucency). From-SVN: r3709 commit d19d0f12b3651365260283e9c94a002c4462953b Author: Richard Gobeille Date: Thu Apr 25 17:49:10 2013 +0000 Support adding custom grps to the selector in the startup window. To use this feature, create a file with a ".grpinfo" extension in your EDuke32 directory, following this template: grpinfo { name "YourGameName" scriptname "yourgame.con" defname "yourgame.def" size yourgrpsize dependency DUKE15_CRC flags GAMEFLAG_ADDON crc yourgrpcrc } The "flags" field can also take the value "GAMEFLAG_DUKE" to define a new base game. Since this is the first commit of a new feature, certain semantics of the implementation and syntax are liable to change as necessary. From-SVN: r3708 commit fa7a091438908f0c2692808eccc5137ed653881f Author: Richard Gobeille Date: Thu Apr 25 17:48:51 2013 +0000 Don't write SelectedGRP to eduke32.cfg when using the Megaton compatibility "-addon" parameter. From-SVN: r3707 commit b018ef9b0bc264dfd34aa79a9099ccc55a7a2f70 Author: Richard Gobeille Date: Thu Apr 25 17:48:37 2013 +0000 Automatically execute mapname.cfg at map load time. This allows different maps in mods to have different rendering settings (shadescale, etc). This is not currently suitable for standalone user maps as there's no functionality to reset such cvars back to default at the next map load (so, if using this in a mod, every map needs to have a cfg). From-SVN: r3706 commit 4065186654da770954d9e339acd3a9909435e86d Author: Richard Gobeille Date: Mon Apr 22 16:30:39 2013 +0000 Fix startup problems stemming from SelectedGRP = "" ending up in eduke32.cfg From-SVN: r3705 commit 934101a43d8598c9b857c68f39c705b27aef9f4f Author: Philipp Kutin Date: Mon Apr 22 10:35:50 2013 +0000 a.m32: add user variable 'override_basepal'. Set it to >=0 to override the base palette (water, slime, ...) in 3D mode. This can be useful to navigate Lameduke's underwater sections, since its LOOKUP.DAT only contains 8 lookup tables, but no other *base* palettes. Consequently, base palettes >=1 will make the whole screen black when Lameduke's LOOKUP.DAT is loaded into EDuke32 or Mapster32. From-SVN: r3704 commit 7d0bdb7b2f47f9c96e1390c97bd8ae8cefecff03 Author: Philipp Kutin Date: Mon Apr 22 10:35:48 2013 +0000 Revert an awful stupidity I committed in r3700. From-SVN: r3703 commit 71e0ff1034a97f1bf86898661869274b8da547e8 Author: Philipp Kutin Date: Mon Apr 22 10:35:44 2013 +0000 Remove 'cl_angleinterpolation' cvar because it had no effect for a while. Also remove the two instances of commented out code, but not the respective CON structure access code. From-SVN: r3702 commit c63a27e85e14e912b2a18f6afa4f7e1705f0d624 Author: Philipp Kutin Date: Sun Apr 21 19:55:45 2013 +0000 Classic drawmasks(): if sprite is on other side of maskwall, always draw it first. This fixes the bug reported here: http://forums.duke4.net/topic/5340-bug-with-masked-walls/page__view__findpost__p__123233 But I haven't checked the change for any adverse effects. From-SVN: r3701 commit dbe56dd294bbf28345126cc8ed05e6a0a7266e4d Author: Philipp Kutin Date: Sun Apr 21 19:55:38 2013 +0000 engine.c: stylistic tweaks of drawmasks(). From-SVN: r3700 commit b083104f700e503a3a680ce0672fb84204a84bc9 Author: Philipp Kutin Date: Sun Apr 21 19:55:32 2013 +0000 m32script: in tsprite access, fix checking min/max/RO; tweak RESPAWN preview. This fixes RESPAWN preview wrongly clamping the previewed tsprite z coords to [-524288 .. 524288] (x/y limits). Also, make the previewed tsprites be 33% translucent with the option of 66% translucency by setting 'showrespawn_fulltrans' to 1 in a.m32. From-SVN: r3699 commit 9f9095c75229b064707cdf9568309e3ab6de50a2 Author: Philipp Kutin Date: Sun Apr 21 19:55:26 2013 +0000 Mapster32: in quick tile selection [G], if tile is nonexistent, revert it. From-SVN: r3698 commit 459590b9cc5ca2181b51ad5b1abaa5d81cdbd2bb Author: Philipp Kutin Date: Sun Apr 21 19:55:22 2013 +0000 Mapster32: tweak the 'loaded map' message a bit. - colorize the trailing part if there is corruption or (new) if sprites were removed - also corrupt-check when loading Date: Sun Apr 21 19:55:18 2013 +0000 Engine: stricter map load time checking for sprites with oob sectnums. Sprites are now considered to have out of bounds sector numbers if it is < 0 or >= numsectors (not merely >= MAXSECTORS). If such a sprite is now encountered during post-load, an attempt is made first to assign it a sector number (using updatesector()). If that fails, the sprite is removed from the map. The background is that a dozen of maps do come with such sprites and could previously corrupt the sprite list when loaded. From-SVN: r3696 commit 7d1c9e8b9692f439c4dd3d9aa1b5626a21e3934f Author: Philipp Kutin Date: Sun Apr 21 19:55:11 2013 +0000 Draw the flat on-screen CHAINGUN in a way inspired by 3688, preventing seam. Specifically, in GL modes, and if the CHAINGUN is not replaced by a model, - draw the upper part twice: first, two screen pixels * weapon scale lower, then at the original position - reverse the previous order: draw the upper part first, then the lower part This is much preferable to the previous engine-side hack, and to my eye, it looks perfect now. From-SVN: r3695 commit 0fad7394de1857d253bb26c7d1e3e6d5c2ded137 Author: Philipp Kutin Date: Sun Apr 21 19:55:03 2013 +0000 A couple of trivial stylistic changes. From-SVN: r3694 commit 00c8ed5f267c8b4f1d2856e47e5253baf6bdbd9d Author: Philipp Kutin Date: Wed Apr 17 20:34:59 2013 +0000 Lunatic/OS X: generate bytecode in object files from LuaJIT. From-SVN: r3693 commit 3de34f1bc9ac3c59e50cfb7334bff9c80784a81c Author: Philipp Kutin Date: Wed Apr 17 20:34:54 2013 +0000 osxbuild.sh: Add 'clean' preset, deleting files missed by 'make veryclean'. From-SVN: r3692 commit daae87ca9b022b94ffbaa6a4b6236852425ddd0e Author: Philipp Kutin Date: Wed Apr 17 20:34:51 2013 +0000 OS X: Pass -Wno-narrowing only with GCC 4.3+, fixing arttool build on my setup. From-SVN: r3691 commit 88a85802d79971bed2886ba9799615fe9862a238 Author: Philipp Kutin Date: Wed Apr 17 20:34:45 2013 +0000 osxbuild.sh: new option --lastrev, 'dummyhelix' preset. From-SVN: r3690 commit eb418cd16e58164d02c034839df502f846ae2391 Author: Philipp Kutin Date: Wed Apr 17 20:34:39 2013 +0000 OS X: Write eduke32.log to ~/Library/Logs unless -usecwd is given. From-SVN: r3689 commit 077daee939b7a1f4d7916b843146a04f665c706b Author: Richard Gobeille Date: Tue Apr 16 22:37:31 2013 +0000 Mask the seam that shows up when drawing the scuba HUD overlay in OpenGL by drawing SCUBAMASK 3 times... once at the left position + 1, and then at the proper left and right positions. It's definitely a hack, but at least it lives on the game side of things. From-SVN: r3688 commit 50d1b157afbb09cd8a03b5124da12d43f4288063 Author: Richard Gobeille Date: Tue Apr 16 22:37:19 2013 +0000 Fix building against libpng 1.6, which removed png_sizeof From-SVN: r3687 commit 2ab827df59bfb6782000517d6bcca50c81012769 Author: Philipp Kutin Date: Tue Apr 16 20:08:45 2013 +0000 Fix A_MoveSprite() wrongly reporting sector hit without z change after r3678. From-SVN: r3686 commit 2529d7d3b93d4af56e5096b089297385c4dbccff Author: Philipp Kutin Date: Mon Apr 15 18:50:21 2013 +0000 Fix SPRITES_OF_SECT_SAFE macro. Oops! From-SVN: r3685 commit 058d941fa65eeba68e564ff37150fe4817621f04 Author: Philipp Kutin Date: Mon Apr 15 10:48:22 2013 +0000 gameexec.c: in VM_Fall(), comment out dead code, small indentation change. From-SVN: r3684 commit b6e7e6d1b9b308984e8f76012f6d90e007aacdf0 Author: Philipp Kutin Date: Mon Apr 15 10:48:20 2013 +0000 TROR no-SE7 water: spawn splash, reuse calculated other sector number. From-SVN: r3683 commit 8d3441fe4793bd5b02f46d44d9fb92668f7d1731 Author: Philipp Kutin Date: Mon Apr 15 10:48:18 2013 +0000 Improve on the code that handles changing sectors of projectiles. - In the A_MoveSprite() code that transports projectiles due to an SE7 (introduced in r1450 / legacy ROR), only report "success" if the transportation succeeded. - Clear newly introduced internal SPRITE_DIDNOSE7WATER flag after checking it. From-SVN: r3682 commit b64838a089d45324381f51c8593302c5b8566f40 Author: Philipp Kutin Date: Mon Apr 15 10:48:15 2013 +0000 In G_MoveStandables() CRACKx handling, fix oob access of DynamicTileMap[]. Also, in two cases, don't assign A_IncurDamage() result to a variable if it's not needed. From-SVN: r3681 commit 8a48daec4e09300192a9a42bb260b723f56ff82d Author: Philipp Kutin Date: Mon Apr 15 10:48:13 2013 +0000 Fix a couple of issues identified in the preceding commit. - In S_PlaySound(), move the sound index bound check above an indexing. - For A_CheckHitSprite(), and A_FindPlayer(), allow NULL second arg. - In A_ShootWithZvel(), make some one-letter vars be int32_t, making storing safeldist() results in them meaningful. - In MaybeTrainKillEnemies(), remove two redundant checks and move another one further up. - Comment that SIDEBOLT1 will never be translucent as was probably intended. - In G_MoveFX(), fix an always-true comparison. From-SVN: r3680 commit e616aad9a85d40932d4f130c4c518dfc43494ab7 Author: Philipp Kutin Date: Mon Apr 15 10:48:09 2013 +0000 Clean up of mostly actors.c, but some other files along the way too. - Rewrite some sprites-of-{stat,sector} loops using the SPRITES_OF, SPRITES_OF_SECT and new SPRITES_OF_SECT_SAFE macros. - In passing, identify some problems and mark them with 'XXX', but don't attempt to fix them yet. - The usual readability improvements... From-SVN: r3679 commit 9650c7d6aeed8cde21ae9656ce43c98003cca1fa Author: Philipp Kutin Date: Mon Apr 15 10:48:05 2013 +0000 TROR no-SE7 water: handle projectiles. Actually, the tweaked code in VM_Move() is not specific to projectiles, so other sprites now may pass no-SE7 water boundaries too, but it's most noticeable with projectiles. From-SVN: r3678 commit cdfe310cf5a3c8baff62ae14a9903269854a9203 Author: Philipp Kutin Date: Mon Apr 15 10:48:00 2013 +0000 TROR no-SE7 water: allow boundary change only if other-side lotag is other one. That is, if submerging, the lower sector MUST have lotag 2. If emerging, the upper sector MUST have lotag 1. (Previously, emersion happened from ST 2 sectors unconditionally.) This means that the area where submersion or emersion can happen is now the same for the top and bottom parts. From-SVN: r3677 commit 7aca3e94f8402df9771193c0981b03832e575bb4 Author: Evan Ramos Date: Sun Apr 14 06:42:58 2013 +0000 Fix the inventory icon selector's positioning to match v1.5 (reported by Fox [1]). While we're at it, move it according to ud.statusbarscale for aesthetic purposes. [1] http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__153060 From-SVN: r3676 commit e11cbdea6dee815a85fa3ed816d758a685cce5f0 Author: Evan Ramos Date: Sun Apr 14 06:42:36 2013 +0000 Add cvars "hud_statusbarmode" and "r_rotatespritenowidescreen". From-SVN: r3675 commit a089c142340bb41e08016d9e58c2685627323bb5 Author: Evan Ramos Date: Sun Apr 14 06:42:09 2013 +0000 Center the x-position of BOTTOMSTATUSBAR displayed to the screen so an extra-wide one would display correctly. Let me know if this breaks any mods that have #2462 with an x-dimension other than 320. From-SVN: r3674 commit 30faa6282773273508d21aad8089d3fdda72baac Author: Evan Ramos Date: Sat Apr 13 03:51:17 2013 +0000 Fix a signed/unsigned comparison. From-SVN: r3673 commit 63d3ac569367a32cd4b1693d60662acb30010b3e Author: Evan Ramos Date: Sat Apr 13 03:50:57 2013 +0000 Fix a "duplicate const" error. From-SVN: r3672 commit ae095d9a6837ebfe013c1f7848c9b135542b6f09 Author: Evan Ramos Date: Sat Apr 13 03:50:37 2013 +0000 Fix reading the GOG and Steam paths for Win64 builds. From-SVN: r3671 commit ccc984062afe33f25abcd590dcbee05639394f32 Author: Evan Ramos Date: Sat Apr 13 03:50:19 2013 +0000 Fix "Error setting gamma ramp: DDERR_INVALIDPARAMS" on 64-bit. From-SVN: r3670 commit a93273c217adb82406fc838996910f60a1ad78f9 Author: Evan Ramos Date: Sat Apr 13 03:49:58 2013 +0000 Fix Mapster32 crash caused by custom s_buildRev strings longer than five characters. (Note: We are still vulnerable to crashes here (and likely in other places), but you have (4096-16) extra characters to work with. We should consider replacing many uses of Bsprintf with Bsnprintf.) From-SVN: r3669 commit fedb8dd6994a86e03f2b3a5bbcd621cb1c14ec8b Author: Evan Ramos Date: Sat Apr 13 03:49:35 2013 +0000 Add newlines to some diagostic log messages that lack them and need them. From-SVN: r3668 commit f92d465aa8fe48597ac51a4ec8c3ff9fcadc118e Author: Evan Ramos Date: Sat Apr 13 03:49:05 2013 +0000 Fix the pause during display of TENSCREEN. From-SVN: r3667 commit fe4e29e1d11c5ff3a58251b36dfb661597e99a56 Author: Philipp Kutin Date: Fri Apr 12 11:59:35 2013 +0000 In upward moving enemy code of VM_Move(), consider TROR boundaries. This fixes liztroops not passing TROR layers when on the jetpack, as well as other enemies capable of moving upward, and also COMMANDER and DRONE (for which the code is special-cased). From-SVN: r3666 commit 30dc1c72c0503b5fa40d68bdf81bf05a93c25a4d Author: Philipp Kutin Date: Fri Apr 12 11:59:32 2013 +0000 build.lua: add .sectsperbunch to map table, useful for TROR stats w/ findmaps.sh Also, sync MAXBUNCHES to new limit in lunatic/defs_common.lua. From-SVN: r3665 commit f1dc2211a08d2c419f4dcbfe5e638988d0c1f547 Author: Philipp Kutin Date: Fri Apr 12 11:59:29 2013 +0000 Lunatic: fix test.elua after map-int VX and one rename, add one microbenchmark. From-SVN: r3664 commit 81f46d57f71f9a293d2a44368d130d5dc8252e6f Author: Philipp Kutin Date: Fri Apr 12 11:59:26 2013 +0000 Mostly engine and some gameexec.c stylistic changes. From-SVN: r3663 commit f55573c4ab4afd9ea1557851d10c58caf563d5bd Author: Philipp Kutin Date: Fri Apr 12 11:59:22 2013 +0000 Engine: in hitscan and getzrange, skip sprites if sprite part of clipmask is 0. ... like was done with clipmove() previously. Also, do some code clean up. There are no changes of functionality. From-SVN: r3662 commit 76f4339924118ed9e783fb2212981761fdeeac8c Author: Richard Gobeille Date: Wed Apr 10 23:47:14 2013 +0000 Fix something I fucked up with GRP scanning when I added support for the Megaton addon GRPs. From-SVN: r3661 commit 301463206d9e99ba03aec8ed96de0c53e4cb8e06 Author: Philipp Kutin Date: Tue Apr 9 17:35:17 2013 +0000 Silence "may be used uninitialized" warning, use Batoi() for user input. Nag: The behavoir of atoi() is *undefined* if "the value of the result cannot be represented" (C99 7.20.1). Note: my nagging about undefined behaviors will *not* get less over time. :P From-SVN: r3660 commit 7b74ca9066a27134e704892b623b419f19544b21 Author: Philipp Kutin Date: Tue Apr 9 17:35:14 2013 +0000 Mapster32: print the "Saved board" message more persistently. From-SVN: r3659 commit 80261de34c241f70c7ae1204ccfac3228b56a955 Author: Philipp Kutin Date: Tue Apr 9 17:35:11 2013 +0000 Lunatic: new-generation map format, in-memory representation ("map-int VX"). The Lunatic build compiles with new structures for sector and wall types. They have separate members for TROR {up,down}{bunch,nextwall}, so there are no conflicts with other uses of members into which they were previously shoehorned. Also, the maximum bunch limit is bumped to 512 in that build. Currently, loading from V7/8/9 and saving to V7 and V8 are supported. From-SVN: r3658 commit 62da8c73b04ec3cdb50097e7b1fc3fc063892f33 Author: Philipp Kutin Date: Tue Apr 9 17:35:03 2013 +0000 Lunatic: move utility scripts to util/, bittest.lua -> test/test_bitar.lua. From-SVN: r3657 commit a6212256894deee92c8bb5bc1751bec241ef6369 Author: Philipp Kutin Date: Tue Apr 9 17:34:53 2013 +0000 Lunatic: fix stuff after last commits; translator: clean up -f parsing code. Also, implement 'cmenu' in LunaCON, make 'definequote' also allowed as inner command. From-SVN: r3656 commit a0bf7230aa992541b42c6310a58ea554cc010501 Author: Richard Gobeille Date: Mon Apr 8 18:30:52 2013 +0000 Fix changing the max refresh rate in EDuke32 (it was already working correctly in Mapster32). From-SVN: r3655 commit 6fe25a64893b935d49b63e730fd2f30b1bf65192 Author: Richard Gobeille Date: Mon Apr 8 18:30:39 2013 +0000 Add support for the versions of Duke it out in D.C., Duke Caribbean: Life's a Beach, and Duke: Nuclear Winter packaged with Duke Nukem 3D: Megaton Edition on Steam. This allows them to be launched directly from the startup window and also adds an "-addon" command line parameter that should allow the duke3d.exe included with Megaton Edition to be replaced with a copy of EDuke32. From-SVN: r3654 commit 855449c2f612b2d565f4c8755b2fb14d6ea7923a Author: Philipp Kutin Date: Sun Apr 7 15:20:41 2013 +0000 Lunatic: replace DukePlayer_t set-member methods with metatable magic. So that members needing it are checked when they're assigned to using the usual syntax. What kind of check to perform (sector, player, ... x whether negative values are allowed) is written in a declarative fashion inside the C declaration. Also, make Lunatic's MAXQUOTES be C's OBITQUOTEINDEX and bound-check an access of sprite[p->wackedbyplayer] in the C code. From-SVN: r3653 commit 7f25fa297aa3d9718159263fd8e5f2bfab4093c4 Author: Philipp Kutin Date: Sun Apr 7 15:20:37 2013 +0000 Lunatic: get rid of some now unneeded set-member methods, add others. From-SVN: r3652 commit 59e3b6e759d28eed8cd6e00b4bed9f9ee8a7beaa Author: Philipp Kutin Date: Sun Apr 7 15:20:33 2013 +0000 a.m32: Don't reposition head light if in void space, fixing crash. From-SVN: r3651 commit 0448c6ecac569847221676f20ad845cff73f6943 Author: Philipp Kutin Date: Sun Apr 7 15:20:28 2013 +0000 Lunatic: access to show2dsector[], fix some permit-negative bound checks. From-SVN: r3650 commit dbec10d88fbe9b35ce4f27f8b5be9b2bf8b362ca Author: Philipp Kutin Date: Sun Apr 7 15:20:24 2013 +0000 Remove useless code setting show2dwall[] or show2dsprite[], as they're unused. From-SVN: r3649 commit d040a5ac33465624db858bbeace42b9fada0ea97 Author: Philipp Kutin Date: Fri Apr 5 17:53:31 2013 +0000 a.m32: Implement a Polymer "head light" emanating from your position in 3D mode. Toggled with Ctrl+Shift+[KP-]. Variable 'headlight_range' controls its range. For the implementation, a new event EVENT_PREDRAW3DSCREEN was added. From-SVN: r3648 commit 94a822f0e2fc969635d76e16b9b356ccfda3103f Author: Philipp Kutin Date: Fri Apr 5 17:53:25 2013 +0000 Factor out displaying episode ending cutscenes into G_BonusCutscenes(). Also, - retire IFWITHIN() macro, preferring expanding it - fix _endofgame() in control.lua From-SVN: r3647 commit 0be806944482bb8d1ce6229c67f643d675f8db1c Author: Philipp Kutin Date: Fri Apr 5 17:53:21 2013 +0000 LunaCON: gen. cleaner code, make actor[].movflag internal, update listglobals.sh From-SVN: r3646 commit 4f95dcc5b2f6757bbbdae7b0747ab75dc4be8451 Author: Philipp Kutin Date: Fri Apr 5 17:53:18 2013 +0000 Define a macro LUNATIC_EXTERN that expands to 'static' in non-Lunatic builds. From-SVN: r3645 commit 3631ed730880a33d31debf772c78f26a4fcf086a Author: Philipp Kutin Date: Fri Apr 5 17:53:14 2013 +0000 Take over and use static assertion macro found in LuaJIT sources. From-SVN: r3644 commit 132d7970aa99e2199f8fc393cb29795f5c300ed1 Author: Philipp Kutin Date: Fri Apr 5 17:53:10 2013 +0000 Lunatic: custom integer types treated as bitfields. Used for engine struct's (c)stat and actor[].flags members. From-SVN: r3643 commit d5387f1347f3b62ec10b0450f3dd1e8bceee84a5 Author: Philipp Kutin Date: Fri Apr 5 17:53:06 2013 +0000 Lunatic: begin gamevar system. Not much there yet. In Lunatic, gamevars (variables that are saved with savegames) are per-module. From-SVN: r3642 commit 2cfc60eb3fe64abec26f406afe7972644f8fed1f Author: Philipp Kutin Date: Fri Apr 5 17:53:03 2013 +0000 Lunatic: make palette_t a bcarray-generated type, various tweaks. - Increase LuaJIT max. machine code limit to 10 MiB From-SVN: r3641 commit 49c9490e9ef1969622450cf6786b729a41aef24f Author: Philipp Kutin Date: Fri Apr 5 17:52:59 2013 +0000 LunaCON: ifsquished. From-SVN: r3640 commit 87feab85f1a77ee69bcce4c55b053f580b7d31dd Author: Philipp Kutin Date: Fri Apr 5 17:52:50 2013 +0000 LunaCON: fix rotatesprite coordinate check, gen. events to chain at beginning. From-SVN: r3639 commit bf2cfceabaa4f6ed65a8fac996f86cfb954ba43a Author: Richard Gobeille Date: Fri Apr 5 16:41:12 2013 +0000 Support NVIDIA's adaptive vsync, you can enable it by setting r_swapinterval -1 in the console or by using the new third setting for the vsync menu option. From-SVN: r3638 commit 677f891c92b29f5632581a0e240cca28e107c092 Author: Richard Gobeille Date: Fri Apr 5 07:48:20 2013 +0000 Prevent loading anything except the GRP from the Steam or GOG Duke3D install directories. Loading DUKE.RTS from those paths will be resolved later. From-SVN: r3637 commit f63460d74e2aa52e4120e3d7acea09d4e572f430 Author: Richard Gobeille Date: Wed Apr 3 17:26:49 2013 +0000 Fix savegamevar/readgamevar breakage from r3579 From-SVN: r3636 commit e7db9c079af6abf2b0c680195b513ee5c1770781 Author: Philipp Kutin Date: Mon Apr 1 18:35:44 2013 +0000 Fix handling of SE31 pointing upward. A bug was introduced in r2607. From-SVN: r3635 commit 8cafb4aa6b32c50a65e75ab2869b8c89d012692e Author: Pierre-Loup A. Griffais Date: Sun Mar 31 23:29:56 2013 +0000 Polymost: Fix ART offset and face sprite flipping interaction. From-SVN: r3634 commit 15d905c175b2c0494536125bf6977b85bdf1422e Author: Pierre-Loup A. Griffais Date: Sun Mar 31 23:26:40 2013 +0000 Polymer: Fix ART offset and sprite flipping interaction. From-SVN: r3633 commit c9a27fa8fb188a5af918e923d642f57e88ed2847 Author: Philipp Kutin Date: Sun Mar 31 22:29:30 2013 +0000 Fix activated MUSICANDSFX wrongly being looped, introduced in r3631. From-SVN: r3632 commit 88ee759737a5e6ddb59a8f4742442ef85276d0fe Author: Philipp Kutin Date: Sun Mar 31 18:58:17 2013 +0000 Fix playing ambient sounds at max volume for split sec on entering their range. This is done by always calling FX_PlayAuto3D() to play such sounds. It now additionally takes a third argument 'loophow', permissible values being FX_ONESHOT and FX_LOOP. From-SVN: r3631 commit 569a93d0a7c6f78b2857675a832aff2e1122d850 Author: Philipp Kutin Date: Sun Mar 31 18:58:09 2013 +0000 In 'tip' display code, extrapolate four more values of the y coord table. Also, for tip_incs values greater or equal than the number of elements in this table, return early reporting that the hand has been drawn, so that the otherwise selected weapon is not drawn. From-SVN: r3630 commit 24b7dd9f2ba02eb1870c363342e3e28e88b4251b Author: Philipp Kutin Date: Sun Mar 31 18:58:04 2013 +0000 Lunatic: chaining of actor callback functions. For events and actors, a flag can be now passed whether to chain the new function at the beginning or end of an already existing one, or to replace it entirely. Also, for the translator, add option -fno-error-nostate, disabled by default. From-SVN: r3629 commit 7ad3c677f409a864f26b0817ca6d7a1cee7efafb Author: Philipp Kutin Date: Sun Mar 31 18:57:59 2013 +0000 Add rudimentary sanity checks when playing ANM files. - Don't attempt to play an ANM file if it is empty (warn) or too short (error). - If failing to read IVF file header or initializing VPX codec, don't play ANM. - Return early from gltexapplyprops() if not in GL modes. From-SVN: r3628 commit d2759ec1aa8c52844240a5d67056f78fd8d5b14a Author: Philipp Kutin Date: Fri Mar 29 15:59:26 2013 +0000 Add some test CON files to source/lunatic/test. The code is mostly by other people, who are credited in the CON files. From-SVN: r3627 commit 3cdb9067aaea63b7ec4cf879a71c754c3f4e2e07 Author: Philipp Kutin Date: Fri Mar 29 15:59:23 2013 +0000 Return early from A_IncurDamage() if actor[].picnum ("htpicnum" in CON) is < 0. With this change, it is impossible for negative values to be used as array indices inside this function, and I believe that it is also impossible that they escape to somewhere they might be used as such. For Lunatic, allow setting actor[].picnum to negative values and in the translator, add (commented out) code to warn whenever it is set to a constant negative value. Also, fix a _sound call in _addphealth in control.lua. From-SVN: r3626 commit f7c6bda99c8948cec0fa400f785b2f079b962604 Author: Philipp Kutin Date: Fri Mar 29 15:59:20 2013 +0000 Windows: make the crash log file named eduke32_or_mapster32.crash.log. From-SVN: r3625 commit 97789f9ed46c9f3926a2c47986c4c1af8201e5ad Author: Philipp Kutin Date: Fri Mar 29 15:59:17 2013 +0000 Don't output an empty SelectedGRP entry into the cfg, fixing bare EDuke32 build. From-SVN: r3624 commit 08420e79f16ee91ceeaa95ea65ff7e60a707850b Author: Philipp Kutin Date: Fri Mar 29 15:59:14 2013 +0000 Mapster32: factor out 3x computing "alwaysshowgray", but don't change anything. From-SVN: r3623 commit ed2e357d9ed95f1ca81a6aad635eb11323384320 Author: Richard Gobeille Date: Thu Mar 28 23:35:52 2013 +0000 Tweak the code that adds the Steam and GOG Duke3D paths a little. This changes things so that we add the DOSBox version provided on Steam as a source for the GRP instead of their main content dir, bypassing loading their screwed up duke3d.def. From-SVN: r3622 commit e2b103a0d727f69f77309329a134bafab240e33c Author: Evan Ramos Date: Thu Mar 28 09:06:14 2013 +0000 Load def modules even if no root def exists. Print a message to the log for each def module that is loaded. From-SVN: r3621 commit 4de953bd96fba75ebab66a2f4e65180a26ee0526 Author: Evan Ramos Date: Thu Mar 28 09:05:55 2013 +0000 weapons.con.sample: Sync with r3614 and r3616. From-SVN: r3620 commit 0ccfc84fab2d36d90a6136c3fc8fff2e6ea66dea Author: Evan Ramos Date: Thu Mar 28 09:05:36 2013 +0000 Fix a multi-line comment in cache1d.c. From-SVN: r3619 commit fdabf8853fe801a3b736ae44b1a3ede04021f491 Author: Evan Ramos Date: Thu Mar 28 09:05:18 2013 +0000 Correct the capitalization of NAPALM. From-SVN: r3618 commit 21aab2ac11b6fd3a80d5d03301a111b8bc203085 Author: Evan Ramos Date: Thu Mar 28 09:04:54 2013 +0000 Fix loading of a user's previous "SelectedGRP" file. From-SVN: r3617 commit d2e70a83fe841b061ad1b9e8f55e3c04cbfbd9aa Author: Richard Gobeille Date: Wed Mar 27 06:37:19 2013 +0000 Don't continue animating Ripper, Shrinker, Expander and Freezethrower when the game is paused or the menu is up. From-SVN: r3616 commit 524538733d1631ce32b8c7a2af1bf95e6224902f Author: Richard Gobeille Date: Wed Mar 27 01:39:18 2013 +0000 Read GOG.com and Steam Duke3D install paths from the registry instead of hard-coding the default paths. From-SVN: r3615 commit 0e5ba69abd74dc0b5769d3fadf8c0b8fa7977648 Author: Richard Gobeille Date: Wed Mar 27 01:38:42 2013 +0000 Fix shrunk player fist animation speed as requested on the forums. I didn't test this against the DOS version but it seems about right according to my memory. Let me know if it's still wrong and you care that much about it. From-SVN: r3614 commit f694331e2a07a02e28bc9fb5bd77bf6039bdb0a6 Author: Richard Gobeille Date: Wed Mar 27 01:38:21 2013 +0000 MSVC build fixes. The change to Makefile.deps is slightly questionable but it's not really an issue. From-SVN: r3613 commit 595ac8d13e4e297fa1b3c46a1f811abf12149f1c Author: Evan Ramos Date: Mon Mar 25 19:19:28 2013 +0000 Fix a case in minitext_() overlooked by r3608. (This should fix the inventory item box in the statusbar.) From-SVN: r3612 commit 37e4c79b64456d5ca3ef5b4b6652e47b28596f5e Author: Evan Ramos Date: Mon Mar 25 19:19:05 2013 +0000 LunaCON: Properly implement rotatesprite16 by adding ROTATESPRITE_FULL16 to orientation. From-SVN: r3611 commit 6d8e52d79dd0c6e98507d9e2cffcc2d896f4d0c7 Author: Evan Ramos Date: Mon Mar 25 04:33:03 2013 +0000 Add "rotatespritea" to CON and M32script. I hope I didn't bruise Lunatic too much. From-SVN: r3610 commit b0fdd3670bcda6ede360047df0de089748331615 Author: Evan Ramos Date: Mon Mar 25 04:32:24 2013 +0000 Implement alpha into rotatesprite (rotatesprite_) on the engine side. From-SVN: r3609 commit 5418b0a5fc766518075c0db5e8f954b8b88a5b21 Author: Evan Ramos Date: Mon Mar 25 04:31:58 2013 +0000 Add orientation bit 2048, enumerated as ROTATESPRITE_FULL16, which is a courtesy provided by the engine for the purpose of the game to internally force use of full 32-bit coordinates. With this bit set, all CON screen drawing commands can use rotatesprite16-like coordinates. While the functionality was already internally in place for gametext as one of two hacks using ROTATESPRITE_MAX (the other still used by minitext_() to align with the statusbar) we must codify a bit in the engine for safe external use. (Otherwise, ROTATESPRITE_MAX could/would theoretically increase and leave modders high and dry.) (Dev note: In G_DrawTXDigiNumZ(), ROTATESPRITE_MAX was used to bitshift the value used to calculate digit spacing for no reason I can ascertain other than to introduce rounding errors into the zoom/textscale calculations. It was never used anywhere, so I removed it.) Bonus: The scaling code for digitalnumberz and gametextz has been modified so that the spacing is no longer affected by rounding errors. Try animating the zoom value and compare how the text used to jump but now does not. From-SVN: r3608 commit 70ffadcb841812500ae610ab37b6efce9cb30b96 Author: Evan Ramos Date: Mon Mar 25 04:31:31 2013 +0000 Hackily implement spriteext.alpha into Classic by internally attaching 33% and 66% to the cstat bits. From-SVN: r3607 commit 974fd1db272b2f6c9834802ea8cfec224eb998b8 Author: Evan Ramos Date: Mon Mar 25 04:31:09 2013 +0000 Relax CAPITALIZATION restrictions. From-SVN: r3606 commit 3998b398ec83a418c961689b8f279c7b2cb2d2aa Author: Philipp Kutin Date: Sun Mar 24 18:55:40 2013 +0000 engine: fix assertion failure with overlong walls in rintersect(). From-SVN: r3605 commit 8438b00313a979d44970fc2ba422b5be41c551bf Author: Philipp Kutin Date: Sun Mar 24 18:55:27 2013 +0000 Lunatic translator: proper Lua->CON line mapping for actor/event/etc. headers. From-SVN: r3604 commit 4b84eed5238a1bbfc7ca6027cafdebfcddc9dddd Author: Philipp Kutin Date: Sun Mar 24 18:55:18 2013 +0000 engine: return early with 0 from cansee() if either sector is >= MAXSECTORS. Previously, only the <0 condition was checked. However, the passed sectnums could be >= MAXSECTORS (at least in C-CON), for example when issuing 'canseespr' on a sprite not in the game world. From-SVN: r3603 commit b718d4ba1c4d8341f2147eae30f68366c01f4022 Author: Philipp Kutin Date: Sun Mar 24 18:55:05 2013 +0000 LunaCON: readarrayfromfile: fail silently if file can't be opened. From-SVN: r3602 commit 2264ecaae170bc616f5d51f0763e48b56cfb5ddc Author: Philipp Kutin Date: Sun Mar 24 18:54:56 2013 +0000 Lunatic: simplify RETURN handling, make its behavior across events same as C-CON. There's only one RETURN value on the C side (g_RETURN), which is also referenced from Lua. Upon entering an event, its value takes on the per-event default one, and its value when the event code finishes is passed back to the game. Independently of that, its value is always saved and restored across event calls. From-SVN: r3601 commit ecf867ff04bc2b12765998cb9b6e6bbd13ff02d4 Author: Philipp Kutin Date: Sun Mar 24 18:54:14 2013 +0000 Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. From-SVN: r3600 commit 14b4f30c85fb6b14a73687a9905a9cf4f9cad3a3 Author: Philipp Kutin Date: Sun Mar 24 18:53:56 2013 +0000 Mapster32: don't wrongly report PANIC corruption with MAXSPRITES sprites present. From-SVN: r3599 commit 034a1479e6128833451e67e82833dabbc7c6cd1a Author: Philipp Kutin Date: Sun Mar 24 18:53:48 2013 +0000 Lunatic t.: don't error on changing stat/sect of sprite not in the game world. From-SVN: r3598 commit e2155a60225e97cd75095026f119159f9cd1b388 Author: Philipp Kutin Date: Sun Mar 24 18:53:28 2013 +0000 Lunatic: actor usertypes from CON, set SFLAGs as 2nd gameactor() arg in Lua. In passing, fix a couple of omissions: gameactor() being passed nil's in the middle, more than one moveflag to CON *actor. From-SVN: r3597 commit deacfa4fd5b07f0611f6b9e78c44363d28d82eb0 Author: Philipp Kutin Date: Sun Mar 24 18:53:14 2013 +0000 Lunatic: make some variables local, fix some bugs found using listglobals.sh. From-SVN: r3596 commit 2feaaf29136999b87450f3c0a756d022e643e3e5 Author: Philipp Kutin Date: Sun Mar 24 18:53:06 2013 +0000 Lunatic: fix weapondata_t read access, Lua->CON line mapping for if* commands. From-SVN: r3595 commit 3530498d4b6f47040316ac5d87858c8c3f043e19 Author: Philipp Kutin Date: Sun Mar 24 18:52:52 2013 +0000 Lunatic: in readgamearray support code, use engine file functions. This is so that files residing in GRPs (or anywhere the engine looks for them) can be read, too. From-SVN: r3594 commit 8a6ee8272eb98f5eff1e86ec90c2e341e6013f59 Author: Philipp Kutin Date: Sun Mar 24 18:52:41 2013 +0000 Lunatic: cancel logo on EVENT_LOGO error, fix CON mulscale and writable gv. From-SVN: r3593 commit e6f2bd6c479d0705b041780859250dc589e14803 Author: Philipp Kutin Date: Thu Mar 21 10:20:37 2013 +0000 premap.c: fix oob access of tagbitmap[] with formerly negative lo-/hitags. Also, allocate that array dynamically instead of on the stack. From-SVN: r3592 commit 6396838d2170b6c78250612f75a1ff75d76a8a0d Author: Philipp Kutin Date: Thu Mar 21 10:20:27 2013 +0000 Lunatic: make ivec3 and dvec3 types share same metatable, orthogonalize API. Specifically, remove ivec3's blen1() method and add from/to BUILD coordinate (z scaled by 16) conversion methods. From-SVN: r3591 commit 6c9aa4e5de0187ccfba41e931c6d9ab4dcb7144c Author: Philipp Kutin Date: Thu Mar 21 10:20:20 2013 +0000 Lunatic: slightly cleaner weapondata_t access. Also, for the embedded translator: don't warn on unrecognized command line opt. From-SVN: r3590 commit aa0a11d48af4eb2391c5ee0c6b4a5aadaec87369 Author: Philipp Kutin Date: Thu Mar 21 10:20:14 2013 +0000 Clean up mdsprite.c:voxdraw() a little. From-SVN: r3589 commit ef2a0933e096f2ffcfeb24881bccff01e6cbddbd Author: Philipp Kutin Date: Thu Mar 21 10:20:01 2013 +0000 Clean up mdsprite.c:md3draw() by factoring out m->head.flags == 1337 check. ... into a macro MFLAGS_NOCONV(m). Since it currently expands to (0), some dead code will be eliminated. Introduce a "compilation option" macro DO_MD2_MD3_CONV in mdsprite.c. From-SVN: r3588 commit 9bc267374106b3c321d99a06d2ea1be7ca7b21ae Author: Philipp Kutin Date: Thu Mar 21 10:19:55 2013 +0000 Clean up mdsprite.c:md3draw() by factoring out spriteext[tspr->owner] access. From-SVN: r3587 commit 76ccfb171c93b76fb920119cbe32ac744446a754 Author: Philipp Kutin Date: Thu Mar 21 10:19:46 2013 +0000 Make -testlua accepted (but ignored) in non-Lunatic build. So that it doesn't result in the -t (respawn on) command line switch. From-SVN: r3586 commit 6848d05ecd4d111ab41574f1fbcdf3c02387a70c Author: Philipp Kutin Date: Thu Mar 21 10:19:41 2013 +0000 Clean up mdsprite.c:md3draw() by tightening locals, factoring out 2x dup code. From-SVN: r3585 commit c6dc4049fd87d16919a22111f3d0b9b4696a9c70 Author: Philipp Kutin Date: Thu Mar 21 10:19:32 2013 +0000 engine: give sprite cstat 1024 a marco name, CSTAT_SPRITE_MDHACK. From-SVN: r3584 commit 869d69c62c626262faa148156826278c0b8ea09b Author: Philipp Kutin Date: Thu Mar 21 10:19:25 2013 +0000 sdlayer.c: fix incompatible-pointer-type warning. From-SVN: r3583 commit 5730c58ea59c2083172d43ffb33f366da3335671 Author: Evan Ramos Date: Thu Mar 21 09:49:12 2013 +0000 Wii: Fix Mapster32. It runs now. From-SVN: r3582 commit 9724d2aaa04e5327b9927f7d13fb6ce7602da7a6 Author: Evan Ramos Date: Thu Mar 21 09:48:21 2013 +0000 Windows: Add the default installation paths for the GOG.com release of Duke Nukem 3D: Atomic Edition and the Steam release of Duke Nukem 3D: Megaton Edition (if they exist) to EDuke32's search path. From-SVN: r3581 commit ad5345ff88b95840443608cae7c24ea1b5909c98 Author: Evan Ramos Date: Tue Mar 19 06:23:38 2013 +0000 Process ART animations on tspr->picnum early in all three renderers. This enables ART animations to take effect on voxels in classic, voxels and models in Polymost, and models in Polymer. From-SVN: r3580 commit cc472e796f9b8a3b214bf5c02c558f36d765d668 Author: Evan Ramos Date: Tue Mar 19 06:23:12 2013 +0000 Save the configuration files whenever a savegame is made. From-SVN: r3579 commit fc2034b6864ada05a1ab6564f1fc604fce7264a0 Author: Evan Ramos Date: Tue Mar 19 06:22:52 2013 +0000 Prevent the middle chaingun muzzleflash from animating its position when the player is frozen. The unmodified behavior is completely wrong and I don't see how any mod could ever use it. From-SVN: r3578 commit 9898c4c433f7fb9d7c38908f4549fe4206ba3624 Author: Evan Ramos Date: Tue Mar 19 06:22:33 2013 +0000 weapons.con.sample: Fix three C to CON porting bugs. Thanks to Fox for the reports. (Modders who used an older version: Take a look at the SVN diff, the fixes can easily be applied by hand.) From-SVN: r3577 commit 538b9099319f17c7b7b4a638510a471267979b0b Author: Evan Ramos Date: Tue Mar 19 06:22:08 2013 +0000 Add to r3544. From-SVN: r3576 commit d04c41c5d9a0ea1f24d3a2cfa0a0a2047a460fa8 Author: Philipp Kutin Date: Mon Mar 18 22:05:30 2013 +0000 Classic screen tilting: fix it by passing bit 1024 to rotatesprite(). This now should look correct for both settings of r_usenewaspect. From-SVN: r3575 commit 20989bdc8a993c109d51256d48bc242bd01defc7 Author: Philipp Kutin Date: Mon Mar 18 22:05:26 2013 +0000 Lunatic: properly protect weapondata_t members, fix Lua->CON line mapping. Also, make -Werror-bad-getactorvar disabled by default. From-SVN: r3574 commit b02b0f3d134f41b6c1f25a00649c2d2b2f8d06f2 Author: Philipp Kutin Date: Mon Mar 18 22:05:21 2013 +0000 Fix Lunatic build on Windows. - Make _buildargv[_buildargc] NULL. - With SDL layer, pass argv and argc directly and get rid of _build* ones. - Add tilesiz* to dynsymlists. From-SVN: r3573 commit 93516ea5af1ca6c33ef1e9c0bd1c3c15b30c7475 Author: Philipp Kutin Date: Sun Mar 17 18:11:58 2013 +0000 Lunatic translator embedded: handle command line arguments. Also, fix an error() call in control.lua:gamearray_file_common(). From-SVN: r3572 commit 744cd7a5c20b16cc552c46cce2a7a76f19c7d4cb Author: Philipp Kutin Date: Sun Mar 17 18:11:53 2013 +0000 Lunatic t.: allow hex literals with >9 digits if the high ones are all 'F's. (Or '0's, but that case is handled automatically.) The resulting generated number is taken by looking at the 8 lower nibbles and interpreting them as a signed 32-bit integer. Also add some number parsing tests to test/nlcf_break.con. From-SVN: r3571 commit d44bb2ad5a2c19edfa2729cd9238567f6bfbdf7c Author: Philipp Kutin Date: Sun Mar 17 18:11:47 2013 +0000 Lunatic translator: new switch -W(no-)error-bad-getactorvar. Toggling whether a getactorvar for a global or per-player gamevar issues a warning or a hard error, the latter being the default. Also, make it possible to readgamevar/savegamevar per-actor gamevars and add userdefs member "idplayers" (read-only). From-SVN: r3570 commit b306bb35114189035749a2b53615a5a878011873 Author: Philipp Kutin Date: Sun Mar 17 18:11:44 2013 +0000 Lunatic translator: else if* -> elseif, fix codegen for "if {}". The first transformation makes the "control structure too long" error appear only with larger if/else cascades, though it's still possible. From-SVN: r3569 commit f50822eab7b015a65e418882c9f1e252163d3500 Author: Philipp Kutin Date: Sun Mar 17 18:11:38 2013 +0000 Lunatic translator: dynamic tile remapping. Also, fix message when tiles get remapped in debugging builds. From-SVN: r3568 commit 07cf8715ab821efd31ae631fffb0f35ad9f4f5c3 Author: Philipp Kutin Date: Sun Mar 17 18:11:27 2013 +0000 Lunatic translator: music 0, add two userdefs members. From-SVN: r3567 commit 3d6ebb4d6e08e86a06b826c8f96134ca7df8ac3e Author: Philipp Kutin Date: Fri Mar 15 16:56:29 2013 +0000 Add new LOGO_FLAGS bit 2048, preventing cutscene at E4 beginning if set. From-SVN: r3566 commit d0b91b05ea89c71c09862c6034bc27bb5a786e4d Author: Philipp Kutin Date: Fri Mar 15 16:56:24 2013 +0000 geom.lua: fix copy-paste bugs and clean up code. Remove __eq metamethod. From-SVN: r3565 commit 93978a7a181badf9d7cedfeb8b2443d7a2199107 Author: Philipp Kutin Date: Fri Mar 15 16:56:19 2013 +0000 Lunatic: allow indexing some weapon/inventory arrays with their names. From-SVN: r3564 commit d8bd3978ac7c97efd934f72c6cb21f2173c40561 Author: Philipp Kutin Date: Fri Mar 15 16:56:15 2013 +0000 Lunatic translator: warn if setting reserved bits in some system gamevar redef. From-SVN: r3563 commit c5b434245174b08967345970ede3a9e8bc3d6863 Author: Philipp Kutin Date: Fri Mar 15 16:56:11 2013 +0000 Lunatic: g_tile access, rudimentary system gamearray support for the translator. The only operation for which proper code is generated is reading a single value from a system gamearray. From-SVN: r3562 commit 4d15db78a9c8d8bbd2402ed10024d9e577f6385f Author: Philipp Kutin Date: Fri Mar 15 16:56:07 2013 +0000 Lunatic t.: option for generating code caching sprite/actor/player structs... ...at the beginning of each function called back from C, and each case/default function. Called -fcache-sap. Disabled by default. From-SVN: r3561 commit 6e163fa3dfd0d1e8f9f5715d609cc90bf0a4e7f1 Author: Philipp Kutin Date: Fri Mar 15 16:56:03 2013 +0000 Lunatic: spritesof{stat,sect} iterators that allow deletion inside the loop. Also, - an optimization for sprite[]:setpos(). Calls to get_sprite_index() seem to be pretty slow (at least when they're not compiled). - add getzrange to the dynsymlists From-SVN: r3560 commit 8892fe617dcd5dbdb6534ee256f2ddb02466b864 Author: Philipp Kutin Date: Fri Mar 15 16:55:59 2013 +0000 Lunatic: correct SFLAG_* and actor_t definitions. From-SVN: r3559 commit deaf0518dd05a310398df6bf8fcec20ec79370e3 Author: Philipp Kutin Date: Wed Mar 13 10:48:23 2013 +0000 Lunatic: replace some allocations by static data, some translator fixes. Fix 'setsprite' and 'music'. A good timing test for actors performance is the starfield of WGR2's E1L1 ("Nexus"). From-SVN: r3558 commit 109c96972e0cb0d29919dc0d6ed631bbbabb0a95 Author: Philipp Kutin Date: Wed Mar 13 10:48:19 2013 +0000 Lunatic: also save min, max actor times; fix release build. From-SVN: r3557 commit ebf6c99c51121b3e4dfff5b39f0fd71d4e8f69b8 Author: Philipp Kutin Date: Wed Mar 13 10:48:14 2013 +0000 Lunatic translator: handle LOGO_FLAGS. This is the only gamevar of its kind that is handled for Lunatic, neither PLR_MORALE nor LOGO_FLAGS are. From-SVN: r3556 commit cde4bd17a520744072a64892189638b59c1a12cd Author: Evan Ramos Date: Mon Mar 4 09:10:54 2013 +0000 Plug up alpha leaks in Polymost textures/rotatesprite. From-SVN: r3555 commit f39ec2abc12030f71c73dfb77086820c34c2fb0e Author: Evan Ramos Date: Mon Mar 4 07:49:47 2013 +0000 Fix osxbuild.sh and wiibuild.bat after r3551. From-SVN: r3554 commit ec243c24e3654930c5c05458e290f333b8080d27 Author: Evan Ramos Date: Mon Mar 4 07:49:27 2013 +0000 Connect spriteext.alpha to models and voxels in Polymost. This code is neat, tidy, organized, and sensical! From-SVN: r3553 commit bce0921299094ae86d53e99091a0f8ac2ac929c9 Author: Evan Ramos Date: Mon Mar 4 04:39:36 2013 +0000 Finish the job started by r3546-3551 by deleting empty directories from an SVN client. From-SVN: r3552 commit 77603bad4658ea817a48f38f204f4f2724528823 Author: Richard Gobeille Date: Mon Mar 4 04:14:19 2013 +0000 Directory cleanup. Move the "Apple", "Windows", and "Wii" directories to a new "platform" dir, move the contents of "psd" to "rsrc/source", move eobj* and obj* directories so that they're under the "source" dir. From-SVN: r3551 commit ac326a307ff7e7cc175694733005b75d306c1cda Author: Richard Gobeille Date: Mon Mar 4 04:08:02 2013 +0000 Remove the old MakeDistributions makefile. This was used to package the old manually released source archives we had years ago. From-SVN: r3550 commit 8036206ea41fc1bd7f072bbcfac81a9d3a43386f Author: Richard Gobeille Date: Mon Mar 4 04:07:53 2013 +0000 Remove unused eduke32.vcxproj.user file, presumably used by VS2010 and up to store machine-dependent preferences From-SVN: r3549 commit a91f92057abc1c28e0fd81b9805adca418edcb6d Author: Richard Gobeille Date: Mon Mar 4 04:07:44 2013 +0000 Remove unused rsrc/orange_icon.ico From-SVN: r3548 commit f6ec90f5aff321139a6375f3944345d612e9901e Author: Richard Gobeille Date: Mon Mar 4 04:07:32 2013 +0000 Remove the old NSIS script used to generate the installers we had, what, 5 years ago? If we ever need it again we can just pull it from one of the old revisions stored in the repo. From-SVN: r3547 commit 1691591c68ddbef9caa169ffabe9ad6a8f79a0c6 Author: Richard Gobeille Date: Mon Mar 4 04:07:20 2013 +0000 Remove old unused changelog files From-SVN: r3546 commit 92a9f7a0531814db6e825b7f4e3d9080932f6011 Author: Evan Ramos Date: Mon Mar 4 01:24:17 2013 +0000 Make stopping of all sounds after completion of LOGO.ANM conditional on the newly introduced (LOGO_FLAGS & LOGO_STOPANIMSOUNDS). Modifies r3217. From-SVN: r3545 commit b46372646f15aa72d002d5348707c3daa787e17b Author: Evan Ramos Date: Mon Mar 4 01:23:55 2013 +0000 Patch up some broken hardcoded behavior with regard to the Sentry versions of the bosses (minibosses), as suggested by Fox. This should have no adverse effects or side-effects. The changes only apply if a modder chose to use completely broken functionality in the first place. From-SVN: r3544 commit 02d96077cdeb728e8f772c34b6b6fd2613269881 Author: Evan Ramos Date: Mon Mar 4 01:23:29 2013 +0000 Connect spriteext.alpha to Polymost. Ugh, global variable hacks. Excuse me while I wash my hands. From-SVN: r3543 commit b5cbd6a8ca47c2a4f0cf91339505a24a56fa5f99 Author: Philipp Kutin Date: Sun Mar 3 16:06:40 2013 +0000 Fix starttrack crashing when a "null music" is selected. Introduced with the refactoring in r3490. From-SVN: r3542 commit ce2bc0e0c4515bab67028063b8da1634f5a2169c Author: Philipp Kutin Date: Sun Mar 3 16:06:37 2013 +0000 Lunatic: make con.ai accept literal action/move, check for calling from top. Also, fix con._setgamepalette. From-SVN: r3541 commit 6a90d4eb8dafde28e72897e0f0a2cb80d8e23278 Author: Philipp Kutin Date: Sun Mar 3 16:06:32 2013 +0000 Lunatic translator standalone: option specifying a directory for gen'd code. The option is -fgendir=. From-SVN: r3540 commit 41d014fb9d869675677e2cfd6064f78b46893031 Author: Philipp Kutin Date: Sun Mar 3 16:06:28 2013 +0000 Lunatic translator standalone: allow specifying list files. All non-option positional arguments after an @ sign are taken as list files: hashes at the beginning of a line denote comments, truly empty lines are ignored, all other lines should contain one root CON file name. From-SVN: r3539 commit 8c1080256cdab4b9ea5753d8bd5046e682fe2bd2 Author: Philipp Kutin Date: Sun Mar 3 16:06:25 2013 +0000 spriteclip.txt: refer to _clipshape0.map instead of _clipshape_.map. From-SVN: r3538 commit 272d969b30f4b5977ec4f0ef54d7040206391b40 Author: Philipp Kutin Date: Sun Mar 3 16:06:22 2013 +0000 Lunatic translator: fix some codegen and some commands. From-SVN: r3537 commit a48d68f6026369e1aad2b0ef7d9b31327c029117 Author: Philipp Kutin Date: Sun Mar 3 16:06:18 2013 +0000 CON: Fix accessing gamearrays on 64-bit archs. From the PM conversation "gamearrays in 64-bit". A test case is the breaking glass at the beginning of the DukePlus map. From-SVN: r3536 commit 1296201d6b75878f0b019d86d8e424d43bdccff0 Author: Philipp Kutin Date: Sun Mar 3 16:06:16 2013 +0000 Lunatic translator: in error tracebacks, show line numbers of the source file. Instead of those of the translated code. Also some codegen tweaks and fixes. From-SVN: r3535 commit b8ef667fe9ac42a81a55197ff67cb0067735d7d0 Author: Philipp Kutin Date: Sun Mar 3 16:06:12 2013 +0000 Lunatic translator: dangling else for the 1000th time: not dangling any more. Also update test/dangling_else.con. See there for how if* cascades are handled in CON. It's actually kind of pretty. Also, take care to handle code deferred to after the if/if-else properly (ifpdistl, ifpdistg, ifcanseetartet). From-SVN: r3534 commit 944ee798857d5085855db1abd3748e1223edc953 Author: Philipp Kutin Date: Thu Feb 28 17:30:15 2013 +0000 Lunatic t.: {read,save}gamevar, fix break in nested while, fix rotatesprite16. From-SVN: r3533 commit 850a5a5b1219a7b605d9a588daafb82d37d0bc54 Author: Philipp Kutin Date: Thu Feb 28 17:30:11 2013 +0000 build.c: initialize g_doHardcodedMovement to 1. Fixing movement when not loading a.m32. From-SVN: r3532 commit 69ac8c7bf4710063fd2282bcc42e8d85294216a7 Author: Philipp Kutin Date: Thu Feb 28 17:30:08 2013 +0000 scriplib: attach const qualifiers to appropriate function input arguments. From-SVN: r3531 commit efd3418f020eb2adf4dae7159782b243ae14832c Author: Philipp Kutin Date: Thu Feb 28 17:30:04 2013 +0000 Lunatic: fixups and debugging helpers. - add LuaJIT's 'v' module printing trace info - translator: fix game function name definitions - revert math.fmod -> math.modf, they are different! - disable JIT compilation for a function we're getting strange crashes with - Make some of DukePlayer_t's members 'bool' on the Lua side. It's way too easy to write something like "ps.jetpack_on" where "ps.jetpack_on~=0" was meant. [Background: Kyle873 observed that Duke was always floating.] - Error out if looping in our_module(). I find this behavior more logical than returning true. - fix a couple of missed FORBID variables From-SVN: r3530 commit 19379a99bf41f4a7d8913235ed709715601fc2be Author: Philipp Kutin Date: Thu Feb 28 17:29:58 2013 +0000 Lunatic translator: fix codegen for "break" inside while loops. Note: usually, languages call this "continue". Jeez, CON... From-SVN: r3529 commit 25e047606059133e0026a0298f7bf17ee5945c08 Author: Philipp Kutin Date: Mon Feb 25 15:31:24 2013 +0000 Lunatic: initialize test Lua state earlier so that 'setdefname' has an effect. From-SVN: r3528 commit 0d73ba8c5ad4a5674dd349736e647cbab6f38720 Author: Philipp Kutin Date: Mon Feb 25 15:31:22 2013 +0000 Remove some duplicate or unused control layer defines. Notes: - MAXJOYBUTTONS is out of sync between the two definitions - In menus.c, NUMMOUSEFUNCTIONS must equal MAXMOUSEBUTTONS, fail to compile if this becomes false. From-SVN: r3527 commit 3f52b7f9c8429cb41238a2ee549efb93fd9a723c Author: Philipp Kutin Date: Mon Feb 25 15:31:19 2013 +0000 Lunatic translator: handle RETURN across events. From-SVN: r3526 commit 12799c0435dc950dbc3e402aa27296d969907e94 Author: Philipp Kutin Date: Mon Feb 25 15:31:16 2013 +0000 engine.c: in setpolymost2dview(), set gloy=-1 unconditionally. This fixes an update issue: start EDuke32 without warping to a map in Polymost, change to classic, and change to Polymost again. The OSD background will be displaced. From-SVN: r3525 commit 533a9561bec01f411885bb74c8662fba8b69afda Author: Philipp Kutin Date: Mon Feb 25 15:31:13 2013 +0000 Lunatic: sector[]:zrangeat(), 'getzrange' command for the translator. Also, fix quote commands there. From-SVN: r3524 commit 520515a0eac42e60821f9c0380218241efd14383 Author: Philipp Kutin Date: Mon Feb 25 15:31:09 2013 +0000 Lunatic translator: codegen fixes, setgamepalette, -fno=onlycheck option. From-SVN: r3523 commit a0c674c640474609012b2be96767a8cabd629059 Author: Philipp Kutin Date: Mon Feb 25 15:31:05 2013 +0000 CON parser: don't allow read-only gamevars to 'readgamevar' command. From-SVN: r3522 commit 715ae63e45792df7928db37ac41387b4e90a88f4 Author: Philipp Kutin Date: Sun Feb 24 16:05:52 2013 +0000 Lunatic Makefile.deps: make game.c depend on defs.ilua. Since the size of defs.ilua's bytecode is used in game.c. From-SVN: r3521 commit 2ea1fae7aaf10ca6e80b746580b0e88ce7caba5c Author: Philipp Kutin Date: Sun Feb 24 16:05:47 2013 +0000 Lunatic: export C functions that may call into CON events using the Lua C API. We must not call these functions using the FFI, since the Lua state is considered locked across such calls. From-SVN: r3520 commit ea7ecc75d851982ad7a5264e993f91d3664ef1f9 Author: Philipp Kutin Date: Sun Feb 24 16:05:42 2013 +0000 Lunatic: begin fixing up the code because it's now actually live! From-SVN: r3519 commit a5c62dd139f791ba0ac6e57b43bf8f10a87dad78 Author: Philipp Kutin Date: Sun Feb 24 16:05:37 2013 +0000 Lunatic translator: keep states, game{vars, arrays} in tables instead of locals. Since it's too easy to hit the 200 locals limit. From-SVN: r3518 commit f85edacf8b49e8b08a9f352bd089d436e26f81d7 Author: Philipp Kutin Date: Sun Feb 24 16:05:31 2013 +0000 Lunatic: compile defs.ilua as bytecode and load it from the executable. From-SVN: r3517 commit 495147cf99fa794ae9ae11be2a328dfa5d3f5a7c Author: Philipp Kutin Date: Sun Feb 24 16:05:22 2013 +0000 Lunatic translator: nearing a workable state... - some more outer commands - gamearray persistence - faster 'mod': use math.modf instead of math.fmod (the former is JIT-compiled) - checkavail* - THISACTOR special handling - Fix building in Windows (export A_ShootWithZvel instead of A_Shoot). From-SVN: r3516 commit d0975964d50f1f7e9af4188d9839dc04c74e733a Author: Philipp Kutin Date: Thu Feb 21 18:54:13 2013 +0000 Lunatic translator: eventloadactor. From-SVN: r3515 commit 69ba56bdd1b84d0e44c3ba92a5f364e259a86980 Author: Philipp Kutin Date: Thu Feb 21 18:54:07 2013 +0000 gameexec.c: factor out 2x used code into VM_KillIt. Also, for Lunatic, handle killit from events. From-SVN: r3514 commit 66446f823d741d0cee424222beb9c1e9f9d8c9fb Author: Philipp Kutin Date: Thu Feb 21 18:54:02 2013 +0000 Lunatic translator: switch statement. From-SVN: r3513 commit 03ca3a4f8b758e64a6a80736c94fef58d582e041 Author: Philipp Kutin Date: Thu Feb 21 18:53:57 2013 +0000 Lunatic translator: qgetsysstr. From-SVN: r3512 commit 77a82f10ddc308a2cdf97f24d2e5083610e99ef6 Author: Philipp Kutin Date: Thu Feb 21 18:53:49 2013 +0000 Lunatic translator: fix quote commands, taking care of corner cases. Add test. From-SVN: r3511 commit 97f3a3668369d4a30ca75b971dc3c8872ae19395 Author: Philipp Kutin Date: Thu Feb 21 18:53:42 2013 +0000 CON qstrcpy: don't call strcpy() with identical source and destination quotes. Thus making the identical source and destination quote number case into the expected no-op instead of being undefined behavior. From-SVN: r3510 commit 30d8a37a78050aba95c2bcca195766b38df8251d Author: Philipp Kutin Date: Tue Feb 19 20:35:14 2013 +0000 Mapster32: add "movement by one" debugging functionality via a.m32. If m32script gamevar "move_by_one" is nonzero, the some keys move the "player arrow" by increments of 1: - Without SHIFT: LEFT/RIGHT absolute x, DOWN/UP absolute y, A/Z absolute z. - With SHIFT: DOWN/UP (unbounded!) horiz, LEFT/RIGHT angle. This can be useful to debug renderer bugs that show a high sensitivity to the exact location ("are transient in space"). From-SVN: r3509 commit cc04bdd83e08fcc195a93434c98c1af7afd0f723 Author: Philipp Kutin Date: Mon Feb 18 16:08:02 2013 +0000 Disable playing RTS sounds until a crash can be resolved. See comments in the source for details. From-SVN: r3508 commit a93062fb8d94fbb3479af205cb2bafa7a9c4d1d5 Author: Philipp Kutin Date: Mon Feb 18 16:07:59 2013 +0000 Lunatic translator: qsprintf. From-SVN: r3507 commit b76def5da99a1c7cbb7c6fc60b2c521ec1e5c57c Author: Philipp Kutin Date: Mon Feb 18 16:07:56 2013 +0000 CON qsprintf: fix specifying more than one "%s" conversion. Also, slightly better, though still inadequate checking. From-SVN: r3506 commit ffe3b50f85646203392640c7334ec9435e94b709 Author: Philipp Kutin Date: Mon Feb 18 16:07:54 2013 +0000 CON: don't accept read-only vars for first arg of qstrlen. From-SVN: r3505 commit 65116e7451cb068bf6843c5df3ca5d756e94e204 Author: Philipp Kutin Date: Mon Feb 18 16:07:51 2013 +0000 Lunatic translator: a couple of quote commands, while*n. From-SVN: r3504 commit 06896acc8acfbb6731dae0fdff0ababab073329d Author: Philipp Kutin Date: Mon Feb 18 16:07:48 2013 +0000 Lunatic translator: gamearrays. From-SVN: r3503 commit b7cd42d212a069dcce16eed7e7cb879b6d88f606 Author: Philipp Kutin Date: Mon Feb 18 16:07:45 2013 +0000 Game -v and -l cmdline opts: cast the numbers to unsigned first for paranoia. From-SVN: r3502 commit c3db2b1eeecf8bad950628c04840556d59a87c20 Author: Philipp Kutin Date: Mon Feb 18 16:07:42 2013 +0000 Lunatic translator: text rendering and other niceties. From-SVN: r3501 commit 8e703aebff80252108b523c440f1ff1a48fac76f Author: Philipp Kutin Date: Mon Feb 18 16:07:38 2013 +0000 Fix derailing CON instruction pointer when gametextz is passed null quote. From-SVN: r3500 commit a069e70c7b5a4d2e0068233726eac825b3b1415b Author: Philipp Kutin Date: Mon Feb 18 16:07:36 2013 +0000 CON digitalnumber*: move orientation &= (ROTATESPRITE_MAX-1) to G_DrawTXDigiNumZ From-SVN: r3499 commit 4ccc7ea4c7b296ade2d974b156cf5fd142b4ee27 Author: Philipp Kutin Date: Mon Feb 18 16:07:32 2013 +0000 Lunatic translator: sprite list commands, findnear*, protect player[].ftq. From-SVN: r3498 commit 90c3c2d016298c35e3beaed884fea2e8a696e650 Author: Evan Ramos Date: Mon Feb 18 08:50:42 2013 +0000 Wii: Take advantage of libogc features: PNG screenshots (libpng/zlib), Ogg Vorbis audio (libtremor), and high-resolution profiling timers. FLAC and VPX remain out in the cold. From-SVN: r3497 commit 0c58772b4bb65c5cc56ef54b1ba2eb4aa65d3b6e Author: Evan Ramos Date: Mon Feb 18 08:50:08 2013 +0000 Wii: Fix most warnings. Three remain: two are labeled with FIXMEs; the third consists of signed/unsigned comparisons involving LSWAPIB() in kplib.c. From-SVN: r3496 commit 7f161e43bf99c2225a19b213f7bf2973e0de59d3 Author: Evan Ramos Date: Mon Feb 18 08:49:20 2013 +0000 Wii: Add Homebrew Channel metadata for Mapster32 and expand the build process to easily allow its addition. Unfortunately it closes on launch without any log and I don't have any means to debug it, so it remains disabled. (Who wants to map on a TV with 640x480 resolution anyway?) From-SVN: r3495 commit 2f555caa34739ec14111aa46addab6e5fdace370 Author: Evan Ramos Date: Mon Feb 18 08:48:18 2013 +0000 Wii: Fix build. From-SVN: r3494 commit 20f66082cb92866fa76dfcbefc4e322afcbf1f38 Author: Evan Ramos Date: Mon Feb 18 08:47:37 2013 +0000 Add a new psd of the logo that hue shifts the original orange color to what should be the correct blue color. Oddly, this gives a slightly different result to hue-shifting the final product in GIMP afterwards. This should be investigated further. From-SVN: r3493 commit 6d801455a7a9e0c9800e9edd87deccf6d0b49b34 Author: Philipp Kutin Date: Sat Feb 16 18:53:30 2013 +0000 Reduce volume number modulo MAXVOLUMES for -v command line option. From-SVN: r3492 commit 9a51a6380cf60b2955c97eee75a4fbcbbb30be60 Author: Philipp Kutin Date: Sat Feb 16 18:53:24 2013 +0000 Lunatic: more commands... From-SVN: r3491 commit b69dd07c114ca9e86e53824ff1c63c95d2c95635 Author: Philipp Kutin Date: Sat Feb 16 18:53:18 2013 +0000 gameexec.c: refactor 'starttrack' for proper bound checking. From-SVN: r3490 commit f2ae53470b94aaa5d7b477960f6d2cfe5e942de5 Author: Philipp Kutin Date: Sat Feb 16 18:53:15 2013 +0000 Lunatic: more commands, timing test for xmath's sine functions. From-SVN: r3489 commit bfb35da6d74770fc639872b37aaa7b25faa21749 Author: Philipp Kutin Date: Sat Feb 16 18:53:09 2013 +0000 Lunatic: xmath module + timing test for distance functions. From-SVN: r3488 commit c052fce346d6f3fd5b453d3ad902d9f8d1355516 Author: Philipp Kutin Date: Sat Feb 16 18:53:04 2013 +0000 Lunatic (translator): more commands, add some "length" methods to vec* types. From-SVN: r3487 commit 4daec5627d5db7b82c98db43ff145c8f2c5381b8 Author: Philipp Kutin Date: Sat Feb 16 18:53:00 2013 +0000 Refactor C code related to gettimedate and sect*interpolation CON commands. No functional changes. From-SVN: r3486 commit b4ee4950db052f736c5733cc5136828ffc3e3cfa Author: Philipp Kutin Date: Sat Feb 16 18:52:56 2013 +0000 Factor out setting baslayer timer from game into G_InitTimer(). From-SVN: r3485 commit 25c3c4f00bdc16986bba92d662a4b4f97511822b Author: Philipp Kutin Date: Thu Feb 14 16:02:16 2013 +0000 Fix build without Ken's ZIP library (WITHKPLIB not #define'd in compat.h). From-SVN: r3484 commit 2be423000a0ebba9e8c2c03e042f51355a1f352f Author: Philipp Kutin Date: Thu Feb 14 16:02:12 2013 +0000 Classic renderer: high-precision sprite drawing, preventing stray lines on top. Face- and wall-aligned sprites are drawn using the wall routines in BUILD. However, the per-x-screen-coordinate distance (swall[]) is calculated in a way that potentially incurs great precision loss (for example 5 bits for xdimen=1280, yxaspect=65536). This leads to the starting (top) vertical texture coordinate possibly wrapping to large values, leaving an unsightly "stray line" on top of the sprite from certain viewing angles/horiz values. The approach to fix it has two parts: first, the distance is calculated using float values, preventing the precision loss. Because this doesn't fully prevent the unwanted lines, the texture coords are clamped to the mininum and maximum (0 and UINT32_MAX respectively) when calculating them for sprites. Note that stray lines may still appear at the *bottom* of sprites under certain circumstances, for example when viewing at a y-flipped sprite from above. These should be less noticable in real-world usage though. The feature is guarded by a macro HIGH_PRECISION_SPRITE in case using floating point or 64-bit integers is undesirable/impossible on some platforms. From-SVN: r3483 commit 724986d50ccf9196c841327c7d4e3ec0b5387082 Author: Philipp Kutin Date: Thu Feb 14 16:02:06 2013 +0000 engine.c: factor out calculation of texture coords / addresses in wall drawing. From-SVN: r3482 commit f44b8cb6ae650928b486729e1e579f1b21edf102 Author: Philipp Kutin Date: Thu Feb 14 16:01:59 2013 +0000 engine.c: don't pass [udls]wal to maskwallscan(), use *wall globals instead. From-SVN: r3481 commit 5a4f338921cfcbf7c2a1f1714ed7ac12ce1a5b72 Author: Philipp Kutin Date: Mon Feb 11 17:16:58 2013 +0000 Lunatic translator: more of everything... From-SVN: r3480 commit 07dc216b23ec79b6709269fa265155b1b131fc74 Author: Philipp Kutin Date: Mon Feb 11 17:16:54 2013 +0000 CON myosx*: move masking orientation with user-bits-mask to G_DrawTileGeneric(). From-SVN: r3479 commit 72573adb1ea0e038e7005b75d925f4e957700952 Author: Philipp Kutin Date: Mon Feb 11 17:16:50 2013 +0000 Make g_earthquakeTime into a uint16_t, remove DukePlayer_t's name[] member. Bump BYTEVERSION. From-SVN: r3478 commit 32ae7844cf218b8152a6c2f1b865f78f746e0152 Author: Philipp Kutin Date: Sun Feb 10 16:24:44 2013 +0000 Lunatic: input access. From-SVN: r3477 commit 586ed9dbde9c653982b1e517c5d1b318d54721cb Author: Philipp Kutin Date: Sun Feb 10 16:24:38 2013 +0000 Factor out player[].* allocation into G_MaybeAllocPlayer(), rename 2 functions. From-SVN: r3476 commit 2ed79b4f7bd85e9093d16aefa03f37cc0c196494 Author: Philipp Kutin Date: Sun Feb 10 16:24:32 2013 +0000 Lunatic: sprite.change{sect,stat}, access to more members, member read test. From-SVN: r3475 commit 463b3c18103df6f19b57c3d178f5aa4e3fe3a0d2 Author: Philipp Kutin Date: Sun Feb 10 16:24:27 2013 +0000 engine.c: in changesprite{sect,stat}, swap second and third early-out tests. That is, first check if the sprite is in the game world and then if it already has the desired sector or status number. This doesn't change anything in our codebase, since the return values of these functions are never examined. From-SVN: r3474 commit 278fe820b1aab8d1b7a2738bbedabe34186dbf88 Author: Philipp Kutin Date: Sun Feb 10 16:24:20 2013 +0000 Lunatic translator: userdef access. From-SVN: r3473 commit 689e630e878c399d6ccd0623d078b81d70d5edc6 Author: Philipp Kutin Date: Sun Feb 10 16:24:15 2013 +0000 Engine cleanup continued, no functional changes. From-SVN: r3472 commit 5041d668ece6ec913873aefb26270d16eb5b684a Author: Philipp Kutin Date: Sun Feb 10 16:24:11 2013 +0000 engine/Polymer: factor out setting {cos,sin}*globalang into set_globalang(). From-SVN: r3471 commit 84e17ee049d76fe9254b47ac63fa3d09ad3d3c84 Author: Philipp Kutin Date: Sun Feb 10 16:24:04 2013 +0000 engine.c: clean up drawsprite() The usual: declare locals more tightly, const-qualify them where it helps readability, remove dead code... From-SVN: r3470 commit a94fed5ea2cf99972f41a6c914f806dc871b55ed Author: Philipp Kutin Date: Sun Feb 10 16:23:59 2013 +0000 Lunatic: [gs]et{player,actor}var, access to protected projectile members. From-SVN: r3469 commit d76943fe611c3f03a94c3d594517865173e16430 Author: Philipp Kutin Date: Sun Feb 10 16:23:54 2013 +0000 Lunatic: working tsprite methods, static members, struct array timing test. From-SVN: r3468 commit cd955163bdb8228c588be6a502627cd7fcb45228 Author: Philipp Kutin Date: Thu Feb 7 21:01:24 2013 +0000 Fix POLYMER=0 build, cleaning up #include discipline on the way. Also taking care that the USE_OPENGL=0 build builds. From-SVN: r3467 commit 855c8b23fec9d5f3ba9ef6e9c9a2b7bc5738729e Author: Philipp Kutin Date: Thu Feb 7 21:01:18 2013 +0000 Lunatic (translator): thisprojectile, *shoot. From-SVN: r3466 commit d240b07cb3e18a415bff3f31e1ffe1e53769daa8 Author: Philipp Kutin Date: Thu Feb 7 21:01:12 2013 +0000 Rework how the z velocity is passed from *zshoot to A_Shoot(). Previously, actor[].shootzvel (implementation detail, not available to CON) was checked, and if it was !=0, that was the overridden velocity. The value 0 meant "hardcoded, projectile-dependent velocity". But that neccesiated a hack where if zvel 0 was passed and really meant, it needed to be set to 1 instead. Now we have A_ShootWithZvel() taking an additional last argument plus a macro SHOOT_HARDCODED_ZVEL permissible for that argument. From-SVN: r3465 commit 5b2f729819750d42e521adc98d996fdb024327c0 Author: Philipp Kutin Date: Thu Feb 7 21:01:06 2013 +0000 player.c: factor out more identical code into Proj_DoHitscan(). Also, simplify a couple of other lines. From-SVN: r3464 commit f7656d67bff8bb9dcea5426e00b801ed543c9c23 Author: Philipp Kutin Date: Thu Feb 7 21:01:03 2013 +0000 Lunatic: projectiles... From-SVN: r3463 commit 6cf2f2692cfad75e89627e29b317c9e8468202cd Author: Philipp Kutin Date: Thu Feb 7 21:00:58 2013 +0000 player.c: factor out a repeated 3-liner into safeldist(), remove some commented code. From-SVN: r3462 commit 95608a8381bcdd7a27787c0a859ed042b7a37f50 Author: Philipp Kutin Date: Thu Feb 7 21:00:55 2013 +0000 actors.c: factor out 6x identical code into Proj_BounceOffWall(). From-SVN: r3461 commit 61473bb6292f8d880fbeef3dc1369ef2f89413c5 Author: Philipp Kutin Date: Thu Feb 7 21:00:52 2013 +0000 gameexec: for VM_Fall and VM_ResetPlayer, pass VM sprite/player etc. as args. Simplifying VM_FallSprite and VM_ResetPlayer2 used from Lunatic. From-SVN: r3460 commit e041a2f1f7122c86aa9ac3890ffbf5ce6e64fe40 Author: Philipp Kutin Date: Thu Feb 7 21:00:48 2013 +0000 Move around some #ifdef LUNATIC to compile out more code, minor cleanup. From-SVN: r3459 commit 5ad690912c380cce14c9966f8dd22c4bab0564b7 Author: Philipp Kutin Date: Sun Feb 3 12:48:25 2013 +0000 Lose the packed attribute on / rearrange some game struct types. actors.h: remove 'packed' from projectile_t, tiledata_t. In tiledata_t, make .cacherange member an int32_t so that the following member "projectile_t defproj" is aligned on a 4-byte boundary. player.h: remove 'packed' from playerspawn_t, DukeStatus_t, input_t. In Lunatic, correct packing attribute of the base type of the unrestricted actor_t and DukePlayer_t pointer types (the declaration was used without Bump BYTEVERSION. From-SVN: r3458 commit 2c07b0112ffbee9bd22b93e259fca269d4063d1b Author: Philipp Kutin Date: Sun Feb 3 12:48:20 2013 +0000 player.c: remove a couple of unnecessary casts. From-SVN: r3457 commit 8115457069639a87795dae2cec18fc70812174e5 Author: Philipp Kutin Date: Sun Feb 3 12:48:17 2013 +0000 Lunatic: conditionally compile out more legacy code, remove old mixed mode code. From-SVN: r3456 commit 3c0a5baf59c833fc305465d28b82f1766a982f7c Author: Philipp Kutin Date: Sun Feb 3 12:48:11 2013 +0000 Lose the 'packed' attribute for types declared in build.h. Most of them are already aligned to their natural boundaries, so lowering the alignment to 1 byte can only worsen things by making the C compiler generate poorer (unaligned access) code for some platforms. The layout of structures is not specified by the C Standard, but is rather given by a particular platform + toolchain's ABI (application binary interface). Most ABIs follow the expected pattern "alignment of scalars is their size, alignment of arrays is that of its element type, alignment of structs is the maximum alignment of its members". A couple of links to particular ABIs are given in build.h. Problems are expected with archs that care about unaligned access when a pointer to a non-packed struct is taken that resides in a packed aggregate, but these uses should be weeded out (I'm not sure if there are any in our codebase). The following types are affected, only hitdata_t changes its size: sectortype, walltype, spritetype, spriteext_t, spritesmooth_t, struct validmode_t, picanm_t, palette_t, vec2_t, vec3_t, hitdata_t. From-SVN: r3455 commit 1496c8054840eeb02039c9a325a19352443bed6d Author: Philipp Kutin Date: Sun Feb 3 12:48:06 2013 +0000 Lunatic translator: codegen for actor-tsprite accesses, sync some RO members. From-SVN: r3454 commit 2bb2103e1efec6aa45c4b6980f862cd039767c69 Author: Philipp Kutin Date: Fri Feb 1 19:56:26 2013 +0000 Fix all hitscan weapons (not only pistol) wrongly fire without spread at enemies. Introduced in r3358, where I missed a condition inside an 'if'. From-SVN: r3453 commit 7e00ae2210610f6614114962a97b04171d5fb8e4 Author: Philipp Kutin Date: Fri Feb 1 13:05:20 2013 +0000 Lunatic: provide access to actor-tsprite. From-SVN: r3452 commit 696644f895944922f761dd2384dd585d0ebbe032 Author: Philipp Kutin Date: Fri Feb 1 13:05:15 2013 +0000 game.c: In G_DoSpriteAnimations, put t, i and s locals into their blocks. And const them appropriately. Also remove #if 0'ed code related to an MSVC pragma. From-SVN: r3451 commit e3df512f109fe63c53524ce3b22728a693c5b5c1 Author: Philipp Kutin Date: Fri Feb 1 13:05:13 2013 +0000 NULL spriteext[].tpsr after each running EVENT_ANIMATESPRITES for a tsprite. Meaning that only *ettsprite[THISACTOR] makes sense from CON. It did before too, because .tspr was set before each event run (and not before all runs), only that it was never nulled, which was kind of untidy. From-SVN: r3450 commit 4d9e00780da0a3bf9b2236f82cab4bd8ef903301 Author: Philipp Kutin Date: Fri Feb 1 13:05:10 2013 +0000 m32script: remove unused tsprite access via spriteext[].tspr. From-SVN: r3449 commit f0db29da76aad16ef87028f04e301dd1893b4303 Author: Philipp Kutin Date: Fri Feb 1 13:05:08 2013 +0000 Don't set spriteext[].tspr when creating tsprites from the engine. Its only use is to have a actor -> tsprite mapping for the EVENT_ANIMATESPRITE event and .tspr will be set before it is run. From-SVN: r3448 commit 0b6a6baed90273b549e7479a4f5438e96e8a86b6 Author: Philipp Kutin Date: Fri Feb 1 13:05:05 2013 +0000 Mapster32: RESPAWN-preview coded in M32-script. The m32script variable 'showrespawn_always' toggles whether the respawned picnum is shown unconditionally instead of only when aimed at (and locked onto the RESPAWN sprite) in 3D mode. Cool idea by Micky C. NOTE: sometimes doesn't work because of a bug in the m32script interpreter. From-SVN: r3447 commit 40b5ce83dc92d07697410dd1251e29d1872039f5 Author: Philipp Kutin Date: Fri Feb 1 13:05:00 2013 +0000 Lunatic (translator): provide checked write access to a couple more members. From-SVN: r3446 commit 841753c3971571c4d74a21dade3b07b12f2d2c3c Author: Philipp Kutin Date: Fri Feb 1 13:04:56 2013 +0000 Lunatic: Centralize all bound-checking in bcheck.lua. From-SVN: r3445 commit 252fe3a30cf008b6e55c1eb522a28d447cce2f5c Author: Philipp Kutin Date: Fri Feb 1 13:04:52 2013 +0000 Lunatic translator: codegen for some "method-like" member write accesses. From-SVN: r3444 commit 3c216af8fead9abfb59eb1a32006c5b331ef94d5 Author: Richard Gobeille Date: Mon Jan 28 22:00:37 2013 +0000 Additional networking patch from Jasper Foreman, sadly sitting untested for almost a month because everyone here has been too sick to do anything with it. :( From-SVN: r3443 commit cb475d56396f42b7975c2c0834e387203721e303 Author: Richard Gobeille Date: Sun Jan 27 21:37:21 2013 +0000 Fix MinGW/GCC build. Oops! From-SVN: r3442 commit 4d31936470014fe53f61eeb60eaa657f9fc91986 Author: Richard Gobeille Date: Sun Jan 27 17:06:53 2013 +0000 Use nearbyintf() to when calculating g_frameDelay (when r_maxfps is changed) to get closer to the target framerate by bypassing float -> int truncation From-SVN: r3441 commit 02b07fa27d49fd178f96c1990ae010686536b480 Author: Richard Gobeille Date: Sun Jan 27 17:06:41 2013 +0000 Fix knuckle cracking animation broken in r3436 From-SVN: r3440 commit 9c92789f44f03ec699cc7a6f9b103684b8a2cf7d Author: Philipp Kutin Date: Sat Jan 26 17:08:02 2013 +0000 Lunatic translator: a couple of set-struct commands, "-I" option for default dir. From-SVN: r3439 commit 17cc0049a4e704d3f8c36f1c2d72ec8a3741f4a7 Author: Philipp Kutin Date: Sat Jan 26 17:07:58 2013 +0000 Don't apply GL fogging to wall lines drawn in game's "light" overhead view. From-SVN: r3438 commit 008363c44351eb79a36ebcbae7aa26d46459b987 Author: Philipp Kutin Date: Sat Jan 26 17:07:53 2013 +0000 Lunatic: prefer to use ctype objects instead of C type strings. Pass types via ffi.typeof() instead of declaring them in the global namespace when possible. From-SVN: r3437 commit 2d7929da30c16ee5f13a3076322a8aeaf65727d7 Author: Philipp Kutin Date: Sat Jan 26 17:07:48 2013 +0000 player.c: return early from various P_Display*() if player's *incs are oob. From-SVN: r3436 commit 64e0d3d3522ef81da387564f61cc8f19dd1de755 Author: Philipp Kutin Date: Sat Jan 26 17:07:44 2013 +0000 Lunatic: use bcarray types to guard accesses to arrays inside structs. From-SVN: r3435 commit ff3d5f9b58383bfce8e083d447b36d7bb9d89790 Author: Philipp Kutin Date: Sat Jan 26 17:07:40 2013 +0000 Add bcarray.lua, implementing a factory for bound-checked array types. From-SVN: r3434 commit 42dcd3d2a26b01e99ca4da6f26f8f2180b0a9a3c Author: Philipp Kutin Date: Thu Jan 24 20:03:10 2013 +0000 Lunatic translator: struct read access. From-SVN: r3433 commit 92a646c278c6e190c496437b2f96de5a062cb3f9 Author: Philipp Kutin Date: Thu Jan 24 20:03:06 2013 +0000 Lunatic translator: prototypical array/struct access, for reference only. From-SVN: r3432 commit 53c629a7e222ce4be34d16efc28f4246d7845701 Author: Philipp Kutin Date: Thu Jan 24 20:03:02 2013 +0000 Lunatic: a little bit of everything. From-SVN: r3431 commit a05e0a6bbb46287042e78e75f8e12eb6f2d434be Author: Philipp Kutin Date: Thu Jan 24 20:02:57 2013 +0000 Lunatic: sync with preceding change, complete two commands. From-SVN: r3430 commit e7df32e286ee36aab51dad1f476e7b2dd370cba0 Author: Philipp Kutin Date: Thu Jan 24 20:02:52 2013 +0000 CON parser: don't accept read-only gamevars for 1st arg of *sprite{sect,stat}. From-SVN: r3429 commit 6fb0caed3baf0dfbea5eacafd77451308574abfe Author: Philipp Kutin Date: Wed Jan 23 19:36:52 2013 +0000 game.c: replace one missed instance of inline code with calc_smoothratio(). From-SVN: r3428 commit 3655720c1e2827283dbe582045fdeb848e6ab17f Author: Philipp Kutin Date: Wed Jan 23 19:36:48 2013 +0000 Lunatic: sync with preceding change, fix r3419. From-SVN: r3427 commit d90afc089041e12e5f0f31677f2ccc12192d6249 Author: Philipp Kutin Date: Wed Jan 23 19:36:44 2013 +0000 Rework hardcoded BADGUY sprite flag initialization (i.e. amend r3257). Use a new flag to mark hard-coded enemies, not SPRITE_BADGUY. This fixes an issue where in E1L4, a pigcop would appear in the area you have to crawl under shrunk. Thanks to LLCoolDave1 for pinpointing the range of relevant revisions. From-SVN: r3426 commit 3280680541305dda954bf6f782f7b70a1a6893f5 Author: Philipp Kutin Date: Wed Jan 23 19:36:40 2013 +0000 Fix USE_OPENGL=0 build. From-SVN: r3425 commit 7296f19313a92fc62e7c0f4e02436a7e385ad6c7 Author: Philipp Kutin Date: Wed Jan 23 19:36:36 2013 +0000 Mapster32: fix cycling to the next link sprite with LShift+"]", tweak message. From-SVN: r3424 commit 43ce77014cf0f80f139371937c0269ec1a61d6ca Author: Philipp Kutin Date: Mon Jan 21 21:18:10 2013 +0000 Makefiles: fix wrongly stripping debug binaries... ... when 'make' is invoked like "make ... STRIP=some_strip". From-SVN: r3423 commit 6ad8d86290bd2a7b104eee19e419b73c6e71fbda Author: Philipp Kutin Date: Sun Jan 20 21:17:36 2013 +0000 Makefiles: simplify how to determine whether the final binary is stripped. Whenever it should be not, STRIP is set to the empty string. This fixes the Lunatic RELEASE=1 build. From-SVN: r3422 commit 2f26dc7580ba006f65661d887b5d6902d3e8f879 Author: Philipp Kutin Date: Sun Jan 20 21:17:31 2013 +0000 Reimplement pixel doubling by drawing scene at 1/(2*2) resolution and expanding. The pixel doubling now only applies to the area where the world scene is drawn, i.e. it may be smaller than the physical screen / WM window size. The optimized version is slightly faster than for non-doubled pixels for me (optimized build), but see code for caveats. Some other minor issues: - won't work when the world is drawn from demo cameras (and offscreen, but that matters less) - will leave a few pixels empty when running with x resolutions not evenly divisible by 4 From-SVN: r3421 commit 1236354c53443d559260b454c3e6cb5f38c4bebc Author: Philipp Kutin Date: Sun Jan 20 21:17:28 2013 +0000 game.c: pull out two G_DrawRooms blocks into G_OROR_DupSprite and G_ReadGLFrame. ... to have a little moew overview. From-SVN: r3420 commit ca93bd1595f7347e2971aa7c6a458323c4b66ea8 Author: Philipp Kutin Date: Sun Jan 20 21:17:23 2013 +0000 Lunatic translator: handle overriding system GVs. From-SVN: r3419 commit 154dc89e942016918f1ed6d6b6682d3af45ab331 Author: Philipp Kutin Date: Sun Jan 20 21:17:19 2013 +0000 player.c: make four functions file-local. From-SVN: r3418 commit 7efb42d3b0b6a776b63b25fea60ad3317d502d31 Author: Philipp Kutin Date: Sun Jan 20 21:17:15 2013 +0000 CON/m32script: remove GAMEVAR_DEFAULT uses, since they had no effect. In CON, the bit is still always cleared for user-defined gamevars. From-SVN: r3417 commit 1a1dff4e6ee6990be8f87807fa29bf89e1f4959c Author: Philipp Kutin Date: Sun Jan 20 21:17:10 2013 +0000 gamevars.c: implement Gv_Clear() in terms of Gv_Free() + own code. Also, some commenting. From-SVN: r3416 commit a63f8e318f0c9958e5d348c6ba5fc89d31303c96 Author: Philipp Kutin Date: Sun Jan 20 21:17:06 2013 +0000 Lunatic: cmdline switch to run test script, compile out more code, 2 more GVs. From-SVN: r3415 commit 7ac179b5fbf9182e3843628de14339473784d1e5 Author: Philipp Kutin Date: Sun Jan 20 21:16:58 2013 +0000 Lunatic: hook up PIPEBOMB_CONTROL etc. with the player members. From-SVN: r3414 commit a5f2b7b44dcd4dbdf38665cdca30e8e9f1474c67 Author: Philipp Kutin Date: Sun Jan 20 21:16:54 2013 +0000 player.c: factor out repeated code into P_SetWeaponGamevars(). From-SVN: r3413 commit 96eae8ee4ca3275c618077f66567425f4621aba3 Author: Philipp Kutin Date: Sun Jan 20 21:16:50 2013 +0000 demo.c: correct strange indentation. From-SVN: r3412 commit 624323e294c46fd7b8e3962b63319812f79e3481 Author: Richard Gobeille Date: Sun Jan 20 01:00:00 2013 +0000 MSVC doesn't have ssize_t From-SVN: r3411 commit 25384452aeeaf45d03bf09ff1ebc55f0e62073f8 Author: Philipp Kutin Date: Sat Jan 19 18:29:00 2013 +0000 Remove mixed Lunatic/legacy build option. From-SVN: r3410 commit dc06bd60140326eef97e8103a369d9640c9f58fd Author: Philipp Kutin Date: Sat Jan 19 18:28:55 2013 +0000 Lunatic translator: more of the same. - more predefined vars - fix recursive states and ones with a stray "else" before the end From-SVN: r3409 commit 07eeb8ad935904e276ffe6f96851e83a0b01f731 Author: Philipp Kutin Date: Sat Jan 19 18:28:48 2013 +0000 Consolidate badly named HUD weapon globals ("g_looking_angSR1") into struct. From-SVN: r3408 commit a9acbce08c7491cc8384165aef221860633c0020 Author: Philipp Kutin Date: Sat Jan 19 18:28:43 2013 +0000 Lunatic: more convenient weapon data access. From-SVN: r3407 commit dfd76b078fc6ca3868c1f89ba7b537ee38de7d17 Author: Philipp Kutin Date: Sat Jan 19 18:28:40 2013 +0000 Lunatic: various. - Fix "gv" access. - camera - translator: comparison predicates, predefs... From-SVN: r3406 commit 681bcdc0044782949ac8e95087c22ec3121c6ec7 Author: Philipp Kutin Date: Sat Jan 19 18:28:32 2013 +0000 Wrap some ud.camera* and g_camera{Distance,Clock} into CAMERA* macros. In Lunatic, make it a struct type "camera_t" instead. From-SVN: r3405 commit 97e7ae8ee5287d56832376635575095bf6b0c628 Author: Philipp Kutin Date: Thu Jan 17 21:59:20 2013 +0000 engine: in texel-hitscan wall-aligned sprites, consider engine-side animation. Whether a sprite is considered for texel-hitscan is determined on the base tile number, not the individual animated tile numbers. From-SVN: r3404 commit 6e5907a97202a953b7c204388c048befe634fda8 Author: Philipp Kutin Date: Thu Jan 17 21:59:17 2013 +0000 Make r_shadescale 1.0 by default. From-SVN: r3403 commit ae0693605c836092ced53d584d7acf5bf23eae93 Author: Philipp Kutin Date: Thu Jan 17 21:59:11 2013 +0000 Simplify HUD scale and viewport size logic and clean up related code. * Make the "classic status bar fullscreen viewport" mode accessible in classic too. * Make range of status bar scale 36..100 * Update ud.statusbarmode when executing OSD command r_size (ud.screen_size). NOTE: ud.statusbarmode is considered internal. Don't use from CON! * Make sure 1) loading any configuration and 2) menu bars work correctly. (The "classic status bar fullscreen viewport" mode will never be restored though because ud.statusbarmode isn't handled by the OSD var system). From-SVN: r3402 commit a359869d00a869079d37edee115e9b0fb1231caa Author: Philipp Kutin Date: Thu Jan 17 21:59:05 2013 +0000 polymost.c: factor out 2x dup'd code into get_projhack_ratio(). One use was in determining the ray vector for the mouse-aiming hitscan in the editor. Unfortunately, the change doesn't make it any less broken in Polymost, even if the two instances were out of sync. From-SVN: r3401 commit 4ec407fd2153e55fdda6b76bb64f74a94dec89f0 Author: Philipp Kutin Date: Thu Jan 17 21:59:01 2013 +0000 Various cleanup of status bar drawing code, remove some old commented out code. From-SVN: r3400 commit 56f636204823496a53fad7038dc3f49c3265c054 Author: Philipp Kutin Date: Thu Jan 17 21:58:54 2013 +0000 game.c: replace a couple of sbarsc() inline code with calls to sbarsc(). From-SVN: r3399 commit 0d628aebb757d921efe1817cb387c14b5f7e2db1 Author: Philipp Kutin Date: Wed Jan 16 20:38:56 2013 +0000 Mapster32: add cvar/mapster32.cfg option "keeptexturestretch". If enabled, dragging wall vertices will correct the xrepeat after the mouse button is released, so that the pre-drag absolute stretching is restored. From-SVN: r3398 commit 14901d0f05c8ed66281952ab0ec5f6b0dffdfc19 Author: Philipp Kutin Date: Wed Jan 16 20:38:52 2013 +0000 Mapster32: slightly rework code for setting/querying some cvars. From-SVN: r3397 commit 5446383d43e30822ab417b548fb4292bd2c41a1d Author: Philipp Kutin Date: Wed Jan 16 20:38:50 2013 +0000 Mapster32: more or less fix the auto wall-alignment feature ([.]/[,]). - Run it twice, since the first one is wrong. - Warn when attempting to align based on a top-oriented wall. When the sequence of walls to align has "windows", only the bottom parts will be correct. - Make the modifiers actually useful: * Pressing SHIFT aligns at most one wall, remove the old CTRL modifier. * The rest is as before: ALT makes the walls have (approximately) equal texture stretching, ['] (quote) aligns the immediate TROR-nextwalls. From-SVN: r3396 commit 9b6f5892c603cd356afc4551fd345c04293bb687 Author: Philipp Kutin Date: Wed Jan 16 20:38:46 2013 +0000 Mapster32: don't show wall length of *line* highlight when dragging points. Also, factor out 2x dup'd code of insertsprite() into do_insertsprite() and add searchwall-displaying code into package/samples/a.m32. From-SVN: r3395 commit 68f7cfe20448297cddf2f5beeae7582c2cd56882 Author: Philipp Kutin Date: Wed Jan 16 20:38:41 2013 +0000 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. From-SVN: r3394 commit 2477e439d6ad6b42ae40b3debe66d065ad576d0a Author: Philipp Kutin Date: Sun Jan 13 16:40:36 2013 +0000 Fix MUSICANDSFX ambient sounds (bit 2) playing only one instance. This is done by introducing an additional internal bit, meaning "play only one instance". It is set for all sounds which have bit 1 ("repeat in the sound system") set at definesound time, but not those that set bit 1 temporarily (see r3336). From-SVN: r3393 commit c5e7c1ea5bcbcdf08ef1073013a5795b209ae81f Author: Philipp Kutin Date: Sun Jan 13 16:40:32 2013 +0000 Lunatic: codegen beyond milestone 1. - weapon data - changing ones... (locals for now) - operators From-SVN: r3392 commit 8cf923ac7a2d2af6f151542045a8364e1c203848 Author: Philipp Kutin Date: Sun Jan 13 16:40:26 2013 +0000 Lunatic translator: slight code reorganization to prevent too many local vars. From-SVN: r3391 commit d57fc5cbbaf12e87036cba7caf7b79a284a593bc Author: Philipp Kutin Date: Sun Jan 13 16:40:21 2013 +0000 Lunatic: begin changing ones... From-SVN: r3390 commit 7226491aad912a2f7944c400698994f5ed9e8b93 Author: Philipp Kutin Date: Sun Jan 13 16:40:14 2013 +0000 Mapster32: don't apply GL fogging to crosshair. From-SVN: r3389 commit ea5cc93abb0f220bcd2c5cb99654b4758585fdfd Author: Philipp Kutin Date: Sun Jan 13 16:40:07 2013 +0000 Lunatic translator: handle -mx. From-SVN: r3388 commit 185e5ad2175834b2d8752d2268cda8d25412730e Author: Philipp Kutin Date: Tue Jan 8 23:12:59 2013 +0000 Make r_downsize 0 by default. Also, rewrite comparison to the non-tint in astub.c to be even less hackish. From-SVN: r3387 commit fd34a6fd72863533bb0151ee0318f5a790688481 Author: Philipp Kutin Date: Tue Jan 8 23:12:56 2013 +0000 polymost.c: a couple of {tex,mem}cache cleanups / fixes. - Stop using memcache on some other failure paths, particularly when failing to read from the on-disk texcache. - Factor out cache reading code (3x). - Fix endianness issues affecting big-enadian systems (one introduced by r3382, one existing before). Comment each B_LITTLE32 with whether we're converting from native to on-disk (little) endianness or back. From-SVN: r3386 commit efe3cafdf0191f7e2a669826e37fecdba8bb2564 Author: Philipp Kutin Date: Tue Jan 8 23:12:53 2013 +0000 On Windows, remove "SHGetFileInfo failed with error code ..." note. From-SVN: r3385 commit 1219a924acbd98066af3544985ca513b97cc878a Author: Philipp Kutin Date: Tue Jan 8 23:12:51 2013 +0000 polymost.c: some meaning-preserving cleanups, make some vars file-local. From-SVN: r3384 commit ed3ffb4d93cf496ef212473d1eb693ce04dfe517 Author: Philipp Kutin Date: Tue Jan 8 23:12:45 2013 +0000 polymost.c: factor out 2 x 3x dup'd I/O code for DXT filter functions. From-SVN: r3383 commit 14746c3df750f30c3f88980c07505132c7c80e57 Author: Evan Ramos Date: Tue Jan 8 06:17:10 2013 +0000 Fix warnings that appear if big-endian || USE_OPENGL=0. From-SVN: r3382 commit 1287173168ed9893bb9d07eb30d0299812a4dbdc Author: Philipp Kutin Date: Sun Jan 6 18:56:50 2013 +0000 Re-enable spotlights on ATI cards again because the crash from 12.8 seems gone. From-SVN: r3381 commit 5707ecb7288679d800b35de265d958819f53d876 Author: Philipp Kutin Date: Sun Jan 6 18:56:45 2013 +0000 Lunatic: a couple of small changes. From-SVN: r3380 commit af98f474dfde839909eb7501cddaafecf87cd6c6 Author: Philipp Kutin Date: Sun Jan 6 18:56:38 2013 +0000 Fix NETCODE=0 build. From-SVN: r3379 commit b59e8333dcdf4e9b7751ec8cd29d85ee9a677466 Author: Philipp Kutin Date: Sun Jan 6 18:56:34 2013 +0000 Reimplement pixel doubling by taking the upper left pixel of each 2x2 block. This obviously won't help performance as the scene has still to be drawn at the original resolution, but it's better than the draw-to-tile hack. From-SVN: r3378 commit 5a69faf12d38b774203fc9b2dacb75835771ba85 Author: Philipp Kutin Date: Sun Jan 6 18:56:29 2013 +0000 Factor "pipe standard outputs to files" code into baselayer.c. The SDL and Windows layers had slightly different code: the latter would dereference a NULL pointer if stdout.txt failed being write-opened. From-SVN: r3377 commit df62e778035fcf219c58507da07e94ecd6869033 Author: Philipp Kutin Date: Sat Jan 5 13:09:34 2013 +0000 Mapster32: allow creating circle walls from TROR-constrained walls. When reaching wall limits, it is possible that only some circle points will be inserted and the result is left unfinished. From-SVN: r3376 commit 6f97e8a500009aa22c26d0b37368bf1704b432ab Author: Philipp Kutin Date: Sat Jan 5 13:09:31 2013 +0000 Lunatic: grabbag of different things. - fix error handing with recursing events - wallsofsect iterator, sector[]:contains() - more codegen; mangle function names - m32: compinside From-SVN: r3375 commit 73f4b3fc33062306b3e068f28ef6eb51b36c6c7d Author: Philipp Kutin Date: Sat Jan 5 13:09:25 2013 +0000 Lunatic translator: dangling else, hopefully for the last time! From-SVN: r3374 commit 2446c6a132e2959d880106798f657205c2f1664d Author: Philipp Kutin Date: Sat Jan 5 13:09:19 2013 +0000 Lunatic: more commands, mostly of the define* variety. From-SVN: r3373 commit 15cbc6360fe5a18b7b6485d38f7fe06c81eaac7e Author: Evan Ramos Date: Fri Jan 4 23:42:43 2013 +0000 Add r_togglecomposition cvar on Windows for Roma Loom. r_togglecomposition: enable/disable toggle of desktop composition when initializing screen modes default value: 1 From-SVN: r3371 commit 158cc181e75a1c9b65ff0b380316f43a0e67f4b6 Author: Evan Ramos Date: Fri Jan 4 17:29:03 2013 +0000 Address some macro madness in jaudiolib. (Should fix PowerPC builds.) From-SVN: r3370 commit ff35edd76bfd4ef570c4a763903242691a0b2e78 Author: Evan Ramos Date: Fri Jan 4 17:28:34 2013 +0000 Fix a "typedef redefined" warning with clang in dsound.h From-SVN: r3369 commit 4d36fe6b5619ff4fec9e54f429dfe595cd7634a7 Author: Evan Ramos Date: Fri Jan 4 17:28:13 2013 +0000 Bring the SDL.h include in SDLMain.m up to speed with driver_sdl.c in jaudiolib and sdl_inc.h in the engine. Also address some Apple macro problems. From-SVN: r3368 commit e058243b4306b19aa9f5021f4b5c737fd3dfbd39 Author: Evan Ramos Date: Fri Jan 4 17:27:43 2013 +0000 Amend r3328 so that NAM gets WEAPON_RELOAD_TIMING. From-SVN: r3367 commit 4239d95858868d1f333b36826957d0a5993e4e4f Author: Philipp Kutin Date: Wed Jan 2 22:33:37 2013 +0000 Lunatic: getting closer to the first milestone. On the C side, zrange, angrange and autoaimang are represented as DukePlayer_t members then. From-SVN: r3366 commit 531033be15a5cb73db9493b09f92b6784f2f84fd Author: Philipp Kutin Date: Wed Jan 2 22:33:32 2013 +0000 gameexec.c: factor code for "ifnosounds" into sounds.c: A_CheckAnySoundPlaying. From-SVN: r3365 commit 8836a4d362d667a340e86227022748230508ecad Author: Philipp Kutin Date: Wed Jan 2 22:33:27 2013 +0000 engine: fix a possible crash with texel-hitscan. Reproduced as follows (assuming all tiles have texel-hitscan for simplicity): In E2L5, shoot the opening switch with the shotgun, aiming for the border. The crash occurs because the *other*, depressed switch tile isn't yet loaded when we index into its tile storage. Dereferencing 0+small number == BAD! From-SVN: r3364 commit dff97863071efc62fec9184426e1cfaec3279726 Author: Philipp Kutin Date: Wed Jan 2 22:33:22 2013 +0000 Move DukePlayer_t's .palette down so that 2-byte-sized members are 2-byte-aligned. Bump BYTEVERSION. From-SVN: r3363 commit 30c2771d79af9fbf3c2aac724d8aa5568ef5f554 Author: Philipp Kutin Date: Tue Jan 1 15:24:42 2013 +0000 player.c: factoring continued. New local functions: Proj_DoRandDecalSize, SectorContainsSE13, HandleHitWall, Proj_CheckBlood, Proj_HandleKnee. From-SVN: r3362 commit 9f4977c97e90acdd24e547d871ee3e4818e84be4 Author: Philipp Kutin Date: Tue Jan 1 15:24:39 2013 +0000 player.c: cleanup. "ProjectileData[atwith]." --> "proj->", ... The diff may look daunting, but it's clear what is changed with git diff (...) --color-words='[a-zA-Z0-9_]+|[^[:space:]]' -b From-SVN: r3361 commit 10a47e3e861cc421150635d9f9a2554056440c38 Author: Philipp Kutin Date: Tue Jan 1 15:24:36 2013 +0000 player.c: finish hitscan projectile handling cleanup. Factoring out 2x almost duplicated code into {P,A}_PostFireHitscan(). From-SVN: r3360 commit 50a844b80bc7f2a85cc159477f49e9b454f59b9b Author: Philipp Kutin Date: Tue Jan 1 15:24:33 2013 +0000 player.c: hitscan projectile handling cleanup continued. From-SVN: r3359 commit 7737c09cc7058f8127da8b0bbbace6a4ef03701c Author: Philipp Kutin Date: Tue Jan 1 15:24:31 2013 +0000 player.c: factor out 2x almost dup'd code preparing hitscan weapon firing. The code is duplicated with small changes for the hardcoded and custom projectiles. Adding local functions P_PreFireHitscan(), A_PreFireHitscan() and Proj_MaybeAddSpread(). From-SVN: r3358 commit a631a9a277dbde08e5841b86683f5b2dffc9c8ea Author: Philipp Kutin Date: Tue Jan 1 15:24:28 2013 +0000 Lunatic: more code... From-SVN: r3357 commit 1ffb456a75768e4333bd87c5c5802408268bf6fa Author: Philipp Kutin Date: Tue Jan 1 15:24:25 2013 +0000 Factor out some code into C_AllocQuote() and C_InitQuotes(). In Lunatic-only build, also always allocate the first 128 quotes. From-SVN: r3356 commit 8cc4a70b74028091fba4bbf3a3a8d4e9e1db3a7f Author: Philipp Kutin Date: Tue Jan 1 15:24:22 2013 +0000 Lunatic: definesound, more control.lua fixes. From-SVN: r3355 commit 012044febbc07a98766c15c1eb34c5bca56edccd Author: Philipp Kutin Date: Tue Jan 1 15:24:18 2013 +0000 Lunatic: compile out more code with LUNATIC_ONLY. From-SVN: r3354 commit 0f54a7717c2851f878cc93550db49b58d6972862 Author: Philipp Kutin Date: Tue Jan 1 15:24:14 2013 +0000 Clean up actors.c and player.c. From-SVN: r3353 commit a52446baba49b4abb218b165366e04a5256e38a4 Author: Philipp Kutin Date: Tue Jan 1 15:24:11 2013 +0000 Lunatic: fix stack discipline. Preventing a continuously growing stack top and inevitable program termination. Also, commonize the error handling to live on the engine side. From-SVN: r3352 commit 1112bc3322b3438bb17ebf9a8468446e911f5209 Author: Pierre-Loup A. Griffais Date: Mon Dec 31 23:39:36 2012 +0000 Revert "Make synthesis use i686-w64-mingw32-gcc-4.7.2-release-linux64 + native NASM." This reverts commit 53756fb79fd1defa8d465288fbd8e1b16208dd77. From-SVN: r3351 commit 105913e92650c062afc4bc4d2cad88cc854a49ec Author: Richard Gobeille Date: Mon Dec 31 01:51:03 2012 +0000 Replace the osdcvar_t members that needed to be kept in sync with cvar_t with an actual cvar_t. If this is questionable for any reason I'm forgetting, feel free to revert! From-SVN: r3350 commit a774e4c90d33e206ee3a4a1c15d927d725ebeca7 Author: Richard Gobeille Date: Mon Dec 31 01:50:45 2012 +0000 Surround "debug1" and "debug2" with #ifdef DEBUGGINGAIDS From-SVN: r3349 commit 0d8bf15e0a1cbdea9072b4bcf8f5ee2b32225a37 Author: Pierre-Loup A. Griffais Date: Mon Dec 31 01:24:22 2012 +0000 Make synthesis use i686-w64-mingw32-gcc-4.7.2-release-linux64 + native NASM. If you see any weird behavior in synthesis builds after this change, please let Plagman know! From-SVN: r3348 commit a4e6b2036b400d16b3f669e7d3e18d4a5fe56faa Author: Richard Gobeille Date: Sun Dec 30 20:34:55 2012 +0000 Clean up a couple of other getrendermode() related bits that the previous commit missed From-SVN: r3347 commit 94abec83bdb1033f829093b2da2b0103db17879e Author: Richard Gobeille Date: Sun Dec 30 20:34:34 2012 +0000 Add predefined REND_CLASSIC, REND_POLYMOST and REND_POLYMER constants and use them everywhere getrendermode() is called. From-SVN: r3346 commit 81d16670447f14496b95c98a68fcc51880e2af9b Author: Philipp Kutin Date: Sat Dec 29 15:21:32 2012 +0000 Lunatic: more glue, fixes, backtrace for code called back from C. From-SVN: r3345 commit fb3877c4afdf551578715c2b7d30f690e2bd1009 Author: Philipp Kutin Date: Sat Dec 29 15:21:28 2012 +0000 Replace "if (g_tile[..].execPtr)" -> "if (G_HaveActor(...))". From-SVN: r3344 commit f1afdc10e025cdeb123d9f25e304c8610277cfaf Author: Philipp Kutin Date: Sat Dec 29 15:21:24 2012 +0000 Lunatic: beginning to glue things together. Introducing LUNATIC_ONLY. From-SVN: r3343 commit f76f6ce6e605dcb20c492b721d2cf25d0b6b04f8 Author: Philipp Kutin Date: Sat Dec 29 15:21:20 2012 +0000 Remove commented code using former engine variable "automapping". From-SVN: r3342 commit 7b17eb98836c3a2aa2bd2eb23545b90c9a9c635b Author: Philipp Kutin Date: Sat Dec 29 15:21:16 2012 +0000 Fix LTO=1 RELEASE=1 Lunatic build. From-SVN: r3341 commit b62ecd662da6e08a2c24966fbbe7d1fa2807e165 Author: Evan Ramos Date: Sat Dec 29 11:27:07 2012 +0000 Rectify. From-SVN: r3340 commit da058996484c0233f5c89188f754df4777060ea4 Author: Evan Ramos Date: Sat Dec 29 10:59:21 2012 +0000 Clean up and factor jaudiolib. From-SVN: r3338 commit 9a28432e625a604971fb687f33c64c3db0e73baa Author: Evan Ramos Date: Sat Dec 29 10:58:38 2012 +0000 Replace initialize_globals() with global initialization. From-SVN: r3337 commit 3943485125f5744f3aa9036e8c207ff8fbe2876c Author: Evan Ramos Date: Sat Dec 29 10:58:09 2012 +0000 Fix the gap between loops of ambient MUSICANDSFX sounds like BAR_MUSIC. From-SVN: r3336 commit 3635d8b571584c29f15b6f4f2d0deba01f8e5d1c Author: Evan Ramos Date: Sat Dec 29 10:57:24 2012 +0000 All kneel, king FLAC is here. FLAC source from git commit 0920bc1ffb07f038b317e7e8056509fe0e4b680e, patched by me. Windows libFLAC.a built using i686-MinGW-w64 and x86_64-MinGW-w64. HUGE thanks to rhoenie for building the Mac fat library (ppc, i686, x86_86). From-SVN: r3335 commit 6478aa460b205cb17d13957f5475160e83dc53ea Author: Evan Ramos Date: Sat Dec 29 10:54:35 2012 +0000 Clean up some file and directory structure. * Renamed source/jaudiolib/third-party/mingw32 to source/jaudiolib/third-party/Windows. * Moved source/jaudiolib/third-party/Windows/include to source/jaudiolib/third-party/common/include to use both on Windows and Apple. * Deleted Apple/lib/include/{ogg,vorbis}/, see previous point. * Deleted Apple/lib/libvorbisenc.a, 6MB saved. * Moved Apple/lib/lib{ogg,vorbis,vorbisfile}.a to source/jaudiolib/third-party/Apple/lib, where they belong. * Moved source files in Apple/ to source/, where they belong. (SDLMain.[mh] stay.) * Deleted source/jaudiolib/third-party/{ogg,vorbis}.framework, not used any more. * Renamed "StartupWinController*" to "startosx*". From-SVN: r3334 commit 45a7e155d0a93894f4832033bdcbe941c1d51c5b Author: Richard Gobeille Date: Sat Dec 29 05:23:28 2012 +0000 Bump DirectSound version to 8. This shouldn't really affect anything as the API is the same for all of the bits we make use of, but certain sets of DirectX headers/libs seem to be lacking v7 support. From-SVN: r3333 commit ccb6223eafd169090dbf8a8729e988d8400972eb Author: Richard Gobeille Date: Sat Dec 29 05:23:14 2012 +0000 Remove FX_ASSVersion and related code since it wasn't used anywhere From-SVN: r3332 commit a95112bb56916bfb7da68141db27a3077f881da1 Author: Richard Gobeille Date: Sat Dec 29 05:22:55 2012 +0000 Throw a compiler warning when building with only the null sound driver From-SVN: r3331 commit fe70e97e74c202c115f2d9dc5ce5fe3195705203 Author: Richard Gobeille Date: Sat Dec 29 05:22:39 2012 +0000 Fix DirectSound in MSVC builds and remove the dependency on the DirectX SDK From-SVN: r3330 commit 9f6aef5bb29bc80ceadcf6eb6841ffa003673f9e Author: Philipp Kutin Date: Fri Dec 28 17:18:18 2012 +0000 DEF "voxel": fix a tile range check failure message. From-SVN: r3329 commit fb6f753beee2237f6a298de2363ab896011f0c87 Author: Philipp Kutin Date: Fri Dec 28 17:18:16 2012 +0000 Encapsulate aplWeapon* array accesses in a PWEAPON(Player, Weapon, Wmember) macro. In the normal game, these arrays are conceptually [MAX_WEAPONS][MAXPLAYERS], allocated as CON per-player gamevars (e.g. WEAPONx_WORKSLIKE). For Lunatic, they are replaced with weapondata_t g_playerWeapon[MAXPLAYERS][MAX_WEAPONS]. From-SVN: r3328 commit 593738fd6012906c10c00175a691cc57e14a29b9 Author: Philipp Kutin Date: Fri Dec 28 17:18:12 2012 +0000 Replace wall of dup'd code in Gv_AddSystemVars with something more readable. Specifically, have a weapondata_t type mimicking the aplWeapon* arrays. Keep a list weapondefaults[] which undergoes some static->dynamic tweaks and then makes its way to the WEAPONx_XXX per-player gamevars. From-SVN: r3327 commit 337906602ddcdcdd2ab6d71f191f0c8f57523748 Author: Philipp Kutin Date: Fri Dec 28 17:18:09 2012 +0000 Replace initialize_engine_globals() with array initialization. From-SVN: r3326 commit 61c45a5a894c5003e9ce1d4eed7437fcd522a891 Author: Philipp Kutin Date: Fri Dec 28 17:18:06 2012 +0000 Lunatic translator: pack all translation units into one big blob. From-SVN: r3325 commit fcf16da852b159e4e553e26e2a08c628eb3de138 Author: Philipp Kutin Date: Fri Dec 28 17:18:02 2012 +0000 Lunatic: sinking in code. From-SVN: r3324 commit b666a99355e18c245a16eeab62ff86ad1ba52261 Author: Philipp Kutin Date: Fri Dec 28 17:17:58 2012 +0000 Make get{zs,ceilz,florz}ofslope (now ...ptr) accept sectortype pointer. And rewrite the original functions as wrappers around these. From-SVN: r3323 commit aec659bd07782eb5ada098277aa803db400c6086 Author: Philipp Kutin Date: Fri Dec 28 17:17:53 2012 +0000 Clean up spawning / actor initialization code. From-SVN: r3322 commit 62ec92ced4b7163730d1e7f203d12f4ef9135654 Author: Philipp Kutin Date: Tue Dec 25 16:13:50 2012 +0000 Cleanup of console/on-screen-display (OSD) functionality. - Rewrite the "clear background" routine in a no-brainer way instead of juggling around with rotatesprite(). Make it common to game+editor. Expose glRectd to glbuild. - Don't stop OSD text line drawing when encountering a non-printable char. Instead, treat it as space. - In OSD_SetTextMode(), don't use swaplong (which really swaps 32-bit ints) to swap pointers. Write an analogous "swapptr" instead. - When changing from/to OSD, don't inject a pause key. This *might* have been the cause of the reported pausing problems. - clean up the code... (Yes, this commit throws together too much stuff. I suck sometimes. :P) From-SVN: r3321 commit d30c1434cddab29c7516ac9c1483bef889ddf0d1 Author: Philipp Kutin Date: Tue Dec 25 16:13:45 2012 +0000 Lunatic: event chaining. From-SVN: r3320 commit c0c3e5e1f49408aa7c0c237fad34ecdeaf51afa5 Author: Philipp Kutin Date: Tue Dec 25 16:13:41 2012 +0000 Lunatic: print -> OSD_Printf, error reporting. From-SVN: r3319 commit 5d4a04691ad5d671fc7682ab204c1d16635752f0 Author: Philipp Kutin Date: Tue Dec 25 16:13:36 2012 +0000 Clip printext256() at xdim, don't crash OSD_Printf() with empty string. From-SVN: r3318 commit 8675e654c1b230f654c8e9937f8be76ed5aca162 Author: Philipp Kutin Date: Sun Dec 23 19:24:25 2012 +0000 Add a couple of test CONs: non-local control flow, rotation-fixed useractors. From-SVN: r3317 commit 8de3602ec20d6375bcd63b4c3892ba67dca8e038 Author: Philipp Kutin Date: Sun Dec 23 19:24:21 2012 +0000 Fix rotation-fixed useractors (those having usertype bit 4 set). Rotation-fixing happens for a couple of hard-coded statnums that presumably never move (DEFAULT, STANDABLE, FX, FALLER, LIGHT), but for actors it wouldn't make sense since the common case is that they do move. For this reason, bit 4 was introduced in r1934. The position of such useractors will not diverge due to error roundoff accumulation in rotating sectors (SE0, train). From-SVN: r3316 commit 8b8bad39a856505946227b4933b1aee85c7d5930 Author: Philipp Kutin Date: Sun Dec 23 19:24:16 2012 +0000 Lunatic: more complete gameactor(), misc. translator tweaks. From-SVN: r3315 commit faf02657061a1eb545cdc759ead67d47911c21ab Author: Philipp Kutin Date: Sun Dec 23 14:00:08 2012 +0000 Pack actor_t's bposx/bposy/bposz members into a vec3_t named "bpos". From-SVN: r3314 commit a175cb5cd33d23caf79ee7fbc3fe8864e992e7ff Author: Philipp Kutin Date: Sun Dec 23 14:00:03 2012 +0000 Mapster32: save r_usenewshading in configuration file. From-SVN: r3313 commit 33b0c4db21286ee8d1e660ea59240b54d7a6bc44 Author: Philipp Kutin Date: Sun Dec 23 14:00:00 2012 +0000 Fix build.lua's loadarts(), add bigytiles.lua. From-SVN: r3312 commit 2e0ce1442f67dab55ca1aec7fd3cdceeca7c526b Author: Philipp Kutin Date: Sun Dec 23 13:59:56 2012 +0000 engine.c: remove some old "#if 1"s, add compilation switch MULTI_COLUMN_VLINE. Unconditionally enabled, but useful for comparing the behavior of the 1-column vline functions against the 2- or 4-column ones. From-SVN: r3311 commit 9f8b2513bfdda677849ea3c15c063f6692834965 Author: Philipp Kutin Date: Sun Dec 23 13:59:52 2012 +0000 Classic: fix drawing tilesizy=512 walls, use non-pow2 routines with pskies. The former is really only a workaround. Walls/vertical sprites/pskies with ysize 512 (and presumably greater, but this was not tested) are rendered with one shade higher at the borders (1 pixel vlines) because of a certain assumption in the ASM (see comments there). With very dark shades, the palookup[] buffer is accessed oob. We simply allocate 256 bytes more at the end for each. The latter is only for CLASSIC_NONPOW2_YSIZE_WALLS builds, which is not enabled yet. It seems to matter only for the uncommon case where the such pskies repeat in the height. A 1680x1050 window fully covered with such a sky is then rendered at about 60/85 the FPS for me (mostly due to not using the 4 pixel vline routines), so it may be leaning a bit too much on the side of correctness. A compilation switch DEBUG_TILESIZY_512 is introduced in engine.c for demonstration purposes. From-SVN: r3310 commit 339407be9b4a60abc4696931bfd6d70c19968402 Author: Evan Ramos Date: Sun Dec 23 03:12:50 2012 +0000 Add "mapinfo" token to the def parser, pending implementation. Sub-tokens: "mapfile", "maptitle", "mapmd4", "mhkfile" http://forums.duke4.net/topic/6070-user-map-maphacks-eduke32-feature-request/ From-SVN: r3309 commit 034f63bf36f19d9802c1d94517e3e3329b1bf131 Author: Philipp Kutin Date: Thu Dec 20 12:04:39 2012 +0000 Mapster32: in 3D mode's tile info, highlight members of swapped bottom walls. - If aiming at a swapped bottom wall, display "Wall -> " - highlight pic, shade, pal, cstat in yellow then - in printext256, accept at most 3 digits for the color format string (e.g. ^123) From-SVN: r3308 commit 1dfb8581a7a34ba905554db0849315a17fba1efa Author: Philipp Kutin Date: Thu Dec 20 12:04:34 2012 +0000 In Polymost, make r_usenewaspect=2 fog independent of screen x size. From-SVN: r3307 commit c8eaa4b8223e3d1ad370b6f8016755ecc1ff2834 Author: Philipp Kutin Date: Tue Dec 18 22:40:49 2012 +0000 Mapster32: when pasting single wall, take over bits 4, 1+64 and 8+256. That is, everything concerning orientation. Previously, it was wrongly the bitwise NOT of these bits that got taken over. In particular, if bit 2 (swap bottom walls) would get pasted, ridiculousness could ensue. From-SVN: r3306 commit b747534b07507c7d3ed68c61550208a515a64abc Author: Richard Gobeille Date: Tue Dec 18 18:07:28 2012 +0000 Revert "Implement fullscreen 8bpp mode as a borderless, desktop-sized window when running on Windows, and expose an 8bpp mode to the game with the same size as the desktop when no fullscreen 8bpp modes are exposed by Windows. This is required on Windows 8 if we want to have any operation of classic mode in fullscreen, because Windows 8 drops the ability to set any mode other than 32bpp (leaving us largely in the same position we are when running under X)." This reverts commit 705cc72fed880e857a68c483fd3ff1ead3df044d. From-SVN: r3305 commit b650695831b38325c62e639755120147c5b6cbc3 Author: Evan Ramos Date: Tue Dec 18 09:15:39 2012 +0000 Fix ebacktrace on 32-bit. (Sorry, we're back to 5 MB.) From-SVN: r3304 commit 9ad7d5e44476aae5ed6b94cd9ddc6c0662aa25d1 Author: Philipp Kutin Date: Sun Dec 16 19:18:18 2012 +0000 Move fog calc routines into polymost.c, declare in engine_priv.h. From-SVN: r3303 commit a3b022b7be2600753b31e269a84267ec56cc558b Author: Philipp Kutin Date: Sun Dec 16 19:18:13 2012 +0000 Don't enable fog in polymost_printext256() and when drawing tile view in M32. The new "r_usenewshading 2" mode could darken these otherwise. From-SVN: r3302 commit 6e89a37083c356b851ca7e18f5272dfd590cf45d Author: Philipp Kutin Date: Sun Dec 16 19:18:10 2012 +0000 Classic-like visibility/fog for OpenGL modes, r_usenewshading 2 (new default). Implemented using GL_LINEAR fog. The only source of difference (besides the obvious indexed vs. true color) should now be the distance constant, which still had to be determined experimentally. Polymer implements this mode in its fog fragment program part. Parallaxed skies are always drawn with full visibility, I'm not sure if there are any maps that expect otherwise. Also, accidentally committed: factor out initialization code from polymost_printext256() into gen_font_glyph_tex(), small game.c changes. From-SVN: r3301 commit 8794692e80c4864adaa35f7f8377916cfec2ba06 Author: Evan Ramos Date: Sun Dec 16 05:46:20 2012 +0000 Fix the DirectInput breakage on Win64. It was caused by the definition of c_dfDIJoystick using literal 24 and 16 values in place of sizeof(DIDATAFORMAT) and sizeof(DIOBJECTDATAFORMAT), which include pointers. On 64-bit, the values end up being 32 and 24, causing a discrepancy in which DIERR_INVALIDPARAM was thrown. https://gitorious.org/0xdroid/external_libsdl-12/commit/1b1e05db06edcbe64599c6a5ad703795e0e02acb/diffs From-SVN: r3300 commit abd557b4031941c3ab214cc5589cb791e840cb18 Author: Evan Ramos Date: Sun Dec 16 05:45:29 2012 +0000 ebacktrace1 updates: - Updated to use StackWalk64 function call, requiring some addition of headers from MinGW-w64 to compile with MinGW. - Code added to support 64-bit executables: functionality added and one warning fixed. - New DLL binaries compiled using i686-MinGW-w64 and x86_64-MinGW-w64. (Oddly, the DLL built with MinGW is 5 MB while MinGW-w64's is 1 MB.) From-SVN: r3299 commit 9ad21374868da3450dc63abd8075aed56f42edeb Author: Richard Gobeille Date: Sun Dec 16 04:04:25 2012 +0000 Sort some of the more recently added source and header files so they're in the right sections in the VS2010 project From-SVN: r3298 commit 5c80d1ed1b9d1198fe2b2a92acc4dfb9c708c27c Author: Richard Gobeille Date: Sun Dec 16 04:04:16 2012 +0000 Remove a few old references to the duke3d_w32.exe wrapper we once shipped to facilitate compatibility with stuff like Dukester X years ago From-SVN: r3297 commit 690de0094b76fdd187bd6e95b7b93ca6d0200c1d Author: Richard Gobeille Date: Sun Dec 16 04:04:02 2012 +0000 Implement fullscreen 8bpp mode as a borderless, desktop-sized window when running on Windows, and expose an 8bpp mode to the game with the same size as the desktop when no fullscreen 8bpp modes are exposed by Windows. This is required on Windows 8 if we want to have any operation of classic mode in fullscreen, because Windows 8 drops the ability to set any mode other than 32bpp (leaving us largely in the same position we are when running under X). From-SVN: r3296 commit 1bb213ab7ff3fe80dcffcafb9b879ae884520bc0 Author: Philipp Kutin Date: Sat Dec 15 11:28:56 2012 +0000 Fix savegame loading. Bump BYTEVERSION. From-SVN: r3295 commit ec62d297add22ee3d6c7e0bb92d62ee326786351 Author: Evan Ramos Date: Fri Dec 14 23:11:26 2012 +0000 Replace the scrolling contributor credits with a static programmatic three-column layout. From-SVN: r3294 commit 43f6c61614aee63eae2ab7bf541785f84a46492e Author: Evan Ramos Date: Fri Dec 14 23:10:10 2012 +0000 kextract: Propagate the GRP file's modification time to all extracted files. From-SVN: r3293 commit 3aa52a1cba6577958b4c410408bd7be0d7f084c3 Author: Philipp Kutin Date: Fri Dec 14 19:28:20 2012 +0000 Fix CLANG=1 NOASM=1 build. From-SVN: r3292 commit 994429138922013627c290b7fa7dd2afce9710ae Author: Philipp Kutin Date: Fri Dec 14 19:28:17 2012 +0000 Factor out multiply repeated code into calc_ylookup(). From-SVN: r3291 commit f51f6c6aad9278dd76ce00cfcaff548c7b7f95aa Author: Philipp Kutin Date: Fri Dec 14 19:28:14 2012 +0000 Classic: effectively clamp drawn ceiling/floor tile sizes at 256. This prevents computing a shift value outside of [0..31]. From-SVN: r3290 commit ee8667e2cb9d0d56158e0f9cf245136fbac4133a Author: Philipp Kutin Date: Fri Dec 14 19:28:11 2012 +0000 Mapster32: correct message when changing shade by small steps ([+], [-], mwheel) From-SVN: r3289 commit 1752c335938b5b06cb66f2899f602872903d86de Author: Philipp Kutin Date: Fri Dec 14 19:28:09 2012 +0000 Factor out fogcalc() issuing and application of the computed values. From-SVN: r3288 commit 39075f296939ca9fc0a104b9b167fb65c208e432 Author: Philipp Kutin Date: Fri Dec 14 19:28:05 2012 +0000 Rename global visibility to g_visibility, remove useless casts & old fog code. From-SVN: r3287 commit 78c18f501169b7c8234f9452e7dc108cc7f70ee8 Author: Philipp Kutin Date: Fri Dec 14 19:28:01 2012 +0000 OpenGL modes: factor out shade factor calculation. This also means that the "r_shadescale_unbounded 0" option will work in Polymer (except on models). From-SVN: r3286 commit b96a53f5833928593465e7a446a3432d151a2196 Author: Philipp Kutin Date: Fri Dec 14 19:27:58 2012 +0000 engine.c: factor a frequent getpalookup() use into getpalookupsh(). From-SVN: r3285 commit 2ecb74ca0ff58fa61ed60efdde5bb0ff9e0c0f29 Author: Philipp Kutin Date: Fri Dec 14 19:27:55 2012 +0000 Add command line option "-rotatesprite-no-widescreen". This global option will set bit 1024 and clear bits 256 and 512 for all rotatesprite calls, fixing complex HUD drawing code relying on precise alignment of individual elements (widescreen rotatesprite is entirely unsuitable for this purpose). From-SVN: r3284 commit 557526dbebb8b5ccf2c64f9dc39987470653626b Author: Richard Gobeille Date: Fri Dec 14 17:13:25 2012 +0000 Limit attempting to toggle DWM off when using OpenGL modes to Vista/7, because Windows 8 no longer supports disabling DWM. Apparently, Windows 8 contains a software DWM renderer, and all of the "Metro" bs is directly tied to DWM, so there is no longer a way for an app to disable it at will. From-SVN: r3283 commit 3f6b9c4bc135c0d5a925bfa5fa7e4e64199004ec Author: Richard Gobeille Date: Fri Dec 14 17:13:17 2012 +0000 Change a few paths in various MSVC Makefiles to better suit my current dev environment. This doesn't really affect anyone else since these paths need to be customized to fit whatever machine by anyone building with MSVC anyway. From-SVN: r3282 commit a1513c953d00f25fae3d4d2e4cde9fda337c0f0b Author: Philipp Kutin Date: Thu Dec 13 22:21:22 2012 +0000 Mapster32: In 3D mode, [,] auto-aligns walls to the left. From-SVN: r3281 commit f77ada9387e1777f3e3db1bf465c5776947df398 Author: Philipp Kutin Date: Thu Dec 13 12:41:28 2012 +0000 Mapster32: fix LAlt (carry over xrepeat) option for auto-alignment [.]. From-SVN: r3280 commit 11dc24432df31377d66a2092810db3953d5a63f1 Author: Philipp Kutin Date: Thu Dec 13 12:41:23 2012 +0000 Fix building on Linux; fix WITHOUT_GTK=0 build. From-SVN: r3279 commit 5298b7e4f392cd76490fd1851a7c73ca4f54af35 Author: Evan Ramos Date: Thu Dec 13 02:37:20 2012 +0000 Win64 support! (Meaning it works, not that we recommend it for everyday use.) This includes a complete Windows header and library refresh, including the addition of 64-bit compiled libs: *libogg 1.3.0 *libvorbis 1.3.3 *zlib 1.2.7 *libpng 1.5.13 *libvpx 9a3de881c0e681ba1a79a166a86308bbc84b4acd *SDL_mixer 1.2.12 (for RENDERTYPE=SDL) *DirectX import libraries: dsound and dxguid (now included) To build in 64-bit, you essentially need MinGW's MSYS (but not MinGW itself) and MinGW-w64 at the top of your PATH. The target is automatically detected using `$(CC) -dumpmachine`. The EDukeWiki will get detailed instrucitons. All compiler and linker warnings when building in 64-bit mode have been fixed. Remaining 64-bit to-do: - The ebacktrace dll does not build under 64-bit. It uses code specific to the format of 32-bit executables and will have to be ported to work with 64-bit executables. A future 64-bit version will be named ebacktrace1-64.dll. - RENDERTYPE=SDL crashes in SDL_mixer's Mix_Linked_Version(). - DirectInput gives an error and does not function. This only affects joysticks, and the error never happens without any plugged in. - Port the classic renderer ASM to 64-bit. (Just kidding, this is way out of my league.) This commit includes a fair bit of Makefile development spanning all platforms, including simplifying the SDLCONFIG code, fixing build on Mac OS X (thanks rhoenie!), globally factoring Apple brew/port inclusion, enforcing that all -L come before all -l, and ensuring that $(shell ) is always :='d. In addition, I have resurrected the old GCC_MAJOR and GCC_MINOR detection using `$(CC) -dumpversion`, but I have made it failsafe in case the command fails or the version is manually specified. I have applied this new fine-grained detection where applicable, including allowing LTO, and restraining -W's to versions that support them. From-SVN: r3278 commit d7a04b86874cef4d2273ac9ae2e0f0ec961f1998 Author: Evan Ramos Date: Thu Dec 13 02:35:06 2012 +0000 Fix declaration-after-statement warning in game.c after r3270. From-SVN: r3277 commit ebf81fdcf813dd118e753310ecc1fbc671cab152 Author: Evan Ramos Date: Thu Dec 13 02:34:49 2012 +0000 Update credits. From-SVN: r3276 commit 81ac47c5bdedd1fada4e3eb07a719903fc7e261a Author: Evan Ramos Date: Thu Dec 13 02:34:30 2012 +0000 Build tweaks: Set up the use of {Windows,Apple}/{include,lib} regardless of feature toggles in Makefile.common using $(abspath ) in reference to the directory Makefile.common is in. Add the three DirectX headers that are actually used to the repo. (from: http://alleg.sourceforge.net/files/dx9mgw.zip) Since current MinGW versions include DirectX libs (for dynamic linking), remove "-L$(DXROOT)/lib". The DirectX headers are no longer a separate dependency for building. Add $(SDLROOT_OVERRIDE). $(SDLROOT) only functions for Windows and Mac OS X. Factor handling of $(DXROOT_OVERRIDE) and $(SDLROOT_OVERRIDE) into Makefile.shared using $(abspath ). From-SVN: r3275 commit 3370b91d77f582e297f35bc874ceedc8d476a207 Author: Evan Ramos Date: Thu Dec 13 02:33:53 2012 +0000 Port system gamearray access from M32Script to CON. Expose tilesizx and tilesizy. Also, fix deficient logic in Gv_Free and Gv_Clear (both M32 and CON) so that gamevar and gamearray erasure results are (closer to) correct, and so that the game does not crash when system arrays are accessed from CON because they all have been nulled. From-SVN: r3274 commit b492200a5d2808282db62d7a613896cf7467660b Author: Evan Ramos Date: Thu Dec 13 02:33:23 2012 +0000 jaudiolib: Modify OGG looping code to support the LOOP_LENGTH tag (where internally LOOP_START + LOOP_LENGTH = LOOP_END), and all three tags without the underscore. As a note, libvorbis' vorbis_comment_query() checks for tags case-insensitively. (This was done to support the output of vgmstream's "test.exe -g".) From-SVN: r3273 commit 1d72fa4c8dfd97b7675ecc0463643c06817ad78b Author: Evan Ramos Date: Thu Dec 13 02:32:59 2012 +0000 Makefiles: Replace all "ifeq ($(PLATFORM),LINUX)" with "ifeq ($(SUBPLATFORM),LINUX)" and set SUBPLATFORM=LINUX when PLATFORM equals LINUX, DINGOO, GCW, or CAANOO. From-SVN: r3272 commit 00b8a577a38ad60b8e5d287e6892c41f6ddb93a3 Author: Richard Gobeille Date: Wed Dec 12 02:53:15 2012 +0000 Fix building as C instead of C++ From-SVN: r3271 commit 14cb64f8e8d46cd3f6ef46b8e3ae857ad07ffd32 Author: Richard Gobeille Date: Wed Dec 12 02:53:13 2012 +0000 Networking patch from Jasper Foreman From-SVN: r3270 commit 158ed5a198525cc11b9378f13d3d36fdeb69fa15 Author: Richard Gobeille Date: Wed Dec 12 02:53:10 2012 +0000 Recognize the .pk4 file extension when loading grps and zips for shits and giggles (.pk3 was already recognized). From-SVN: r3269 commit 5be4a1a556f6f0541be2a09a3fef5b5fd8e2714f Author: Richard Gobeille Date: Wed Dec 12 02:53:08 2012 +0000 Move the definitions like MAXGAMEVARS out of the enums used for the gamevar flags, because it didn't really make a whole lot of sense for them to be there. From-SVN: r3268 commit 6c76e6726cc0149253f051e5692493f0d9bf6db2 Author: Richard Gobeille Date: Wed Dec 12 02:53:05 2012 +0000 Replace the separate full Gv_AddVar/SubVar/etc functions with a macro that generates them since they were all the same anyway (other than the operator, obviously) From-SVN: r3267 commit 843cb77751dba00b0cb4a11a50f534ab32c34e39 Author: Philipp Kutin Date: Mon Dec 10 18:17:57 2012 +0000 Replace outer apScriptGameEvent[...] checks with G_HaveEvent(). From-SVN: r3266 commit 61b3317bb4c45bd416b01e696012adfee6c5974e Author: Philipp Kutin Date: Mon Dec 10 18:17:53 2012 +0000 Don't call setaspect_new() at end of rotatesprite. This fixes 2nd and following rotatesprite calls drawing differently from the first in a context with custom set-up aspect, as reported by Lezing here: http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__143090 Also, back up and restore the aspect state across EVENT_DISPLAYREST. From-SVN: r3265 commit d409f163d8c268d8bdc63e8be79468bc568c8184 Author: Philipp Kutin Date: Mon Dec 10 18:17:50 2012 +0000 Implement fade_screen_black() using fullscreen_tint_gl() in GL modes. From-SVN: r3264 commit 19d87397a908a4329e0b0946ec2fde480899525c Author: Philipp Kutin Date: Mon Dec 10 18:17:44 2012 +0000 Factor dup. code in SDL/Windows layers into baselayer.c:fullscreen_tint_gl(). From-SVN: r3263 commit bc6dc93ef5f302b9f14795b573d92b9108add214 Author: Philipp Kutin Date: Sun Dec 9 13:42:38 2012 +0000 CON: proper bound checks for {re,}definequote commands. From-SVN: r3262 commit b21a655813dc2355c7f4f16099e53fea42ed8cfb Author: Philipp Kutin Date: Sun Dec 9 13:24:46 2012 +0000 Rearrange {net,}actor_t for 4-byte alignment of int32_t members. Bump BYTEVERSION. From-SVN: r3261 commit 1e3c88bf53daff4bbb10938c327cbc20276794e9 Author: Philipp Kutin Date: Sun Dec 9 13:24:44 2012 +0000 Experimental NETCODE Makefile variable, enabled by default. Disabling netcode compilation can be interesting on memory-constrained systems, or those that have no means of accessing the network anyway. Note: I'm OK with maintaining this myself, i.e. it's fine if netcode dev breaks compilation with NETCODE=0. From-SVN: r3260 commit 882a6e62fb95ea3dd9cce348e8d585c50d924e34 Author: Philipp Kutin Date: Sun Dec 9 13:24:39 2012 +0000 Lunatic: drowning in code. From-SVN: r3259 commit 48d9367ffcb8f385489a5345e007850217161d08 Author: Philipp Kutin Date: Sun Dec 9 13:24:36 2012 +0000 Make EventNames[] an array of (const char *) instead of const tokenlist. From-SVN: r3258 commit 4bb4baa66e6070e38e874fec39b1a24d0a091e59 Author: Philipp Kutin Date: Sun Dec 9 13:24:32 2012 +0000 Initialize BADGUY sprite flags for hardcoded enemies. ... instead of switch/case-ing them in A_CheckEnemyTile(). Because this requires bumping BYTEVERSION, we also get rid of the excess trailing bytes in the save game's "rest" data. (See r3052.) From-SVN: r3257 commit 5ee79731ca7cdebe858681f2cb897252d145515e Author: Philipp Kutin Date: Sun Dec 9 13:24:28 2012 +0000 Lunatic: gasping for some air. That is, fix some oversights introduced in the preceding runs. listglobals.sh is a helper to find global accesses. Translator: add "number-conversion" warning option, max. error limit. From-SVN: r3256 commit 212a445aa1db6b9a4cabae9bc59995ce92f928d3 Author: Philipp Kutin Date: Mon Dec 3 18:24:33 2012 +0000 Lunatic translator: warning options, on_state_end, more bad-identifier chars. From-SVN: r3255 commit f70658204b21614b80997f27c7c507b4a07b5de9 Author: Philipp Kutin Date: Mon Dec 3 18:24:30 2012 +0000 Lunatic: submerging in code. From-SVN: r3254 commit 386053c54c68ef4a043f434a48f6a3be9cda1fb8 Author: Philipp Kutin Date: Mon Dec 3 18:24:25 2012 +0000 Lunatic: knee-deep in code. - more codegen - make more members const, some char unsigned - fix some "geom" metamethods - '^' operator From-SVN: r3253 commit 1df31211c1dc93a500d8e161b10616d9e37dcd1c Author: Philipp Kutin Date: Mon Dec 3 18:24:20 2012 +0000 gameexec.c: rip out some inline code into VM_Fall() and VM_ResetPlayer(). From-SVN: r3252 commit b366f22fe9e9137748ad15d46f40f92e8d7bfbfe Author: Pierre-Loup A. Griffais Date: Sun Dec 2 23:24:12 2012 +0000 Revert "Make synthesis use the debian-packaged mingw32 cross-compiler and nasm." This reverts commit 2cb2588e57fc4c142658413af445ab718c9d2fab. From-SVN: r3251 commit c81ffa583d7ba669cf56c6fe05331b847a6e6993 Author: Philipp Kutin Date: Fri Nov 30 18:57:59 2012 +0000 Lunatic: implement the non-local control flow needed for some commands. From-SVN: r3250 commit f42c42dff8c29e781faaae54c38ef5480af4c31c Author: Philipp Kutin Date: Fri Nov 30 18:57:55 2012 +0000 Lunatic: player stuff (protect some members etc.) From-SVN: r3249 commit 66b75638e0b58e25bc89090cd48843e9008ba18f Author: Philipp Kutin Date: Fri Nov 30 18:57:50 2012 +0000 Lunatic: Makefile tweaks, protect sprite[].picnum. From-SVN: r3248 commit 24fc85f1cdc329a87be06021259be0ba8ee6a9b9 Author: Philipp Kutin Date: Fri Nov 30 18:57:46 2012 +0000 Lunatic: expose more stuff, more codegen (the easy ones). From-SVN: r3247 commit 9bf8550f0c9c131b8fa3654473979ff4996706e6 Author: Philipp Kutin Date: Fri Nov 30 18:57:40 2012 +0000 Some Lunatic cleanup. From-SVN: r3246 commit 9940a54b759178df1751cb07a3af81c714a4e0cf Author: Philipp Kutin Date: Thu Nov 29 14:08:03 2012 +0000 Fix build. It was my fault after all since I forgot common.h in r3243. From-SVN: r3245 commit a33bd581830de78f6100fbd76b82258bda65260a Author: Philipp Kutin Date: Thu Nov 29 12:49:41 2012 +0000 Windows: Fix potential crash in version checker. 1) see if we actually received anything (if http://eduke32.sourceforge.net/VERSION is unavailable, this returns now instead of continuing with nonsensical data) 2) check if we're getting a token from strtok() From-SVN: r3244 commit 8b32ca18c3be9614fe38320d9515724afe0a2ea4 Author: Philipp Kutin Date: Thu Nov 29 12:49:38 2012 +0000 Factor dist() and ldist() into common.c. From-SVN: r3243 commit 35863c678469bcf559666e778e7f10bdfa5c54a6 Author: Philipp Kutin Date: Thu Nov 29 12:49:34 2012 +0000 Move enum vmflags_t to gameexec.c since it's an implementation detail. From-SVN: r3242 commit 1cfe7b1eb38940f692bebd008a2057d021dc4875 Author: Evan Ramos Date: Mon Nov 26 08:37:36 2012 +0000 Add "dump_used_assets.m32" to samples. This script can be used to extract what tilenum and sound IDs are used in maps. From-SVN: r3241 commit 3dc83aec3fc4b42cd827d014220b4ab39bfa20b1 Author: Evan Ramos Date: Mon Nov 26 08:37:18 2012 +0000 Fix "undefined reference to `sampletimer()'" linking error using clang for a Win32 release build. From-SVN: r3240 commit fd9e3805d98a906e6a895eaec56e232a689c0293 Author: Evan Ramos Date: Mon Nov 26 08:36:57 2012 +0000 Fix errors and warnings in nedmalloc.h using clang for a Win32 release build. From-SVN: r3239 commit 273dc06bd0bf308b55d3f437a2508e8f0db3f264 Author: Evan Ramos Date: Mon Nov 26 08:26:04 2012 +0000 Fix warnings involving printf() requiring explicit casts on tracked types. From-SVN: r3238 commit 554a62827dbc6bd010728c3536a165b3c99957f5 Author: Evan Ramos Date: Mon Nov 26 08:25:26 2012 +0000 Add FORCEWARNINGS Makefile flag to prevent disabling compiler warnings within the source. From-SVN: r3237 commit 32561a2e0fa95b4f65c6b35982c78680662a4c6f Author: Evan Ramos Date: Mon Nov 26 08:24:54 2012 +0000 Remove ebacktrace1.dll from 'make all' and include a prebuilt one in package/. Build it with 'make ebacktrace'. synthesis.sh updated. From-SVN: r3236 commit d3165b11c4c4784f48c5dcf63ed844c1d980c247 Author: Evan Ramos Date: Mon Nov 26 08:23:20 2012 +0000 Restructure so that everything packaged in a release build is stored in the package folder, instead of maintaining a list. synthesis.sh, osxbuild.sh, and wiibuild.bat updated. From-SVN: r3235 commit 014d99cf14dd4593518e5bfac7802888600458a5 Author: Pierre-Loup A. Griffais Date: Sun Nov 25 16:24:41 2012 +0000 Move the tracking from a dirty state to a change count. From-SVN: r3234 commit a636f2bf0f750c0b087fb126cf73728e9bd17fb8 Author: Pierre-Loup A. Griffais Date: Sun Nov 25 16:04:07 2012 +0000 Make synthesis use the debian-packaged mingw32 cross-compiler and nasm. If you see any weird behavior in synthesis builds after this change, please let Plagman know! From-SVN: r3233 commit 3aee28955628bb60fc7130621b7541b07bdc7df1 Author: Richard Gobeille Date: Sun Nov 25 13:54:33 2012 +0000 Revert "compat.h: slightly reformat the NOWARN-related preprocessor directives." Commit breaks MSVC builds by failing to provide NOWARN macros to MSVC. From-SVN: r3232 commit 796ce5863d728b884a370a155088772dea3b9ccf Author: Philipp Kutin Date: Sun Nov 25 13:19:12 2012 +0000 compat.h: slightly reformat the NOWARN-related preprocessor directives. From-SVN: r3231 commit 35ac90e5add8a08f530811d7518e93cb075891e8 Author: Philipp Kutin Date: Sun Nov 25 13:19:06 2012 +0000 Expose per-tile nofullbright bit (GL modes only) to DEF. The attribute is set per tile from DEF: either nofullbrightrange or tilefromtexture { ... nofullbright ... } As a special case, the list may only contain "nofullbright", in which case the texture is not changed. (This is analogous to "texhitscan".) Example: // make piggy's eyes fullbright red only when it fires the shotgun nofullbrightrange 2000 2034 nofullbrightrange 2040 2049 nofullbrightrange 2055 2061 From-SVN: r3230 commit faa01a2f14975099a2c045fbfa42000227249c77 Author: Philipp Kutin Date: Sun Nov 25 13:19:02 2012 +0000 Misc. engine cleanups, no functional changes. From-SVN: r3229 commit 603d368ef2ac8d5c5ee76b77e4f3c057ace94227 Author: Philipp Kutin Date: Sun Nov 25 13:18:57 2012 +0000 engine.c: factor out 2 pract. ident. pieces of code into try_facespr_intersect. The two uses are from hitscan and neartag. The functionality is reproduced exactly (assuming I made no mistake), down to different distance checking (<= vs. <). From-SVN: r3228 commit 19b4dca7760cd46cd474a9b5b8a3e658ad8dea70 Author: Philipp Kutin Date: Sun Nov 25 13:18:52 2012 +0000 Lunatic: better protection of array members inside structs. From-SVN: r3227 commit 074e1fc58c60a50f6b0befdc57d67d8706c8f53c Author: Philipp Kutin Date: Sun Nov 25 13:18:46 2012 +0000 Lunatic translator: rework how composites are passed around. From-SVN: r3226 commit 280d269d317a090105dd2839d9ecc7f054486443 Author: Philipp Kutin Date: Sun Nov 25 13:18:41 2012 +0000 Lunatic translator: update default defines. From-SVN: r3225 commit efeaa538a1a12c3975854fb60f371d4c96c0d5fc Author: Philipp Kutin Date: Sun Nov 25 13:18:36 2012 +0000 Guard macros.h by #ifndef/#define, remove two decls of nonexistent functions. In jmact/mathutil.h: FindDistance3D_HP() and ArcTangentAppx(). From-SVN: r3224 commit 54f0609a2c1f05e7e5b6b029d2326df7985b09f0 Author: Evan Ramos Date: Sun Nov 25 08:50:16 2012 +0000 Fix r3221: move the nedmalloc.h include to winbits.c. From-SVN: r3223 commit 48272763b13ba8a367dd2b2ca3a746a9a1e5b430 Author: Evan Ramos Date: Sun Nov 25 04:27:13 2012 +0000 Replace SDL icons, freshly generated using GIMP 2.6.11. The code has been factored. Additionally, 32x32 is used on Windows with SDL_MAJOR_VERSION==1, while 48x48 is the default. See: http://www.libsdl.org/cgi/docwiki.cgi/SDL_WM_SetIcon From-SVN: r3222 commit c11deb5691e29af08a3f247b0697307e4c971dc8 Author: Evan Ramos Date: Sun Nov 25 04:26:37 2012 +0000 RENDERTYPE=SDL on Windows, part 2. This introduces winbits.[ch] in the engine, containing layer-independent code migrated from winlayer, including nedmalloc, ebacktrace1, OS version detection, and high-resolution profiling timers. sdlayer has been expanded to include the code from winbits under _WIN32. All uses of RENDERTYPEWIN in the source have been examined and changed to _WIN32 (or removed) where the block in question is layer-independent. From-SVN: r3221 commit f72c7458ad55aded16124b875c199ae525c6e967 Author: Evan Ramos Date: Sun Nov 25 04:25:31 2012 +0000 Factor G_MultiPskyInit into common.c. From-SVN: r3220 commit 83437579cc1d3a2495973cce13f3518831d49b9b Author: Evan Ramos Date: Sat Nov 24 09:13:29 2012 +0000 For novelty, add support for RENDERTYPE=SDL under Windows. This needs improvements to bring it up to par with winlayer, but it is functional. In particular, a good amount of code from winlayer could be used for both layers, including the profiling timers, the version printing code, and the hInstance and hModule sharing. Known problems: the mouse cursor is not trapped, and the game starts before the startup window shows options. From-SVN: r3219 commit 680ee43adc7b1b731e76eba4ff684c966ace5798 Author: Evan Ramos Date: Sat Nov 24 09:12:15 2012 +0000 Implement OGG looping support; musicians rejoice! Loops are controlled by two tags in the Vorbis Comment, both in PCM samples. LOOP_START holds the beginning of the loop, the position to which playback returns at the end of the loop. LOOP_END is optional; it holds the end of the loop, after which the game seeks to LOOP_START. If undefined, the end of the OGG is the end of the loop. The primary purpose of LOOP_END is if you want to give your file a proper ending for listening outside the game. To preview a looped OGG you have assembled, give it a ".logg" extension and play it using the vgmstream plugin for Winamp or foobar2000. From-SVN: r3218 commit ef41d1c51ee6178c2cac7fa5b1581620f9144e60 Author: Evan Ramos Date: Sat Nov 24 09:11:50 2012 +0000 Stop all sounds after completion of LOGO.ANM. From-SVN: r3217 commit 8e64a44ac903248502ded0d5c4208c7489d0d9c0 Author: Evan Ramos Date: Sat Nov 24 09:11:30 2012 +0000 Allow CAMERA1 to have cstat 32768. From-SVN: r3216 commit bc21a366d98630485fa11a193edc709bdd12309f Author: Evan Ramos Date: Sat Nov 24 09:11:06 2012 +0000 Fix ebacktrace1.dll build with MinGW-GCC 4.7.2. From-SVN: r3215 commit 2ad54c7ac90d68db3667f2b57e36f4b224640002 Author: Richard Gobeille Date: Tue Nov 20 01:33:25 2012 +0000 Factor out duplicate code in CONTROL_BindKey/CONTROL_BindMouse/CONTROL_FreeKeyBind/CONTROL_FreeMouseBind From-SVN: r3214 commit 5f9db60202f6d346fefd560d5a6d509148adbb5e Author: Richard Gobeille Date: Tue Nov 20 01:33:22 2012 +0000 Relocate Bstrncpyz to the bottom of compat.h so we can use our Bstrncpy macro there From-SVN: r3213 commit 1e70d64f75207057355480afcf3774148b74ae9b Author: Philipp Kutin Date: Sun Nov 18 19:01:39 2012 +0000 build.lua: provide simplistic "readdefs()", use in foreachmap.lua. So that symbolic tile names can be used when searching maps. From-SVN: r3212 commit 87475743e7fbf3ff6500bcb48a3b4bac135dc8b9 Author: Philipp Kutin Date: Sun Nov 18 19:01:34 2012 +0000 Remove many redundant (int16_t) casts and one now incorrect one. The redundant ones are in code like this: s->cstat = (int16_t)32768; Because the value is eventually converted to the type of "s->cstat", any casts to integral types having at least as many bits are no-ops, signedness being irrelevant due to (probably any two's complement arch targeting compiler's) bit-pattern preserving semantics of these conversions. The now incorrect one is: if (lotag == (int16_t) 65535), "int32_t lotag" being read from a wall or sprite struct directly earlier. Now, with these members being unsigned, and (int16_t)65535 equalling -1, the check always fails. The correction fixes normal switches having such a lotag ending the level immediately. In short: integer casts before assignments are unnecessary, those in reads highly relevant! From-SVN: r3211 commit 72aece37b61217c69aa07c0ae3f4ed8d045d6ec6 Author: Philipp Kutin Date: Sun Nov 18 19:01:29 2012 +0000 Correct arithmetic comparisons of lo/hitags in actors.c. Rewriting them in the obvious way, i.e. by casting the expression to int16_t first. (That is, this commit is the reverse of r3174, but with casts applied.) This fixes at least one regression: a FIREEXT with a hitag of 0 should not be linked with same- (that is, zero-) tagged SEENINEs or OOZFILTERs. Mind the corner cases! From-SVN: r3210 commit 8032ebf8c63f9145ba3aee341cd3bb6052a11c39 Author: Philipp Kutin Date: Sun Nov 18 15:44:18 2012 +0000 Fix bound keys' commands being truncated in settings.cfg, control* cleanup. - provide functions instead of messing with CONTROL_*Binds directly - comment out a few more unused functions - make clear what memory (alloc'd or const char *) 'keybind' members use - for keys with no name, use "" From-SVN: r3209 commit cd2537bc2fe69fb5f046c3cbd0091e144eff06ea Author: Richard Gobeille Date: Sun Nov 18 00:07:44 2012 +0000 Fix a keyboard scancode oversight I introduced with my changes last night, apparently caused crashes From-SVN: r3208 commit adfe5b14fa06452b9fd161838d99c9885536ef13 Author: Philipp Kutin Date: Sat Nov 17 19:46:50 2012 +0000 Engine cleanup: factor out code getting bounds of sprites. From-SVN: r3207 commit 33ae5a88cb688ce6639034e599110898c99e1277 Author: Philipp Kutin Date: Sat Nov 17 19:46:47 2012 +0000 Clean up base engine functions: tighten scope of locals declarations. From-SVN: r3206 commit d2c10e46ca97aecd6c0214339034fe5f2ce48a80 Author: Philipp Kutin Date: Sat Nov 17 19:46:43 2012 +0000 Clean up engine code by factoring repeated 3-liners into spriteheightofs(). This function also changed: it doesn't handle floor-aligned sprites now, and the z offset is returned instead of set by pointer. From-SVN: r3205 commit 65528e0c97d141daffd5055e0a15d1522cba110c Author: Philipp Kutin Date: Sat Nov 17 19:46:37 2012 +0000 A couple of meaning-preserving rewrites of picanm[]-touching code. From-SVN: r3204 commit 55d99c71141be419f4eef6dae43294f518fd4422 Author: Philipp Kutin Date: Sat Nov 17 19:46:33 2012 +0000 Mapster32: fix cycling picnum in 3D mode. Using non-keypad [-]/[+] or LMB + mousewheel, it was broken when a void tile was in between. From-SVN: r3203 commit 159c82dd8387e00611ac1d7b0ea630c8439625a3 Author: Philipp Kutin Date: Sat Nov 17 19:46:28 2012 +0000 Clean up picanm[] by making its elements values of struct type picanm_t. The size of that struct is currently 4, and its layout almost the same as what is read in with loadpics(). The number of tiles in an animation is bumped to 256, so that the max. tile difference in DEF's animtilerange is 255. (There's no way to have such animations from ART.) From-SVN: r3202 commit df6379aed0610eeb62ee3ba143ca8ba5fd83c40b Author: Philipp Kutin Date: Sat Nov 17 19:46:18 2012 +0000 Lunatic: update BUILD types with signed->unsigned changes of *stat. From-SVN: r3201 commit 0da1bbe31fcfdffc002958d87cc516d4c2e2c7a9 Author: Richard Gobeille Date: Sat Nov 17 16:48:11 2012 +0000 Further minor MACT cleanups From-SVN: r3200 commit e80fc216f9934c25bfb3446b7c8c06de575efde0 Author: Richard Gobeille Date: Sat Nov 17 16:48:05 2012 +0000 Replace a few one line MACT mouse functions with macros that do the same thing From-SVN: r3199 commit a94494acd31465213db905500c29d2f9cac83cf9 Author: Richard Gobeille Date: Sat Nov 17 16:48:02 2012 +0000 Remove useless CONTROL_UserInputCleared. It was useless in the literal sense, e.g not actually used anywhere. :p From-SVN: r3198 commit 39249f21b84fbb430fc5138dc061f735644e63f6 Author: Richard Gobeille Date: Sat Nov 17 16:47:58 2012 +0000 Change key bindings to use dynamic allocation and remove the previous limit of 128 characters per key bind From-SVN: r3197 commit 1fe4a139dacce4d67250092541276d2feeca9c74 Author: Richard Gobeille Date: Sat Nov 17 16:47:53 2012 +0000 Minor cleanups in MACT control.c From-SVN: r3196 commit ec13b6c5c52f75392fd4703c39d199052f111a48 Author: Richard Gobeille Date: Sat Nov 17 16:47:47 2012 +0000 Rename a few variables we've added to MACT over the years to be more consistent with the rest of its naming conventions From-SVN: r3195 commit f08956c8ee0f418d6ef56369547ea9416fa63853 Author: Richard Gobeille Date: Fri Nov 16 16:41:04 2012 +0000 Remove the xdelta3 files from the VS2010 project, too From-SVN: r3194 commit a452ab0112147ca84291423e21d74b00ea8ae704 Author: Richard Gobeille Date: Fri Nov 16 15:40:28 2012 +0000 Remove xdelta3 since it doesn't fit in with our current networking plans anymore From-SVN: r3193 commit e3d9cede539f10477d308b3b966b7e55e6adfc89 Author: Richard Gobeille Date: Fri Nov 16 00:54:04 2012 +0000 Add "ulotag" and "uhitag" to get/setactor/wall/sector, which exposes the tags unsigned, without the typecast to int16_t. This might be useful to someone. From-SVN: r3192 commit 4a652f48269a473f83d9de647c9490da72cf0158 Author: Richard Gobeille Date: Thu Nov 15 23:37:33 2012 +0000 Remove our old eduke32.vcproj as it hasn't been updated since whenever I switched to VS2010 From-SVN: r3191 commit f47a3c516fba96910c7d01d1868b1127b6486823 Author: Richard Gobeille Date: Thu Nov 15 23:35:40 2012 +0000 Make GCC *printf_nowarn behavior conditional on compiling as C++ From-SVN: r3190 commit e2ed77e6513bbf62415843e8f7e12a5f8cb17bd6 Author: Philipp Kutin Date: Thu Nov 15 21:10:02 2012 +0000 CON: make lotag/hitag getters return signed values, as per agreement on IRC. This means that the internal change done to these sprite members in r3159 is hidden from CON for backward-compatibility purposes. Note that .cstat and .{ceiling,floor}stat aren't touched, and will return unsigned values to CON. From-SVN: r3189 commit 79153ab6fe2c0bde16c644a1996b0337971e3be7 Author: Philipp Kutin Date: Thu Nov 15 21:10:00 2012 +0000 Probably fix the zoom crash encountered with Mapster32 and CBP8. Described here: http://forums.duke4.net/topic/3857-the-crash-thread/page__view__findpost__p__141202 From-SVN: r3188 commit 798680ada11ef5fa6df964a783f5de81a4c0ba15 Author: Philipp Kutin Date: Thu Nov 15 21:09:56 2012 +0000 Minor loadpics() cleanups, don't expose filegrp[] from cache1d.c. From-SVN: r3187 commit 1f1f085b55b595097d0c94dc2e1eba9c58bf960e Author: Philipp Kutin Date: Thu Nov 15 21:09:53 2012 +0000 picanm[]-cleanup pt1: hide code using animateoffs() behind macro DO_TILE_ANIM. From-SVN: r3186 commit 694e4cf6f1b81114a56429ad92ab96a3447e2a41 Author: Philipp Kutin Date: Thu Nov 15 21:09:48 2012 +0000 foreachmap.lua: add possibility of running code per s/w/s match with ':' shortcut Also, add a missing "pragma pack(pop)" to build.lua. From-SVN: r3185 commit 5e46ea58100a921a5ca610c9487573011597f41f Author: Richard Gobeille Date: Thu Nov 15 16:44:15 2012 +0000 Add nedmalloc.h to the VS2010 project files From-SVN: r3184 commit 1218ca65da3f445785bb2374cbc193e3b05861df Author: Philipp Kutin Date: Thu Nov 15 14:28:55 2012 +0000 Mapster32: Fix clipboard tile display in 3D mode. From-SVN: r3183 commit 90c15c54d43acb6ba5149ac5e7c52c528ba3cf87 Author: Philipp Kutin Date: Thu Nov 15 14:28:53 2012 +0000 demo.c: time G_DoMoveThings() using a double instead of an int32_t. I think this may fix some negative "non-profiled overhead" that I have been seeing. From-SVN: r3182 commit 5c9dd38557da50e9018b74286ba47baf4bdeb700 Author: Philipp Kutin Date: Thu Nov 15 14:28:50 2012 +0000 Bump BYTEVERSION. From-SVN: r3181 commit 1cc493a2bbb71ac52a789910a804638e1ec1ed74 Author: Philipp Kutin Date: Thu Nov 15 14:28:47 2012 +0000 Split r3159..r3161, part 14: The rest. From-SVN: r3180 commit 84925269b4f3f52fca1a8c7ecb272db299994e44 Author: Philipp Kutin Date: Thu Nov 15 14:28:44 2012 +0000 Split r3159..r3161, part 13: Poly{mer,most}, engine changes. From-SVN: r3179 commit 240efe2282069dcff84349b21b83b7bef32d07c5 Author: Philipp Kutin Date: Thu Nov 15 14:28:41 2012 +0000 Split r3159..r3161, part 12: Add explicit casts, non-pointer types. Notes: - Atomic Edition (Censored) -> Plutonium Pak in grpscan.c - "scale" in astub.c:drawtileinfo() is incorrect, I think. - in demo.c, the gethitickms() value should be returned to a double. From-SVN: r3178 commit d59d5bdddabbef954f667bfe89790e8dd22b9475 Author: Philipp Kutin Date: Thu Nov 15 14:28:36 2012 +0000 Split r3159..r3161, part 11: Add explicit casts, pointer types. From-SVN: r3177 commit 1b3ee4ee5e4bd514f731803dd3d44bea91866af6 Author: Philipp Kutin Date: Thu Nov 15 14:28:29 2012 +0000 Split r3159..r3161, part 10: add explicit casts to *alloc return values. NOTE: changes such as these are best viewed with something like git diff (...) --color-words='[a-zA-Z0-9_]+|[^[:space:]]' From-SVN: r3176 commit b5ca9381e8016d67192d00c736e4e56a0fa71ce8 Author: Philipp Kutin Date: Thu Nov 15 14:28:21 2012 +0000 Split r3159..r3161, part 9: make CON's 'respawnhitag' unconditional on hitag. ... in the 'default' case (non-FEM* tiles). From-SVN: r3175 commit 71b0036ae7a269295a699fd2b3ea7167cba2e387 Author: Philipp Kutin Date: Thu Nov 15 14:28:18 2012 +0000 Split r3159..r3161, part 8: make some members of base types unsigned. NOTE: This will need very thorough review. From-SVN: r3174 commit a1df0c1beaab739971afec710dcb92943af2dbdf Author: Philipp Kutin Date: Thu Nov 15 14:28:14 2012 +0000 Split r3159..r3161, part 7: code touching networking. From-SVN: r3173 commit 996a0e1e1b4607f0651f270707b9e57c06bf76f5 Author: Philipp Kutin Date: Thu Nov 15 14:28:11 2012 +0000 Split r3159..r3161, part 6: code conditional on __cplusplus. Note the type change of vplce[] in engine.c: int32_t -> uint32_t. From-SVN: r3172 commit d7d51eb3c4ed424b11f6e08a3511b4fb2ec1a8c1 Author: Philipp Kutin Date: Thu Nov 15 14:28:07 2012 +0000 Split r3159..r3161, part 3, addendum 1: add a forgotten "Bfstat". From-SVN: r3171 commit 4aad94b55a15bbfc3be7fd187823e21b94b12ecc Author: Philipp Kutin Date: Thu Nov 15 14:28:04 2012 +0000 Split r3159..r3161, part 5: "nowarn" wrapping of printing functions. From-SVN: r3170 commit 5a920be282d2b118716b834bb454460e5d91aad2 Author: Philipp Kutin Date: Thu Nov 15 14:28:00 2012 +0000 Split r3159..r3161, part 4: Tweaks of tiledata_t's "cacherange" member. REM: This will need a savegame version bump. From-SVN: r3169 commit df5d9233a25d29dc77d0b32635f08cdda4ed621e Author: Philipp Kutin Date: Thu Nov 15 14:27:57 2012 +0000 Split r3159..r3161, part 3: MSVC, nedmalloc, *layer, startup windows. From-SVN: r3168 commit b6de043a73c1fa2b97582d74217f906445461837 Author: Philipp Kutin Date: Thu Nov 15 14:27:51 2012 +0000 Split r3159..r3161, part 2: C++ tracker headers. From-SVN: r3167 commit e3d611ae74f8cafe4099634015a67e00b189074a Author: Philipp Kutin Date: Thu Nov 15 14:27:49 2012 +0000 Split r3159..r3161, part 1: Makefile and MSVC project file changes. From-SVN: r3166 commit ab2651c68a77c9e79e32e73131f3d02ab3959c8e Author: Philipp Kutin Date: Thu Nov 15 14:27:45 2012 +0000 Revert "Fix the warnings when building with C++, add MSVC C++ build support." This reverts r3159..r3161. Conflicts: eduke32/build/include/compat.h (Handled so that r3163's changes are kept applied.) From-SVN: r3165 commit e55131250b2c71520296c1fc9f840afc92968124 Author: Evan Ramos Date: Thu Nov 15 06:42:57 2012 +0000 Address crash when model skins have invalid file names. Affected surfaces will not be drawn, but FPS will plummet as mdloadskin() is called repeatedly. A more optimal solution would either flag the surface as invalid (so the renderers skip it) or reject the entire model when defs are loaded. http://forums.duke4.net/topic/6031-eduke32-crashes-if-hrp-model-skin-not-available/ From-SVN: r3164 commit 5121ddf4e0644a7485de1b3843b8f527072f3e0b Author: Evan Ramos Date: Thu Nov 15 06:42:37 2012 +0000 Tools updates: - Eliminate use of the C++ standard library from arttool. I improved some of the program's workings but it continues to corrupt my art files in certain circumstances. (Note: Not a regression; it happens with previous revisions.) - Construct "make utils" for the game side following the pattern of the engine. - Move ivfrate to this new distinction. - Minor Makefile cleanup and tweaks, mainly to facilitate CLANG=1 and to formalize text output in special cases. From-SVN: r3163 commit 0e435a19653b43de185e57543dc9c8ef65258fb5 Author: Evan Ramos Date: Thu Nov 15 06:42:00 2012 +0000 Fix CPLUSPLUS=1 CLANG=1 building, and fix the "gotpic used attribute ignored" warning produced by clang. From-SVN: r3162 commit 4cdec359f131ff05e26e410bd472163c19adab38 Author: Richard Gobeille Date: Thu Nov 15 01:30:31 2012 +0000 MinGW C build fix From-SVN: r3161 commit 773bb9f299903306637813ff850ccb913b48520e Author: Richard Gobeille Date: Thu Nov 15 00:23:10 2012 +0000 Add a couple of #ifdef __cplusplus I missed From-SVN: r3160 commit 44003a9bd8e309dd7e13e0b3ba10f564f68a010c Author: Richard Gobeille Date: Wed Nov 14 23:32:43 2012 +0000 Fix the warnings when building with C++, add MSVC C++ build support. This also changes the internal type of lotags, hitags and cstat type fields to uint16_t instead of int16_t to clean up some dubious behavior wherein the code was using a value of 32768 as a flag in these fields for certain types of things, like invisible sprites (using the value as if it was uint16_t) where it was elsewhere checking if the value was < 0 (using the value as if it was int16_t). This change may break a few specific effects if any part of the relevant code was missed when looking for areas that needed to be addressed. I think there's also a fix for the CON precache system breakage in here (lost it in my local tree when I started getting the C++ build working in MSVC, sorry!) From-SVN: r3159 commit 0f927a025cd78989c54531618d335e75add71f2c Author: Richard Gobeille Date: Tue Nov 13 15:08:10 2012 +0000 Fix r3155 fuckup :) From-SVN: r3158 commit 07d4e5ac2ee7725612a935509f5d2f2bcb9c1d40 Author: Philipp Kutin Date: Tue Nov 13 10:50:13 2012 +0000 Mapster32: set first walls more conveniently on split in one special case. Specifically, if the first wall of the sector-to-split is to the left or right of the *start* of the splitting line AND the sector has no TROR extensions, make these two the new nextwalls of the respective split sectors. From-SVN: r3157 commit 4d73c845c579b7960474877f2b72d2319a7287f7 Author: Philipp Kutin Date: Tue Nov 13 10:50:06 2012 +0000 Rewrite old-version-savegame signaling in a cleaner fashion. From-SVN: r3156 commit 4605da81f5e46dfc6c83da9bf5475a0e3c1b15cb Author: Richard Gobeille Date: Mon Nov 12 15:47:52 2012 +0000 Update Net_SendVersion() and Net_ReceiveVersion() to use a 16-bit representation of BYTEVERSION From-SVN: r3155 commit 447a2e6459f676b74f21586974b29da743304c8f Author: Richard Gobeille Date: Sun Nov 11 18:46:02 2012 +0000 Fix useractor enemystayput breakage From-SVN: r3154 commit fab3999716eba73561e15af2b7720a67281088b3 Author: Philipp Kutin Date: Sun Nov 11 17:57:13 2012 +0000 Make it possible to build a standalone libcache1d.so. Exporting only (de)compression functions. Also, different reader/writer functions can be set. From-SVN: r3153 commit 47d3a23d23d4f3e016087790a894044a27ff77cd Author: Philipp Kutin Date: Sun Nov 11 17:57:09 2012 +0000 Couple of tweaks in player.c to match all ProjectileData[...].xxx with a regexp. It would be something like "ProjectileData\[([^]]+)]\.([a-z_]+)". From-SVN: r3152 commit 09703605d643526fa7ec2a34498d55cf6475f251 Author: Philipp Kutin Date: Sun Nov 11 17:57:06 2012 +0000 Fix demo playback with diff application enabled. This requires ripping out the .proj member of tiledata_t back into ProjectileData[] again because it was the only one in g_tile[] that changed during the course of a game. The g_tile[] array is now also correctly flagged as "constant throughout a game" (DS_NOCHK). Savegame version bumped. From-SVN: r3151 commit 1ea9cbf1e17aaaac2c4f05a3375588ab39d8d90b Author: Philipp Kutin Date: Sun Nov 11 17:57:01 2012 +0000 Trivial G_Util_PtrToIdx*() tweaks. From-SVN: r3150 commit 0fe21bef16af7e96f2db8c31b15b7ddccff990ab Author: Philipp Kutin Date: Sun Nov 11 17:56:57 2012 +0000 Fix viewing through moving cameras. It's still not pretty though since there's no interpolation from G_DrawRooms(). From-SVN: r3149 commit 6bd0bc7ce31b8cb8065ad00b82d34773e4d28a43 Author: Philipp Kutin Date: Sat Nov 10 20:59:00 2012 +0000 Lunatic reorganization part 2: split into engine and editor/game parts. On the engine side (functions starting with L_), there are now the basic parts like state creation and running code from strings and files. The game and editor can add to that by e.g. loading whatever they please into the state. Their functions start with El_ and Em_, respectively. The Lua scripts still reside in source/lunatic, even for the common ones. This is because they will be embedded into the binaries as bytecode or compressed source eventually, so their location on disk will be irrelevant. From-SVN: r3148 commit 65db68ec63c0dae51d6425e6ac3ebdef695f82fb Author: Philipp Kutin Date: Sat Nov 10 20:58:54 2012 +0000 Lunatic reorganization part 1: two renames and one deletion. See the next commit for details. From-SVN: r3147 commit 184efc1d507135b39a48749dae699039bab997ea Author: Philipp Kutin Date: Sat Nov 10 14:11:20 2012 +0000 Clean up texture loading code etc. in polymost.c, no functional changes. From-SVN: r3146 commit 3efef22615dfb4d5b79f07c59c7356294fa28297 Author: Philipp Kutin Date: Sat Nov 10 14:11:17 2012 +0000 Introduce a per-tile bit preventing fullbrights in GL modes, use for LOADSCREEN. From-SVN: r3145 commit d4c99e0063d405eb9fc7ddaa6530b3a768db71d9 Author: Philipp Kutin Date: Sat Nov 10 14:11:13 2012 +0000 Classic: fix rotatesprite with no screen scaling and non-widescreen aspects. Also, enable showing sprites in Mapster32's overhead view again, since that was one (the only?) use of that code path. The uninitialized read was introduced in r2927. From-SVN: r3144 commit 31684cd52642d5b49d5364074e6998e0972c514a Author: Philipp Kutin Date: Sat Nov 10 14:11:10 2012 +0000 When looking through a camera, don't do third person view. Also, reorganize some G_DrawRooms() code a little without changing anything. From-SVN: r3143 commit acb9f23518f31e7042fe1bcf595ea11212c0c2cb Author: Philipp Kutin Date: Sat Nov 10 14:11:07 2012 +0000 When found a camera sprite for viewscreen, set position etc. immediately. Instead of later in P_ProcessInput(). This fixes one drawrooms() call in between where the sectnum is the camera's, but the position the player's, which can lead to a slow "outer view" render in Polymer. From-SVN: r3142 commit 9c012b47fae5fbeb8c273217541171ec65962655 Author: Pierre-Loup A. Griffais Date: Sat Nov 10 06:09:51 2012 +0000 Make glbuild C++-safe. From-SVN: r3141 commit 951374e8fc69772b4124087c708166c43c0773ff Author: Pierre-Loup A. Griffais Date: Sat Nov 10 01:53:54 2012 +0000 Fix warning in jaudiolib due to void ptr arith. From-SVN: r3140 commit a7d0d7aa9998992dbf5c095b8b028f5b7c4620a4 Author: Pierre-Loup A. Griffais Date: Sat Nov 10 01:53:50 2012 +0000 Fix warnings from pointer math with the trackers. From-SVN: r3139 commit cb91fc0c66c4afec88937025ec5b4c02fdc2836c Author: Pierre-Loup A. Griffais Date: Fri Nov 9 22:31:02 2012 +0000 Add automatic tracking to the sector[], wall[], sprite[] and tsprite[] arrays; any write access to them will run the corresponding hook and write to the [sector/wall/sprite/tsprite]clean array. Note: tsprite and sprite use the same hook and require running a few more instructions per access in order to disambiguiate; this could be made more optimal (like the other arrays) by clearly separating the types in the game code. Note #2: taking a member's address currently marks it dirty because of tons of helper functions across the editor code. I don't know how many read-only accesses we have after taking a member address, but it could also be fixed with some finessing of the code. From-SVN: r3138 commit 5016599bd4ecc2577ee62c6c69c7d13495497328 Author: Pierre-Loup A. Griffais Date: Fri Nov 9 18:05:21 2012 +0000 Fix the C++ build on Linux with LTO. From-SVN: r3137 commit e749982de6c434d144898071b29b8c33952480f7 Author: Pierre-Loup A. Griffais Date: Fri Nov 9 17:35:58 2012 +0000 Fix the Linux mapster32 build with LTO enabled. From-SVN: r3136 commit 6a2c533384ee8e035bc5c4c27aa22f1764638b34 Author: Pierre-Loup A. Griffais Date: Fri Nov 9 16:00:37 2012 +0000 Fix synthesis fallout after ivfrate addition. From-SVN: r3135 commit a5a9525c9255c4d2dd13e9c7d3fca2d149c274df Author: Richard Gobeille Date: Thu Nov 8 22:09:30 2012 +0000 Fix C90 compliance warning in sdlmusic From-SVN: r3134 commit 89b4291f6662a0ddd60769136ce31324f7d5bf60 Author: Richard Gobeille Date: Thu Nov 8 22:09:00 2012 +0000 Fix warning from r3128 From-SVN: r3133 commit 584f69b3a171521940608abcc1d52be31eba04eb Author: Philipp Kutin Date: Thu Nov 8 21:54:17 2012 +0000 Make ivfrate build standalone, Makefile tweaks. From-SVN: r3132 commit 1fd1dc47304a739bbca1ff6de7169cb5bf55fe3b Author: Philipp Kutin Date: Thu Nov 8 20:17:23 2012 +0000 New utility ivfrate(.exe) and a couple of small VP8 changes. The command-line utility can query and set the frame rate of IVF files, since apparently encoders don't care too much about setting proper values in the IVF header. Also, add the utility to the synthesis build. On the playback side in EDuke32, get rid of the 1/(2*fps) "correction" if the FPS numerator is <1000 (presumably used in older encoders) and properly print the frame rate's fractional part. From-SVN: r3131 commit 50c8f81e2caf8e01e58acda4f391cc8f368884b3 Author: Philipp Kutin Date: Thu Nov 8 20:17:19 2012 +0000 Lunatic: "fix" building. From-SVN: r3130 commit 547bfb4de0569c686e054d30c4bd0fa4b743379d Author: Philipp Kutin Date: Thu Nov 8 20:17:15 2012 +0000 Fix USE_OPENGL=0 build. From-SVN: r3129 commit 1a822a5337f93a3c4af359591f4a0f1224dde4d6 Author: Richard Gobeille Date: Thu Nov 8 17:00:31 2012 +0000 Fix console key changing breakage From-SVN: r3128 commit 62646570f173bad8d8d4f8225b2757b934e10d1e Author: Philipp Kutin Date: Tue Nov 6 23:06:44 2012 +0000 Prettify some code where I felt was necessary. From-SVN: r3127 commit e5106c6c17da9eae67805dc25b501c9f0fb32638 Author: Philipp Kutin Date: Tue Nov 6 23:06:40 2012 +0000 When binding a key, take care of processing one-to-many binds properly in menu. This means that the "Keyboard Setup" should now properly reflect the bindings, except in the theoretical case of one gamefunc being bound more than two keys. (What was fixed is the one key to many gamefuncs case.) From-SVN: r3126 commit 6879cb9850fd6196a7a568c1ce2d37f217bda780 Author: Philipp Kutin Date: Tue Nov 6 23:06:38 2012 +0000 Get rid of the code reading in [KeyDefinitions] section of eduke32.cfg. That section was only ever read in for little profit and never written out! Keyboard input is actually dispatched as OSD commands for a good while, so that old cruft has to go! From-SVN: r3125 commit 19a2848014c8341bc12ebb5385adaa0d145645b8 Author: Philipp Kutin Date: Tue Nov 6 23:06:34 2012 +0000 Clean up control.c. - Remove everything using CONTROL_KeyMapping, which was only written to. - Remove unused functions, make local ones static. - Remove private function declarations in _control.h. From-SVN: r3124 commit fd1ff86f5c7c5846ac1164a2bc67cc95409273ab Author: Philipp Kutin Date: Tue Nov 6 23:06:31 2012 +0000 Fix one key <--> multiple gamefuncs dispatching. From-SVN: r3123 commit 8070a43954169a3e418f2d6433814a33972ea67a Author: Evan Ramos Date: Tue Nov 6 07:49:44 2012 +0000 Fix linking with CLANG=1 by separating $(INVOCATION) into $(COMPILER) and $(LINKER) and removing "-x" from clang as a linker in Makefile.common. Additionally, the Build tools are now affected by CPLUSPLUS=1, for which small corrections have been made. From-SVN: r3122 commit 3e9607a2dcf987b79f29f803a4cffbc4bfa2f83f Author: Pierre-Loup A. Griffais Date: Tue Nov 6 05:07:11 2012 +0000 Fix build error after C++ conversion. From-SVN: r3121 commit b9c9477f8367b7078581e19bc13169cd915f06d2 Author: Philipp Kutin Date: Mon Nov 5 20:04:02 2012 +0000 Fix building with SDL 1.2. From-SVN: r3120 commit f5d6ca57cb6899c6d2f381acd1239e7344df1ad6 Author: Pierre-Loup A. Griffais Date: Mon Nov 5 04:34:23 2012 +0000 Add horrible tracking template; for each structure you'll want to create a separate tracker type by #defining __TRACKER_NAME and __TRACKER_GLOBAL_OFFSET. eg.: Then if you have a tracked value and a value of the same type at the given offset: Tracker_1 trackedInt; int32_t trackedIntDirty = 0; // 4 bytes after trackedIntDirty will become 1 everytime trackedInt changes. From-SVN: r3119 commit 7c1a03ab11ca76a8bf37948334ca01ce808ba47a Author: Evan Ramos Date: Mon Nov 5 03:48:03 2012 +0000 Tweak r3116. From-SVN: r3118 commit 154c43aa1bfbcd8bbf4700b29ec21b65818a3720 Author: Evan Ramos Date: Mon Nov 5 02:50:12 2012 +0000 Fix mixed declarations and code in backtrace.c. From-SVN: r3117 commit d30e5245d2aec4d515dc3e7bbf63438cb85da611 Author: Evan Ramos Date: Mon Nov 5 02:49:08 2012 +0000 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.) From-SVN: r3116 commit 6d530c0c5bc21a2551911a8422e9fc9cd71a98a1 Author: Richard Gobeille Date: Sun Nov 4 23:41:05 2012 +0000 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). From-SVN: r3115 commit de66baf82cc4f3ede4ceaaf6217da0fc16d6c237 Author: Philipp Kutin Date: Sun Nov 4 23:03:26 2012 +0000 engine.c: add bound-check assert failing for sprites in m32's textured 2D mode. Also, disable drawing sprites in that mode for now. From-SVN: r3114 commit caf50501709fc368589b0aba58ae3006f3145bcf Author: Philipp Kutin Date: Sun Nov 4 23:03:22 2012 +0000 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. From-SVN: r3113 commit ea8bfef147c42727831c59cf41bed2f97eb2b452 Author: Philipp Kutin Date: Sun Nov 4 23:03:16 2012 +0000 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. From-SVN: r3112 commit b3875ef11462b420c0ae17d4325c51db5485b35c Author: Philipp Kutin Date: Sat Nov 3 19:32:48 2012 +0000 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. From-SVN: r3111 commit aabe04f7f32df8fc95a76b278365db3db0527604 Author: Philipp Kutin Date: Sat Nov 3 19:32:45 2012 +0000 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. From-SVN: r3110 commit f81044a50e2546f87d2425a6a45301965070a086 Author: Philipp Kutin Date: Sat Nov 3 19:32:43 2012 +0000 Lunatic: update structures, find maps case-insensitively in findmaps.sh. From-SVN: r3109 commit 263055b6c4c451d0b8e753b629f154c806bd1999 Author: Philipp Kutin Date: Sat Nov 3 19:32:39 2012 +0000 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 ]. From-SVN: r3108 commit 7f911057573c748aeace116bacf4b76adb68c06a Author: Philipp Kutin Date: Sat Nov 3 19:32:35 2012 +0000 Lunatic: make geom.lua work standalone, fix __eq metamethods for dvec[23]_t. From-SVN: r3107 commit cdaacc30fdcaab8f4a73e781963e8f78432fac5a Author: Philipp Kutin Date: Sat Nov 3 19:32:32 2012 +0000 Mapster32: when punching loop, fade screen; tweak two messages. From-SVN: r3106 commit 833c08206ca5602371c4e5902551780dc0541dd6 Author: Richard Gobeille Date: Wed Oct 31 15:03:33 2012 +0000 Hopefully fix the projectile breakage, and add some predefined names for working with the built in statnums From-SVN: r3105 commit aa8539d91117e7ab249deabcb54e9f24ade2b356 Author: Richard Gobeille Date: Tue Oct 30 16:06:18 2012 +0000 Move win32 "Initialized nedmalloc" message out of the function that prints the Windows version since it doesn't really belong there. From-SVN: r3104 commit 8d1bbb712523a680cb3ad604bd4fd5dd3a743f51 Author: Richard Gobeille Date: Tue Oct 30 16:04:37 2012 +0000 A pretty useless fix from a newer version of kplib than we forked from. I'm just tired of seeing it in my tree. ;) From-SVN: r3103 commit 0e70415c0043c723492497e43bee5f42ee9f7428 Author: Richard Gobeille Date: Tue Oct 30 15:54:35 2012 +0000 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. From-SVN: r3102 commit ec9ebc8e51d91c0ee3ff6b248bc8051527a72306 Author: Evan Ramos Date: Mon Oct 29 04:29:45 2012 +0000 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. From-SVN: r3101 commit 196b720c590cdef16a1b886d206bcdb4705226ea Author: Evan Ramos Date: Mon Oct 29 04:29:17 2012 +0000 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. From-SVN: r3100 commit 0b2bad71f31066856fb96accd5965e4516df94d2 Author: Evan Ramos Date: Mon Oct 29 04:28:50 2012 +0000 Remove unused variable "doretry" from S_PlaySound(). From-SVN: r3099 commit fcc17bc4462bd444284343362fce0ff215ef6796 Author: Evan Ramos Date: Mon Oct 29 04:28:31 2012 +0000 Revise grpfiles[] to include the censored South Korean GRP. From-SVN: r3098 commit fbe06514c6f2a72b194a6b811464372a3eb1f930 Author: Evan Ramos Date: Mon Oct 29 04:28:10 2012 +0000 Fix harmless warnings in the Build tools. From-SVN: r3097 commit d81ac02d10078eb083e2a890aa872d5ca1851aed Author: Evan Ramos Date: Mon Oct 29 04:26:25 2012 +0000 Slight makefile reorganization and cleanup. * Centralize optimization strategies in Makefile.common. This required moving detection of $(PLATFORM), which makes sense if we work on the paradigm that Makefile.common is for generic compiler setup and Makefile.shared works with libraries and things closer to the engine and game code itself. * New Makefile variables OPTOPT (Optimization Options) and CUSTOMOPT (Custom Optimizations). OPTOPT by default contains -march, -mtune, etc. Setting this variable from Make invocation will blank these. CUSTOMOPT (Custom Optimizations) works the same but in an additive fashion, overwriting nothing. Technically CUSTOMOPT could stand for (Custom Options) and include any additional parameters sent to both linker and compiler. * Factor out literal names of the main executables. * The build process now prints assembler (if NOASM=0) and linker settings in addition to compiler settings. From-SVN: r3096 commit 4f588057eac8b8c946e1800ec0f9194a15f07683 Author: Richard Gobeille Date: Sun Oct 28 22:27:53 2012 +0000 WIP networking updates from Jasper Foreman From-SVN: r3095 commit d0a477bbe5ab047aa08598dab919ccf670bbfcf1 Author: Richard Gobeille Date: Wed Oct 24 13:21:02 2012 +0000 Comment out the A_GetZLimits() call right before the Bassert() in A_MoveSprite(). This call is a problem because the assertion expects "dasectnum" and spr->sectnum to match, but A_GetZLimits() can itself call A_SetSprite() which results in another call to A_MoveSprite() and can potentially change the sectnum again. This commit also adds the NOTELEPORT sprite flag, which of course prevents sprites from teleporting. From-SVN: r3094 commit 3fd24abd00eb8c79cd687ea7baab35647de7c68b Author: Pierre-Loup A. Griffais Date: Sun Oct 21 18:41:09 2012 +0000 polymer: only let emitshadow affect shadows, not lightmaps. Lightmaps are already opt-in anyway. From-SVN: r3093 commit a1a6cf665630a78bd3fdf88b2331e2f101118c8f Author: Pierre-Loup A. Griffais Date: Sun Oct 21 04:52:43 2012 +0000 polymer: add support for negative lights And hook them up to cstat 128 (half-submerged, 'c' in mapster). From-SVN: r3092 commit bdf602aefaea5e615abddf42357ad02292d3e86f Author: Pierre-Loup A. Griffais Date: Sun Oct 21 03:41:13 2012 +0000 polymer: add a prlight flag to make shadow-less spotlights And hook it up to SE cstat 64 ('1' in mapster32). This disables both lightmaps and shadow maps for the spotlight; please let me know if you have a usecase where you want lightmaps but no shadow maps for specific lights. From-SVN: r3091 commit 294be3e227b064b44fcddcb5b064e3f3700506c2 Author: Richard Gobeille Date: Sat Oct 20 15:58:06 2012 +0000 Remove a debug line I accidentally committed a few days ago. From-SVN: r3090 commit 449a2ed78ed0355b6c27afc0812061f2e2d9c686 Author: Richard Gobeille Date: Tue Oct 16 17:05:14 2012 +0000 Add some CON defines for friendly names to pass to definegamefuncname. Now, instead of "definegamefuncname 36 something" you would "definegamefuncname GAMEFUNC_TURNAROUND something". It's just a little something to make CON files more readable. From-SVN: r3089 commit 7ef483e63c867138c623c333d2f0f17d4e2e1baf Author: Richard Gobeille Date: Mon Oct 15 16:13:13 2012 +0000 Update xdelta3 to 3.0.4. I haven't actually tested these changes yet but they're directly from upstream. From-SVN: r3088 commit fe51359543ccff8a7b620d7aaec569d0bb2ca84b Author: Richard Gobeille Date: Mon Oct 15 00:38:41 2012 +0000 Oops! Fix MinGW build issue caused by ripping out nedmalloc From-SVN: r3087 commit cb4a40b5de31098244d72b3e76bf06d7d47e3ae7 Author: Richard Gobeille Date: Mon Oct 15 00:17:30 2012 +0000 Remove built-in copy of nedmalloc and update nedmalloc.dll. Note that the built-in copy of nedmalloc hasn't been updated or enabled in a really long time as modern system allocators (Windows 7 and Linux 3.x at least) are no longer consistently beat by nedmalloc (but nor are they consistently faster). So, the dll remains for users of Windows XP because it may still improve performance there (while not likely degrading it on Vista/7). From-SVN: r3086 commit 3561c0324d3678101726965ba94aa044f5807fb9 Author: Richard Gobeille Date: Sun Oct 14 22:22:03 2012 +0000 Move the Windows screen size based aspect ratio determination code down farther into the initialization and change the printed message to only appear when the calculation fails From-SVN: r3085 commit 94ee5bc86e2a2c94b114519f9100428ffd361e9f Author: Richard Gobeille Date: Sun Oct 14 22:16:07 2012 +0000 Minor menu cleanups, only half-finished (if that). From-SVN: r3084 commit 9a335de002870b6f44694f534d0011dbcf9f2aa8 Author: Richard Gobeille Date: Sun Oct 14 22:13:49 2012 +0000 A potential fix for MUSICANDSFX problems after loading a savegame. I was never able to reproduce the issue myself, but something like this seems like a good idea anyway. Thoughts? From-SVN: r3083 commit 59563efbeaec25b7bd9dd446e2e95d3580d4b067 Author: Richard Gobeille Date: Sun Oct 14 22:11:09 2012 +0000 actors.h updates needed for the networking changes I committed a few minutes ago From-SVN: r3082 commit d33cd81feb17c8bc1ec933ed22d70acdbe05bca6 Author: Richard Gobeille Date: Sun Oct 14 22:10:29 2012 +0000 Clean up a couple of functions, namely P_IncurDamage() From-SVN: r3081 commit bfb759695a5d0cf3180f366bdc9e8bd0d56ebab3 Author: Richard Gobeille Date: Sun Oct 14 22:09:16 2012 +0000 Remove some outdated/incorrect code that was causing some issues when multiple copies of a single sound were playing and just one of them needed to be stopped. From-SVN: r3080 commit 7450ea1cc90f87744ada46e0ac8622e4d3266778 Author: Richard Gobeille Date: Sun Oct 14 21:52:51 2012 +0000 Networking updates. Don't bother testing this to see if things are any better, because they aren't. :p From-SVN: r3079 commit c77d912d737e4b0de1d4f8200a730f8bdfae98de Author: Philipp Kutin Date: Sun Oct 14 20:41:34 2012 +0000 Texel-granular hitscan() for wall-aligned sprites. The attribute is set per tile from DEF: either texhitscanrange or tilefromtexture { ... texhitscan ... } (As a special case, the list may only contain "texhitscan", in which case the texture is not changed.) In passing, do some cleanup for "tilefromtexture" DEF parsing: the list tokens should now be accepted in any order, and errors don't appear in the middle of the list parsing. From-SVN: r3078 commit 068519cd2691b3f124e5464e1adc212b47c1bd0e Author: Philipp Kutin Date: Sun Oct 14 20:41:30 2012 +0000 Factor out 2x identical code into G_WeaponHitCeilingOrFloor(). From-SVN: r3077 commit be40c5dd7cbdd423f2bc64d13aed52fe1c79a962 Author: Philipp Kutin Date: Sun Oct 14 20:41:28 2012 +0000 Clean up G_MoveWeapons(), among other things getting rid of weird indentation. From-SVN: r3076 commit f599d1157790544a3a1305c3067352a9bc76d46b Author: Philipp Kutin Date: Sun Oct 14 20:41:25 2012 +0000 Clean up A_MoveSprite(), no functional changes. From-SVN: r3075 commit efd3aded4e95fb11c8e64ed3a027e60cdf335421 Author: Philipp Kutin Date: Sun Oct 14 20:41:23 2012 +0000 Rearrange G_MoveTransports() code a little to cut down on nested switches. From-SVN: r3074 commit 8191e627b1a2228d8fb8b61eb56f4b71e3dd313c Author: Philipp Kutin Date: Sun Oct 14 20:41:21 2012 +0000 Replace all/most literal SE lotags 1/2 with SE_1_ABOVE_WATER or SE_2_UNDERWATER. Also catch some other literal SEs and statnums. From-SVN: r3073 commit 26db7b3279900a866dae63d1789a7f5a2e68652a Author: Philipp Kutin Date: Sun Oct 14 20:41:17 2012 +0000 TROR: Prototypical no-SE7 water submersion/emersion. Submersion only happens when the upper sector has lotag 1 and its vertical neighbor has lotag 2 (this can be useful to create non-submergible above-water sectors). Currently, only the player is handled. On the implementation side, the water handling code is split into P_Submerge() and P_Emerge() preparing the "teleportation", and P_FinishWaterChange() for the finalization. From-SVN: r3072 commit 99ea649901ed86f5425142f90ef3eabe1972840c Author: Richard Gobeille Date: Sun Oct 14 18:18:30 2012 +0000 CON access to ud.runkey_mode through get/setuserdef From-SVN: r3071 commit 2b2953551560f66c771649a8b5cd8f5e8aedfeae Author: Richard Gobeille Date: Sun Oct 14 14:51:29 2012 +0000 Fix setting r_pr_maxlightpasses from .cfg at startup From-SVN: r3070 commit 09fe47cec09eb1ad60f418274586cbfeea3cf006 Author: Richard Gobeille Date: Sun Oct 14 14:43:37 2012 +0000 Add cvar "cl_runmode" to control ud.runkey_mode. This should fix the "allow walk while running" preference not saving. From-SVN: r3069 commit acc7a3488070ab38708baffabc5f5ab93f17f7bf Author: Richard Gobeille Date: Sat Oct 13 14:53:26 2012 +0000 Prevent Windows "case mismatch" spam when loading files from disk with the Windows Explorer "hide extensions for known file types" option enabled. This simply changes the relevant Bstrcmp() calls to Bstrncmp() calls instead, using the length of the string returned by SHGetFileInfo() as the number of bytes to compare. From-SVN: r3068 commit 91eea612a2346114ade99119853160785c99d99e Author: Richard Gobeille Date: Thu Oct 11 03:25:10 2012 +0000 Fix the bug I caused with custom projectiles :p From-SVN: r3067 commit 31549b1d51d00d905df7f4b9a334d9c4b4e36e3b Author: Richard Gobeille Date: Mon Oct 8 07:07:59 2012 +0000 The other half of the previous commit. From-SVN: r3066 commit 3860e8bdbadbe3e8c2f975c35716ea2851bf2617 Author: Richard Gobeille Date: Mon Oct 8 07:07:17 2012 +0000 Fix issue with explosion sound cutoff in E1L2. This implements functionality to stop playback and free up the voice of a currently playing sound of the same ID when there are already MAXSOUNDINSTANCES (currently 8) of the same sound playing, determined by distance/volume and which sound is oldest. Initial determination is based purely on distance/volume, and if two qualifying sounds have the same distance/volume the one which started playback first is the one that gets the axe. Feedback from other developers welcome. From-SVN: r3065 commit 2cb034503edf947bbe94335673a36483d960da9c Author: Philipp Kutin Date: Sun Oct 7 15:26:29 2012 +0000 Lunatic: expose updatesector*, add random walker as timing test for them. From-SVN: r3064 commit b6b6b5bc7a8456b64a410e0d6e94e00eb7fcbfe1 Author: Philipp Kutin Date: Sun Oct 7 15:26:24 2012 +0000 Lunatic: various tweaks and API changes/additions. From-SVN: r3063 commit 5c3ec9f7e407976ce8153fe2f1c6fef0db7210f0 Author: Philipp Kutin Date: Sun Oct 7 15:26:20 2012 +0000 Lunatic-m32: save command input history. From-SVN: r3062 commit ed447b21ed352b8447d493c5f0d0a4768f862b6b Author: Philipp Kutin Date: Sun Oct 7 15:26:17 2012 +0000 Clean up redundant/local function declarations in build.c. From-SVN: r3061 commit aee2f2c27516993ec4578c28a0a4d83a4dbae6b7 Author: Philipp Kutin Date: Sun Oct 7 15:26:13 2012 +0000 Lunatic: various tweaks. Going to extremes to avoid code duplication like the plague, but at least it's great to learn about the whole function environment business. From-SVN: r3060 commit 566555eec189de0bbd22fdf227e30195afd239bf Author: Philipp Kutin Date: Sun Oct 7 15:26:09 2012 +0000 Lunatic-m32: take over load path. From-SVN: r3059 commit 91264a6edea6c17889c56659791774daebd8a994 Author: Philipp Kutin Date: Sun Oct 7 15:26:04 2012 +0000 Lunatic-m32: add an OSD command to be able to interface with stuff. From-SVN: r3058 commit 314820a110eff60e8ad8fccf3bdb033bfebc1cac Author: Philipp Kutin Date: Sun Oct 7 15:25:58 2012 +0000 Lunatic: fix up Makefiles, split dynsymlists. The Makefile now has separate {GAME,EDITOR}LDFLAGS, so the correct dynamic symbol list can be specified. From-SVN: r3057 commit 60514fa2cd6c610debbd922142197107be80490b Author: Philipp Kutin Date: Sun Oct 7 15:25:52 2012 +0000 Lunatic: prototypical editor binding. From-SVN: r3056 commit f21622651ecc7b29acb546e373680f1abf8e5a9e Author: Richard Gobeille Date: Fri Oct 5 22:37:26 2012 +0000 Remove polymer-perf related lines from .gitignore From-SVN: r3055 commit 16a82fd7aecfd13aa7fc10937f63d2f6d1c0d37f Author: Richard Gobeille Date: Fri Oct 5 22:32:48 2012 +0000 Remove dead "polymer-perf" branch From-SVN: r3054 commit 6559a6834197a01a8180bc4de28d9cfa279181c2 Author: Richard Gobeille Date: Fri Oct 5 20:48:10 2012 +0000 Minor cleanups in actors.c, mostly relating to custom projectiles and the like. A bug causing custom projectiles to knock the player back twice as far as the hard-coded ones was also fixed. There should be no other functional changes for the end user. From-SVN: r3053 commit bddbe5a6ef69fff47b35ef073bc7677bd2821d91 Author: Philipp Kutin Date: Wed Oct 3 15:29:12 2012 +0000 In savegames, store dummy constant-length block instead of a _prlight array. sizeof(_prlight) differs across compilers, and besides, Polymer lights were not loaded anyway (they're restored live in-game later). The savegame version was not bumped, but only savegames made with builds where sizeof(_prlight)==261 (like synthesis) will stay compatible! Report and helpful debugging information by LeoD. From-SVN: r3052 commit 47b2ebf092c9d14e5de1c0ad37277f6d87354a89 Author: Philipp Kutin Date: Wed Oct 3 15:29:10 2012 +0000 In DNCOORDS display, add spritebridge and sbs. From-SVN: r3051 commit c6fd796a3ffc92b2cfc0f1097c37e05ef3df2347 Author: Philipp Kutin Date: Wed Oct 3 15:29:07 2012 +0000 On non-{Windows, OS X}, don't link to libpng when PNG support is not requested. From-SVN: r3050 commit 62e2e9f4c00b2f85d6dffd57a6ff3afef2866f8b Author: Philipp Kutin Date: Mon Oct 1 17:52:52 2012 +0000 Add helper program profdemo.lua, running EDuke32's demo profiling N times. ... and displaying statistics afterwards. It was easier to do it this way than porting stat.lua to C and especially adding more logic to the already spaghetti-like demo playback code. From-SVN: r3049 commit 2ec3cc649c9b4afb73b6c606a62c730f84e0ca8b Author: Philipp Kutin Date: Mon Oct 1 17:52:49 2012 +0000 In Load Game menu, show 32- or 64-bitness of save game on mismatch. From-SVN: r3048 commit 9615ac3e180797b7528b1f557f10e086b2bbc484 Author: Philipp Kutin Date: Mon Oct 1 17:52:47 2012 +0000 Mapster32: make 'corruptcheck_noalreadyrefd' a separate OSD command. Instead of having 'noalreadyrefd' as a 'corruptcheck' subcommand. This way, TAB completion can be had. From-SVN: r3047 commit e2fab7abff404f046af554827ca5c3b6e5d8e137 Author: Philipp Kutin Date: Mon Oct 1 17:52:44 2012 +0000 Mapster32: factor out some code (3x) into GetSaveBoardFilename(). From-SVN: r3046 commit 4947b58a3161dcbfa36514d62a449ef4553e7ceb Author: Philipp Kutin Date: Mon Oct 1 17:52:40 2012 +0000 In -d command line arg, allow specifying demo number in addition to file name. From-SVN: r3045 commit 6aafe2c2e07bf6f12e6144390fa7d12d84e6fa40 Author: Philipp Kutin Date: Mon Oct 1 17:52:37 2012 +0000 Factor out prepare/finish parts from load{old,}board(), misc. cleanup. This means that loadoldboard() now should also initialize Polymer map info after loading a v5/v6 map. Make the variables holding a file descriptor an int32_t instead of int16_t. From-SVN: r3044 commit 68b10cb512f026d44efb00c98c2cc693b805c58f Author: Philipp Kutin Date: Mon Oct 1 17:52:34 2012 +0000 Rip out v5/v6 map definitions and routines into src/engine_oldmap.h. From-SVN: r3043 commit 3264e3f628e97e152b3800796bfb923821d458b7 Author: Philipp Kutin Date: Mon Oct 1 17:52:30 2012 +0000 For loadboard() and friends, pass a vec3_t position instead of separate x/y/z. From-SVN: r3042 commit d15f1a49ea73cd7065c6fddbbde4cca496636e7d Author: Philipp Kutin Date: Mon Oct 1 17:52:25 2012 +0000 A bit stylistic Polymost code cleanup. From-SVN: r3041 commit 90ab25463fb2155c7f3e47ea456ee5099896931e Author: Philipp Kutin Date: Mon Oct 1 17:52:22 2012 +0000 Add compilation switch MODEL_OCCLUSION_CHECKING to polymost.h, leave it enabled. From-SVN: r3040 commit 11b4802b85cbe89b3d2bc83d4c6cf5ac881e2aff Author: Philipp Kutin Date: Mon Oct 1 17:52:18 2012 +0000 Remove last argument from yax_getneighborsect(), make radarang[] engine.c-local. From-SVN: r3039 commit 6e1a41412af6eb8e83e6f8b457b5a602b815d48e Author: Philipp Kutin Date: Mon Oct 1 17:52:13 2012 +0000 A couple of inside()-related cleanups. - make inside_editor() static in build.c - replace comparisons of inside()'s return values with 0 by ones with 1 (since a returned 0 can mean -1 or 1, i.e. oob sector or is really inside) - prevent a theoretically possible oob access in correct_ornamented_sprite() From-SVN: r3038 commit 36db0d2ba8be9235e76d1ef0d4516aaa201640f3 Author: Philipp Kutin Date: Mon Oct 1 17:52:09 2012 +0000 Clean up updatesector* family, no functional changes. - factor out the "is inside" predicates - rename updatesector_onlynextwalls() -> updatesectorbreadth() - add ATTRIBUTE((nonnull(4))) to the bitmap arg of updatesectorexclude(). From-SVN: r3037 commit 749065ad535adc5ab99f255c1fc988c224002df8 Author: Richard Gobeille Date: Mon Oct 1 05:37:31 2012 +0000 Update ENet with the latest changes from github From-SVN: r3036 commit 65747e7bd348f97cc7cd3f57ad4eae7c8d498a9d Author: Richard Gobeille Date: Sun Sep 30 14:40:42 2012 +0000 Fix a.masm changes so MSVC builds work again. The relevant functionality seems to work (non-power of 2 textures drawn without error), even with CLASSIC_NONPOW2_YSIZE_WALLS defined in engine.c, but I'm not familiar with any corner or edge cases that need to be watched out for with this. Note: CLASSIC_NONPOW2_YSIZE_WALLS is still not enabled in svn. From-SVN: r3035 commit 86fbffc6ef81e8061362efb34dc08ee8a1f63ef5 Author: Philipp Kutin Date: Fri Sep 28 15:20:13 2012 +0000 engine.c: Split CLASSIC_NONPOW2_YSIZE into _WALLS and _SPRITES, enable the second From-SVN: r3034 commit 2ea21bd477152147342b4627e6a7342ccd546a0d Author: Philipp Kutin Date: Fri Sep 28 15:20:10 2012 +0000 Port non-pow2 ysize texture mapping routines to MASM, untested. It's mostly taking over the NASM code, with a couple of changes: - declarations for externals and globals are slightly different - the masm seems to have e.g. "dword ptr [...]" where the nasm has only "dword [...]", though the masm also has a couple of the latter. The "ptr" modifier seems kinda redundant to me, but I added it to every indirection anyway. From-SVN: r3033 commit 911f481e759e51dfe5672242d99542876010d376 Author: Philipp Kutin Date: Fri Sep 28 15:20:07 2012 +0000 a.nasm: add 'dword' to some stores in the nonpow2 routines for consistency. From-SVN: r3032 commit ef5c5011ea691ce2decd8334eb80e23e63d241d9 Author: Philipp Kutin Date: Fri Sep 28 15:20:03 2012 +0000 engine.c: add compilation switches for non-pow2 ysize functions, disable for now. Previously, we used them in our builds for sprites, but MSVC builds don't have the ASM ported to MASM, and thus the workaround of ignoring the linking errors was not safe. From-SVN: r3031 commit 99392a95eb4beae2b6f8cade473ddd67e88e553e Author: Philipp Kutin Date: Wed Sep 26 22:54:01 2012 +0000 foreachmap.lua: add option of only printing matching file names (like grep -l) Also, add convenience wrapper script findmaps.sh for quickly searching for sprites/walls/sectors satisfying a certain condition in all map files under a given directory. From-SVN: r3030 commit 8ef0a45e3399aac2562a8c330b3b0e884ab66ad4 Author: Philipp Kutin Date: Wed Sep 26 22:53:57 2012 +0000 Mapster32: add check for sprites being out of the maximal grid range (+-524288). Requested auto-correction will place such sprites at their sector's first point. From-SVN: r3029 commit b137311e789d6a2a01e7c5b9a0ad120640fc91e7 Author: Philipp Kutin Date: Wed Sep 26 22:53:53 2012 +0000 Revert "Abyss crash prevention code", but make the overflow explicit. From-SVN: r3028 commit 965200a75b427227b628e5f3cb629685d574d7b6 Author: Philipp Kutin Date: Mon Sep 24 21:09:37 2012 +0000 Disable spot lights on ATI cards, fixing the recent crashes with Catalyst 12.8. From-SVN: r3027 commit 527009001a53baed614cac613adea310798b64e4 Author: Philipp Kutin Date: Mon Sep 24 21:09:34 2012 +0000 Fix compilation on Debian 6.0 (Squeeze). From-SVN: r3026 commit a11fa0897f43aee14bac47800b5798ddfd74c925 Author: Philipp Kutin Date: Mon Sep 24 21:09:31 2012 +0000 Revert r2223's removing of bit 1 making it to setbrightness(), now a noop. Hendricks found a bug caused by that commit, so this one enables exprimentation with setbrightness() bit 1 behavior. From-SVN: r3025 commit 9cc77ce73a8fb63fb7120f07660311e7be150978 Author: Philipp Kutin Date: Mon Sep 24 21:09:27 2012 +0000 Add the option of starting demo profiling from the command line. EDuke32 will exit afterwards. From-SVN: r3024 commit 3ca929642e24f9ff75efd1423b28241b111948cb Author: Philipp Kutin Date: Mon Sep 24 21:09:22 2012 +0000 foreachmap.lua: add shortcut for quickly finding certain sectors/walls/sprites. From-SVN: r3023 commit 8555ed319fae61c8a44340ff29a85fa9d627ed0f Author: Philipp Kutin Date: Sat Sep 15 15:28:30 2012 +0000 With SDL 1.2 builds, make the profiling be cancelable by pressing any key. From-SVN: r3022 commit 0096fe7a4cb40eb80324e56acc04cdec5f5ad5a8 Author: Philipp Kutin Date: Sat Sep 15 15:28:26 2012 +0000 Add a profiling option to the 'demo' OSD command. See the comment in source/osdcmds.c for instructions on its usage. From-SVN: r3021 commit 15f82ecccfc5c7d6740023661a4980532e97850d Author: Philipp Kutin Date: Sat Sep 15 15:28:21 2012 +0000 Fix aspect determination from showview in fullscreen mode. This makes the splitscreen mod not have a ridiculous view distortion. Such scenes will have no correction for non-square pixels, though. From-SVN: r3020 commit 117683cc8ef0da67102e0f370706a5ef752cb55c Author: Evan Ramos Date: Thu Sep 13 07:08:20 2012 +0000 Remove old backtrace DLLs. For some time they have been unused and supplanted by ebacktrace1.dll. From-SVN: r3019 commit 5c124a877cb8089e1aba5ebaf494f249735d2088 Author: Evan Ramos Date: Thu Sep 13 07:07:54 2012 +0000 Add detection of Windows 8 and Server 2012 to win_printversion(). From-SVN: r3018 commit d2b248ee63f968a0d5dd98aff20248d7b07f0594 Author: Evan Ramos Date: Thu Sep 13 07:07:21 2012 +0000 Fix three (probably harmless) maybe-uninitialized warnings. From-SVN: r3017 commit c9e6e81e385b3bd95969879c3f7f32ae9ce76daf Author: Evan Ramos Date: Thu Sep 13 07:06:47 2012 +0000 patch from jfmact: "added c++ trimming to header" mathutil.h From-SVN: r3016 commit b1b2fe90e56304b3332d15e254873536e6e97ef7 Author: Evan Ramos Date: Thu Sep 13 07:06:11 2012 +0000 Revise EVENT_CHANGEWEAPON so that RETURN has no effect except for two values. -1 will cancel the weapon switch. -2 will override the switch to whatever value p->curr_weapon is set in the course of the event. While we're at it, factor out duplicate code into P_ChangeWeapon(). From-SVN: r3015 commit 2125103810ac66b020034a3a36a76663f5f332e8 Author: Evan Ramos Date: Thu Sep 13 07:02:56 2012 +0000 Possible fix for saving the "Fav priority" autoswitch setting. From-SVN: r3014 commit a525b6d3f1effa367c7dab55e97b3b2728bb9a59 Author: Philipp Kutin Date: Wed Sep 12 09:48:31 2012 +0000 SE17 setup: when failing to find warp z height for lower level, use heuristic. Specifically, use the elevator's own ceiling z height instead of searching nextsectors with nextsectorneighborz(). This makes maps like L9.map (Spaceport from N64) or DEMOUNT.MAP work. [Note well: work at all, since if it happened to work before, that was pure coincidence.] From-SVN: r3013 commit c9f65329f192c97e73e1231d23466a3b336f49db Author: Philipp Kutin Date: Wed Sep 12 09:47:26 2012 +0000 __fastcall int32_t getangle -> int32_t fastcall getangle. Might fix MSVC build. From-SVN: r3012 commit 47d5310ae263350693ece69a68cc6731c260f46f Author: Philipp Kutin Date: Wed Sep 12 09:46:21 2012 +0000 Replace some literal statnums with the corrensponding STAT_... From-SVN: r3011 commit 90d84ddbb07eb2bceb9be228f28bb031369a3bd0 Author: Philipp Kutin Date: Wed Sep 12 09:45:14 2012 +0000 Replace some more literal SE numbers, rename a couple of functions. From-SVN: r3010 commit f0a5571bc8fa44edc4278d9202f4f0b31aa9b88b Author: Philipp Kutin Date: Sat Sep 8 22:18:47 2012 +0000 STHELP.HLP/SEHELP.HLP: reference SE11 and ST23 from each other. From-SVN: r3009 commit 76c09d20e76d7351f6b2d919842b315c186912b2 Author: Philipp Kutin Date: Sat Sep 8 22:18:44 2012 +0000 Replace most other literal SEs/STs by symbolic enumeration values. Have fun researching Duke3D's hardcoded weirdness!!! From-SVN: r3008 commit 705d27c6020d9dfc3f67f4cc048e541183b54faf Author: Philipp Kutin Date: Sat Sep 8 22:18:40 2012 +0000 Clean up some timing-related code. - duke3d.h: comment the timing marcos a bit more - factor out smoothratio calculation - (TICRATE/TICSPERFRAME) --> REALGAMETICSPERSEC From-SVN: r3007 commit c4c83bda44bb742ab4cf16f6ac1c7dcc3304a38e Author: Philipp Kutin Date: Sat Sep 8 22:18:37 2012 +0000 New OSD cmd: demo , starting one instantly from the menu. Also, correct some comments made in the demo source made earlier. Oops. From-SVN: r3006 commit 276bc504bfe3f236460a60a192b885f96b4d5f68 Author: Philipp Kutin Date: Sat Sep 8 22:18:34 2012 +0000 Move enum cheatindex_t from game.c to game.h and use its values in osdcmds.c. From-SVN: r3005 commit da6fd68087386cbb3cf8d8dfb2cc7a451f6cb98e Author: Philipp Kutin Date: Sat Sep 8 22:18:31 2012 +0000 OSD command 'map': entering a name with a '*' wildcard lists those that match. A new function maybe_append_ext() is added to common.c and used in the handling of the -d cmdline parameter and the 'map' OSD command with one non-wildcard arg. (It's slightly different from the way the extension was maybe-appended previously.) From-SVN: r3004 commit 72846d2aa5f89de3e4f4685c546aff63d8656def Author: Philipp Kutin Date: Sat Sep 8 22:18:28 2012 +0000 Make demos be named edemoXXX.edm, XXX ranging from 000 to 999. Also, don't stop playback cycling at the 10th demo and show the demo number when beginning to record one. From-SVN: r3003 commit b40b278dcfb6a5a751373d82e266fdf94546027c Author: Philipp Kutin Date: Sat Sep 8 22:18:26 2012 +0000 Fix entering the game from within a demo, but don't enable it. From-SVN: r3002 commit bfcd789378e184a7340fe7e62c4783ad03110178 Author: Philipp Kutin Date: Sat Sep 8 22:18:22 2012 +0000 demo.c: minor cleanup; comment the G_PlaybackDemo() a little. From-SVN: r3001 commit e16f0425a8495a081a51b43ec24565c04b6348a0 Author: Philipp Kutin Date: Wed Sep 5 17:25:47 2012 +0000 Add macro CON_ERRPRINTF(Fmt, ...) and use that everywhere. From-SVN: r3000 commit 03f0c94af6c2621d33fc481a25a930bdd8aefd6f Author: Philipp Kutin Date: Wed Sep 5 17:25:43 2012 +0000 Factor out some repeated code into G_{Load,Save}PlayerMaybeMulti. This currently says that MP saving/loading isn't supported, but doesn't really work correctly. Also, properly bound-check the immediate argument to CON's 'save' command and one more ... -> G_HandleAsync(). From-SVN: r2999 commit df4167af8a45f691f7a396c3c9ece7f6ae25dc10 Author: Philipp Kutin Date: Wed Sep 5 17:25:40 2012 +0000 Use Bstrncpyz in 1 place; fix displaying err msg if write-opening savegame fails From-SVN: r2998 commit ccf616464c18d81f4e477a825feccee2d74beca4 Author: Philipp Kutin Date: Wed Sep 5 17:25:37 2012 +0000 Factor out snprintf'ing a maybe-modDir'd file name into macro G_ModDirSnprintf(). ... and use it in three places. In two of these uses, 1) CON {read,write}arrayfromfile and 2) G_SavePlayer, display an error message if the file name such generated is too long. In the CON commands of 1), also error out if the file couldn't be opened. From-SVN: r2997 commit d70e34f945ee1302d09f9dbb007b890a06534659 Author: Philipp Kutin Date: Wed Sep 5 17:25:34 2012 +0000 Move G_HandleAsync() into game.h as 'static inline' and use everywhere else. From-SVN: r2996 commit e100be48f6f7e124c38c8bf749f0620f1b077ee0 Author: Philipp Kutin Date: Wed Sep 5 17:25:31 2012 +0000 Fix crash when recording demo, stooping it, going to title screen, and exiting. A macro MAYBE_FCLOSE_AND_NULL(fileptr) is introduced in compat.h that does what it says. From-SVN: r2995 commit f51a3d7b3433c73a06e8ff900b253035b5690bf2 Author: Philipp Kutin Date: Wed Sep 5 17:25:26 2012 +0000 Demo: rename some functions for new-style conventions, functionize one marco... From-SVN: r2994 commit 408bdc936dd0db8359e53156e74599cebed55941 Author: Richard Gobeille Date: Sun Sep 2 14:30:32 2012 +0000 Rename a couple functions local to actors.c, remove IFHITSECT macro. This is mostly a test commit to make sure our CIA.vc script is properly updated now. From-SVN: r2993 commit 10ec5295c165e9d9051802362c081835bc3cc4e0 Author: Philipp Kutin Date: Sun Sep 2 14:13:06 2012 +0000 compat.h: tweak indentation of some preprocessing directives. From-SVN: r2992 commit 503ce71d5f67dc96d13ede580fec21c3aa479e44 Author: Philipp Kutin Date: Sun Sep 2 14:12:01 2012 +0000 Make getangle() a __fastcall function instead of static inline. This trims four 4k pages of code from the release EDuke32 build and one page from Mapster32. From-SVN: r2991 commit a0e2224bf2c60b6452b5f382d4368af25b333d5b Author: Philipp Kutin Date: Sun Sep 2 14:10:55 2012 +0000 In dosetaspect(), bail out calculating radarang2[] instead of failing assertion. When this happens, parallaxmodes other than 0 will be unavailable and silently draw as parallaxmode 0. This usually happens with extremely wide resolutions. From-SVN: r2990 commit 0ac6eb2542eb3835a7f04fbc898fd230c1f099d5 Author: Philipp Kutin Date: Sun Sep 2 14:09:49 2012 +0000 Add lunatic/test/tables.lua, which was used to compare the calc'd sin/atan values. From-SVN: r2989 commit 69eda9901667248f5a00f918a6492253e444a0c0 Author: Philipp Kutin Date: Sun Sep 2 14:08:43 2012 +0000 Calculate sine and arctan tables, getting rid of TABLES.DAT dependency. We're pulling stuff from math.h even in non-GL builds right now, so adding libc's sin() and atan() doesn't seem like a big deal. In the unlikely event that their accuracy is so bad that the calculated tables don't match the original ones, a warning is issued on little-endian platforms. From-SVN: r2988 commit aa3067aed599491f75b91944d5ae88bfb6470352 Author: Philipp Kutin Date: Sun Sep 2 14:07:36 2012 +0000 Move #define PI from to build.h, add bound-checking assertion in dosetaspect(). From-SVN: r2987 commit c9bca7b887c0b4cc7341a8bf934ba614937c6eb4 Author: Philipp Kutin Date: Sun Sep 2 14:06:30 2012 +0000 Some [U]INT_MAX --> [U]INT32_MAX. From-SVN: r2986 commit 8ea245959e2de5b2b408664fe5977798760e434e Author: Philipp Kutin Date: Sun Sep 2 14:05:23 2012 +0000 Move #include from polymer.h to polymer.c. From-SVN: r2985 commit 7d240b1cd9dc2ee525f83b27b0a0263381f586b5 Author: Philipp Kutin Date: Sun Sep 2 14:04:16 2012 +0000 Clean up A_FindPlayer(), constify some function args, some 0x7fffffff->INT32_MAX From-SVN: r2984 commit 462e9eacecbef349293f052daa1904f20014e920 Author: Philipp Kutin Date: Sun Sep 2 14:03:10 2012 +0000 player.c: factor out 7x similar code into GetAutoAimAngle(). This is one of the cases where the duplicated code has minor modifications at each site. These are handled by function args here. From-SVN: r2983 commit 4a1985ffa4cf9e187ab61f8d0df14d8dc1ca20a1 Author: Philipp Kutin Date: Sun Sep 2 14:02:04 2012 +0000 Remove commented out AI Duke opponent code. From-SVN: r2982 commit b96100a0bdf0ec986366207cb7ccb9db005a0987 Author: Philipp Kutin Date: Sun Sep 2 14:00:58 2012 +0000 Remove some #if 0 blocks that are probably of no interest any more. For reference, they are the following: - cache1d.c: suckcache() - build.c: compare_wall_coords() - make switch-invisible heuristic - Mapster32: old sprite search - Mapster32: manual z range - m32script: read/writearray, qgetsysstr - menus.c: savetemp() From-SVN: r2981 commit b268da3ee40f6ffa9fddfdbb477d5cd811a3ca5a Author: Philipp Kutin Date: Sun Sep 2 13:59:50 2012 +0000 player.c: factor out inline checks for shootable switch picnums. From-SVN: r2980 commit 69fb9f403f943233066bd67758d41d24a5f037ab Author: Philipp Kutin Date: Sun Sep 2 13:58:45 2012 +0000 player.c: factor out multiple instances of a 3-liner into A_SetHitData(). Playing around with Coccinelle's semantic patches... be prepared for more. From-SVN: r2979 commit 7ae1dad14b43ae91874f9c9070630467027ba286 Author: Philipp Kutin Date: Sun Sep 2 13:57:39 2012 +0000 Remove some unneeded NULL checks. Found by http://coccinelle.lip6.fr/rules/notnull.cocci From-SVN: r2978 commit 4c43f255df733665c980d30a844166c7f11181d0 Author: Philipp Kutin Date: Tue Aug 28 21:42:49 2012 +0000 Fix "shooting" tripbombs from non-players such as the SE shooter. Well, this never worked anyway, but invoking demons flying out of your nose is never a good idea. From-SVN: r2977 commit 50ed1fa5ebb9157ae82a813df477e72e515e271e Author: Evan Ramos Date: Mon Aug 27 03:53:59 2012 +0000 Modify EVENT_CHANGEWEAPON so that it actually serves a purpose. Instead of being triggered before curr_weapon is changed, with nothing used for input or output with RETURN (meaning you could not cancel), now RETURN is set to the prospective new weapon ID and you can change it or cancel it in the event. Note that since setting RETURN did nothing before, there is no backwards compatibility to uphold. Therefore, setting RETURN to 1 will cause the pistol to be selected, not disable the event. Set RETURN to -1 to cancel switching. From-SVN: r2976 commit 2dc02ae466d952cc8ad85d0f29b7dc91f3c8f713 Author: Evan Ramos Date: Mon Aug 27 03:52:38 2012 +0000 Expand "Switch weapons on pickup" to three options: "Off", "All weapons", and a new one, "Fav priority". It switches to the weapon you have just picked up only if it is ranked higher in the favorite weapon hierarchy using the "-u" parameter. Suggested at: http://forums.duke4.net/topic/5667-tiny-request/ From-SVN: r2975 commit 3c434b767cef7cce658165f40f2a2a5f084ebd71 Author: Evan Ramos Date: Mon Aug 27 03:51:17 2012 +0000 The Build tools no longer link with SDL or SDL_mixer because they don't need to. Fix for: http://forums.duke4.net/topic/5392-mkpalette-fails-to-build/page__view__findpost__p__132791 From-SVN: r2974 commit 2ce5eaf6f86995a85155ebe7c65b0001b06c4895 Author: Evan Ramos Date: Mon Aug 27 03:49:55 2012 +0000 Add EVENT_PREGAME. Now all sprites are processed in the following fashion: 1. EVENT_PREGAME 2. hardcoded stuff 3. EVENT_GAME One potential use is to examine values which are clobbered by commands such as ifhitweapon/ifwasweapon. From-SVN: r2973 commit 61fd8aea5b5eb43cbd0542c21a3fac2317eaae21 Author: Evan Ramos Date: Mon Aug 27 03:48:27 2012 +0000 Disable questionable lines from Makefile.common that were causing my build system to deep crash. From-SVN: r2972 commit 602aba1fab8050a56bc7f867e61c088e4a4aa3e2 Author: Philipp Kutin Date: Sun Aug 26 22:17:14 2012 +0000 Quit the game if SE17 (warp elevator) setup fails. The spawn-time SE 17 setup uses nextsectorneighborz() which can fail (return -1) on some circumstances and would cause an OOB sector[] access. From-SVN: r2971 commit 6e81e8787d68a7d90137083e4bd5edca9912535e Author: Philipp Kutin Date: Sun Aug 26 22:16:08 2012 +0000 Replace some literal numbers denoting SEs/STs by symbolic enumeration values. From-SVN: r2970 commit bf01575a2b396fdc9e6632d049db6cf23ac87a09 Author: Philipp Kutin Date: Sun Aug 26 22:15:02 2012 +0000 engine.c: rewrite nextsectorneighborz() for clarity. From-SVN: r2969 commit 2c8cf0dc210f61309912f0384fb0a92c7912b1aa Author: Philipp Kutin Date: Sun Aug 26 22:13:57 2012 +0000 build.lua map loader: add the option of canonicalizing sprite order. This is mostly for debugging, since currently, Mapster32 restores sprites not in the same order as the original sprite index order. Also, expose this option from map2text.lua and mapdiff.sh. From-SVN: r2968 commit d8abf7627026863f36eaf932687b3f68b8869d0d Author: Philipp Kutin Date: Sun Aug 26 22:12:51 2012 +0000 foreachmap.lua: add -e"some code..." switch to execute code from the cmdline. From-SVN: r2967 commit f03cccb17ec1ab9b949e301c14b73eeffdf38835 Author: Philipp Kutin Date: Sun Aug 26 22:11:46 2012 +0000 build.lua: add 'numbunches' field to map loader. From-SVN: r2966 commit a6d0234c863f09132ad83c19c3b82c53d04cae70 Author: Philipp Kutin Date: Sun Aug 26 22:10:40 2012 +0000 Mapster32: for c&p-ing map portions w/o TROR, fix wrongly resetting wall lotag/extra From-SVN: r2965 commit ad43b1c0d4b025e4a2ba381af3580460016a3513 Author: Philipp Kutin Date: Sun Aug 26 22:09:34 2012 +0000 Add map2text.lua and helper script mapdiff.sh. From-SVN: r2964 commit de00b5c3ba1ce6e5246a3fa8e47d57bbc7be9214 Author: Philipp Kutin Date: Sun Aug 26 22:08:27 2012 +0000 Mapster32: for copy-pasting map portions without TROR, fix wrongly resetting xpanning. This is really an artifact of overloading the sector fields for different uses. For copy-pasting TROR'd portions, the bug still persists. From-SVN: r2963 commit 58f28c044d6c44139075087e6686ea0314dd8cb7 Author: Philipp Kutin Date: Fri Aug 24 18:55:06 2012 +0000 On Linux build without startup GUI, don't save ModDir to config. From-SVN: r2962 commit 7ef1eff63931154760ec1b2cbe5e5c995d2c96ad Author: Philipp Kutin Date: Fri Aug 24 18:54:01 2012 +0000 A couple of trivial changes. From-SVN: r2961 commit b5703382cac035c3fb699394b65ca8f9ee5676a6 Author: Philipp Kutin Date: Fri Aug 24 18:52:55 2012 +0000 Fix stack corruption when demo was attempted to be written with non-empty mod dir. From-SVN: r2960 commit 588df2f4748d90cf3c8741ed2c3bab265c51ccd1 Author: Philipp Kutin Date: Fri Aug 24 18:51:49 2012 +0000 If r_screenaspect is 0 (or any other invalid value), assume square pixel aspect. From-SVN: r2959 commit c0d702642c73bf0aea677a1ff10340bf0c8bbe34 Author: Philipp Kutin Date: Fri Aug 24 18:49:13 2012 +0000 osxbuild.sh: add 'debughelix' preset, building only x64 debug packages. From-SVN: r2958 commit e68d0b9cfbd7b65040f1422a60a57e16fc16a7e9 Author: Philipp Kutin Date: Wed Aug 22 22:51:38 2012 +0000 Pack how many players fake multi was started with into g_fakeMultiMode. From-SVN: r2957 commit bec6dd3e409a63ae214466abbe9ba631d800f771 Author: Philipp Kutin Date: Wed Aug 22 22:50:32 2012 +0000 splitscreen: don't wrongly change pitch for sounds originating from 2nd player. For example, if the first one is underwater. From-SVN: r2956 commit 7d0625c5abca1f50ab45b6bbfba226287e998403 Author: Philipp Kutin Date: Wed Aug 22 22:49:27 2012 +0000 splitscreen: tweak base palette application, remove resp. code from splitscr.con. Basically, base palettes with lower indices trump higher ones. For example, when one player is underwater and the other above, the normal palette takes precedence. From-SVN: r2955 commit 4a9194f0b870275d2f5ffa8a3e16621978e4f67f Author: Philipp Kutin Date: Wed Aug 22 22:48:21 2012 +0000 Generalize fullscreen tint application to more than one tint. Currently, the only kinds of tint that can be applied simultaneously are one "palfrom" per player, plus one loogie tint per player. Each palfrom still overrides the preceding one. However, this is not a big problem IMO since palfroms decrease at the same rate (loogie tint decreases at half the speed). This change is especially good for the splitscreen mod, since now the tints of the two players won't compete with each other. See the comment in the source for some properties of the blending formula. From-SVN: r2954 commit 69076a2ce5c7fc47eacb9f084c0f90358b15ecb9 Author: Philipp Kutin Date: Wed Aug 22 22:47:16 2012 +0000 Don't clear loogie tint transiently on changing palette. From-SVN: r2953 commit cd52a7496be0efd616825d950ec6707b08f3e4af Author: Philipp Kutin Date: Wed Aug 22 22:46:09 2012 +0000 Keep full-screen tints through palette changes again. A debug macro to test tints being stuck at the least intense non-zero value is provided in engine.c. From-SVN: r2952 commit 713e3b8811798d45bf7a13e6dfa9e4afebe593bd Author: Philipp Kutin Date: Tue Aug 21 17:40:05 2012 +0000 Make a colored REACTOR/REACTOR2 sprite disappear in single player again. Noted by Nukey. See Duke3D 1.5 GAME.C line 4220. From-SVN: r2951 commit 3e78a93a719d3e4931b0893f98b73eb504341f99 Author: Philipp Kutin Date: Tue Aug 21 17:39:00 2012 +0000 splitscreen: print "reserved" quotes in the upper half of the screen. Reverved quotes are ones like "Killed by xxx". Since they're only shown for the first player for now, printing them in the upper part makes more sense (in above/below split, the first player is above). From-SVN: r2950 commit 2b888e8b9fe0cced144f8cbb3d736dd8f5894096 Author: Philipp Kutin Date: Tue Aug 21 17:37:54 2012 +0000 splitscreen: tweak weapon selection to do the expected thing for shrinker/grower. From-SVN: r2949 commit d61398dfb108cac7c05e0bbc96d9964c93baf288 Author: Philipp Kutin Date: Mon Aug 20 21:32:11 2012 +0000 Print quotes for both players in fake multi, remove quote code in splitscr.con. From-SVN: r2948 commit 61e85debfb69e6936cfc7aaaf802e0294f9c9806 Author: Philipp Kutin Date: Mon Aug 20 21:31:05 2012 +0000 game.c: clean up G_PrintGameText() a little. From-SVN: r2947 commit 902bba708566f720ae72309d919040fddbc58d6b Author: Philipp Kutin Date: Mon Aug 20 21:30:00 2012 +0000 game.c: clean up G_PrintGameQuotes(). From-SVN: r2946 commit b3e9153b6b7031c558aa2fe52190b8ba83feb5e8 Author: Philipp Kutin Date: Mon Aug 20 21:29:54 2012 +0000 splitscreen: handle crosshairs for above/below split and regard crosshairscale. From-SVN: r2945 commit 22396f9ec1180b90cd98756a6b42e958dab5b62a Author: Philipp Kutin Date: Mon Aug 20 21:28:48 2012 +0000 splitscreen: support for above/below screen split. To enable it, the HUD-less (maximized) screen size must be selected. From-SVN: r2944 commit 60582a5bb59ddb4d5a972a4abdad36e39b6d61ee Author: Philipp Kutin Date: Mon Aug 20 21:27:42 2012 +0000 Mapster32: properly reset highlights in undo/redo. From-SVN: r2943 commit 3e9d82f3eb547c66ddf489f2bd3cc389501b253d Author: Philipp Kutin Date: Mon Aug 20 21:26:36 2012 +0000 Mapster32: with highlighted sectors, print rot. angle; Alt + [,]: manual angle. Because rotating sectors "smoothly" by 1 BUILD ang will quickly accumulate roundoff error, this lets the user first do that as a preview and then use the manual angle rotation do carry it out for real. From-SVN: r2942 commit 131971b0acdfc3176bdf062f6587188468ec280a Author: Philipp Kutin Date: Mon Aug 20 21:26:00 2012 +0000 Mapster32: use the rotatepoint code for both smooth and 90-degree sect. rotation. From-SVN: r2941 commit b4fef6dd85d032ce7c091f998eb06b25841cf1f2 Author: Philipp Kutin Date: Mon Aug 20 21:24:54 2012 +0000 control layer: comment out some unused functions and stuff. From-SVN: r2940 commit 16809784622f180b5f63dfa29c7e107b164db6f7 Author: Philipp Kutin Date: Mon Aug 20 21:23:48 2012 +0000 splitscreen: tweak view drawing: use player's cursectnum and simulate z clamping. Using the players's cursectnum instead of "updating" the sectnum means that it won't glitch on SoS. The z clamping (basically a port of some code from G_DrawRooms) is so that the view won't be drawn from under the floor when shrunk. From-SVN: r2939 commit a0d839b4c7eecb819119b9558f2b63a2bef24422 Author: Philipp Kutin Date: Mon Aug 20 21:22:41 2012 +0000 In G_DisplayRest, be sure to always un-apply a previously applied tint. This fixes the screen keeping the bluish tint even after shattering a frozen player in the splitscreen mod. From-SVN: r2938 commit 479cb96258a5fcb3916d43ac8bfe2f105832d670 Author: Philipp Kutin Date: Sun Aug 19 13:02:47 2012 +0000 Fix two "may be used uninitialized" warnings (they can't, as far as I can see). From-SVN: r2937 commit 0c78a6111d4ef01e6d8b4a2837651cb3776bad83 Author: Philipp Kutin Date: Sun Aug 19 13:02:43 2012 +0000 fake multi: don't display name when aiming at opponents. From-SVN: r2936 commit 4c8ed4e071f1fd244661c7a679829a500c5ef66a Author: Philipp Kutin Date: Sun Aug 19 13:02:37 2012 +0000 Fake multi: fix display of item percentage and on/off states. From-SVN: r2935 commit e2a315c15793d1cd17e8bde98104e0b6178f1f49 Author: Philipp Kutin Date: Sun Aug 19 13:01:30 2012 +0000 Display the firsts-when-shrunk hud-weaponscaled, tweak for fake multi. From-SVN: r2934 commit 551dd23bb1a2a4bbf57c664f3002fed70e681db4 Author: Philipp Kutin Date: Sun Aug 19 13:01:24 2012 +0000 Make the scuba HUD be affected by hud_weaponscale, tweak for fake multi. From-SVN: r2933 commit 40f60c76577c7583096cc55430536673ea085fc5 Author: Philipp Kutin Date: Sun Aug 19 13:00:19 2012 +0000 Display the nukebutton punching fist with viewport clipping bounds. Using rotatesprite with bit 8 clear (scale to viewport) but using fullscreen clipping bounds is never what we want. Also, tweak for fake multi. From-SVN: r2932 commit e6f0c3b5babf8602ab0e4a7bc2715fea363b8c6d Author: Philipp Kutin Date: Sun Aug 19 13:00:08 2012 +0000 Fake multi: draw the HUD weapons and status bar with the proper aspect. This uses the new rotatesprite bit introduced earlier. Also, allow the HUD-less screen size. From-SVN: r2931 commit 5b08c91a336292ce61ff1e7a30d5c8f98dc747a1 Author: Philipp Kutin Date: Sun Aug 19 12:59:03 2012 +0000 player.c: In G_DrawTileScaled, lose bit 1024 (prior to r1658, bit 256). I checked all direct and transitive uses of that function and am fairly confident that it is never used. From-SVN: r2930 commit 9b0b2880bf9f80044efbfe0c5e917ec5bbfe38bb Author: Philipp Kutin Date: Sun Aug 19 12:57:57 2012 +0000 Introduce additional rotatesprite bit for internal use and mask ext. ones from CON. ROTATESPRITE_MAX is moved to build.h and all orientation bits from CON commands using rotatesprite are ANDed with (ROTATESPRITE_MAX-1). Some of the functions use ROTATESPRITE_MAX for different internal purposes, which will not be exposed to CON now (a good thing). Also, dorotspr_handle_bit2 is made clearer. From-SVN: r2929 commit ba68fff860aa8a2a901697c1f8e85a59dab5e473 Author: Philipp Kutin Date: Sun Aug 19 12:56:51 2012 +0000 Clean up a couple of rotatesprite uses. The black translucent background underneath the user map list will now be drawn with a shade 32 tile 0 instead of tile BLANK, since I've seen the latter being replaced in some mod. Also, it will look the same regardless of screen aspect. From-SVN: r2928 commit 8797b56c40f827efe47bc9703bfcdc377182fde8 Author: Philipp Kutin Date: Sun Aug 19 12:55:45 2012 +0000 Restucture dorotspr_handle_bit2(). This also fixes the OSD with aspects < 4/3. I broke that, too. From-SVN: r2927 commit 27a8074083e33a3acbedc116f20b4879ba0fa5fd Author: Philipp Kutin Date: Sun Aug 19 12:55:35 2012 +0000 Always draw the full original status bar fully instead of in patches. It seems like I broke the blitty/patchy way of drawing it with one of the last commits. From-SVN: r2926 commit 686f339270033029e58e4c226f8d134eb2a4c060 Author: Philipp Kutin Date: Sun Aug 19 12:54:30 2012 +0000 Some g_netServer || g_netServer --> g_netServer. From-SVN: r2925 commit 6a7d36545f6b09e0c4aba29705e1ecbfb6a3f2c4 Author: Philipp Kutin Date: Sun Aug 19 12:53:24 2012 +0000 In places where fullscreen tiles are drawn (logo etc.), use clearallviews(). This really fixes clearing the borders to the left and right with widescreen and hud_bgstretch=0. Also, it seems to fix glitches when the "screen size" is small (ud.screen_size is large). From-SVN: r2924 commit 9f0bd3e9802960dfcb52df04970c20e44b45cc31 Author: Philipp Kutin Date: Sun Aug 19 12:52:18 2012 +0000 Lunatic: rotatesprite+test, player access, misc. From-SVN: r2923 commit 45e7988a23edd5d25d6bf66df8713fe7e8bd349a Author: Philipp Kutin Date: Sun Aug 19 12:52:10 2012 +0000 mdsprite.c: factor out two instances of identical code. From-SVN: r2922 commit 6272de6d1cb15251bffe7c55444c6422d5e39960 Author: Philipp Kutin Date: Sun Aug 19 12:51:04 2012 +0000 Clean up handling of widescreen bits in dorotatesprite functions. Don't call setaspect from them, because the only thing that's needed is (in classic) yxaspect and xyaspect. Pass these from the helper function defined earlier instead. From-SVN: r2921 commit 4e849396afa916ed3cedea5cdab87d3e6e9798d7 Author: Philipp Kutin Date: Sun Aug 19 12:50:42 2012 +0000 player.c: fix a check of md_tilehasmodel return value against >0 (should be >=0) From-SVN: r2920 commit 7a1793596fd2aab4a46f030a830dc9815ecc466e Author: Philipp Kutin Date: Sun Aug 19 12:49:37 2012 +0000 Clean up polymost_dorotatesprite a little (triv. changes only) From-SVN: r2919 commit 6dcf81cf488db7a0fc9a90dd8e651d66822af82f Author: Philipp Kutin Date: Sun Aug 19 12:48:31 2012 +0000 In polymost_dorotatesprite, don't set [xy]dimen to [xy]dim temporarily. This fixes stuff like the HUD chaingun with widescreen and small "screen sizes" (in-game viewport). It also makes rotatesprite behave more like classic overall. I have no idea why it was there in the first place. From-SVN: r2918 commit 790109db887b337eb3bc7f32e5ff966282ddb770 Author: Philipp Kutin Date: Sun Aug 19 12:47:55 2012 +0000 Clean up player.c's weapon display code (no functional changes). From-SVN: r2917 commit 780435983cd6fafdf93e398a893fa63562becf5d Author: Richard Gobeille Date: Sun Aug 19 04:01:04 2012 +0000 OpenBSD build fix from Brad Smith (plus a couple of irrelevant changes to the same file from my local tree) From-SVN: r2916 commit 22e2ce2e73469c8ab3cc562bebc5e54d91e7f79d Author: Philipp Kutin Date: Thu Aug 16 21:49:01 2012 +0000 splitscreen: rewrite special weapons cycling, don't cycle to foot. From-SVN: r2915 commit a6d6de1e256554b2937ac7a09d9be06176c5444f Author: Philipp Kutin Date: Thu Aug 16 21:48:58 2012 +0000 Redraw background when ud.screen_size >= 8, unconditional on ud.statusbarscale. Classic HUD now has correct aspect in widescreen modes, so with the full status bar, there may be patches of free room left to the left and right. From-SVN: r2914 commit 721ff460f92ba3d61c1646d67bb7c337a1563702 Author: Philipp Kutin Date: Thu Aug 16 21:48:56 2012 +0000 In setaspect_new, determine the aspect with {x,y}dim again except for showview. setaspect(), which is called by setaspect_new, already uses the *dimen variables, so it's the same thing done twice. Now, a change from the original full status bar to the original mini status bar keeps the horizontal FOV again and only bumps the view a little higher, as with the classic aspect determination. From-SVN: r2913 commit 8385aa8404a35cc31a7bfc21cb419bf64ca3d3a4 Author: Philipp Kutin Date: Thu Aug 16 21:48:52 2012 +0000 Clear the screen first in some non-in-game places, also in classic. Compare with revision 2584. From-SVN: r2912 commit 63475663c048a2c34c39f20fb3bf494674d4be27 Author: Philipp Kutin Date: Thu Aug 16 21:48:50 2012 +0000 Factor out Polymost's widescreen bit handling code and use it in classic, too. This means that classic and the GL modes now look the same as far as e.g. hud_bgstretch or HUD weapons are concerned. From-SVN: r2911 commit fa319024dbf3bc662aa2f767e9e1e9f42659e3a9 Author: Philipp Kutin Date: Thu Aug 16 21:48:46 2012 +0000 polymost.c: rewite widescreen bit code, part 2. Use integer math; both args to setaspect are constant. From-SVN: r2910 commit fc5fa9e486bbacbd981c7064c512d51cc08323ad Author: Philipp Kutin Date: Thu Aug 16 21:48:44 2012 +0000 Clean up classic's and Polymost's dorotatesprite functions (triv. changes only) From-SVN: r2909 commit 06c833bca3489c384bf167c1783d2630d038514b Author: Philipp Kutin Date: Thu Aug 16 21:48:41 2012 +0000 polymost.c: rewrite dorotatesprite's widescreen bit handling (256,512,1024). Instead of setting and resetting the [xy]dim globals, use them as locals in a block (shadowing the globals). Also, do some common subexpression elimination for clarity. From-SVN: r2908 commit b10f8a4b6c3ed8b8b4e0d6ceb04944e60e3fe966 Author: Philipp Kutin Date: Thu Aug 16 21:48:38 2012 +0000 splitscreen: use updatesector instead of *z. When shrunk, the player position is below the floor for some weird reason. Updatesectorz would set the sector to -1, and the view would not be drawn. From-SVN: r2907 commit 28dd41f51913920ed72e0f5e301486fb3f9991af Author: Philipp Kutin Date: Thu Aug 16 21:48:36 2012 +0000 splitscreen: remove weapon item drawing code. From-SVN: r2906 commit b976ced89c249c14ec3807984692d67ea1b2e9e2 Author: Philipp Kutin Date: Thu Aug 16 21:48:33 2012 +0000 fake multi: draw weapons for both players. From-SVN: r2905 commit 90ef9fc67b07c2ea42dd62bc35c112fd89a34476 Author: Philipp Kutin Date: Thu Aug 16 21:48:31 2012 +0000 splitscreen: remove HUD drawing code, draw view from EVENT_DISPLAYROOMS. From-SVN: r2904 commit 2dd3ce05b8339292cf4f7ee4068c18eebc12c1aa Author: Philipp Kutin Date: Thu Aug 16 21:48:28 2012 +0000 In fake multi, never draw the screen rotated. From-SVN: r2903 commit f59845efc509a60aeef96e7ec7b28a7ad30d5ba5 Author: Philipp Kutin Date: Thu Aug 16 21:48:26 2012 +0000 Splitscreen hack: draw status bar for both players. From-SVN: r2902 commit 06721985203a49c3f57f2b95edb731cc85418480 Author: Philipp Kutin Date: Thu Aug 16 21:48:23 2012 +0000 Always draw the frag bar in fake multi. From-SVN: r2901 commit 00b986486ad35989e4322c6520c62f701485b285 Author: Philipp Kutin Date: Thu Aug 16 21:48:21 2012 +0000 In fake multi-mode, always draw the original mini status bar. From-SVN: r2900 commit 0564e128d1bfd9c122532e85d7b8077012d10dee Author: Philipp Kutin Date: Thu Aug 16 21:48:18 2012 +0000 splitscreen: update to modified version posted at the Duke4.net forums. From-SVN: r2899 commit fd09828ee92827a3fd154e01ea4e0a12484ef49b Author: Philipp Kutin Date: Thu Aug 16 21:48:16 2012 +0000 Add original splitscreen mod by Bloodclaw for reference. From-SVN: r2898 commit 10fecdac728845c1271c1eb9be09f56868af054e Author: Philipp Kutin Date: Thu Aug 16 21:48:13 2012 +0000 Fake multi-mode: better -q* messages, make surplus APLAYER sprites invisible. Also, change type of g_numPlayerSprites (global and mapstate) from inconsistent uint8_t/char to int8_t. From-SVN: r2897 commit 77f32b1dc4dcbc70b22f93f046025bcaade740ce Author: Philipp Kutin Date: Thu Aug 16 21:48:08 2012 +0000 Clean up build.h and status bar drawing code in game.c. From-SVN: r2896 commit 6546eed41660fd366640f5af03dd09c1d73f1351 Author: Philipp Kutin Date: Mon Aug 13 18:26:18 2012 +0000 CON: in showview*, use new aspect determination if r_usenewaspect is 1. From-SVN: r2895 commit 0612fbffd601237a56887aea77f923c0c4aa91c1 Author: Philipp Kutin Date: Mon Aug 13 18:26:16 2012 +0000 engine: in setaspect_new, determine the aspect with {x,y}dimen instead of {x,y}dim. That is, use the view boundries instead of the whole screen. From-SVN: r2894 commit 968fc0727dc523054ba5fc691a8fb1f56b0fe834 Author: Philipp Kutin Date: Mon Aug 13 18:26:13 2012 +0000 Rewrite the EVENT_ANIMATESPRITES loop (G_DoEventAnimSprites calls) for clarity. From-SVN: r2893 commit 01e961cd295874917720fc13ebb9822aa0648891 Author: Philipp Kutin Date: Mon Aug 13 18:26:11 2012 +0000 game.c: factor out 2 inst. of dup. code into G_DoEventAnimSprites(). From-SVN: r2892 commit 96fa9730ba33d9d94da2110452ececfb00a6a569 Author: Philipp Kutin Date: Mon Aug 13 18:26:08 2012 +0000 Hack for fake multimode/splitscreen: also draw mirrors from showview*. See the source for why this hack is ugly. From-SVN: r2891 commit 5a548ec0613c9cf1047b0f952a4c86381967b036 Author: Philipp Kutin Date: Mon Aug 13 18:26:06 2012 +0000 CON: in fake multi-mode, play 'globalsound' even if player index isn't screenpeek. This makes sounds like DUKE_GET (item pickup) be heard for the second player in the splitscreen mod, too. From-SVN: r2890 commit be97405028c4b7adf5209dcd88479339754bfbd6 Author: Philipp Kutin Date: Mon Aug 13 18:26:03 2012 +0000 If a value of 1 is returned from EVENT_DISPLAYROOMS, don't draw them. This includes mirrors, rooms and masks. Any value other than 0 or 1 that is returned is considered an error (reserved for future use). From-SVN: r2889 commit 19f189fbcc1dc774bf4940be502d5ec47e46c8c2 Author: Philipp Kutin Date: Mon Aug 13 18:26:01 2012 +0000 Fix mirrors in Polymost. From-SVN: r2888 commit ad54d046238de0413445e30b80b640a13b68c7ca Author: Philipp Kutin Date: Mon Aug 13 18:25:59 2012 +0000 Clean up G_MoveFX() a little. From-SVN: r2887 commit ab71e0cd215156c2e223787e27242acd546bab38 Author: Philipp Kutin Date: Mon Aug 13 18:25:56 2012 +0000 Splitscreen mod hacks: handle screen tinting from both players. Of course, it still affects the whole screen. Handles pain and lizard spit. From-SVN: r2886 commit 759129c679195b76faf96113fb3230bfc4eac521 Author: Philipp Kutin Date: Mon Aug 13 18:25:53 2012 +0000 Hacks for the splitscreen mod: play sounds from both players. The sound distance is the minimum of the two. Both point sources as well as MUSICANDSFX ambient sound is handled. From-SVN: r2885 commit e3dfe1859a5da4161c17a08ce07613e3f42c753d Author: Philipp Kutin Date: Mon Aug 13 18:25:51 2012 +0000 sounds.c: Factor out duplicate code into S_CalcDistAndAng(). The two instances in S_PlaySound3D() and S_Update() were slightly different as far as sequencing is concerned. However, I think making it the same has only benefits and may fix some popping sounds when starting to play a sound and updating it with a different distance value on the second buffer fill. From-SVN: r2884 commit 6950bffd0611657f163560745d4dd53d162308a3 Author: Philipp Kutin Date: Mon Aug 13 18:25:48 2012 +0000 First round of sounds.c cleanup, no functional changes. From-SVN: r2883 commit 0d94940439bbe5886ed28707fc7833a209110781 Author: Philipp Kutin Date: Mon Aug 13 18:25:46 2012 +0000 Also draw TROR from showview* commands. From-SVN: r2882 commit 808e08a82df172ce296e5bd22b3f6245e5e07e22 Author: Philipp Kutin Date: Mon Aug 13 18:25:40 2012 +0000 Rename args in G_DoSpriteAnimations(), for easier grepping. From-SVN: r2881 commit 98b6fab6525f47182a5933ceca80b602db3edd00 Author: Philipp Kutin Date: Mon Aug 13 18:25:37 2012 +0000 High-level TROR drawing: clean up how things are passed around. From-SVN: r2880 commit 72ae3e589f7571294b44c3b6c377620d49b5b26a Author: Philipp Kutin Date: Mon Aug 13 18:25:32 2012 +0000 Resurrect fake multiplayer mode a little (no bots). Just enough so that Bloodclaw's splitscreen mod can be played. From-SVN: r2879 commit 143ad3322f4778bb8cf0f6d97af9642fa776ec05 Author: Philipp Kutin Date: Mon Aug 13 18:25:28 2012 +0000 Correct premap.c's clearfrags(). The story: Duke3D 1.5 source had "short frags[MAXPLAYERS][MAXPLAYERS]" and "clearbufbyte(&frags[0][0],(MAXPLAYERS*MAXPLAYERS)<<1,0L);". In r1625, g_player[].frags[MAXPLAYERS] was changed from an array of int32_t to one of uint8_t, but the clearing code ("clearbufbyte(&g_player[i].frags[0],MAXPLAYERS<<1,0L);") stayed. In r2201, I rewrote clearfrags() under the assumption that it really is supposed to clear stuff beyond .frags[]. The moral: 1. Write clean code. 2. Use sizeof. 3. Write clean code! From-SVN: r2878 commit 3f395cc14caf4f7cee39f195b80b5a8ab918d991 Author: Philipp Kutin Date: Fri Aug 10 19:12:01 2012 +0000 Text-repl.: hitinfo variables -> hit, hit{sprite,sect,wall} members -> no "hit" This makes the code rather more readable in some places. Unlike the two preceding commits, this one is actually purely textual replacement. From-SVN: r2877 commit 57a658e77674bd2f8e468aaa56657e4f9c769458 Author: Philipp Kutin Date: Fri Aug 10 19:11:56 2012 +0000 Mass text replacement g_player[p].ps --> ps, part 2 (harder) Functions affected are G_Move* in actors.c and A_Shoot in player.c. Here, the p variable had function scope, now it's redeclared in shorter blocks. I'm still relatively sure that no observable behavior was changed, though not as sure as in part 1. Also, some dead assignments and the like are eliminated. From-SVN: r2876 commit 3e0fee890d717bab964e08651ca2c967f893f413 Author: Philipp Kutin Date: Fri Aug 10 19:11:53 2012 +0000 Mass text replacement g_player[p].ps --> ps, part 1 (the easy one). The p variable (sometimes named differently) has short scope in all cases, so I'm almost sure that the replacements amount to an identity transformation. From-SVN: r2875 commit 207f78d59e0b1b65a14df63b39235c9c58ccc899 Author: Philipp Kutin Date: Fri Aug 10 19:11:49 2012 +0000 actors.c: factor out 4 instances of id. code (up to args) into nudge_player(). From-SVN: r2874 commit 385ebd0f8ab098c0c0fa906311972259595ee9dd Author: Philipp Kutin Date: Fri Aug 10 19:11:47 2012 +0000 CON: factor out addammo/addweapon{,var} common code, harden addweaponvar... ... against invalid weapon indices and arguments accessed from arrays/structs. From-SVN: r2873 commit 20e928bce2a770bccc5c11876784a77bbed70841 Author: Philipp Kutin Date: Fri Aug 10 19:11:43 2012 +0000 Lunatic: rewrite bitar to use arrays of int32, more convenience ops. From-SVN: r2872 commit da7f33aece13303a03a807de6d684ff30638a40a Author: Philipp Kutin Date: Wed Aug 8 19:32:45 2012 +0000 Lunatic: reflect the preceding rename in the sources. From-SVN: r2871 commit 6c40bfd2ebeac4e02099e560679725579d9d9fab Author: Philipp Kutin Date: Wed Aug 8 19:32:40 2012 +0000 Rename a certain file to appease Windows file systems. From-SVN: r2870 commit 008922e0b0d2316f35f38ca9d47f6193b1330867 Author: Philipp Kutin Date: Wed Aug 8 19:32:35 2012 +0000 Lunatic: implement a couple more 1.5 commands. From-SVN: r2869 commit e08213844696e9926c7e2c9be4631125e6386869 Author: Philipp Kutin Date: Tue Aug 7 13:09:00 2012 +0000 Fix tile CAMERA1+4 being not changed to a CAMERA1 on spawn. From-SVN: r2868 commit e05e497f311036f1023d4c4e0f185e20efaacab8 Author: Philipp Kutin Date: Tue Aug 7 13:08:57 2012 +0000 Fix slimers not disappearing on dnmonsters cheat, display 2nd 'on' state. From-SVN: r2867 commit 062d0073f54cab419d988e51102496e9a61deaf0 Author: Philipp Kutin Date: Mon Aug 6 20:00:35 2012 +0000 Mapster32: add "extend all highlighted sectors" func to 'F menu via a.m32. From-SVN: r2866 commit b40678d3b252ae3d06c51d9188b0c223acecbe9d Author: Philipp Kutin Date: Mon Aug 6 20:00:31 2012 +0000 Clean up game.c and actors.c. From-SVN: r2865 commit 8b924d43339fe8e48ef493c2e9cd0f5a0a129574 Author: Philipp Kutin Date: Mon Aug 6 20:00:29 2012 +0000 Lunatic: clean up handing of ac/mv internally, add control module. From-SVN: r2864 commit 240cb6933f9a0a823a9a42ac2ac033df14217893 Author: Philipp Kutin Date: Mon Aug 6 20:00:23 2012 +0000 Lunatic: cleanup From-SVN: r2863 commit 8876555a1c8390bca7a17b5d39c351f738e9d2d4 Author: Philipp Kutin Date: Thu Aug 2 10:52:44 2012 +0000 Lunatic: 'bitar': rewrite ops for colon syntax, serialization, set ops. From-SVN: r2862 commit 93d0e4ac30de0e17a844bf80d8752b593911c122 Author: Philipp Kutin Date: Thu Aug 2 10:52:41 2012 +0000 sdlayer.c: Add high-resolution timer for OS X, using mach_absolute_time(). From-SVN: r2861 commit 8b06b873b6943c66051a8e045cd7b5d90a420d6e Author: Philipp Kutin Date: Thu Aug 2 10:52:38 2012 +0000 Lunatic: fix build on OS X, pass LUNATIC define to build/ sources. From-SVN: r2860 commit d3d2e2a576a6f6b80f7acdf07d1880f8c5e8494d Author: Philipp Kutin Date: Thu Aug 2 10:52:35 2012 +0000 Lunatic: fix hex literal parsing on Windows, add two comments. From-SVN: r2859 commit 01b01dc033331069ef16871173d53fe2a1366a48 Author: Philipp Kutin Date: Thu Aug 2 10:52:32 2012 +0000 Lunatic: add 'stat' module for running statistics. Also, rewrite the mapastats iterator and the LIZTROOP hitscan timing in terms of that. From-SVN: r2858 commit 2bff068165bc4bebcf924fbcffe55b6434942795 Author: Philipp Kutin Date: Thu Aug 2 10:52:28 2012 +0000 Lunatic: add 'randgen' module, implementing an encapsulated JKISS PRNG. Also fix error handling path in our_require(), i.e. when loadstring fails. From-SVN: r2857 commit 2e47d7e19817f571eb620e20677188b22178f22b Author: Philipp Kutin Date: Thu Aug 2 10:52:25 2012 +0000 gethitickms(): replace division by multiplication. From-SVN: r2856 commit 3d437c030b531a06f5542e9b77274b610490a77b Author: Philipp Kutin Date: Thu Aug 2 10:52:21 2012 +0000 Lunatic: add 'geom' module, sporting a vec2 type and a general 'intersect' func. From-SVN: r2855 commit 059798211384d1901322bd23613f124f1e38b0cf Author: Philipp Kutin Date: Thu Aug 2 10:52:17 2012 +0000 Lunatic: update DukePlayer_t, fix build. From-SVN: r2854 commit 3a483acc2a7cc9d12f468ed953c4c4785f1735e1 Author: Philipp Kutin Date: Thu Aug 2 10:52:13 2012 +0000 Factor out 5 instances of functionally identical code into G_ClearCameraView(). From-SVN: r2853 commit e2333e377059e861cfe4ecea58a4791660657b42 Author: Philipp Kutin Date: Sun Jul 29 23:35:12 2012 +0000 OSX build: mighty tweak osxbuild.sh and link to LibPNG from Fink on x86_64. The build script now has two more presets: helix and installtools (which was previously attempted after the build; untested). Also, - when detecting git, run commands such that the SVN repo isn't accessed - package kextract, kgroup and arttool into tools/ in the zip - try to exit on failure in some places, though that doesn't seem to work From-SVN: r2852 commit 0003ff9fa44408bd0d95e5a5e0a1c11cc3ff2dc2 Author: Philipp Kutin Date: Sun Jul 29 23:35:09 2012 +0000 osxbuild.sh: factor out building commands and exit 1 on failure From-SVN: r2851 commit 78a8c10d7e1d614b0d79b274030d728ce5cbc69a Author: Philipp Kutin Date: Sun Jul 29 12:46:56 2012 +0000 Classic: on x86 GCC asm builds, fix crash with floor sprites of (x or y) size 2. The idiv instruction also signals an FPE when the resulting *signed* quotient overflows, so we simply use div instead. From-SVN: r2850 commit 984106006f7437b1599b3e86b362f4ac0c2b0a21 Author: Philipp Kutin Date: Wed Jul 25 18:56:18 2012 +0000 Lunatic: build fix on Windows and translator fix with 32-bit archs? erratum in r2844 commit message: ydim vs. bytesperline --> xdim vs. bytesperline From-SVN: r2849 commit a553853056a0f4b9b300c476baaa9aa51b8dc2f6 Author: Philipp Kutin Date: Wed Jul 25 18:56:15 2012 +0000 Add gethitickms() to the Windows layer. From-SVN: r2848 commit 0c463ebc35327d91767e8ae025f97558e53ee10b Author: Philipp Kutin Date: Wed Jul 25 18:56:11 2012 +0000 Make DukePlayer_t's transporter_hold an int16_t again. This was narrowed to int8_t in r1625, breaking CON code that wanted to lock the player for a longer time than 127 game tics. From-SVN: r2847 commit 4ba032bfea08a6cf6bf4816e6d148bbeae56aeb0 Author: Philipp Kutin Date: Sun Jul 22 11:10:08 2012 +0000 Prevent integer div-by-0 (SIGFPE) when drawing console background with void tiles. The tiles used are BIGHOLE (1141) and VIEWBORDER (3250). Ideally we'd draw the console background using something specially-coded instead of rotatesprite if it's fully black anyway. From-SVN: r2846 commit cf4643e52555801aa6b882d8297e0b1bffab5b25 Author: Philipp Kutin Date: Fri Jul 20 21:57:59 2012 +0000 Fix SHOW MAP ON/OFF message in the game. From-SVN: r2845 commit 77d9de372a77eb9ce02f78ffcfa581f4058b416c Author: Philipp Kutin Date: Fri Jul 20 21:57:56 2012 +0000 PNG screenshots: fix oob read of malloc'd mem on Windows. These could manifest themselves as garbage lines on the bottom and happened because of the ydim vs. bytesperline discrepancy again. From-SVN: r2844 commit efca6c73a98c43c8b6ffede1bc681afd4b85a2bd Author: Philipp Kutin Date: Fri Jul 20 21:57:53 2012 +0000 Add custom-built lean zlib and libpng and enable PNG screenshots on Windows. Instructions on how I built the libs are in Windows/src/minipng.dfa. From-SVN: r2843 commit 2576945b9161fff813a036b301a0c897ff30998a Author: Philipp Kutin Date: Fri Jul 20 21:57:44 2012 +0000 Lunatic: time every event and actor call and print summary at game exit. From-SVN: r2842 commit 1e4c4eea0e2b8a990425e4f88f1cf81eab6d3dec Author: Philipp Kutin Date: Fri Jul 20 21:57:40 2012 +0000 Lunatic: add "bit array" helper module, rewrite the bit test in terms of that. From-SVN: r2841 commit ff3bea3278c3041f66a18d383265ba10b0af8860 Author: Philipp Kutin Date: Fri Jul 20 21:57:37 2012 +0000 Lunatic: protect user modules from tampering, too. From-SVN: r2840 commit f8704d87891ecd702e810c1e0994a9365ebbdfd5 Author: Philipp Kutin Date: Fri Jul 20 21:57:34 2012 +0000 Lunatic: more bitop profiling; make undeclared-var reads forbidden in modules From-SVN: r2839 commit 6ac02aaa8698bab334e19e870ffdd2e351900ec6 Author: Philipp Kutin Date: Fri Jul 20 21:57:31 2012 +0000 Lunatic: override 'error' so that a string is always returned to C. From-SVN: r2838 commit 5a33c713d3c9f7fc9463ab21f75c319d0ac3a782 Author: Philipp Kutin Date: Fri Jul 20 21:57:28 2012 +0000 Lunatic: module(), require() for custom modules, bit op test from LJ homepage. From-SVN: r2837 commit 8ec4cb558c74d1da0d55742dfd84205b97e97030 Author: Philipp Kutin Date: Fri Jul 20 21:57:24 2012 +0000 In game.c's kopen4loadfrommod, use snprintf. From-SVN: r2836 commit 06d5ffbbaf061903ce96f8c4930c047a38ca5363 Author: Philipp Kutin Date: Sun Jul 15 09:23:58 2012 +0000 Polymer: fix underwalls being not animated (introduced in r2823). From-SVN: r2835 commit a11c1f769d0ce68ab91fcbbd27f377dad37aaade Author: Philipp Kutin Date: Fri Jul 13 18:21:00 2012 +0000 VP8: clamp GL texture to edge if possible, preventing potential stray lines From-SVN: r2834 commit 4c89f1f00fdf63baac6847fe607039ec04fd88be Author: Philipp Kutin Date: Fri Jul 13 18:20:58 2012 +0000 VP8: don't call I_ClearAllInput() before idle loop. If input is cleared before, it can become impossible to cancel the video when decoding and displaying a frame takes longer than a frame. From-SVN: r2833 commit fea4a958b6e11de4440d36f1f302db7ccc98c99a Author: Philipp Kutin Date: Fri Jul 13 18:20:55 2012 +0000 VP8: collect times while playing the video and print a summary to the log afterwards. From-SVN: r2832 commit 0ee2c8e80bbc6ac40596d6efab62d913f01a090f Author: Philipp Kutin Date: Fri Jul 13 18:20:52 2012 +0000 Update LibVPX prebuilt library and headers to git commit 3eb4143fc3381497128d. The library was built with GCC 4.6.1 and configured like ./configure --disable-vp8-encoder --disable-multithread --disable-spatial-resampling On the aforementioned AMD system, this reduces the mean time for decoding a frame from 18.2 to 15.4 ms, so IMO it's worth the somewhat hefty addition of 430 Kb. From-SVN: r2831 commit 7fd0256443462db7cd7d65748949714343ae81ba Author: Philipp Kutin Date: Fri Jul 13 18:20:43 2012 +0000 VP8: unroll 3 planes -> packed conversion loop. On an AMD Phenom II X4 system with generic memory modules, this brings down the mean time for this conversion from 16.5 to 10.5 ms. (GCC 4.6.1, optimized build) From-SVN: r2830 commit 0d4df07d7e96f771257c58385a77035ca5a10069 Author: Philipp Kutin Date: Fri Jul 13 18:20:40 2012 +0000 Lunatic: extend must-fail tests with a check for the expected error messages. From-SVN: r2829 commit 440fe9bd50792afd5f0a84a26108683460c39b2d Author: Philipp Kutin Date: Fri Jul 13 18:20:38 2012 +0000 Lunatic: overridden 'require', currently for base modules only. From-SVN: r2828 commit e7a5cc04ff305bc1a88fb0ee1a882275ecaf0cb6 Author: Philipp Kutin Date: Fri Jul 13 18:20:35 2012 +0000 Lunatic: make baselib functions used in defs.c local, be more disciplined with stack. Also, print a backtrace if we return to C with an error. From-SVN: r2827 commit 76cc1ff3d9c42a59adf03f15830c85ec1cc4ef4f Author: Philipp Kutin Date: Fri Jul 13 18:20:31 2012 +0000 a.m32: in collect_*_sectors from the 'F menu, start query with sector under mouse From-SVN: r2826 commit a8d1c45480af3aaa41a7b3d0bff0e0bba53fef48 Author: Pierre-Loup A. Griffais Date: Wed Jul 11 04:39:01 2012 +0000 Revert hightile factoring for now. From-SVN: r2825 commit 0fcf883f7402e36c99d87cb3f49df8928d1c875b Author: Philipp Kutin Date: Mon Jul 9 19:00:23 2012 +0000 This should fix the "assignment discards 'const' qualifier" warning in music.c. From-SVN: r2824 commit 6d82c4ea6780a68a3514069efdd25a20aa48b37f Author: Philipp Kutin Date: Mon Jul 9 19:00:21 2012 +0000 Polymer: simplify some code while I'm at it (equivalence tranformations only) From-SVN: r2823 commit bc82ab36e5e7959b02d3d72a4b2cdf92e875afba Author: Philipp Kutin Date: Mon Jul 9 19:00:17 2012 +0000 Polymer: bring the ypanning correction for non-pow2 walls closer to Pmost's, pt2 This changes a constant inside the panning calculation from 256 to 255 (making e.g. panning 255 and 0 the same in the "San Andreas fault" sign in E1L5) and uses the correct reference wall for the "do panning correction?" conditional. Now, the problematic walls should look the same as in Polymost. From-SVN: r2822 commit d30229602fdb44e399ed4ca361d389ed19977019 Author: Philipp Kutin Date: Mon Jul 9 19:00:14 2012 +0000 Polymer: bring the ypanning correction for non-pow2 walls closer to Pmost's, pt1 This makes the corrections conditional on where they appear in (under-, over-, white or mask wall). From-SVN: r2821 commit 3b20c33d1e7fca5da10b4528fb19291cff28f837 Author: Philipp Kutin Date: Sun Jul 8 21:49:31 2012 +0000 a.m32: add some commented out example code for the screenshot functionality. From-SVN: r2820 commit d4debf033b97d344527e464b544b7122df5d8425 Author: Philipp Kutin Date: Sun Jul 8 21:47:25 2012 +0000 Classic: draw walls with non-pow2 ysizes in the old fashion for the time being. I'm willing to make this one concession to correctness in the name of backward- compatibility. I think that one reason why this has never cause a crash is that tiles in BUILD are allocated in Ken's big allocache buffer, so oob accesses were dampened by that (though they hit uninitialized data). From-SVN: r2819 commit ac0bcb52aa35793a552f4ded1546faf3c9c716ff Author: Philipp Kutin Date: Sun Jul 8 21:47:23 2012 +0000 m32script: EVENT_DRAW3DSCREEN, screenshot functonality. The event is run after drawing the scene, but before the overlays. To make a screenshot from a script, set DOSCRSHOT to non-zero. It will then be scheduled to run once after the drawing but before the above-mentioned event. The screenshots will be called mcapXXXX.{png,tga}. From-SVN: r2818 commit 0de3f19ab4c5d9232278a1a387091c4e9523769c Author: Philipp Kutin Date: Sun Jul 8 21:47:19 2012 +0000 Comment out printext256's GL mode fallback code. This would only hit when polymost_printext256 erred out (mem alloc failure, glGenTextures failure), i.e. "almost never". Also, tweak a bound check in polymost_printext256. From-SVN: r2817 commit f34461c68c04c7cc0b7aa66fd6d6a0c95288634e Author: Philipp Kutin Date: Sun Jul 8 21:47:16 2012 +0000 m32script: if printext256's arg is negative, use editorcolors[-]. The editor colors are the ones listed on page 9 of the Mapster32 built-in help. From-SVN: r2816 commit 93aa57ae0f120b1c38c30cf647184d0ad388675e Author: Philipp Kutin Date: Sun Jul 8 21:47:14 2012 +0000 Polymost: factor out y panning coefficient calculation code. From-SVN: r2815 commit 59327017601ed7751b8471004d17275ce2e08ae1 Author: Philipp Kutin Date: Sun Jul 8 21:47:11 2012 +0000 Add ART loader for the LuaJIT BUILD struct loader module, 2 more examples. The map iterator now has init/finish capability, making it possible to write scripts that aggregate data over multiple map files. One such example calculates some statistics, the other loads art metadata and looks for red walls with non-pow2 ysize tiles. From-SVN: r2814 commit 6c183f58e254872ccf7ba6aaddcb1d9d8b7eaded Author: Philipp Kutin Date: Sun Jul 8 21:47:06 2012 +0000 Add LuaJIT-based BUILD map loader and batch processing script + example. From-SVN: r2813 commit 8b716073d69c512726e8efc4bf3a9d383527d265 Author: Richard Gobeille Date: Fri Jul 6 18:40:54 2012 +0000 Update our prebuilt MinGW libogg/libvorbis/libvorbisfile to the newest versions, courtesy of forum user LeoD From-SVN: r2812 commit c95cfe657b7eafea23e3a579d4a8d0c0dee30103 Author: Philipp Kutin Date: Fri Jul 6 15:36:50 2012 +0000 Polymer: factor out wall y panning coefficient calculation. Non-pow2 wall/mask drawing in classic introduced cases where walls are drawn "incorrectly" because they were constructed with the old behavior in mind. Polymer appears to "correct" for it partially, but doesn't cover all cases. Specifically, now we have: - E1L1 first inside secret room (5000, 50000): Polymer draws like Duke 1.5, classic now draws with an offset. - E3L2 near the vault (-20000, 25000): both classic and Polymer draw with offsets compared to Duke 1.5, but they're different! This means that more research is needed into what makes these two cases diverge, even though both have the same root cause. !!! Also, mappers should abstain from using non-power-of two textures on walls until this issue is resolved in a satisfactory fashion !!! From-SVN: r2811 commit 44dd83ca6983076c744902574e59ab7d7e79c78e Author: Philipp Kutin Date: Fri Jul 6 15:36:46 2012 +0000 Classic: fix glitches where stuff would be drawn transiently on sect change. This was introduced with r2771, which fixed e.g. AMC TC city_si's mirrors, but instructed the base drawrooms inside yax_drawrooms to not correct the passed sectnum. Therefore, stuff would get drawn wrongly when passing sector boundaries, like from the platform to the rails in trueror1.map. From-SVN: r2810 commit 2e834ccaeb860686bae6d239a161ffe22055a545 Author: Philipp Kutin Date: Fri Jul 6 14:16:31 2012 +0000 Classic: fix drawing mirrors, introduced by nonpow2-ysize wall/mask drawing. Some more drawing glitches remain. From-SVN: r2809 commit 6884410ce624b04e69a9b1ead574d56fc5179dfd Author: Philipp Kutin Date: Fri Jul 6 11:27:52 2012 +0000 Add description for 'remap' to mapster32.cfg, add 'setstartpos' to a.m32. The latter is commented out, since it has to be *compiled* with script_expertmode enabled. From-SVN: r2808 commit 781422269d92bbff88c20aa88ee77b2ad0b2e095 Author: Philipp Kutin Date: Fri Jul 6 11:27:49 2012 +0000 Classic: hook up non-power-of-two ysize wall/mask drawing in asm builds, too. From-SVN: r2807 commit 48cac33142ec069412a5f11ece7c6a2f66073a79 Author: Philipp Kutin Date: Fri Jul 6 11:27:46 2012 +0000 Classic: add {,m,t}vlineasm1nonpow2, currently unreferenced from high-level drawing. From-SVN: r2806 commit 3d3950adc9c123c20227a07bef68f076c1d99f0a Author: Philipp Kutin Date: Fri Jul 6 11:26:24 2012 +0000 Classic-noasm: fix drawing of walls and maskwalls with non-pow2 y size tiles. Related to that, it looks like out-of-bounds accesses when drawing such walls/ maskwalls or *sprites* are fixed, too. Sprites still show a stray lines on some occasions, but Valgrind doesn't complain then. From-SVN: r2805 commit 4dc7de0aa44c42e5f0b42dce3df9ac02e2063904 Author: Evan Ramos Date: Thu Jul 5 17:55:44 2012 +0000 Wii: Minor adjustments to the joystick defaults for the Classic Controller. From-SVN: r2804 commit 8a65885d34f02fc7c677031210ea5ec08242da3c Author: Evan Ramos Date: Thu Jul 5 17:55:15 2012 +0000 Fix disabling EVENT_DISPLAYCROSSHAIR by setting RETURN to 1. SECTOREFFECTOR is not a useful crosshair. From-SVN: r2803 commit 9d38442733b8fc6c1376d437bbc77a742ff8a7b4 Author: Evan Ramos Date: Thu Jul 5 17:53:27 2012 +0000 Remove BUTTON(gamefunc_Jump) and KB_KeyPressed(sc_Space) from AdvanceTrigger so you can type spaces in savegame names. From-SVN: r2802 commit 7c629b56317dee49ab0e71f009bfdd0b862247ac Author: Richard Gobeille Date: Thu Jul 5 17:43:58 2012 +0000 Fix for "undefined reference to `clock_gettime'" linking error on some Linux systems From-SVN: r2801 commit f7b9d3715320945374ed8d5c9186473ed9a0dbc9 Author: Pierre-Loup A. Griffais Date: Mon Jul 2 04:51:24 2012 +0000 mdsprite: don't try to factor textures from fallback skins From-SVN: r2800 commit eb2fb291776f6a373ac08ed4c1efac2deb022c5e Author: Pierre-Loup A. Griffais Date: Mon Jul 2 04:24:04 2012 +0000 hightile: enable the texture factoring code for all palettes From-SVN: r2799 commit 5e481f397fcd91febcb7494047d4ab2e84d3f8bf Author: Pierre-Loup A. Griffais Date: Mon Jul 2 03:44:54 2012 +0000 Fix MinGW build. From-SVN: r2798 commit 69fc95698e1b531d683efe2db518c66bd5682fb5 Author: Philipp Kutin Date: Sun Jul 1 22:11:35 2012 +0000 Makefile.common: add a couple of C warning flags. Most notably, -Wdeclaration-after-statement. This and -Wpointer-arith give some warning on linux, but this is "harmless" as it's assumed that we'll be always compiling with GCC or Clang there. Also, erratum in the "Make ksqrt take uint32_t ..." commit: hypotenuse -> squared length of the hypotenuse From-SVN: r2797 commit de267d0714617294d396f54efc1ebb3ee0653e69 Author: Philipp Kutin Date: Sun Jul 1 22:11:33 2012 +0000 Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness -Wwrite-strings is useful to detect code where string literals and e.g. alloc'd strings are used side-by-side, potentially creating dangerous situations, or to find uses of old, non-constified APIs. However, enabling it would still flood the log with too many warnings. Also, GCC wrongly warns for initializations of char arrays. From-SVN: r2796 commit 537fed62040cb2338a5b50137bd4d015ef5d7a8b Author: Philipp Kutin Date: Sun Jul 1 22:11:25 2012 +0000 editor: const char *scripthist -> char *, since it's alloc'd/freed From-SVN: r2795 commit 7c0d51f90d5d77265f86ea482d36b9fddf700612 Author: Philipp Kutin Date: Sun Jul 1 22:11:22 2012 +0000 actors.c: factor out 4 almost identical code instances into proj_spawn_and_sound Most differences are handled with function parameters, except that one instance checked SpriteProjectile[i].spawns for being >0 instead of >=0. The factored function always checks for >=0. From-SVN: r2794 commit 6a28c2fd01467072df67bbc50e7b9883596bf96d Author: Philipp Kutin Date: Sun Jul 1 22:11:20 2012 +0000 Make nsqrtasm return int32_t (instead of uint32_t) when compiled with GCC/x86. From-SVN: r2793 commit b97b70057a7bc4688e2e5c5c9a4dcfb77479464a Author: Philipp Kutin Date: Sun Jul 1 22:11:17 2012 +0000 Lunatic translator: a first codegen ansatz. From-SVN: r2792 commit bdb8bb7d1e32d8f05af2c9a46e24c99138e29ab3 Author: Philipp Kutin Date: Sun Jul 1 22:11:14 2012 +0000 Make ksqrt take uint32_t, add helper function uint32_t uhypsq(int32_t,int32_t). uhypsq calculates the hypotenuse using unsigned multiplication. This is permissible since for arbitrary int32s a and b, the following holds in two's complement arithmetic: (int32_t)((uint32_t)a * b) == (int32_t)((int64_t)a * b) ("Signed and unsigned multiplication is the same on the bit level.") This fixes various overflows where wall lengths for walls of length > 46340 are calculated, but does not rid us of other overflows in the same vein (usually dot products between vectors where one point is a wall vertex and the other a position in a sector). From-SVN: r2791 commit fc5b20a251f2eb150cae7b7ada9344422ec3660c Author: Philipp Kutin Date: Sun Jul 1 22:11:07 2012 +0000 Lunatic: ksqrt, with timing and value test. The latter shows that "int32_t ksqrt(int32_t)" also copes with values in the range INT32_MIN..-1, effectively interpreting them as uint32_t (i.e. adding 2**32). However, this should not be relied on from CON. From-SVN: r2790 commit 8ed59480c52ff46fde340a0e4ac2e7671115ebf8 Author: Evan Ramos Date: Wed Jun 27 17:45:52 2012 +0000 Fix the overlooking of EDUKE.CON in the absence of DUKE3D.GRP caused by r2726. Also, tweak a few string literals' use of quotation marks. From-SVN: r2789 commit 902c0d256960d102509c1cd64329e52efa2ec40f Author: Philipp Kutin Date: Tue Jun 26 19:50:04 2012 +0000 Fix actors at action 0 executing the action C code protion in gameexec.c. The bug was introduced with SAMESIZE_ACTOR_T enabling in r2208. This fixes being unable to read the messages in A.Dream* by zykov eddy. From-SVN: r2788 commit 76f191336fda65b70b7cf6c9d941bf92a614b548 Author: Philipp Kutin Date: Tue Jun 26 19:50:02 2012 +0000 some trivial mapster tweaks From-SVN: r2787 commit aadba831c733d7d3cf1e6343c15b67483c6ce214 Author: Philipp Kutin Date: Tue Jun 26 19:49:59 2012 +0000 Lunatic: safety tweaks, expose more stuff Arrays inside structs must not be accessible, since they're not bound-checked by the FFI. Therefore, we flatten them into repeated scalar fields and need to write accessor functions later. From-SVN: r2786 commit c2f47d1979743e1e2e4d5ee9c499e7620b287db9 Author: Philipp Kutin Date: Tue Jun 26 19:49:56 2012 +0000 When teleporting silently, also set g_player[].ps->bobposx/y to the new position This fixes an integer overflow when a distance is calculated later. From-SVN: r2785 commit b2cc49f8cd029c48bbba45b6e0970c650b911478 Author: Philipp Kutin Date: Tue Jun 26 19:49:53 2012 +0000 Integer Overflow Offensive continued: first round of -ftrapv - cleanness. That is, "clang -ftrapv" builds don't abort almost immediately after entering a level. There are various classes of overflow bugs, needing different handling: - Some texture mapping code was written with signed integer wrapping semantics in mind. In some places, we're able to get away with unsigned casts. - sometimes, we really need a wider range, like when calculating distances or dot products - negating INT_MIN. Here, we cast to int64_t temporarily. Note that if the result is 32-bit wide, no 64-bit code may actually need to be generated. - shifting into a signed integer's sign bit. We cast to uint32 here. - in hitscan(), at the "abyss crash prevention code" comment, it's clearly the other code that is better... This is not merely done for pedantry, but rather makes it easier to track down overflow bugs having a real impact on the game. From-SVN: r2784 commit b64fc9f80b0e7776ffecf9be51296050895af76f Author: Philipp Kutin Date: Tue Jun 26 19:49:50 2012 +0000 Fix a thinko in a comment (about commenting) in build/Makefile. From-SVN: r2783 commit 9a214c831f02799f21cd2a1a702402ccd6a5c06e Author: Philipp Kutin Date: Tue Jun 26 19:49:48 2012 +0000 engine.c: factor out two instances of dup code into setup_globals_sprite1() From-SVN: r2782 commit d9e77abe4cc735ba8d1f2cef687040c2a9a0748b Author: Philipp Kutin Date: Tue Jun 26 19:49:44 2012 +0000 premap.c: make P_RandomSpawnPoint more readable by factoring out g_player[snum].ps From-SVN: r2781 commit e1d5a8d199f2f809ff753531a85e8a64e8857800 Author: Philipp Kutin Date: Fri Jun 22 21:40:04 2012 +0000 Fix being unable to hit ENTER on VIDEO SETTINS -> RENDERER SETUP with classic. From-SVN: r2780 commit a8b207baea67cbfd88b9162c927dc258b39a437f Author: Philipp Kutin Date: Fri Jun 22 21:40:01 2012 +0000 Lunatic: various stuff - hitscan & related types and constants - profiling with gethitickms - translator: eval the opening parts of block commands early - fix getbunch From-SVN: r2779 commit 98a41c4c45051fba4ef70d8df0142f39ede9aadc Author: Philipp Kutin Date: Fri Jun 22 21:39:57 2012 +0000 SDL layer: tweak high-resolution timers for profiling, add gethitickms(). For SDL 1.2 and when building on linux, the code using clock_gettime(CLOCK_MONOTINIC, ...) is taken over from SDL HG. gethitickms() is a convenience function that return milliseconds as doubles and isn't exposed in any header file, yet. From-SVN: r2778 commit 461c58920b4ea03a019328ce03778b0a647ed3a8 Author: Philipp Kutin Date: Fri Jun 22 21:39:53 2012 +0000 Add prototypical SDL 2.X support. Doesn't work: indexed-color modes, gamma (at least for X11), mouse wheel, special keys like ENTER or BACKSPACE in the OSD, probably more... In build/Makefile.shared, we now have logic to autodetect an SDL2 installed in /usr/local, however OS X and Wii builds follow other Makefile code paths, it seems. Note that the matching SDL2_mixer must be used then, too. In source/jaudiolib/src/driver_sdl.c, change the #includes from to "SDL_xxx.h". SDL wiki says this is the most portable way, hopefully this doesn't break builds for anyone. From-SVN: r2777 commit 2a59df07015ef258949c8ad5c99c6ed636cfc842 Author: Richard Gobeille Date: Thu Jun 21 19:48:54 2012 +0000 Fix a single usage of S_IREAD instead of our BS_IREAD compatibility version From-SVN: r2776 commit cc13ea9d5563d5f62ab898aaa4c18ce0c82f47b7 Author: Richard Gobeille Date: Thu Jun 21 19:47:02 2012 +0000 Fix useless "No error" message when loading palette.dat fails, change file casing in error message for failing to load tables.dat to reflect the filename actually passed to kopen4load(). From-SVN: r2775 commit 7f1338160384fd2deaafddbaa9b215e976083bb4 Author: Philipp Kutin Date: Wed Jun 20 20:55:03 2012 +0000 Relative-aligned non-flipped ceiling/floor texture alignment ([;]+[ENTER]) Flipped reference ceilings/floors aren't handled correctly yet. From-SVN: r2774 commit b455d100a6ce814cd417622d4ed9872b324f8a08 Author: Philipp Kutin Date: Wed Jun 20 20:54:59 2012 +0000 Mapster32: Fix tweaking TROR wall links when flipping sectors ([X], [Y]). This was actually broken all the time except when ALL sectors were selected (which was what I tested incidentally when I wrote the first "fix"). D'oh! From-SVN: r2773 commit 7b40f8732a985ff6bfff0eaf3a461f8113d3a51e Author: Philipp Kutin Date: Wed Jun 20 20:54:55 2012 +0000 Fix a drawing glitch with mirrors and TROR in classic. From-SVN: r2772 commit 56b24d2d9dcea5a2d2fe4f427a602fcdfc9a130a Author: Richard Gobeille Date: Wed Jun 20 20:03:51 2012 +0000 Wii: offset displayed quotes a bit from the top of the screen to deal with overscan From-SVN: r2771 commit 9a331d3d7e8eb4be8eaa4626b2384ec9b4803b00 Author: Philipp Kutin Date: Mon Jun 18 20:09:03 2012 +0000 Allow fogpal DEF command to fogify pal 0. From-SVN: r2770 commit 992708dfc99e49f8b03f2e5f8b17de3b03637173 Author: Philipp Kutin Date: Sun Jun 17 19:45:53 2012 +0000 Add samples/r_usenewshading.map. This is to the cvar of the same name as samples/aspect.map is to r_usenewaspect. From-SVN: r2769 commit 20c131038fd2b70148d8b09b5d2268c5c360fd71 Author: Philipp Kutin Date: Sun Jun 17 19:45:51 2012 +0000 polymost.c: make polymost_checkcoordinates() static From-SVN: r2768 commit 987bf8c9032c0427260f91334b33b0f42a9c57dd Author: Philipp Kutin Date: Sun Jun 17 19:45:48 2012 +0000 Mapster32: display zero-length walls as level-3 corruptions. From-SVN: r2767 commit 66e64ce12e51822cde051a96a09b307357bd0f76 Author: Philipp Kutin Date: Sun Jun 17 19:45:46 2012 +0000 gamedef.c: some bound tweaks From-SVN: r2766 commit c286d73f509be6cfed196521b8b320697d0afb41 Author: Philipp Kutin Date: Sun Jun 17 19:45:43 2012 +0000 Lunatic translator: ai/move/action. This exposes some problems in the default/in-the-wild CONs. As usual, we'll have to retrofit sensible semantics :rolleyes:. From-SVN: r2765 commit 744cd4409a6d6c54316bdb27c0def9f19d7d3315 Author: Philipp Kutin Date: Sun Jun 17 19:45:41 2012 +0000 Lunatic translator: define* et al From-SVN: r2764 commit 6a5add5c1b13594d75f8870efbf9157a7c0e8983 Author: Philipp Kutin Date: Sun Jun 17 19:45:37 2012 +0000 Lunatic t.: handle prefix-problematic commands for real, definelevelname, ... From-SVN: r2763 commit a7789512bcc1f9cd39b5ff50c2bd9fef9043611e Author: Philipp Kutin Date: Sun Jun 17 19:45:33 2012 +0000 Lunatic/LT: provide the predefined labels in con_lang, add "strict" from luajit. The latter is only for development, since the embedded version already has a undeclared-var-reference handling similar to that. Also fix parm2memberpat. From-SVN: r2762 commit 2eccc488277fe653b4480b411cbb23d90e25cac5 Author: Philipp Kutin Date: Wed Jun 13 23:13:39 2012 +0000 Integer Overflow Offensive, First Act: rintersect, hitscan, neartag. It's time to replace some int32s with 64-bit ints in core engine functions. The problem is that for example, the dot product is taken between vectors that may be the difference between two arbitrary points in a sector, so even if one sticks to the "no blue walls" rule, that doesn't guarantee freedom from overflows. From-SVN: r2761 commit a185a136c3fd6eb9bf98003f3b174efb5b8be671 Author: Philipp Kutin Date: Wed Jun 13 23:13:36 2012 +0000 Polymost: don't attempt to draw sprite with void tile, preventing div-by-0s later From-SVN: r2760 commit 173a2b42ccfbd2b2290ffa6d0ae636e9edd11ca0 Author: Philipp Kutin Date: Wed Jun 13 23:13:34 2012 +0000 Mapster32: draw a wall blue if its squared length exceeds INT_MAX (not UINT_MAX) From-SVN: r2759 commit 06941cc8fbd746b02250b7ea5851844bc5c23839 Author: Philipp Kutin Date: Wed Jun 13 23:13:31 2012 +0000 Fix a div by zero in polymost_internal_nonparallaxed. From-SVN: r2758 commit af34a3c76d184f76ab0f57c3042f818778ef98d8 Author: Philipp Kutin Date: Wed Jun 13 23:13:28 2012 +0000 Mapster32: fix a div by zero when drawing tile info for void tile in 3D mode. This was exposed by Clang with -ftrapv, which apparently also traps those. From-SVN: r2757 commit 63d5dfff5c020160142a4eca2bd46a3b98d64bcf Author: Philipp Kutin Date: Wed Jun 13 23:13:26 2012 +0000 Lunatic translator: fix dangling else and add a test file, tweak warnings From-SVN: r2756 commit e8808d0cb9e51a1f51ee7331c0fd912aeaaec02b Author: Philipp Kutin Date: Wed Jun 13 23:13:23 2012 +0000 build/Makefile: Always compile a-c.o with -O2 and without -fcatch-undefined-behavior This is to not slow down the core drawing functions too much in debugging builds and mimics the way things are on x86. From-SVN: r2755 commit 6c0a5ff9456cce55f0014234093c718f1fe8fb0b Author: Philipp Kutin Date: Wed Jun 13 23:13:20 2012 +0000 a.m32: new state "collect_ceilsky_sectors" collecting parallaxed ceilings. From-SVN: r2754 commit 88a7f7d7d23ca94956316640aff46fce66859157 Author: Philipp Kutin Date: Wed Jun 13 23:13:15 2012 +0000 Mapster32: disallow joining non-adjacent sectors when expert mode is disabled. From-SVN: r2753 commit 141ed48b3cb8792002cf9af7047dcf6da7004c9f Author: Philipp Kutin Date: Mon Jun 11 20:35:47 2012 +0000 Factor out r2726' kopen4load checks into testkopen, closing opened files. From-SVN: r2752 commit 1a87db699a6042babe5a91cecefa346250fe39a8 Author: Philipp Kutin Date: Sun Jun 10 18:56:27 2012 +0000 CON: warn on out-of-range hex literals and ignored redefines with different values From-SVN: r2751 commit eccc5fb6d47839a70d2cd08cf7738cb316177399 Author: Philipp Kutin Date: Sun Jun 10 18:56:24 2012 +0000 CON parser/runtime: two bound tweaks, defer setting insptr in (load)actor. From-SVN: r2750 commit 6c001bd71a36dc18cc920eda05fafcf8c85e6d2a Author: Philipp Kutin Date: Sun Jun 10 18:56:21 2012 +0000 Lunatic translator: define, include, fix "music" parsing, ... From-SVN: r2749 commit a0c0262d84cd556de625cfd7e9fa934b7cb568e8 Author: Philipp Kutin Date: Sun Jun 10 18:56:18 2012 +0000 Lunatic: take a stab at semantic actions; tweaks From-SVN: r2748 commit 3c7ba0a5e8f1b25e0de3fc2cbc0b2994187316a3 Author: Philipp Kutin Date: Sun Jun 10 18:56:15 2012 +0000 Lunatic: actors From-SVN: r2747 commit 969da2a6c3aaf4a58edabcf1bd9cd449d587a45d Author: Philipp Kutin Date: Sun Jun 10 18:56:10 2012 +0000 Lunatic: in event interface, pass actor, player, dist. From-SVN: r2746 commit ff21fd37c1c44931ddbd0bc229896e52139ada9c Author: Philipp Kutin Date: Thu Jun 7 17:38:01 2012 +0000 gameexec.c: factor out stuff, make code more readable overall. From-SVN: r2745 commit 5f86b63455f79f1007a0fa46d1903040eba99d5d Author: Philipp Kutin Date: Thu Jun 7 17:37:57 2012 +0000 Classic: don't attempt drawing sprites with (cstat&48) == 48 that aren't voxels. Bang! One more invalid internals exposure squashed. Maybe one day we'll be able to call EDuke32 "stable"... Actually the offending sprite IS drawn as face sprite with shade 32 and xrepeat and yrepeat 255 for the convenience of the CON coder who will have to debug it. From-SVN: r2744 commit 2343823a78dd0cf9ec2652c17346db7f6b348320 Author: Richard Gobeille Date: Thu Jun 7 02:59:24 2012 +0000 Fix MSVC build error caused by the use of a C99 feature (that should have been added to the compiler about 13 years ago) From-SVN: r2743 commit d0f0e5a38f33f8ce50b34b8da7002efdd50f0826 Author: Philipp Kutin Date: Wed Jun 6 22:03:35 2012 +0000 Silence "number greater than INT32_MAX converted to a negative one" warning. Literals written out as if they were unsigned and having the highest-order bit set are all too ubiquitous, like hitscan masks for example. From-SVN: r2742 commit 4ba09aa37fcafaafd1e5f155a51ac262775baa55 Author: Philipp Kutin Date: Wed Jun 6 22:03:32 2012 +0000 TROR/classic: same fix as r2739, intersecting case. From-SVN: r2741 commit cf06e06bba81ec2af24a5ef75af9107ffc2e7944 Author: Philipp Kutin Date: Tue Jun 5 22:21:26 2012 +0000 engine.c: cleanup / readability tweaks From-SVN: r2740 commit 42d0dcf753baf38a1cb57fb3942ad292532607fb Author: Philipp Kutin Date: Tue Jun 5 22:21:22 2012 +0000 TROR/classic: fix a certain class of underdraw glitches. Those were happening when wall drawing in an upper/lower layer "closed" too much of the "curtain" (umost/dmost) for subsequent drawing in that portal. Example: looking down the sewer manhole at the beginning of Retaliation will now render without HOM. From-SVN: r2739 commit ecc2f0b916b87ec00702d384e58bf9d9cda4430d Author: Richard Gobeille Date: Mon Jun 4 22:01:45 2012 +0000 This probably fixes the music breakage caused by r2727. From-SVN: r2738 commit 4b78466824315e54fa8220941025f9df42193b71 Author: Philipp Kutin Date: Sun Jun 3 19:20:41 2012 +0000 net: do strtok on a duplicated string containing the address in Net_Connect(). Also, - don't strip const when passing the char ptr to it and a couple more instances in game.c - use g_netPort when -connect parameter doesn't have a port suffix (":XXXX"), so that e.g. eduke32 -port 1700 -connect localhost is the same as eduke32 -connect localhost:1700 (-port must come before -connect, unfortunately.) From-SVN: r2737 commit efaeaa3d24eeaf9d36701d73ab428e8cb80beedd Author: Philipp Kutin Date: Sun Jun 3 19:20:39 2012 +0000 net: second part of buffer overflow check correction. This was supposed to go into the last commit, but I did git commit --amend without adding the changes to the index. Now I'm too lazy to sort things out. From-SVN: r2736 commit 566f09baa87f3d7e1badef0d42b40be07511fb0a Author: Philipp Kutin Date: Sun Jun 3 19:20:36 2012 +0000 net: correct packet buffer overflow checks. The GAMESTATE one has to be carried out twice, first on the data from xd3_encode_memory, and then with the compressed data (because it might have increased in size, though this is very unlikely). The MOVE check is similar, though there, failure of the first check implies corrupt memory (which is why we're Bassert'ing that condition). Currently, the overflow on GAMESTATE sending happens when switching to a different map. From-SVN: r2735 commit a1c5e0dd5ec0499742224590571df544e636e2ea Author: Philipp Kutin Date: Sun Jun 3 19:20:34 2012 +0000 net: remove (char *) casts where they amount to no-ops. From-SVN: r2734 commit 01562ba36fd3f4854a1165980a4fc81fd8e26d63 Author: Philipp Kutin Date: Sun Jun 3 19:20:32 2012 +0000 Fix a "set but not used warning" in xdelta3.c, revert definition of XD3_ASSERT. From-SVN: r2733 commit 38e391d714a688f6d7d6038e324ce9f0870b4f5c Author: Philipp Kutin Date: Sun Jun 3 19:20:29 2012 +0000 Revert a change in xdelta3.c done in r2683. From-SVN: r2732 commit b2bdc240fca555019f48253b7886b8300c6cdb8e Author: Philipp Kutin Date: Sun Jun 3 19:20:26 2012 +0000 net: eliminate ptr->byte idx conversion of action/move/ai in t_data. These are element indices for a while now. Also eliminate some dead code afterwards. From-SVN: r2731 commit d60f57c3e359a3fc10cd18b5023706637fc68390 Author: Philipp Kutin Date: Sun Jun 3 19:20:23 2012 +0000 Bump BYTEVERSION, correct actor_t size on x64, add assert(sizeof(actor_t)==128). r2727 made old savegames incompatible, as an array with MAXVOLUMES*MAXLEVELS is saved in Gv_WriteSave(). From-SVN: r2730 commit 6d73ae80fd2664289e465340a465324e9e7742ea Author: Evan Ramos Date: Sun Jun 3 16:12:44 2012 +0000 Prevent the reserved cheats from displaying a finished time and from clobbering personal map time records. From-SVN: r2729 commit aea04df1fa7cbb43019723b7237eda4d3db72a4b Author: Evan Ramos Date: Sun Jun 3 16:11:22 2012 +0000 Massive menu input control revamp/cleanup/factor. (added: input.[ch]) New Wii control defaults for the Wii Remote + Nunchuk and the Classic Controller. This includes new code added just so that the Home key brings up the menu in-game, reducing the need for a USB keyboard. On the technical side, raw joystick access (comparable to what is available for keyboard and mouse) is now present in jmact, on the game side. (added: joystick.[ch]) Using this new raw joystick access, I replaced tueidj's hack to map A and B to LMB/RMB and D-Pad Up/Down to the scrollwheel. I made the menus more friendly to mouse and joystick browsing by adding and unifying checks and clears for various buttons and gamefuncs. In fact, the majority of the time spent on this commit was tracking down problems that appeared with the factoring and trying to understand the menu system and the way input checks are precariously executed. In addition, "Press any key or button to continue" now truly means what it says. As a result of incorporating proper raw access into control.c instead of it directly accessing the implementaiton, the program *may* no longer be affected by joystick input when it is out of focus. This follows the pattern set by the mouse, and I think this is a positive change. A small bonus: In the classic/old keyboard preset, the key for Show_Console has been changed from '`' to 'C' because '`' is taken by Quick_Kick. From-SVN: r2728 commit 1c0f5b18732ba4c3e337514b4ad21818907d47c5 Author: Evan Ramos Date: Sun Jun 3 16:10:08 2012 +0000 Bump MAXLEVELS to 64, per user request. From-SVN: r2727 commit 201dde516467079bc1d813e255f03277334ffe77 Author: Evan Ramos Date: Sun Jun 3 16:09:33 2012 +0000 The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. NAM and Napalm can now share their con, def, and rts files if the one for their respective game is not present because the con and rts files are identical. Also, decapitalize two string literals missed in r2540. From-SVN: r2726 commit 35c330c0a022bf575fccd942b4ed3949a7e24810 Author: Evan Ramos Date: Sun Jun 3 16:08:27 2012 +0000 Incorporate some use of Bfflush(NULL) in hopes to alleviate Wii configuration saving concerns. From-SVN: r2725 commit 56ea3dad47f561974ec9d3733fafd5afe79e72fd Author: Philipp Kutin Date: Sun Jun 3 15:46:08 2012 +0000 Lunatic: pack actor/move parameters into t_data, which is enlarged to 14 elements. (LUNATIC build only.) Also, a minor problem is identified. sizeof(actor_t) is 124 on 64-bit platforms, while the expected size is 128 bytes. This needs to be corrected whenever the next savegame version bump happens. From-SVN: r2724 commit c7b06a128bbdf81d54334e6d1fa319da1ce55fc1 Author: Philipp Kutin Date: Sun Jun 3 15:46:05 2012 +0000 In G_GameExit, rename arg 't' to 'msg' for (slightly) easier grepping of t_data etc. From-SVN: r2723 commit eb56bc4848d3cd2deba80342517f1f3bf8decc81 Author: Philipp Kutin Date: Sun Jun 3 15:46:02 2012 +0000 Lunatic: one const char * --> char *, since we alloc/free it. From-SVN: r2722 commit ef5e863df12accedd40d26db0845c67ed30b1816 Author: Philipp Kutin Date: Sun Jun 3 15:45:59 2012 +0000 Rename LUNATIC_ENABLE macro to just LUNATIC. From-SVN: r2721 commit e7b31785f72190526224edac28df08cc2d7af95d Author: Richard Gobeille Date: Sat Jun 2 00:02:57 2012 +0000 Replace a couple uses of S_IREAD with our platform-aware BS_IREAD From-SVN: r2720 commit 0939652155cdf7188498e092043528a59ac7b4e3 Author: Richard Gobeille Date: Sat Jun 2 00:01:36 2012 +0000 Replace a few "#ifdef GEKKO" statements added for the Wii port with "#ifdef HAVE_VORBIS" like they should have been in the first place. Allows jaudiolib to build without Ogg support on platforms other than the Wii if desired. From-SVN: r2719 commit bcfbb936c1db59036ebb4bfb2a4195e681c40f83 Author: Philipp Kutin Date: Fri Jun 1 20:09:27 2012 +0000 For me (helixhorned), do SDL_WarpMouse even in debugging builds again. This introduces a Makefile variable EDUKE32_MY_DEVELOPER_ID, which is expected to come from the environment, so that minor disagreements/ preferences can be handled -- don't let it go overboard though! -- to keep the working directory clean of stuff that one doesn't actually work on. My ID is 805120924, i.e. "helix". From-SVN: r2718 commit 7fcdf6424fb7838558103c01777e6da052007561 Author: Philipp Kutin Date: Fri Jun 1 20:09:24 2012 +0000 M32 auto-aligner: calculate panning for non-firstwall-aligned ceilings/floors. Also, print failure messages on some occasions. From-SVN: r2717 commit 12add3732bfc5380161b297270dd4287a00b47cd Author: Philipp Kutin Date: Fri Jun 1 20:09:22 2012 +0000 Mapster32: keep the temp sector on some more occasions that don't delete them. From-SVN: r2716 commit b775fa85bde8e685465af1cd1b1f0a66dcad39d4 Author: Philipp Kutin Date: Fri Jun 1 20:09:19 2012 +0000 Mapster32: Part 1 of ceiling/floor auto-alignment functionality. Usage is from 3D mode only. When a sector (or wall) is committed to the clipboard, it (or the wall's sector) is saved, and is subsequently used when auto-aligning [;-ENTER] another sector's ceiling or floor against the reference one's. This temp. sector is reset on any structurally modifying operation except setting first walls; also, aligning extended ceilings or floors is impossible as they use .*xrepeat internally. The auto-alignment does not change picnums (this can be accomplished with the ['+ENTER] combination), but copies the orientation bits 2^{2..6} to the alignee. Afterwards, if the reference is relative-aligned, it tweaks them, so that every case where the two firstwalls are either parallel or perpendi- cular is handled correctly. It does not yet calculate the panning values. From-SVN: r2715 commit f2887ecf5b74079b3be0cd25253395ce67af666a Author: Philipp Kutin Date: Fri Jun 1 20:09:15 2012 +0000 Throw a commented #define DEBUG_TEXTURE_NAMES into glbuild.h. This is so that people know where to enable it. One day, all these debugging switches ought to go into the Makefiles in one form or another. From-SVN: r2714 commit 5a7326f86e84744ac13f8468b19f0866dcb6139a Author: Philipp Kutin Date: Fri Jun 1 20:09:09 2012 +0000 Mapster32: in textured 2D mode, make floor flipping [F] work. From-SVN: r2713 commit 7b3160ebe4711107528c413a4d718c8a188334c2 Author: Philipp Kutin Date: Fri Jun 1 20:09:00 2012 +0000 Mapster32: In textured 2D mode, allow setting floor relativity [R]. Also factor out the code (2x) setting the alignment bits for sprites. From-SVN: r2712 commit 484f71a9d43bded1af08f173fcc665bf2f860ff4 Author: Philipp Kutin Date: Fri Jun 1 20:08:57 2012 +0000 Mapster32: more descriptive message when flipping stuff [F], reverse w/ SHIFT. From-SVN: r2711 commit 2bd391647525c808d676613fbf8daf8b825e0977 Author: Philipp Kutin Date: Tue May 29 20:01:58 2012 +0000 Lunatic: fix one stack index, comment on a problem with ffi.C access. From-SVN: r2710 commit 1e19cb4a2d84da84253adfdb3515e115a094a1f1 Author: Philipp Kutin Date: Tue May 29 20:01:55 2012 +0000 A couple of minor fixes and comments that got accumulated in my tree. From-SVN: r2709 commit 88fcac626cfc91d53dd43765302ffbd809b33b54 Author: Philipp Kutin Date: Tue May 29 20:01:50 2012 +0000 Makefile.shared: don't link with libsupc++ on linux. It works perfectly fine without it for me, and including it for no reason is just an annoyance to other people building from source. From-SVN: r2708 commit b7eb8c9bf7d37291d91d9a43de327e039f807f93 Author: Philipp Kutin Date: Tue May 29 20:01:48 2012 +0000 Introduce two convenient sprite iteration macros in build.h, add a few uses. Defines SPRITES_OF(Statnum, Iter) and SPRITES_OF_SECT(Sectnum, Iter) [The first is so that STAT_* can be substituted for Iter and it reads nicely.] Usage should be self-explanatory, but one thing to keep in mind is that the sprites that are iterated over MUST NOT be deleted. From-SVN: r2707 commit 20841395800bd443dbf80509130de1eb169bd1e5 Author: Philipp Kutin Date: Tue May 29 20:01:44 2012 +0000 In CON showview, if drawing off-screen, clear the view with pal 0 and bail out. This fixes the glitches/corruption whereever showview is used from EVENT_DISPLAYROOMS while the scene is actually rendered to a tile instead of the frame buffer, for example because we have a tilted view or "pixel doubling" enabled. Fixing it for real (i.e. so that the showview actually completes) will require more effort. From-SVN: r2706 commit b165937b3111a21f4c8303f125e14bdaf067cadc Author: Philipp Kutin Date: Tue May 29 20:01:40 2012 +0000 mdsprite.c: patch up bad array access in loadkvx, remove const from kopen4load arg. vbit was being accessed with an int32 e.g. at address 3200 when only 3203 were allocated. We simply alloc +1 byte. From-SVN: r2705 commit cb41279bdc83f41c0ae24b47312f8f437b3647f4 Author: Philipp Kutin Date: Mon May 28 18:15:26 2012 +0000 On Windows, check file name case with 'sound' and 'music' CON commands. This is done by kopen4loadfrommod'ing and immediately closing the file (since the checker is still run from there when not ingame). On my system, times were like 0.12 ms, 0.2 ms and 0.5 ms for each openfrompath/findfrompath, openfrompath/Bopen and SHGetFileInfo respectively, so it shouldn't have a too noticable impact on initial loading times. From-SVN: r2704 commit 8af6bb63bedad1ede483a9737ebe1e6210af4a3f Author: Philipp Kutin Date: Mon May 28 18:15:22 2012 +0000 In kopen4loadfrommod, don't try g_modDir if it's the default "/". I experienced the following on Windows XP: a few openfrompath() --> findfrompath() calls were taking enormously long (4.5 secs) to complete, having been passed a file name like "//bla/qwe.asd". My guess is that Windows then tried to interpret these as a network FS path in access(), and the 4.5 secs represents a timeout value. From-SVN: r2703 commit c99c171085684c40671397e73dbb526620f84d4e Author: Philipp Kutin Date: Mon May 28 18:15:19 2012 +0000 Only check file name case when not in-game; don't warn for ALLUPPER or alllower. The first means that the expensive (~0.5 ms) SHGetFileInfo() calls won't inter- fere with smooth gameplay, but files that are opened only at game-time like sounds won't be checked. The second means that there are now less false positives, i.e. warnings about files that would be found due to the check-all-{upper,lower} hack. From-SVN: r2702 commit 299159361faad795d4f6ce2a58ec826aae4f4ac7 Author: Philipp Kutin Date: Sat May 26 21:58:31 2012 +0000 engine.c: make horizlookup/horizlookup2 have int32_t elts instead of intptr_t. From-SVN: r2701 commit 86a47d4291a34910a7c160d696d4bd8dd04a19a8 Author: Philipp Kutin Date: Sat May 26 21:58:29 2012 +0000 In tilted-view setup code, allocate TILE_TILT storage more tightly. From-SVN: r2700 commit 0ef23baae98d7a078ec7a314461ddc10eeaa47b1 Author: Philipp Kutin Date: Sat May 26 21:58:26 2012 +0000 build.c: factor out two identical code instances into handle_sprite_in_clipboard From-SVN: r2699 commit 1c689183ffbc2818b5f32d0aa1580d14ccbcafd7 Author: Philipp Kutin Date: Sat May 26 21:58:24 2012 +0000 Disallow high-quality (640x480) tilted screen if MAXYDIM is less than 640. This fixes the crash on Wii when looking sidewards (e.g. when dying), but makes the tilted view look more pixelated. The problem was that an attempt was made to render onto a 640x640 tile for the rotated view, but the base engine arrays were too small for that. From-SVN: r2698 commit 0f7c0c4f1bb44993549f6fcccca1678f36e59ffb Author: Philipp Kutin Date: Sat May 26 21:58:21 2012 +0000 Various cleanup and rewrites. - make allocatepermanenttile() return intptr_t - the usual From-SVN: r2697 commit d71973e95fe9cd905080649828298a375a99cf0e Author: Philipp Kutin Date: Fri May 25 18:39:25 2012 +0000 Fix harmless "cast to pointer from integer of different size" warning with x64. From-SVN: r2696 commit 7900e425581b5278f9a82052d8edf9201d2533cf Author: Philipp Kutin Date: Fri May 25 18:39:22 2012 +0000 Cleanup & minor rewrites, among other things in premap.c:G_EnterLevel(). From-SVN: r2695 commit f525837d250dbb749b287c32e3cd2812a367bc9a Author: Philipp Kutin Date: Fri May 25 18:39:19 2012 +0000 With engine compiled for V7 limits, refuse loading maps exceeding them. Also, correct the loadboard() return value checks in premap.c to be aware of a returned -2 ("wrong map version"). From-SVN: r2694 commit 697d0f12bd38aef1fe37577fc59a99684e8518fb Author: Philipp Kutin Date: Fri May 25 15:23:58 2012 +0000 On Windows, don't try to lowercase/uppercase filenames. Most of the time, Windows file name lookup is case-insensitive. Reading the docs (see MSDN's CreateFile help, for example), it seems like case-sensitivity can be controlled on a per-file basis where applicable (NTFS), but people should be concerned about matching case in the DEFs/on disk *especially* in that case. Also, note that this hack will not always help on systems with case-sensitive lookup. From-SVN: r2693 commit 76a64a2a3d452521bf1a8e9a08252f763593190c Author: Philipp Kutin Date: Fri May 25 15:23:55 2012 +0000 On Windows, check for case-mismatched file names on successful kopen4load(). When a file from the local file system is opened, its real file name is gotten with SHGetFileInfo() and compared against the one that was passed. In the case they're not identical, a warning is issued. This is one step towards eliminating mismatched file names in DEFs etc., which cause trouble on systems that look them up case-sensitively. However, it's not perfect because the issue is trickier than it appears on first sight. For one thing, this will only check the last (i.e. file) part in the path, falsely accepting mismatched directory names. However for these, it reports them ruthlessly, even for those names where the try-other-case hack (try all uppercase, all lowercase) would find the correctly-cased file. From-SVN: r2692 commit 0a0cbe3921b5816c9877d1d704cf50032da529ad Author: Philipp Kutin Date: Fri May 25 15:23:53 2012 +0000 Fix some *printf format-char/vararg mismatches on x86_64 in net.c. From-SVN: r2691 commit 580b9b80cdc3d5982e7c2ffe320cea95d4c91373 Author: Philipp Kutin Date: Fri May 25 15:23:50 2012 +0000 Bump BYTEVERSION because of the preceding change. From-SVN: r2690 commit fecf12b9f7f3447da4288099a62b1fe0ae066077 Author: Philipp Kutin Date: Fri May 25 15:23:48 2012 +0000 Fix gamearrays on 64-bit platforms. They were broken by r2666, which made their elements intptr_t instead of int32_t, but this change was not reflected in related allocation code. WARNING: players on 64-bit platforms should not attempt to load games saved with r2665 or earlier. From-SVN: r2689 commit d28732eea14d08d039db227aece2696264b04f8f Author: Evan Ramos Date: Fri May 25 05:14:19 2012 +0000 Add EVENT_LOADGAME and EVENT_SAVEGAME, self-explanatory. Also make EVENT_NEWGAME use myconnectindex for player ID instead of screenpeek. From-SVN: r2688 commit 732323f8c50d5161e6e798e1dc110faa25655253 Author: Evan Ramos Date: Fri May 25 05:13:41 2012 +0000 Setting RETURN in EVENT_DISPLAYCROSSHAIR will now change the crosshair's picnum while allowing the game to position it, etc. As usual, setting RETURN to -1 disables hardcoded drawing of the crosshair completely. From-SVN: r2687 commit 954a3679d21730442740535fb955711228561cfc Author: Richard Gobeille Date: Tue May 22 15:28:51 2012 +0000 Bump build date from 20110312 to 20120522. From-SVN: r2686 commit 9335843c3d22a8ab6a59448dd3c8f97e3929a3e5 Author: Evan Ramos Date: Sun May 20 07:25:25 2012 +0000 EDuke32 Wii: Ready for action! From-SVN: r2685 commit 2e45937f18bfa7640ecb12afce687a624d96e08a Author: Evan Ramos Date: Sun May 20 07:24:28 2012 +0000 Mac OS X: Add correct default values for 'gameexecutable' cfg string so that the Mapster32 test feature works with .app bundles. Note: You may encounter a crash if you try to test your map and Mapster32 is running fullscreen. From-SVN: r2684 commit 43caf6aec7fc4e6aeca42c1b1efee9d957372708 Author: Evan Ramos Date: Sun May 20 07:23:56 2012 +0000 Fix warnings in net.c and xdelta3. From-SVN: r2683 commit 053c857d6af503c91bd8bdcf70e62b1f55d5acca Author: Evan Ramos Date: Sun May 20 07:23:12 2012 +0000 Add .gitignore generated from `git svn show-ignore`. From-SVN: r2682 commit e932a8f233690567050060838627a5109b14f8ba Author: Richard Gobeille Date: Sun May 20 05:36:32 2012 +0000 Correct an oversight and make handleevents() call our own window processing function instead of the default Windows one. From-SVN: r2681 commit 49831f19989aaedc7daaa66608680fe1cfaa2f56 Author: Richard Gobeille Date: Sat May 19 22:47:47 2012 +0000 Minor formatting fix From-SVN: r2680 commit 9c08810c129177c6ea6936ad2ae937c312eca4d4 Author: Philipp Kutin Date: Sat May 19 16:25:52 2012 +0000 net: less-trivial, but not non-trivial changes From-SVN: r2679 commit ffc9a10925e55989f463920c9d3145d64eb006fd Author: Philipp Kutin Date: Sat May 19 16:25:38 2012 +0000 net: trivial changes From-SVN: r2678 commit 92d7f60f4e5143b57dbbf8ea4241ecb03ca77a9d Author: Philipp Kutin Date: Sat May 19 16:25:22 2012 +0000 net: factor out common packet handling code From-SVN: r2677 commit 54192dd8ea819427c132e10672753e1fd94ad98b Author: Pierre-Loup A. Griffais Date: Sat May 19 15:12:08 2012 +0000 netcode: unblock stuff From-SVN: r2676 commit 7ee9fbcd58ae3b5ce97aa61684eee572e0633e21 Author: Richard Gobeille Date: Sat May 19 14:39:29 2012 +0000 Fix the previous/next weapon events From-SVN: r2675 commit 185a1a74d569a5d675fb28dba72d63691777659a Author: Philipp Kutin Date: Fri May 18 21:41:08 2012 +0000 net.c tweaks, just for the sake of pushing them to SVN. - alloc_multimapstate() helper - make g_netMapRevision a uint32 and store save->revision in sequence order (without &(NET_REVISIONS-1)) - one assert, one XXX comment, stylistic changes From-SVN: r2674 commit 88497577165788eea1e0ba94d392ccf12ca266fa Author: Philipp Kutin Date: Fri May 18 21:40:54 2012 +0000 PNG screenshots: don't save custom gAMA. This should be more correct, since previously, the saved PNGs were way too contrasty when looked from within a browser. Now, they'll always be slightly darker than in-game (assuming one has a gamma greater than 1). From-SVN: r2673 commit 46b1ecd2e222a7956700e3f116353b3b6caaed86 Author: Philipp Kutin Date: Fri May 18 21:40:38 2012 +0000 With Clang, compile in GNU89 mode and fix clang detection in the Makefiles. The default C99 mode is giving us linking errors from xdelta3. From-SVN: r2672 commit 9870c70fc31fcc6feff60197eb2761a6e358a237 Author: Philipp Kutin Date: Fri May 18 21:40:20 2012 +0000 Fix one ptr size mismatch and one format letter/arg mismatch on x86_64. From-SVN: r2671 commit b25c36f615e8719361ea7e00f28d2ff3dfa92e5e Author: Philipp Kutin Date: Fri May 18 12:46:25 2012 +0000 Fix cheats giving inventory items and their events. From-SVN: r2670 commit 4d1f9b5969d7c2d71f0839759e8e77f9418870fb Author: Philipp Kutin Date: Fri May 18 12:46:10 2012 +0000 Lunatic: actions prototype, not enabled even in the dev build. For Lunatic, we'll want to get rid of the t_data --> script indirections, since the latter will be no more. Thus, all parameters are saved in t_data directly. For the normal build, there are no changes, only stylistic tweaks. From-SVN: r2669 commit 7128d36f39205eef399e7207707c82ed87d48e54 Author: Philipp Kutin Date: Fri May 18 12:45:52 2012 +0000 Lunatic: v7 engine support, event updates From-SVN: r2668 commit 71816603ad902ebf51080c0f57586f9fdb444845 Author: Philipp Kutin Date: Fri May 18 12:45:29 2012 +0000 Fix A_CheckEnemyTile() returning 1 for "fixed" sprites (see r1913). Those sprites are usually decorative, and certainly not enemies! From-SVN: r2667 commit 4d2449244b0f4c076f70c68d03150e95c9070b90 Author: Richard Gobeille Date: Fri May 18 02:49:03 2012 +0000 Fix building xdelta3.o From-SVN: r2666 commit 7da8285ef5b4604de58b1ae2f179b838ed41621c Author: Richard Gobeille Date: Fri May 18 00:07:40 2012 +0000 Add xdelta3 source and headers to VS2010 project From-SVN: r2665 commit 29c758731bfb81790fb56963988e91ce521785cf Author: Richard Gobeille Date: Thu May 17 23:54:43 2012 +0000 WIP multiplayer changes, still completely broken. From-SVN: r2664 commit de149f8f12ee420dee7c28a720751147a3449769 Author: Richard Gobeille Date: Thu May 17 21:42:53 2012 +0000 Update ENet with changes from the newest version from CVS (yes, they still use CVS) From-SVN: r2663 commit 16ea3dabee40c41c9086894160ba8fc860b86863 Author: Richard Gobeille Date: Thu May 17 21:36:50 2012 +0000 Update QuickLZ to 1.5.1 beta 7 From-SVN: r2662 commit 14081931442995229fece599975b128091122baf Author: Richard Gobeille Date: Thu May 17 21:27:19 2012 +0000 Add xdelta3, required for some broken multiplayer updates I plan on committing later From-SVN: r2661 commit 67841e9f9f209444bd42feeaeeb05aa20d8b57b1 Author: Richard Gobeille Date: Thu May 17 20:47:56 2012 +0000 Fix EVENT_CHECKTOUCHDAMAGE (the change to how events handle RETURN broke it) From-SVN: r2660 commit 5b929dde1e2a4f3aac5b2e086a56426397c5a3f1 Author: Richard Gobeille Date: Thu May 17 17:33:29 2012 +0000 Alternate implementation of EVENT_SOUND that better covers all hard coded sounds (menus, boss recognition sounds, etc) From-SVN: r2659 commit 07b32119eb57abbe2929145f29776c0a9cd57acb Author: Richard Gobeille Date: Thu May 17 17:23:02 2012 +0000 Fix breakage of EVENT_WEAPKEYx after r2656 From-SVN: r2658 commit d2190931f4b42809c333e5bd45f073c8370c272f Author: Richard Gobeille Date: Thu May 17 17:19:52 2012 +0000 "Band-aid" fix for the issue with EDuke32 and Mapster32 visually locking up but continuing to run and play sounds after alt+tabbing away for a few seconds on Windows Vista/7. This may screw something else up, so please test thoroughly. From-SVN: r2657 commit ee898429474d64c0be4b560b27c49f1543ac3278 Author: Richard Gobeille Date: Wed May 16 00:45:10 2012 +0000 This should hopefully fix the disaster with events caused by my last couple of commits ;) From-SVN: r2656 commit 5a36171e73489c70d98c61e512c005735c9b7462 Author: Richard Gobeille Date: Tue May 15 23:39:48 2012 +0000 Fix a potential issue with nested event execution From-SVN: r2655 commit e12baa812b17abcff8f370c238db8414eb90cae5 Author: Richard Gobeille Date: Tue May 15 14:12:24 2012 +0000 Another one line DynamicTileMap[x] -> DYNAMICTILEMAP(x) change from Helix that got obliterated during svn change merging. Fixing this changes nothing in builds with DYNTILEREMAP_ENABLE defined, so this change isn't meaningful to anyone who isn't recompiling the game to work on a low memory device or something of that nature. From-SVN: r2654 commit f1e01a79a1990e26c3081ed2207f3c4a55167478 Author: Richard Gobeille Date: Mon May 14 22:45:40 2012 +0000 1 line fix for a change that accidentally got reverted when merging newer svn updates into an older local branch From-SVN: r2653 commit abf0b1e8f893901fdbf399518c547c7f396004a1 Author: Richard Gobeille Date: Mon May 14 18:12:27 2012 +0000 Addition of 3 events: EVENT_SOUND: triggered upon playback of any sound, this allows the "hard coded" sounds to be altered in a context-aware fashion instead of having to resort to clunky hacks like replacing them with a blank sound effect. RETURN var iable is set to the sound effect # of the sound to be played, or -1 to cancel playback. EVENT_CHECKTOUCHDAMAGE: triggered in P_CheckTouchDamage() whenever the player collides with anything. Value of RET URN is set to the result provided by clipmove() and so can be decoded in the same way. Value of RETURN when the event is over can also be manipulated to control some of the hard coded damage effects. EVENT_CHECKFLOORDAMAGE: triggered in P_CheckFloorDamage(), RETURN is simply the picnum of the floor of the sector t he player is in. Can be used to cancel hard coded floor damage effects or to make other tiles exhibit the same eff ects Other misc fixes and cleanups, including a possible workaround for Duke Plus SECTOREFFECTOR light issues wherein all SE49 and SE50 that have a statnum of STAT_EFFECTOR are simply changed to STAT_LIGHT during the STAT_EFFECTOR loop now. From-SVN: r2652 commit 45e46f3bb8423f6119321ff19b0603803bbb6b4b Author: Philipp Kutin Date: Sun May 13 16:05:34 2012 +0000 Add tilenum bound check to CON *actor blocks when parsing, fix the other ones. The remaining checks now "continue;" when an oob tilenum is found where an oob access would ensue else. Also, it's now checked for negative numbers (the message remains the same though). From-SVN: r2651 commit b71c6d36254ae88bdc5380027467c5990df6a49b Author: Philipp Kutin Date: Sun May 13 16:05:16 2012 +0000 Lunatic: embed lpeg and the translator into the binary From-SVN: r2650 commit a556fa4f57795393b7af4963259cb1f26218f10d Author: Philipp Kutin Date: Sun May 13 16:04:45 2012 +0000 Lunatic translator: better line numbering From-SVN: r2649 commit 822762cff249469c43c25becfc9f9bccf8dee024 Author: Philipp Kutin Date: Sun May 13 16:04:28 2012 +0000 Lunatic: better initial environment setup, preventing textual repetitions From-SVN: r2648 commit 9f7c5d637633da3918acf945e72a29e786e8e24b Author: Philipp Kutin Date: Mon May 7 21:02:14 2012 +0000 Take care of fullscreen tinting not being stuck on the least-intense value. From-SVN: r2647 commit bafb09c551b558d2dd04e162d954e491a469421f Author: Philipp Kutin Date: Sun May 6 21:01:52 2012 +0000 Assign light SEs (lotags 49 and 50) to an exclusive status number. EXPERIMENTAL! The primary reason for doing this is that handing of moving sectors is significantly simplified. Because moving sectors usually don't move containing SEs/effector-statnum sprites, no special handing code is needed to move light SEs with them. Thus, this commit sets light SEs to a new statnum when they're spawned *from premap*, and a new G_Move*-like function (called G_DoPolymerLights) is added to process every sprite in that status list. This should "fix" light SEs moving together with a variety of moving sectors, but CON programs expecting the old behavior may break, therefore this commit is marked as experimental. Additionally, a problem with the old implementation is identified: it seems like the correct functioning is dependent upon the order of processing between the sector movement effector and the light SE, so this makes it another good reason for the change. (A third one is that all lights can be processed with a per- statnum loop, but CON coders should not do this until the change is considered final). From-SVN: r2646 commit 692f18fb2aa201d71de2edfa16e89e1d71e27fea Author: Philipp Kutin Date: Sun May 6 20:23:20 2012 +0000 A couple of misc. Wii changes. - Make MAXXDIM and MAXYDIM macros be 860 and 490, respectively. tueidj says max. screen size is 848x480, but there are oob access bugs in the classic renderer when running with the maximum possible resolution - don't allocate additional sector/wall storage for Mapster (saves ~16k) - Add ud.config.UseJoystick = 1 in config.c, but make it conditional on Wii - remove one comment I no longer believe true, add one TODO comment From-SVN: r2645 commit bef255c08ed5b0712c78cb1ec98655c74d206ae1 Author: Philipp Kutin Date: Sun May 6 20:22:56 2012 +0000 Lunatic translator: a bit more syntax From-SVN: r2644 commit 63292f2d9b58f4afa79e1ce4b6b276ba499a3ce3 Author: Philipp Kutin Date: Sat May 5 22:24:50 2012 +0000 Factor out almost all instances of setting ...->pals.[rgbf] into P_PalFrom. This is so that it may be intercepted in the future. The only code that's not replaced by the function call is with the CON interface to g_player[].ps->pals via player[].pals X and .pals_time. Also, comment out one instance because it's overwritten by a succeeding one. From-SVN: r2643 commit 5dffa5ab7c01b6bd37d020ee80a2b26b715d2d9d Author: Philipp Kutin Date: Sat May 5 22:24:33 2012 +0000 In game code, replace remaining literal status numbers by their defines. From-SVN: r2642 commit cb5ec4e91f539692c0f3734f082e9735bb7eda71 Author: Philipp Kutin Date: Sat May 5 22:24:17 2012 +0000 Prevent an (unlikely) integer overflow in neartag with huge switch sprites. From-SVN: r2641 commit 0b66e02665508bc5515e33b83b9bb8b59e34feb4 Author: Philipp Kutin Date: Sat May 5 22:24:02 2012 +0000 Remove the 'inline' qualifier of some (not-so) short functions. Besides being the compiler's job nowadays, they significantly inflate the size of the debugging builds. From-SVN: r2640 commit 4f1f3b1c1efe73b3d79c655ee5ef630c9ce39f27 Author: Philipp Kutin Date: Sat May 5 22:23:44 2012 +0000 Accumulated trivia, mostly "the usual". Among other things, comment out very seldomly (or not at all) used sprite member macros: SV, ZV, RX, RY, CX, CY, CD, PL. From-SVN: r2639 commit d2929bed41fcc4c6d52eb155c0f2ce9cb28f5a38 Author: Philipp Kutin Date: Sat May 5 22:23:17 2012 +0000 Make the GAMMA_CALC macro use double instead of float and use it in menus.c. From-SVN: r2638 commit 52410fcac17722b4feac4ceeeeda1a9adc18d035 Author: Philipp Kutin Date: Sat May 5 22:22:59 2012 +0000 Add bit 16 to the two main setbrightness() users, add bit 2 to one of them. (I.e. also restore r2232 again.) The first one is the palette restore logic in G_DisplayRest, the second is CON setgamepalette, to which the "don't gltexinvalidateall()" bit is added to mimic the first. Hightile invalidations aren't really useful for anything other than reloading them after a video mode change, IMO. These changes mean that 1) active full screen tints should (almost) always be kept with a basepal change. The only exceptions to this are when tints really have to be cleared, e.g. when changing the player view in co-op play. 2) there should be no performance issues with simultaneously changing basepals while a tint is applied From-SVN: r2637 commit 36105a27ec7ddd098ad5e03c2b22ec8adcfd5132 Author: Philipp Kutin Date: Sat May 5 22:22:34 2012 +0000 Tweak the conditions under which setbrightness() invalidates GL textures. Previously, we checked whether the faded palette has changed (by way of CRC) and invalidated the textures then unless the preserve flags were set. This however could lead to wrongly invalidating them under unfortunate circumstances, e.g. basepal change from CON + tints at the same time before r2620 which reverted r2232. Now, only invalidate them if the corresponding preserve flags are clear AND * the base palette has really changed OR * the palette CRC changed and we were running on software gamma The latter means that performance-killing invalidations may still happen on GL platforms lacking HW gamma (for ATI, it's currently only disabled in 8-bit fullscreen). Also have a new global 'basepalreset' to fake a basepal change for setbrightness(), currently used when changing renderers so that going from Polymer to Polymost and back again will invalidate the Polymer textures on the second change, potentially re-applying a basepal highpal. (Still with me?) From-SVN: r2636 commit 09c07188943a160377176e936ea0b828c2652406 Author: Philipp Kutin Date: Sat May 5 22:22:19 2012 +0000 Gray out CONTRAST and BRIGHTNESS sliders if no hardware gamma is available. The sliders themselves still permit changing values, but are drawn with a 'disabled' shade because they're non-functional with software gamma. From-SVN: r2635 commit fe0f4ce13937108eb6a3ce558124c02ee1028059 Author: Philipp Kutin Date: Sat May 5 22:22:05 2012 +0000 winlayer: Remove code that worked around a (wrongly) not set have_ATI variable. This was fixed with the preceding change; software mode will now always use software gamma if an ATI/AMD card is detected. From-SVN: r2634 commit f9801b8ba2f0fd98a6e2584f2998da3f6c61a9d3 Author: Philipp Kutin Date: Sat May 5 22:21:49 2012 +0000 On Windows, determine if we're running on a ATI card at startup even in classic. Previously, I knew no way of querying for graphics adapter vendors/names from anything other than OpenGL. Googling revealed a way to do this with the Windows API. From-SVN: r2633 commit 9ec06439f4ac8755b356d8135b1626de077bee02 Author: Philipp Kutin Date: Tue May 1 12:41:35 2012 +0000 Some leftover stuff from the Wii patch. - in actors.c, make a static array const (the original patch removed the staticness) - remove one comment and change some compiled-out code - remove commented out pre-Makefile.common stuff Some changes were not adopted from tueidj's patch: - whitespace cleanup - ud.config.UseJoystick = 1 in config.c - Makefile.common, as mentioned before - proper read-in of g_numRealPalettes, because it was done with r2503 From-SVN: r2632 commit 87a8d871f68edc19911fa16883609777480a7fc6 Author: Philipp Kutin Date: Tue May 1 12:41:13 2012 +0000 Patch adding Wii support by tueidj, part 11: miscellaneous changes - BIGX -> BIGX_, likely again because of a name clash - make a loop in animlib.c iterate in forward direction From-SVN: r2631 commit 7b2e4e79af4bfc41bbc7166a552147e5429110a0 Author: Philipp Kutin Date: Tue May 1 12:40:53 2012 +0000 Patch adding Wii support by tueidj, part 10: sound and endianness changes This part is a mixture of the original patch and my changes. It seems like tueidj had some trouble 1) getting OGG to work, which is why it's conditionally compiled out 2) struggling with endianness with the mixing routines? This may be also due to him missing to define two others BIGENDIAN macros (our code is in need of cleanup there). Note the change in jaudiolib/src/mix.c! Because I added my share to this part, I might have actually broken sound mixing on big-endian platforms. From-SVN: r2630 commit daf0b939bc21f3af5f3858e689e2bd6d1834b888 Author: Philipp Kutin Date: Tue May 1 12:40:24 2012 +0000 Patch adding Wii support by tueidj, part 9: build.h sector/wall/spr/... limits On the Wii, V7 (i.e. original) map limits are used and the maximum screen size is 1600x1200. From-SVN: r2629 commit 704acead39df68bece8c59dd295207c2e9dd0801 Author: Philipp Kutin Date: Tue May 1 12:40:08 2012 +0000 Patch adding Wii support by tueidj, part 8: system-specific changes - conditionally compiles out some code intended for the PC platforms - compat.c: get home directory routine, access() implementation - game.c: don't use ioctl(), lower cache1d size to 8 MiB, Wii-specific initialization code and application directory ("apps/eduke32") From-SVN: r2628 commit 8300bef5569560ca4642b2b0fe98cfab49ef37d1 Author: Philipp Kutin Date: Tue May 1 12:39:41 2012 +0000 Patch adding Wii support by tueidj, part 7: networking This simply macro-defines various low-level networking functions. From-SVN: r2627 commit 165db99726a5abc5ff839fd4225d2def2f82a175 Author: Philipp Kutin Date: Tue May 1 12:39:20 2012 +0000 Patch adding Wii support by tueidj, part 6: mutexes For the Wii, SDL's mutex functionality is used. The implementation in the original patch was wrong though, so this part required non-trivial changes. From-SVN: r2626 commit 832ffe70fe1a2fccd62598fb5e74d44875b5871e Author: Philipp Kutin Date: Tue May 1 12:39:02 2012 +0000 Patch adding Wii support by tueidj, part 5: game-side input device changes - the crosshair is displayed at the position read from the absolute pointing device - in the menus, use the hat input (that was mapped to mouse buttons in part 4) for navigation From-SVN: r2625 commit 5d8a364e77f1cb5a911e003fe9d054777c029cf7 Author: Philipp Kutin Date: Tue May 1 12:38:43 2012 +0000 Patch adding Wii support by tueidj, part 4: joystick support - sdlayer.c: custom "get joystick button names" routine - jmact/mouse.c: packs some joystick events into the value returned by MOUSE_GetButtons(): bits used are 256, 512, 4096, 8192 - MOUSE_Init() --> Mouse_Init(), presumably because of a name clash? - comments out right-shift of joystick analog values by 5, maybe this fixes the scale problems with the joystick on the PC too? From-SVN: r2624 commit 598710d41a0367b5fe8748f287658ed7b788d6e9 Author: Philipp Kutin Date: Tue May 1 12:38:14 2012 +0000 Patch adding Wii support by tueidj, part 3: SDL-level mouse changes This part adds support for an absolute pointing device. From-SVN: r2623 commit a01000d64e745bc7436cfa61a9150fec69126b03 Author: Philipp Kutin Date: Tue May 1 12:37:53 2012 +0000 Patch adding Wii support by tueidj, part 2: Makefile changes I didn't add Makefile.common, because it needs to be made conditional. From-SVN: r2622 commit f2bb1857a76269e10337240fbfa2b754a442ab5f Author: Philipp Kutin Date: Tue May 1 12:37:32 2012 +0000 Patch adding Wii support by tueidj, part 1: assembly pragmas The original patch was communicated to me by Hendricks, but since it didn't apply cleanly (it's based on r2182) I took the liberty of slightly messing with it for inclusion into EDuke32. Info: http://wiibrew.org/wiki/User:Tueidj/Duke3D This first part (which wasn't changed from the original patch) implements scaling arithmetic and miscellaneous pragmas, some in PPC assembly and a part of them in C. Of some interest is the fact that the Wii processor apparently lacks support for 64-bit integers, so divscale() uses floating-point math. From-SVN: r2621 commit 52ed34b403a5e317a8b5eb34d1661de2b9157e8d Author: Philipp Kutin Date: Sun Apr 29 20:55:10 2012 +0000 Revert r2232, "don't reset full-screen tint on basepal change" in CON setgamepalette. Because gltexinvalidate*() could be called too often when setgamepalette is used while having a tint overlaid else. Pending thorough analysis/reworking of the 32-bit mode base palette handling / texture invalidation. From-SVN: r2620 commit d9bca694f415a819f9c88f9bc8744c2660dcfe5d Author: Philipp Kutin Date: Sun Apr 29 20:54:52 2012 +0000 When deleting GL skin textures, handle the case where they are aliased. That is, have a second loop over all models run for each deleted tex and null the texname. This is ugly, sure, but it's better than calling glDeleteTextures on stale names. From-SVN: r2619 commit cfc61ee99e2f0cca89455cee4e8cd9b64074a4ba Author: Philipp Kutin Date: Sun Apr 29 20:54:37 2012 +0000 Fix 'realloc' routine of GL texture name (id) debugging code. From-SVN: r2618 commit 71bd5b8aa10ce1771483ef77428c7dfdd79771d0 Author: Philipp Kutin Date: Sun Apr 29 20:54:22 2012 +0000 Prettify some code in mdsprite.c. - factor out a longish expression - whitespace, move a var down - remove unneeded casts (recall: "usual arithmetic conversions") - strcat -> Bstrcat, strcpy -> Bstrcpy From-SVN: r2617 commit c27e75782d37bbc0f37d36f815ad52c904581b00 Author: Philipp Kutin Date: Sun Apr 29 20:54:06 2012 +0000 Lunatic translator: nearing syntax completion while treading in murky waters. - bump lpeg stack limit to 1024 (hack) for long if/if/if...else chains - lexical: newline, EOF and whitespace; "bad" identifiers; hex literals, newline terminated strings (allow empty string) - syntax: allow nesting of array expressions, it's easier than special-casing; handle issues with structs expecting parm2 (hackish); userdef; switch/case/default - fix parsing some commands; mind prefixes! - frontend: if failing match, print last keyword and its position; warn on "bad" identifiers (one per such); batch processing from command line - Files that locate finds from my linux box now pass (except where there are really syntax errors). From-SVN: r2616 commit 9891d8549c5a5cc55905f360add1a3ebe39a7c3f Author: Philipp Kutin Date: Sat Apr 28 21:56:38 2012 +0000 CON palfrom: sanity-check current player and maybe print error message. From-SVN: r2615 commit bf68074c79e2aecd09f3ea8e739783ac752ed560 Author: Philipp Kutin Date: Sat Apr 28 21:56:23 2012 +0000 Make two-way trains capable of carrying SE49 or SE50 sprites. From-SVN: r2614 commit 27238691fe16abfa2ccc0fc65d79f3b3f2e32ac1 Author: Philipp Kutin Date: Sun Apr 22 19:11:01 2012 +0000 Fix 'mulscale' accepting defines or constants where writable var expected. From-SVN: r2613 commit 0ad822b4cc0887c7cbf37b66a5eb99b290100c44 Author: Philipp Kutin Date: Sun Apr 22 19:10:46 2012 +0000 Lunatic translator improvements. From-SVN: r2612 commit 01579fced72afe8a9c179c958091fb3bf54ed257 Author: Philipp Kutin Date: Sun Apr 22 19:10:29 2012 +0000 Lunatic: preliminaries for persistence From-SVN: r2611 commit ea877645606386d16fa071f4177e4eea3b4be2f1 Author: Philipp Kutin Date: Sat Apr 14 13:04:31 2012 +0000 Fix a null pointer access in Polymer mouse picking. Specifically, it was in the "determine searchwall when aiming at floor or ceiling" part. Now, if prsectors[]->ceil.plane (or ->floor.plane) is NULL, we set the searchwall to the sector's firstwall and return. From-SVN: r2610 commit 75b471d185c5a67b3ce88fdf9124ba5e7aba443d Author: Philipp Kutin Date: Fri Apr 13 10:46:04 2012 +0000 Cleanup in game.c/actors.c part2, only whitespace changes. From-SVN: r2609 commit f097d8fda726e1b22797b8d38add6e48780fa8ae Author: Philipp Kutin Date: Fri Apr 13 10:45:49 2012 +0000 Some cleanup in game.c/actors.c, part 1. From-SVN: r2608 commit 9c37edd93dbbbd09962216d2cb3288ad2464e6d3 Author: Philipp Kutin Date: Fri Apr 13 10:45:33 2012 +0000 actors.c: factor out various duplicated code in G_MoveEffectors. - 4 instances -> HandleSE31 - 4 instances -> MaybeTrainKillPlayer - 2 instances -> MaybeTrainKillEnemies - move a couple of variables into inner blocks and add 'const' for easier reading In passing, fix a minor glitch where the squishing sound of an enemy that got run over by an SE 6 or 14 car would appear to originate from the SE instead of the enemy's last position. From-SVN: r2607 commit d639369eaed07a009acba1328cc3a0e9a7dd7217 Author: Philipp Kutin Date: Tue Apr 10 20:14:52 2012 +0000 Polymer: when drawing art sky, temporarily set texcoord s wrapping to clamping. This properly fixes the unwanted vertical lines. From-SVN: r2606 commit 8dab6303f8697929d5ae1bfadd99d5e02430747d Author: Philipp Kutin Date: Tue Apr 10 20:14:31 2012 +0000 Mapster/classic: Make Ctrl-P toggle parallax rendering types in 3D mode again. Of course, it's just for the heck of it, since this setting is not saved into MAP files. I kinda like the cylindrical projection... From-SVN: r2605 commit 7f163e0392d50b87cfaf2d54e1be1f71d4872cbb Author: Philipp Kutin Date: Tue Apr 10 20:14:17 2012 +0000 Fix flipping masked walls in Mapster/classic. This has been there since searchbottomwall introduction in r1466. From-SVN: r2604 commit 26108079466cd0c7de778b1fcc78bbb158e45e44 Author: Philipp Kutin Date: Mon Apr 9 19:22:31 2012 +0000 Fix aspect correction in fullscreen mode. Previously, we only set the viewingrange according to the physical screen's dimensions, but didn't correct yxaspect for a potential non-square pixel ratio. From-SVN: r2603 commit f11e2a5de7e620da18e3784f669f6947a97c80db Author: Philipp Kutin Date: Mon Apr 9 19:22:15 2012 +0000 Add samples/aspect.map for calibrating aspect-related settings and testing. From-SVN: r2602 commit 160b22955faa22634519ce8b80d960dadb828109 Author: Philipp Kutin Date: Mon Apr 9 19:22:00 2012 +0000 On Windows, auto-determine r_screenaspect on startup. Consequently, it's not saved as a setting in either the game or editor config files. We do this by calling "GetSystemMetrics(SM_CXSCREEN)" (accordingly for y) and calculating the cvar by dividing common factors, since it has to be in the form WWHH. This may fail for _really_ strange screen dimensions, so a log message is printed at the very beginning. From-SVN: r2601 commit 77dcdf797e6fd942fcd8eb4c9dca81cb05524278 Author: Philipp Kutin Date: Mon Apr 9 19:21:39 2012 +0000 On Windows, don't allow map playtesting from Mapster when in fullscreen. Because this doesn't even seem to work on XP, we're being spammed with DDERR_SURFACELOST messages... From-SVN: r2600 commit 68c9b52714eb6dec4a50f1a2ba4e77b3e6e2b765 Author: Philipp Kutin Date: Sun Apr 8 15:52:49 2012 +0000 Fix point deletion in Mapster32. Previously, it was possible to leave a sector with less than three walls if a point got deleted transitively by a TROR link. Now, a proper check is done for all deletion candidates and a message stating which wall and sector is problematic is printed. Thanks for Diaz for pointing out the brokenness. From-SVN: r2599 commit 6dd40c0f3087bf8953b5163cdab8981a66e1c8c7 Author: Philipp Kutin Date: Sun Apr 8 15:52:24 2012 +0000 generateicon: fix inconsistent format letter vs. vararg in fprintf. From-SVN: r2598 commit 693fa137ff5745ed5e6974aa9cbc152440c9e088 Author: Evan Ramos Date: Sun Apr 8 07:23:24 2012 +0000 Build tools: - clearbufbyte --> Bmemset - add libm to $(UTILLIBS) to fix building of mkpalette - add self-explanatory Makefile commands: dxutils, sdlutils, printdxutils, printsdlutils From-SVN: r2597 commit 552f6d2a2c093372382692f6db7e33be0cd6ff59 Author: Pierre-Loup A. Griffais Date: Sun Apr 8 04:25:06 2012 +0000 Fix generateicon. From-SVN: r2596 commit 485c0ba6503ca8b3e0f2c41bb5e9099a59639a8c Author: Pierre-Loup A. Griffais Date: Sun Apr 8 00:01:31 2012 +0000 I don't know if that was the intent, but it's better than not building. From-SVN: r2595 commit 8ff4820c3aeb17fb56368a80fc9295d77c44565e Author: Philipp Kutin Date: Sat Apr 7 20:10:03 2012 +0000 Lunatic: prototype of The Translator. Currently syntax only. Parses the original scandcode 0x1d files, which is harder than you'd imagine given the relatively simple structure. Chokes on new-gen custom stuff. From-SVN: r2594 commit 3d850c9a24f310e7746dc322984bf4e56c66823b Author: Philipp Kutin Date: Sat Apr 7 20:09:44 2012 +0000 Fix CON parser accepting defines and numbers where writable var expected (4 cmds) From-SVN: r2593 commit 061de2b1b6bb7f509c568f1e2b34dd6eb5152a6e Author: Philipp Kutin Date: Thu Apr 5 19:49:54 2012 +0000 A couple of less interesting changes. - strip 'inline' from animateoffs() definition, remove declaration in build.h - one min/max -> clamp - one malloc/strlen/strcpy -> strdup From-SVN: r2592 commit b08b8b1df3253efb4c49e0bec7bc4eddb1fc34ff Author: Philipp Kutin Date: Thu Apr 5 19:49:30 2012 +0000 m32script: fix some commands breaking too early in case of a failed validation. If one next instruction happened to be interpreted, madness would ensue, because the pointer wouldn't be aligned on the "opcode" part anymore. Also, with "seti", set current sprite index only after a successful validation. From-SVN: r2591 commit 9b6799a4bd36630dbfbedee19f419e15f759a2fe Author: Philipp Kutin Date: Thu Apr 5 19:49:12 2012 +0000 New M32Script command "getspritelinktype" <>. This get into the writable variable the "linking type" of the sprite with index . The result is a bit field of ORed values: 1: lotag has linking semantics 2: hitag 4: extra, 8: xvel, 16: yvel, 32: zvel, 64: owner (custom only) Custom setting about which sprites have what kind of linking can be programmed via EVENT_LINKTAGS: it receives a sprite index as the 'current sprite' and is supposed to return the bit field in RETURN. An example which lists sprites and their linking hi- and lotags is provided in the state 'listusedtags' in a.m32. From-SVN: r2590 commit be031bf841467edea898d189e486042fc873af6a Author: Philipp Kutin Date: Wed Apr 4 18:58:33 2012 +0000 Fix "ignored application parameter" message for short options. From-SVN: r2589 commit a79796e673beab87489776e6ba4db218b2055675 Author: Philipp Kutin Date: Wed Apr 4 18:58:19 2012 +0000 Big clean up in defs.c and related content. The usual stuff... - factor out many identical checks in a convenient function; some messages may read slightly differently now and tile ranges may be handled more strictly (error out if one of the limits is invalid) - factor out two instances of identical (up to one arg) code into tile_from_truecolpic - factor out setting picsiz[] and stuff into set_picsizanm - some checks - Make "undefmodelof" non-functional and warn. - in "animtilerange", if the tile difference is >= 64, error out since we can't store it in picanm[] From-SVN: r2588 commit 88700c959a304fca3e1b121cb3bc5369fb3c6f4c Author: Philipp Kutin Date: Wed Apr 4 18:57:58 2012 +0000 Add dummy parsing of "nofloorpalrange" to defs.c. From-SVN: r2587 commit e691d6bd027143e40a525320fcfd720d15108416 Author: Philipp Kutin Date: Wed Apr 4 18:57:42 2012 +0000 Move some debugging stuff out of compat.h into glbuild.h and common.h. From-SVN: r2586 commit 3503b4ca373097038b50ca88d7454adc90cc4670 Author: Philipp Kutin Date: Wed Apr 4 18:57:20 2012 +0000 Fix "Thanks (...) for giving us big heads" message at the end of Ep4. This was more or less done by trial and error rather than understanding what exactly is going on there. In any case, the code for all the different ending scenes ought to be factored out instead of being duplicated with subtle differences every time. From-SVN: r2585 commit a3192af0ec71588b9fe7ddc1ba28b668d521c9b5 Author: Philipp Kutin Date: Wed Apr 4 18:57:06 2012 +0000 When in GL modes, clear the screen first in some non-in-game places. This is so that when hud_bgstretch is disabled (i.e. background pictures are not stretched to the whole screen), the frame buffer has no leftover contents from previous frames on the sides of the screen. This was particularly noticable when using the console. The "places" are the following: - before drawing an anim frame - before drawing a "full-screen" background - while displaying logo, titlescreen, loadscreen (this leaves a couple others which I didn't test, and didn't tweak) From-SVN: r2584 commit 6f5d26ba29993ad41f39962c0b3da6906c9c038f Author: Philipp Kutin Date: Wed Apr 4 18:56:50 2012 +0000 game.c: fadepal{,tile}'s limits are now always inclusive; rewrite to avoid code dup. Also, do a setpalettefade(..., end) when breaking fadepaltile now, too. From-SVN: r2583 commit d2e663df203f081f36ba22f40f7265d90d1921f2 Author: Philipp Kutin Date: Wed Apr 4 18:56:31 2012 +0000 game.c: make fadepal/fadepaltile first calculate inclusive end limit. When requesting an increasing ramp, the upper limit is taken to be exclusive. When it is passed to G_FadePalette, only the lowest 6 bits are passed further to setpalettefade, which means that a limit of 64 is incorrectly set as 0. Also, when breaking from the fade loop, set the fade value to the end one for fadepal! From-SVN: r2582 commit efda50672d880a62aa2cb5ee867b32a7e7279a48 Author: Philipp Kutin Date: Wed Apr 4 18:56:16 2012 +0000 game.c: factor out a couple of often-used few-liners, make Ep3 ending cancelable. From-SVN: r2581 commit f952aba1b91324f76ae1bc16c89dfa653b157bc2 Author: Pierre-Loup A. Griffais Date: Sun Apr 1 04:32:17 2012 +0000 winlayer: remove Intel whitelist Allow all drivers for now; if anything, we should start maintaining a blacklist now that most Intel chips have decent enough support to be able to run stuff satisfactorily. From-SVN: r2580 commit a3d66d8c998e09cc2c7cfd3bc736655b8e12b9e9 Author: Pierre-Loup A. Griffais Date: Sun Apr 1 04:24:57 2012 +0000 Fix OpenGL screenshots with unaligned widths such as 1366 From-SVN: r2579 commit 6cb2cab808dc12957d7bdbd713b298dacf53604b Author: Pierre-Loup A. Griffais Date: Sun Apr 1 03:57:36 2012 +0000 sdlayer: don't snap the mouse in debug mode, redux.. From-SVN: r2578 commit 0bb91e28f07dad46a28d73b9b350e9d15d4afee6 Author: Pierre-Loup A. Griffais Date: Sun Apr 1 00:26:01 2012 +0000 Fix the MSVC build, common.c was only added to the GNU Makefile. From-SVN: r2577 commit 50d8b7038dea4a3b126ed19ffe274bb69ddf285e Author: Pierre-Loup A. Griffais Date: Sat Mar 31 22:32:05 2012 +0000 engine: fix unused variable permanentlock From-SVN: r2576 commit b26b8490d9be2a224f5bef784cacb6c41adc4779 Author: Philipp Kutin Date: Sat Mar 31 11:22:32 2012 +0000 CON showview/showviewunbiased: silently clamp 'horiz' to HORIZ_MIN..HORIZ_MAX. From-SVN: r2575 commit 0744c2c22fdb5856550d2487c3df390af0c03b72 Author: Philipp Kutin Date: Sat Mar 31 11:22:19 2012 +0000 Allow the screen bounds difference in CON showview/-unbiased to be less than 2. This requires one tweak in drawrooms' umost/dmost setup to prevent oob access. Specifically, a coordinate difference of 0 is allowed. In the classic renderer, this would mean a one-pixel (real screen coords) height or width. In Polymost, it would currently mean a one-pixel height and zero-pixel width, but this might be subject to change. From-SVN: r2574 commit 141c2c26e48ed5cd94e52c8c03c6140696a5d3c1 Author: Philipp Kutin Date: Sat Mar 31 11:22:00 2012 +0000 New CON command 'showviewunbiased', mapping the screen coords w/o round-to-0 bias. The showview command transforms the 320-based screen bound coordinates to the real screen bounds like xreal = (x*xdim)/320, which shows a bias towards zero: for example, for a 1680 screen width, the maximum permissible value 319 is mapped to round_to_zero((319*1680)/320) == 1674. (The rounding is implicit in the integer division). This makes it impossible for a view to cover the whole screen with any other resolution than 320x200. The new command transforms the bounds like xreal = (x*(xdim-1))/319, which would map 319 to 1679 in the preceding example. From-SVN: r2573 commit 119256eb8ad41c27e62b8980ae6d742e56586f00 Author: Philipp Kutin Date: Thu Mar 29 21:30:01 2012 +0000 Really fix PNG screenshots. From-SVN: r2572 commit def877d6d55de50af0dbdcbd627b6f38038cc76a Author: Philipp Kutin Date: Thu Mar 29 21:17:35 2012 +0000 When requesting a non-fogged identity lookup from makepalookup(), alias to palookup[0]. (That is, the base shade table.) Before, we allocated each palookup buffer. For a vanilla setup, this means that we're now saving 224*32*256 ~= 1.8 megs, which might be interesting for low-memory gadgets. From-SVN: r2571 commit b8f5567e170e1e6cea5e7e2bbb1a92f5fe703242 Author: Philipp Kutin Date: Thu Mar 29 21:17:19 2012 +0000 Don't fall back on allocache if malloc'ing a palookup buffer or transluc table fails. First, it's unlikely in our day and age. Second, they're always free'd at the end, so allocache'ing them is incorrect. From-SVN: r2570 commit 15efc63cef106c51d08a9fa3ed49d9064faea7d1 Author: Philipp Kutin Date: Thu Mar 29 21:17:03 2012 +0000 Make makepalookup() accept NULL for 'remapbuf', meaning "use identity mapping". Also, - use this in game.c and astub.c palookup loading code - when makepalookup() is passed a 0 palnum, return early. This means that 'fogpal' will silently fail when attempting to change pal 0. - in 'makepalookup' DEF command, error out if passed a pal of 0. From-SVN: r2569 commit adb0b2492c1c91edafb24aa1a99c9c22b996918d Author: Philipp Kutin Date: Thu Mar 29 21:16:41 2012 +0000 DEF command 'makepalookup', allowing indpt. specification of fog and color remapping. The syntax is as follows: makepalookup { } where valid tokens are * pal : the palette number, 1 .. 250 * red , green, blue (or r, g, b): the fog color components on a 0 to 63 scale. Components that are not present are assumed to be 0. * remappal : the palette number to take the index remapping from, i.e. 21 for blue -> red. When absent, defaults to 0. * remapself: when present, specifies that the remappal is the same as the 'pal'. This is to prevent textual redundancy when overwriting existing palookups. Examples (best tested with tile #251): 1) makepalookup { pal 200 red 30 remappal 23 } This creates palookup 200 with a fog of (30,0,0) and a blue-to-yellow remapping (assuming it has not been changed before) 2) makepalookup { pal 21 red 30 remapself } This 'fogifies' palookup 21 with a red fog. 3) makepalookup { pal 21 red 30 } This overwrites palookup 21 with a red fog, but clears the blue-to-red remapping. The fog aspect of this command affects the GL modes just like 'fogpal', but the remapping has no effect for hightiles. - Also, silently clamp 'fogpal' r,g,b values to the range 0 .. 63. From-SVN: r2568 commit 2e8824e97ebe370083aee1770c0986091b4c00fc Author: Philipp Kutin Date: Thu Mar 29 21:16:20 2012 +0000 In OpenGL modes, save savegame screenshots as they appear on the screen. Instead of drawing the rooms and masks with the classic renderer once. The captured scene is transformed to use the base palette, so that the screenshot will also show up in classic. No aspect correction is done. From-SVN: r2567 commit d68a4fe0a366d9d9fe6518bd0deff247bfb0025b Author: Philipp Kutin Date: Wed Mar 28 19:45:25 2012 +0000 The obligatory portion of trivial stuff. From-SVN: r2566 commit 755d8f713713be1835d7c6d35fae152ad0c83dc6 Author: Philipp Kutin Date: Wed Mar 28 19:45:05 2012 +0000 Polymer: Fix a potential uninitialized mem read in debug msg when in void space. From-SVN: r2565 commit 91b2deffea43d42a74deb7cba40e47d230dabdc9 Author: Philipp Kutin Date: Wed Mar 28 19:44:47 2012 +0000 Clean up astub.c in a similar fashion to the preceding changes. From-SVN: r2564 commit 90d79f2097a96aa3f3cd4a526fd47fd220da7e33 Author: Philipp Kutin Date: Wed Mar 28 19:44:33 2012 +0000 Make g_grpNamePtr memory-clean, extern clearGrpNamePtr(). From-SVN: r2563 commit e518e521937fb610f4620e8e178e3fe5a46bf520 Author: Philipp Kutin Date: Wed Mar 28 19:44:14 2012 +0000 numgrpfiles --> NUMGRPFILES in Apple/GameListSource.game.m From-SVN: r2562 commit 3efbaf31586ce4455063518b44331eb197122b50 Author: Philipp Kutin Date: Wed Mar 28 19:44:00 2012 +0000 Clear up handling of g_*NamePtr in the game. The primary change is that things have been made memory-clean. Some of these pointers may point to wildly different places during the course of the program such as statically or dynamically allocated storage, the buffer returned by getenv() (which must not be modified according to the docs), or an element of argv[]. Consequently, we need to strdup, or better, dup_filename them if they are ever to be passed to a function that modifies their pointed-to data. Specifically: - added statics or consts according to usage - 3 new functions clear{Grp,Def,Script}NamePtr, only 'Def' one extern for now - in G_CheckCommandLine, don't strip 'const'; use Bstrncpyz where appropriate - remove multiple declarations Also, warn if an application parameter has been ignored (not matched). From-SVN: r2561 commit 058030ebc308824ff1d5a807029e474dfc91293f Author: Philipp Kutin Date: Wed Mar 28 19:43:39 2012 +0000 New helper function "char *dup_filename(const char *fn)" in common.h. It allocates a buffer of size BMAX_PATH and copies the passed string into it. From-SVN: r2560 commit 0cec2e043c7cff16a7a90edf8fe6c8401cf8dc19 Author: Philipp Kutin Date: Wed Mar 28 19:43:21 2012 +0000 Replace various occurences of "Bstrncpy(buf, src, sz); buf[sz-1]=0;" with Bstrncpyz From-SVN: r2559 commit fe527b316f729fb1c82fc3c866d7b940ef46a356 Author: Philipp Kutin Date: Wed Mar 28 19:42:49 2012 +0000 Minor tweaks of makepalookup() and hicinit(). From-SVN: r2558 commit 3b9fa0fbc5ab18a30b25b1dee616c05e0e26136e Author: Philipp Kutin Date: Wed Mar 28 19:42:32 2012 +0000 Replace {get,clear}filenames and duplicate autoload code in astub.c/game.c. This additionally fixes leaks that were caused by traversing the file name list with the 'findfiles' pointer and not clearing them afterwards (even if there was a handle to the list head via 'findfileshigh'). From-SVN: r2557 commit b5c79dd05228201ae2de9ace3db21532606548af Author: Philipp Kutin Date: Wed Mar 28 19:42:16 2012 +0000 Replace {get,clear}filenames with fnlist functions in build.c, menus.c and osdcmds.c From-SVN: r2556 commit 9bf32cb2f514dabd549c5e326503f8a166f8f1ce Author: Philipp Kutin Date: Wed Mar 28 19:41:57 2012 +0000 Factor out different {clear,get}filenames definitions into fnlist_t + functions. Don't actually replace the instances in the code now. Additions in common.h: - fnlist_t, which combines CACHE1D_FIND_REC *finddirs, *findfiles and int32_t numdirs, numfiles - the FNLIST_INITIALIZER macro, which MUST be used for automatic variables - fnlist_clearnames, fnlist_getnames functions - G_LoadGroupsInDir, G_DoAutoload, two often-occurring uses of these From-SVN: r2555 commit fcac61f2b80438eefcb3547f89c6f022f5870646 Author: Philipp Kutin Date: Wed Mar 28 19:41:39 2012 +0000 Factor out eleven (!) instances of identical code into check_file_exist(). From-SVN: r2554 commit 010a0550f33dc2eb29b51047724a15be4105bd52 Author: Philipp Kutin Date: Wed Mar 28 19:41:15 2012 +0000 Clean up defs.c a little. - remove redundant bound checks - add necessary bound checks - make one comparison pair consistent (> vs. >=) - one if-if --> clamp From-SVN: r2553 commit 0b80abe2644d59857b6184dee8945a4a9dfe464f Author: Philipp Kutin Date: Mon Mar 26 22:06:05 2012 +0000 Fix a potential sprintf to a buffer passed to it as a string argument. From-SVN: r2552 commit d4ba926b6836fbe6fed01d39195549fa244b8fc5 Author: Philipp Kutin Date: Mon Mar 26 22:05:51 2012 +0000 Mapster32: fix specifying a custom configuration file with -cfg. We were writing into a string literal. Ouch! From-SVN: r2551 commit d8b2263364e67a6049e3b63d5f55eac5c68bec61 Author: Philipp Kutin Date: Mon Mar 26 22:05:38 2012 +0000 Add "static inline" helper function "Bstrncpyz" to compat.h. From-SVN: r2550 commit b9c656770949a1bf7797350876a1b40e0e339bcd Author: Philipp Kutin Date: Mon Mar 26 22:05:23 2012 +0000 Factor out various instances of getatoken() into common.c. Alongside, these make into into the header: - the 'tokenlist' type (a typedef'd struct) - the T_EOF and T_ERROR enumeration values From-SVN: r2549 commit ce5f2d3dd91add71ffad69ba0bdad41fd0760aa8 Author: Philipp Kutin Date: Mon Mar 26 22:04:59 2012 +0000 Guard scriptfile.h with an #ifndef sentinel. From-SVN: r2548 commit 2dedd179f4cd8f6fbec69cf24c5f7b4867c88f39 Author: Philipp Kutin Date: Mon Mar 26 22:04:44 2012 +0000 Replace all occurences of assert in our code with Bassert. From-SVN: r2547 commit f0ad82cf773f9cf486cbdf233c8a16c74b362844 Author: Philipp Kutin Date: Mon Mar 26 22:04:24 2012 +0000 Add Bassert to compatibility macros/functions, currently only an assert wrapper. From-SVN: r2546 commit c885857803efb1ad82d3aacc0fc98b839730201c Author: Philipp Kutin Date: Mon Mar 26 22:04:06 2012 +0000 Change input and return types of inline function clamp() from int to int32_t. From-SVN: r2545 commit a53b7ccf8801164512a79621120c2fc92966f5f3 Author: Philipp Kutin Date: Mon Mar 26 22:03:51 2012 +0000 Makefile.common: comment out usage of llvm versions of ar and ranlib with clang. These are for LLVM bitcode, I think. In any case, they're giving me errors. From-SVN: r2544 commit 2726ecbd5c3b6e7ddaa03ac0d1b10643dfc25c02 Author: Philipp Kutin Date: Mon Mar 26 22:03:40 2012 +0000 Capitalize numgrpfiles macro to NUMGRPFILES. From-SVN: r2543 commit 5a78f742a31fe033a5ea7a89fbfa9b5d7e7110fd Author: Philipp Kutin Date: Mon Mar 26 22:03:20 2012 +0000 Add common.[ch] which should be used for common non-engine types/functions/data. As inauguration, move G_AddGroup, G_AddPath and struct strllist there. The header is located in build/include, because in the future, code that resides closer to (but is not strictly part of) the engine might need to be factored into here. The source file, however, is in the source/ directory. From-SVN: r2542 commit 07ae1edc7ccc7681f1be65ba58e85c27857d49e3 Author: Evan Ramos Date: Mon Mar 26 05:07:42 2012 +0000 osxbuild.sh: more options and designation of presets From-SVN: r2541 commit cca2e47ff53bfe97433616d0051b713ab93076c5 Author: Evan Ramos Date: Mon Mar 26 05:07:12 2012 +0000 All string literals sent as normal messages to the player in-game written in ALL CAPS have been converted by hand to more proper capitalization. (Critical errors have been left as-is, and the editor did not need changes.) From-SVN: r2540 commit f7632d44757ad1c0639f3bd2482e320dd662fc00 Author: Evan Ramos Date: Mon Mar 26 05:06:31 2012 +0000 Add "specularpower" and "specularfactor" as synonyms of "specpower" and "specfactor" respectively. From-SVN: r2539 commit 53c99157889749b251f6c40fc4c011d2a38d8235 Author: Evan Ramos Date: Mon Mar 26 05:05:57 2012 +0000 Superficial text changes: - Help window text cleaned and made more consistent between game and editor - Added help entry for "-clipmap" - Log text for using CON, DEF, and RTS files has been made consistent - All instances of '%s' have been replaced with \"%s\" because ' is a valid filename character. (At least on Windows.) From-SVN: r2538 commit c8c8a87d720c8feadef8cf00e20c2a0ae19e8160 Author: Evan Ramos Date: Mon Mar 26 05:04:21 2012 +0000 OS X: Fix more warnings. From-SVN: r2537 commit 0ce6636dbb96c91c9e6c770ca5dda3457169c01c Author: Pierre-Loup A. Griffais Date: Mon Mar 26 00:55:53 2012 +0000 polymer: cull sprite lights after computing sprite geometry This was broken ever since updatesprite() had been forked off drawsprite() and would cause static lights to never hit static sprites until one or the other changed, after which the light would always get culled against outdated sprite geometry. From-SVN: r2536 commit 3200e11cc24fafb27a42a6743be430b57bdb3c77 Author: Pierre-Loup A. Griffais Date: Mon Mar 26 00:55:41 2012 +0000 polymer: don't shadow-optimize light culling in cached sprites Since updatesprite() only happens once for static sprites, avoiding light culling if we hit it in a shadow pass means that sprite will never be lit as long as that happens. From-SVN: r2535 commit 9d0a74c6f737d342f3143c4d06d641f6754375e1 Author: Philipp Kutin Date: Sun Mar 25 22:01:36 2012 +0000 Lunatic: more complex gamevar-decl code. From-SVN: r2534 commit 4085b881332dd4d3e0e0e0af4357ea35a7399582 Author: Philipp Kutin Date: Sun Mar 25 22:01:21 2012 +0000 Bound-check the 'picnum' argument to rotatesprite; tweak CON digitalnumber check. There are instances where oob picnums may propagate to that function, so protect it. The digitanumber[z] bound check is actually made more permissive, but could also just as well be removed now. From-SVN: r2533 commit 1fa18fea60d14a3847cb1f4f81020e39ad754c4d Author: Philipp Kutin Date: Sun Mar 25 22:01:03 2012 +0000 Accumulated trivia. - engine.c: move some variables into a lower block - premap.c: clearbufbyte --> Bmemset From-SVN: r2532 commit e477d8ac9be0e34ea8be941f9644b4af6e75d9d0 Author: Philipp Kutin Date: Sun Mar 25 22:00:42 2012 +0000 Take over more correct G_AddGroup from game.c to astub.c. The code in the editor was potentially doing a strcat on a strdup'd string. Also, rename AddGamePath to G_AddPath in astub.c and add CODEDUP markers because shared stuff like this ought to be factored out into a separate source file some time. From-SVN: r2531 commit 7a60d5173dcbfc59dd4b9f99739acf1a77960144 Author: Philipp Kutin Date: Sun Mar 25 22:00:27 2012 +0000 Allow up to 7 skills, coded by M210 and taken over with modifications. Skill names are defined via 'defineskillname' as before, but the index of the last non-empty skill name (plus one) is taken as the skill count. So, if you only define the 6th, there will be no effect. Note that currently, there is no way to specify less than four skills because the CON parser doesn't allow the empty string for the name (it'll go beyond the line) and because the default skill names are initialized in EDuke32 too, in addition to the CONs. From-SVN: r2530 commit fe4ce1bf9cf4d563e5e5eafc42b82d567991364a Author: Philipp Kutin Date: Sun Mar 25 13:55:03 2012 +0000 Fix an assertion failure with dorotatesprite 4-pixels vline drawing. See http://forums.duke4.net/topic/5362-crash-with-current-svn/ From-SVN: r2529 commit 159e2dd715a4eaed7ed20b8a86843f243115ec8f Author: Philipp Kutin Date: Sun Mar 25 13:54:46 2012 +0000 Fix static-main-arrays debug build, which is without the clipshape feature. From-SVN: r2528 commit e14d15b418aa23e7e74b09858d33b50c91023d5a Author: Philipp Kutin Date: Sun Mar 25 13:54:31 2012 +0000 Factor out two practically identical instances of ceiling/floor setup code. From-SVN: r2527 commit 736301437eb3ce5f6b03254da9b9950ddfe9b9e7 Author: Philipp Kutin Date: Sun Mar 25 13:54:14 2012 +0000 Factor out assignment of various globals in 4 instances of wall drawing code. This makes the differences in these codes stand out much more clearly. From-SVN: r2526 commit 508e44362222e174a471f2fa74d42d4bd130d3ea Author: Philipp Kutin Date: Sat Mar 24 15:59:53 2012 +0000 Make "LIBS+= $(L_SSP) -Wl,--enable-auto-import" conditional to Windows. From-SVN: r2525 commit 5d1938c4f459c382481d7497a66a4912f7af71aa Author: Philipp Kutin Date: Sat Mar 24 15:59:39 2012 +0000 Correct 'nofloorpalrange' range clamping, move one get_hud_pal() farther down. The nofloorpalrange beginning and end indices are silently clamped to 1 .. 255. From-SVN: r2524 commit e0bbcd28eb7afe27a544ecd3313bf55c2a8d12f7 Author: Evan Ramos Date: Sat Mar 24 08:30:28 2012 +0000 - Makefiles: - Fix typo, correctly adding SDL libs to the tools on OS X so that makesdlkeytrans builds. - Move all mention of $(LIBS) out of build/Makefile into build/Makefile.shared because no linking takes place in the engine itself so LIBS additions were lost. This should fix USE_LIBPNG=1 on Windows at least. - Other assorted cleanup. From-SVN: r2523 commit ef0b88fa2158e9656a789681791650d51a322852 Author: Evan Ramos Date: Fri Mar 23 20:24:30 2012 +0000 Update credits in menus.c with people from the Credits wiki page. Also, fix the text and order of other entries. From-SVN: r2522 commit f1a1e5c1895bc6f1152a49e5b9b09230cb2d32fb Author: Evan Ramos Date: Fri Mar 23 20:23:46 2012 +0000 Build tools: - Fix up and add building instructions for kmd2tool, getdxdidf, and makesdlkeytrans. - Add kmd2tool to "utils" build job. - Fix warning in and cross-platform building of generateicon. - Source and text cleanup! From-SVN: r2521 commit a5a0e3238e7c5ead220d1c60a51ae6c2c9d86aa7 Author: Evan Ramos Date: Fri Mar 23 20:22:10 2012 +0000 Makefiles: - Properly handle the architecture definition when BUILD32_ON_64=1 - Add proper $(*LDFLAGS) to which LTO and ARCH are correctly passed. - Cleanup of compiler flag variables. This should fix to some degree building of the Build tools on OS X, and it may possibly fix the crashing of the OS X x86 32-bit build. From-SVN: r2520 commit b845c30ef528d13eb853298ee4c939175e233d35 Author: Philipp Kutin Date: Thu Mar 22 22:48:06 2012 +0000 Rather trivial changes in engine.c and crc32.c. From-SVN: r2519 commit a950bd394acf2a27da096140d8c17245ef82d776 Author: Philipp Kutin Date: Thu Mar 22 22:47:47 2012 +0000 Make 'nofloorpalrange' def token affect HUD weapons. From-SVN: r2518 commit 1aef33ee1fcb243a1b99937f131598e99428ea28 Author: Philipp Kutin Date: Thu Mar 22 22:47:29 2012 +0000 New game def token "nofloorpal ", disabling sprites taking on floor pals. It has always annoyed me how floors with "shirt-color" type palookups like 21 affected the color of its containing sprites and HUD-drawn stuff. This commit allows one to specify an inclusive range of pals for which this should be disabled for sprites (but not for HUD stuff, yet). From-SVN: r2517 commit 88ec4a7366d51c3e701f8ee76439b99e26696061 Author: Philipp Kutin Date: Thu Mar 22 22:47:13 2012 +0000 Remove global 'uint8_t *anim_pal' which was only used once as a temporary. From-SVN: r2516 commit ca311c461429bcdb4f4bd9b869fc84c3aca51bd8 Author: Philipp Kutin Date: Thu Mar 22 22:46:56 2012 +0000 In Mapster32, remove ReadGamePalette() and GAMEpalette[] and use engine's palette[]. From-SVN: r2515 commit 6474ee0a3f3e1027e38715f4fdcce900408e49e0 Author: Philipp Kutin Date: Thu Mar 22 22:46:39 2012 +0000 Make engine.c's loadpalette return -1 if palette.dat is not found. ... and initengine now returns 1 if loadpalette() fails. From-SVN: r2514 commit 72e0842875d30a694477a481b83641c8942d4992 Author: Philipp Kutin Date: Thu Mar 22 22:46:23 2012 +0000 editor: Factor out 'rainbow' drawing code and use bytesperline instead of xdimen. From-SVN: r2513 commit 611a1f9a7646b3edcdadf9858313d44ab718723f Author: Philipp Kutin Date: Thu Mar 22 22:46:07 2012 +0000 Comment out computergetinput() and children, which are unused since ng netcode. From-SVN: r2512 commit 75faa9f2abbdf83eebb3210b606b4df5e24429db Author: Philipp Kutin Date: Thu Mar 22 22:45:41 2012 +0000 In in-game overhead map, don't draw invisible extended floors. From-SVN: r2511 commit 812a2bbf262e8b9369e7fff162c8f80b066e4e34 Author: Evan Ramos Date: Tue Mar 20 19:33:24 2012 +0000 Makefile: Link to libz on OS X like on Windows. From-SVN: r2510 commit 4103d3a68e63145317e624afea067aace1b0d6d3 Author: Evan Ramos Date: Tue Mar 20 19:30:50 2012 +0000 Makefile: Update/fix treatment of libpng libraries and headers under Windows and OS X. From-SVN: r2509 commit 59fd30c5e7c1cb961010646320a067c095837784 Author: Evan Ramos Date: Tue Mar 20 19:29:46 2012 +0000 osxbuild.sh: Partial solution for non-building tools: remove "-j 3" parameter. (The -k [--keep-going] parameter has been added just to the tools for a small bit of good measure.) From-SVN: r2508 commit 52527dbd788d042fe67dabe2db25ddb1c84e8a38 Author: Evan Ramos Date: Tue Mar 20 19:29:11 2012 +0000 Makefiles: Add $(STATICSTDCPP) variable which the user can set to 0 or 1 to explicitly set C++ standard library linking to static or shared respectively. By default it is transparently left blank. An effect is only really seen in the buildtools written in C++, currently just arttool. This is mainly of interest to distributors of the buildtools to avoid missing DLL errors. From-SVN: r2507 commit 3b0205f1a1cb67ef639eec221a1f59d193ea08cf Author: Evan Ramos Date: Tue Mar 20 19:28:22 2012 +0000 More "malloc + strlen + strcpy --> strdup" in module parameter code. From-SVN: r2506 commit e566b1fc7e8a82ba010a7aa6d9da2eb6b32e6d6c Author: Philipp Kutin Date: Tue Mar 20 18:32:16 2012 +0000 Probably fix sheared PNG screenshots. We shouldn't assume a particular bytes-per-line value and use ylookup[] instead. Specifically, windowed modes on Windows use a frame buffer that always has odd x dimension. From-SVN: r2505 commit 620b88e36ef724b4d44f4e101be4d0e6ace482b2 Author: Philipp Kutin Date: Tue Mar 20 18:32:00 2012 +0000 Rename 'numpalookups' to 'numshades' internally. From-SVN: r2504 commit fdf75f50e7c2bc80df9e96e05d1ba90fd3555f61 Author: Philipp Kutin Date: Tue Mar 20 18:31:37 2012 +0000 Weirdness removal in G_LoadExtraPalettes (which reads lookup.dat). - replace bit tweaking for big endian archs with clear code - allow palette lookups >= 128, previously we read into a signed byte From-SVN: r2503 commit 2e047a649b562f1090d0ea129196bc0a917baf3c Author: Philipp Kutin Date: Sun Mar 18 23:18:32 2012 +0000 Clear up after r2495. (Because I'm a pedantic asshole.) - in Mapster, pre-form the default 10 clip map names before returning from G_CheckCommandLine() so it gets loaded even if we passed no cmdline args. - malloc + strlen + strcpy --> strdup - don't need to spank dead variables ;) - we may call calloc with zero size, which isn't bad by itself, but asserting for non-null afterwards is. Allocs of 0 are implementation-defined, and may well return a null pointer (C99 7.20.3). From-SVN: r2502 commit 4415ca65f9d662f0b72af3721a5f708051a7ce4a Author: Philipp Kutin Date: Sun Mar 18 23:18:12 2012 +0000 Assorted trivia. Make some computer Duke opponent variables in player.c static. From-SVN: r2501 commit e3d84c95a5ba7f68bc13e960bef33786d820cc4e Author: Philipp Kutin Date: Sun Mar 18 23:17:51 2012 +0000 Input validation: guard makepalookup 'pal', 2dcol 'col'. Add one const. From-SVN: r2500 commit b89942a497f4f39214cea62069697ef05b9c56bb Author: Philipp Kutin Date: Sun Mar 18 23:17:32 2012 +0000 Use vlineasm4 for the upright-oriented rotatesprite in C-replacements build. Gives a couple more fps for scenes where much screen estate is covered by stuff, like when holding the devastator. From-SVN: r2499 commit e02672ffadb9017e8a9ea4738da19933d9a97340 Author: Philipp Kutin Date: Sun Mar 18 23:17:17 2012 +0000 Port tvlineasm2 to C and enable transmaskvline2 code also for all-C builds. With the same setup as before, a screen-filling translucent wall (with nothing drawn behind it) renders at about 7 fps faster (from 60-something fps initially) From-SVN: r2498 commit d272fc7ddb3f9490fa5a7f13fdb4737efe88e0fc Author: Philipp Kutin Date: Sun Mar 18 23:16:57 2012 +0000 Port [m]vlineasm4 to C replacements and enable for solid and masked walls. These two functions draw a vertical line 4 neighboring pixels at a time. This gives a significant speed boost for a full screen solid and masked wall scene for x86_64 (where we have plenty of registers), about 60 --> 76 fps. From-SVN: r2497 commit 264d1ede55b4fd014bcb37d7cfdf6ab3d15c90c2 Author: Philipp Kutin Date: Sun Mar 18 23:16:37 2012 +0000 Mapster32 tag-label system: don't consider 'switch' walls with an upwall as linking. From-SVN: r2496 commit 517de7cf832158e5974eb50b5148036313aa75c9 Author: Evan Ramos Date: Sun Mar 18 08:50:41 2012 +0000 New "-clipmap" command-line switch to specify sector collision clip maps. This switch works in an additive fashion like -mx and -mh. _clipshape0.map through _clipshape9.map remain loaded by default. Also, a very minor change in the con/def module code. (int --> int32_t) From-SVN: r2495 commit 30578c3a550788c4490b64257415fd55e1a0bc74 Author: Evan Ramos Date: Sun Mar 18 08:49:22 2012 +0000 osxbuild.sh: Potential fix for the $commonargs bash variable. From-SVN: r2494 commit 9c02d74bdd3aa3ef4151941013903c2567377a0d Author: Evan Ramos Date: Sun Mar 18 08:48:32 2012 +0000 Buildtools: Add "unpackssi" and "Build Customization Suite" [Palette Importer/Extractor] (bsuite), both by JonoF. I have rewritten bsuite to use command-line arguments rather than a 16-bit real mode DOS UI. Both programs have had all warnings fixed and whitespace corrected. From-SVN: r2493 commit 3cc0d52316579d59ac6afd5616b0b7c9f0f623ab Author: Philipp Kutin Date: Sat Mar 17 11:35:35 2012 +0000 Remix undo/redo system, fixing potential access of freed memory. A run of consecutive mapstates may share sector/wall/sprite blocks, but the code was deciding whether to free them solely on local properties. Now, save a reference count at the beginning of each such allocated block and free it only if it reaches zero. From-SVN: r2492 commit d8cc705755705871af81edac0b0e7acb4b31957b Author: Philipp Kutin Date: Sat Mar 17 11:35:16 2012 +0000 In undo/redo, always print the revision that got _restored_. From-SVN: r2491 commit c75fcc2f8de5b8de82ed5459aae0a4d44000e293 Author: Philipp Kutin Date: Sat Mar 17 11:34:54 2012 +0000 "Promote" oob sectnum/statnum sprites to corruption level 4. Also, always print at least level 5 corruptions (that is, have no instances of completely silent corruptcheck). From-SVN: r2490 commit f2de294acd9598b4bea134bd9ed8c26543ac80a9 Author: Philipp Kutin Date: Sat Mar 17 11:34:32 2012 +0000 Mapster32: sprite list consistency checker in corruptcheck. This checks for about every possible type of sprite list corruption and reports back with a corruption level 5 if one of the 14 validations fail. From-SVN: r2489 commit 30dc36d73e3a93f449a9aa14819b71374635f9f8 Author: Philipp Kutin Date: Sat Mar 17 11:34:09 2012 +0000 Tweak Mapster32's sound index (F2). - start scrolling from about half of the visible page - PGUP/DGDN moves the cursor by 1/4 of the page - code cleanup (we only need one displine[80], use clearkeys()) From-SVN: r2488 commit fd3fe80ce957aabfa2a8400b8c1287593b96967e Author: Evan Ramos Date: Sat Mar 17 07:25:46 2012 +0000 osxbuild.sh: - Make all arguments explicit toggles (except for onlyzip). - Disable PowerPC builds by default on Snow Leopard in addition to Lion. - Enable Darwin 9 compatibility for all builds whenever PowerPC is enabled. From-SVN: r2487 commit e112f966a9714b2eadc5b44b0b5726f952094b9e Author: Philipp Kutin Date: Thu Mar 15 18:12:17 2012 +0000 Re-enable Mapster32's undo/redo functionality. From-SVN: r2486 commit 750e752bbfbb640e7b9064fb4a072f2abcb9d322 Author: Philipp Kutin Date: Wed Mar 14 23:17:54 2012 +0000 This should fix the assertion failure with undo/redo, my failure in r2478. From-SVN: r2485 commit 14b8b92c75187916e414d8e1ef9980a4d6c14f68 Author: Philipp Kutin Date: Wed Mar 14 22:32:04 2012 +0000 Make 'Numsprites' also accessible from CON (read-only) under the same name. Note the capitalization. I hope that this makes clashes with user variable names less likely. From-SVN: r2484 commit 98fa6043e21c04643432dc2e6b99df18adb061bd Author: Philipp Kutin Date: Wed Mar 14 22:31:49 2012 +0000 Save 'Numsprites' into savegames and mapstates. Bump savegame minor version. From-SVN: r2483 commit b6fd2bb62eb905577504d5d05489174a37329969 Author: Philipp Kutin Date: Wed Mar 14 22:31:32 2012 +0000 Fix (still not enabled) undo/redo code compilation. Also include one comment about a currently failing assertion there. From-SVN: r2482 commit 3e9761987d07465a21e92e6836ddd525c574103d Author: Philipp Kutin Date: Wed Mar 14 22:31:19 2012 +0000 Include in compat.h. From-SVN: r2481 commit 54782b36066c7c8c4c64628e722f042907dc4acd Author: Philipp Kutin Date: Wed Mar 14 22:30:57 2012 +0000 When loading map w/ oob sectnum sprites, make them have sect. 0 if updatesector fails. Previously, if the sprite turned really out to be in void space, either freelist inconsistency (before the list rewrite) or oob access (now) would happen. Also add an bound-checking assert() for insertsprite's sectnum argument (it's not a bound check!) From-SVN: r2480 commit c4621bd4bdca55b58b0786dd601af5fcd3bd46d6 Author: Philipp Kutin Date: Wed Mar 14 22:30:42 2012 +0000 Mapster32: fix faulty limit check in duplicate_selected_sprites(). From-SVN: r2479 commit 9af22c3dbb73cdba4baaddbdce03649dbbda5471 Author: Philipp Kutin Date: Wed Mar 14 22:30:24 2012 +0000 Continuously keep track of the number of sprites in the world. New engine variable 'int32_t Numsprites', not yet saved into savegames or mapstates. (The capitalization is to distinguish it from the often-used 'numsprites' locals or structure member names. In the editor, get rid of updatenumsprites(). From-SVN: r2478 commit f6a79fd9c78afbee4bdae7d113ec27a6b794119b Author: Philipp Kutin Date: Wed Mar 14 22:29:45 2012 +0000 Remove redundant sprite freelist. Previously, the lists starting at headspritestat[MAXSTATUS] and headspritesect[MAXSECTORS] were both used as sprite freelists and were always in complete synchrony. Now, make only the statnum list keep the free sprites. This way, it has no CON compatibility implications because headspritesect[MAXSECTORS] is inaccessible there. Leave the array at its original size for now. From-SVN: r2477 commit 89b8e6451875137caed08ff0eeaeacb54a376c73 Author: Evan Ramos Date: Wed Mar 14 06:27:45 2012 +0000 osxbuild.sh: new "tools" parameter builds the Build tools in addition to the full binaries Makefiles: new features to facilitate above: - buildtools: "make printutils" is a phony which simply lists all the tools - $(EXESUFFIX_OVERRIDE) From-SVN: r2476 commit 29d369ea80a86e11840dbc8f9422fa8559698cf1 Author: Evan Ramos Date: Wed Mar 14 06:27:06 2012 +0000 Buildtools: Fix warnings in enumdisplay.c only revealed with the previous Makefile edits. From-SVN: r2475 commit daf4d8c5c2a286623504a8298384287b5b22f01f Author: Evan Ramos Date: Wed Mar 14 06:26:29 2012 +0000 Buildtools: More Makefile changes, including bringing Makefile.msvc up to date. From-SVN: r2474 commit d468e55e88c173c93cca283d54c0437acf731ec3 Author: Evan Ramos Date: Wed Mar 14 06:25:26 2012 +0000 Build tools: Whitespace cleanup and tab stop replacement. From-SVN: r2473 commit 4651dac3513e888d488d3241e29636c65acfd6ef Author: Evan Ramos Date: Wed Mar 14 06:24:03 2012 +0000 Fix all warnings in the Build tools for both GCC and Clang. From-SVN: r2472 commit 302b22530c826a43a6a03716809f6720ad14961a Author: Philipp Kutin Date: Tue Mar 13 20:07:40 2012 +0000 Trivial stuff that got accumulated and not committed. From-SVN: r2471 commit 42bf7212daefce155901bc147ad26fb255d5ee0d Author: Philipp Kutin Date: Tue Mar 13 20:07:17 2012 +0000 When deleting sprites, insert them at the tail (instead of head) of the freelist. The major outside-visible change is that this fixes the sound cutoff bugs that happened because newly-spawned sprites took the place of those whose sounds had not yet finished playing. Besides, there are these changes: - remove deletesprite{sect,stat} - we have a new engine variable 'tailspritefree' that keeps track of the sprite freelist tail - we need to store it in savegames and mapstates, so bump the savegame minor version From-SVN: r2470 commit 53a2243dea5ca5c810c471e50860bfc3b09179cc Author: Philipp Kutin Date: Tue Mar 13 20:06:52 2012 +0000 Implement changesprite{sect,stat} without temp. freelist insertion/deletion. This is simply done by using the two list helper functions defined earlier instead of a deletespriteX/insertspriteX pair. From-SVN: r2469 commit ca2b2548690347eaeb2865556452fe103601b2f7 Author: Philipp Kutin Date: Tue Mar 13 20:06:37 2012 +0000 Engine tweaks, more or less trivial stuff. From-SVN: r2468 commit e734c3138a3c78600432ecc16ac0f9f6e8698d46 Author: Philipp Kutin Date: Tue Mar 13 20:06:22 2012 +0000 engine.c: more changesprite{sect,stat} source up to be with the others. From-SVN: r2467 commit f4b6d7f976d929bec17a29d2f6ee7ef66b123cb0 Author: Philipp Kutin Date: Tue Mar 13 20:06:07 2012 +0000 Remix sprite list manipulation functions. Factor out two helper functions, do_deletesprite{sect,stat} and do_insertsprite_at_headof{sect,stat}. From-SVN: r2466 commit a645254e671e0da16524a5423007079fd4e82cca Author: Philipp Kutin Date: Tue Mar 13 20:05:51 2012 +0000 Move insertsprite() and deletesprite() into engine.c instead of being inlined. These operations aren't executed THAT often to warrant exposing four internal functions. Besides, I'll be hacking on them and need everything laid out cleanly. Should somebody complain, they can go change them to __fastcall or something. From-SVN: r2465 commit 1b8c5504950c7649d12e3aca52e5e2bf745e81d7 Author: Philipp Kutin Date: Tue Mar 13 20:05:33 2012 +0000 Remove old functions from savegame.c. From-SVN: r2464 commit 749cf2c4a27bbe06fde27bfeb35f25785ad3b866 Author: Philipp Kutin Date: Tue Mar 13 20:05:20 2012 +0000 engine cleanup: make pow2char and pow2long const, make voxlock static. From-SVN: r2463 commit 400bbf24c1818e3f158fdbb629e0afde0866f389 Author: Philipp Kutin Date: Tue Mar 13 20:04:56 2012 +0000 Comment and format the engine's sprite list management functions; one tweak. In changesprite{stat,sect}, don't check for deletesprite{stat,sect} failure, because the only way it can fail was already checked for above. So, this is essentially dead code elimination. From-SVN: r2462 commit c504a0b5595bf2bfc2bcc8315ee753fafb49330c Author: Philipp Kutin Date: Tue Mar 13 20:04:39 2012 +0000 Remove some old comments. (sprite removal code at loadboard, bug notice) From-SVN: r2461 commit 177171dd9b5f17f5c83d0815bba47bcf51373984 Author: Evan Ramos Date: Mon Mar 12 04:57:06 2012 +0000 Fix another typo in osxbuild.sh. From-SVN: r2460 commit 230a69cab21366bfcb6d3f77e6f390175ebbc032 Author: Evan Ramos Date: Mon Mar 12 04:49:16 2012 +0000 Convenience Makefile variable for building with Clang: make CLANG=1 From-SVN: r2459 commit 79672cfa71f9cdf5e9845d9592c7e1b7c41c70df Author: Evan Ramos Date: Mon Mar 12 04:48:42 2012 +0000 More Build tools improvements: - JFBuild ports: arttool, givedepth, and mkpalette - All viable tools are now built when 'make utils' is invoked, not just some - Revert "initprintf" hack of previous commit and replace it with "compat_tools.c" - Move Bstrtolower from baselayer.c to compat.c - Makefiles: Add start and finish messages for the tools - Makefiles: To prevent "-Wimplicit" from being passed to the C++ compiler, create $(*CONLYFLAGS) From-SVN: r2458 commit f165a44561b1901ee0e49631a66639ff067167a7 Author: Evan Ramos Date: Mon Mar 12 04:47:49 2012 +0000 Fix compiling the Build tools by: - Adding $(EXESUFFIX) where it belongs in the Makefile. - Eliminating a call to initprintf() from compat.c. This may not be ideal. From-SVN: r2457 commit 9c126c6bae2724c1150acd1f060f3bbd2f77c463 Author: Evan Ramos Date: Mon Mar 12 04:47:04 2012 +0000 Fix JonoF's email address. From-SVN: r2456 commit 33bc9d0d64c593ce2acbdf020eb40c4d8e0872dc Author: Evan Ramos Date: Mon Mar 12 04:45:17 2012 +0000 osxbuild.sh: - Generate changelog and add to zip. - Increase minimum version to Leopard 10.5. - Fix typo in usage printout. From-SVN: r2455 commit 5455d5cefcb6ae6f5a700e622204b53af9b034bf Author: Philipp Kutin Date: Sun Mar 11 17:38:50 2012 +0000 Rename ud.clipping to ud.noclip internally for sanity. This might now be even more confusing for users reading both the source and CON code (where the access is necessarily still via '.clipping'), but at least reading the source now makes sense :P From-SVN: r2454 commit 4804fa55239c2c07cae4bafd60b0d97f4a8f6b27 Author: Philipp Kutin Date: Sun Mar 11 17:38:27 2012 +0000 After executing actor or loadactor CON code, null the instruction pointer. This is so that in the event of a crash, no CON dump will be printed if no (actor or loadactor) CON code was actually executing at the time of the crash, confusing the users. Note: doesn't apply for event code. From-SVN: r2453 commit 3bec628d5cb5aad2c8bae8b0798b55010d10139f Author: Philipp Kutin Date: Sun Mar 11 17:38:13 2012 +0000 Explicitly call A_DeleteSprite() from game code instead of relying on macro expansion. From-SVN: r2452 commit fd48f9f2fd46ce3491be57b8295d24936e001736 Author: Philipp Kutin Date: Sun Mar 11 17:37:50 2012 +0000 Remove non-SAMESIZE_ACTOR_T code and remaining #defines. We've been running with same-sized actor_t for a while without problems now. In the unlikely event (famous last words) that an issue should pop up later, this revision should be consulted for the differences between the two versions. From-SVN: r2451 commit 7fc8088650ab0600650817caeba8fcb588276a99 Author: Philipp Kutin Date: Sun Mar 11 17:37:25 2012 +0000 Remove YES and NO #defines from duke3d.h since they're giving warnings on OS X. From-SVN: r2450 commit b1c3ce99529e984531c3f7180288a914eff40146 Author: Philipp Kutin Date: Sun Mar 11 17:37:08 2012 +0000 Save TROR-related information into map states and bump BYTEVERSION. From-SVN: r2449 commit e7832844fd2ad454305488878f8cecfe5538f344 Author: Philipp Kutin Date: Sun Mar 11 17:36:49 2012 +0000 Core texture mapping functions cleanup. - forgot a glogy --> logy in a-c.c - comment out stretchhline and slopevlin2 in a.nasm, the former also in a-c.c - make transmaskvline2 use a uintptr_t where appropriate From-SVN: r2448 commit bdb980776d0c771b4e8b82cce1fb6f0615866e80 Author: Philipp Kutin Date: Sun Mar 11 17:36:32 2012 +0000 Remove a couple of redundant declarations in actors.c and gameexec.c. From-SVN: r2447 commit f0ad7f95f6d7e35c7e0cbda0ebe3f1c5b76460c6 Author: Philipp Kutin Date: Sun Mar 11 17:36:16 2012 +0000 M32Script: fix twisted pstat/nstat and psect/nsect references. From-SVN: r2446 commit 7d3e825457db33536f5b81a0ef53fdc23c2db65e Author: Evan Ramos Date: Sun Mar 11 07:15:44 2012 +0000 OS X: another set of new universal x86/x86_64/PPC libraries provided by LSDNinja, this time compiled under Leopard 10.5 From-SVN: r2445 commit 5833b4e9505451fd33602302e40034b5d42203cc Author: Evan Ramos Date: Sun Mar 11 07:11:59 2012 +0000 - Makefiles: fix handling of "-Wstrict-overflow=1" to fix Leopard 10.5/Xcode 3.1.4 compatibility - osxbuild.sh: explicitly specify "ARCH='-arch x86_64'" for 64-bit builds From-SVN: r2444 commit be7a020ee9d609e0fcd1a10540374279f59c8c87 Author: Pierre-Loup A. Griffais Date: Sun Mar 11 06:52:41 2012 +0000 polymer: fix animations that loop to frame 0 With VBOs enabled, the virtual pointer to the geometry of frame 0 of a model is always NULL. This was confusing the polymer code responsible for deciding whether to enable smooth animations or not, which meant that any animation that would loop to frame 0 would do it as if animation interpolation was disabled, which looks very choppy. From-SVN: r2443 commit 192b28f8a940e5d3a8ebfdaf7a9d513a89563b44 Author: Philipp Kutin Date: Sat Mar 10 21:22:44 2012 +0000 Rename SOUNDOWNER's (used in sound_t) member .i to .ow for easier grepping. From-SVN: r2442 commit c23e5d844761c4d53b9dc03a0547c0e47a1a78bc Author: Philipp Kutin Date: Sat Mar 10 21:22:22 2012 +0000 With dndebug, show the currently playing sounds. The format is snd # inst : voice , ow (this is the interesting part) From-SVN: r2441 commit a485c283c294dd58cc3603e66e3619b35e1c6e02 Author: Philipp Kutin Date: Sat Mar 10 21:22:03 2012 +0000 Rename P_ActivateSwitch()'s 3rd argument from 'switchtype' to 'switchissprite'. From-SVN: r2440 commit 63689dc3046bd9ec5c21492d961af2c8eff7281a Author: Philipp Kutin Date: Sat Mar 10 21:21:42 2012 +0000 Some sound source cleanup, no functional changes. - make a couple variables static in sounds_mapster32.c - KHz --> Hz in initialization text From-SVN: r2439 commit 5f1c3899c833a7a4c4f74b3aeaa851f8a4123924 Author: Philipp Kutin Date: Sat Mar 10 21:21:20 2012 +0000 Clean up cache1d.c. - make some variables static - conditionally compile out some code with DEBUG_ALLOCACHE_AS_MALLOC - exit(1) on failure (instead of exit(0)) - some formatting From-SVN: r2438 commit b424ec334c739d8b8ae560a09850f2df34f0f463 Author: Evan Ramos Date: Sat Mar 10 09:45:18 2012 +0000 Thoroughly revised osxbuild.sh, featuring: - Conditional disabling of the build for each architecture - Conditional enabling of debug building - Detection of the OS X version, disabling incompatible builds and establishing a minimum version - Fail-safe assembly of fat binaries and the archive (each item is checked first) - Lovely factored 'for' loops and parameter expansion From-SVN: r2437 commit fd2fd41e595f377b6785b87d70b5e7f077db3ac5 Author: Evan Ramos Date: Sat Mar 10 09:44:54 2012 +0000 Add file existence check for model skins. From-SVN: r2436 commit 32066e81332539c6407c805e595949d8189c6c6f Author: Evan Ramos Date: Sat Mar 10 09:44:17 2012 +0000 Add "echo" def parameter which prints a string to the console and log file. Syntax: echo "Your text here." From-SVN: r2435 commit 2fde38c1cda11c452da1c6e020055ad08e6c5b07 Author: Evan Ramos Date: Fri Mar 9 07:57:00 2012 +0000 OS X: Since the posix_memalign function causes problems when running on 10.5, not just building, I am making this more "risky/daring" change because OS X guarantees 16 byte alignment so it should be safe. From-SVN: r2434 commit 008fb7713b92e774d9e2c31bcc206746ce4a22c5 Author: Evan Ramos Date: Fri Mar 9 07:45:55 2012 +0000 OS X: new universal x86/x86_64/PPC libraries provided by LSDNinja From-SVN: r2433 commit 566075b19afa1ce6bd2688c30751274fb46200e5 Author: Evan Ramos Date: Fri Mar 9 07:43:49 2012 +0000 OS X: fix build under Leopard/Xcode 3.1.4 From-SVN: r2432 commit 04b9b768ff4fe390915265af26c698d657eee926 Author: Philipp Kutin Date: Thu Mar 8 19:16:47 2012 +0000 OS X: whitespace-cleanup Objective-C files. Also does TAB-->space. From-SVN: r2431 commit 868bfad62ee17bad34fe7124acf4f887be8d4af4 Author: Philipp Kutin Date: Thu Mar 8 19:16:30 2012 +0000 OS X: fix and enable startup windows; enable PPC build in osxbuild.sh. From-SVN: r2430 commit 46d3d5a6c8ebeb14cca5338fb9db23bd7a97de5e Author: Philipp Kutin Date: Thu Mar 8 19:16:06 2012 +0000 OS X Objective-C files: NSApp -> nsapp as before for a PPC linkage fix Note: I'm not really sure whether I'm initializing it in the right places. From-SVN: r2429 commit 4a6a4520531ebefe93341af39309725b9c854de6 Author: Philipp Kutin Date: Thu Mar 8 19:15:18 2012 +0000 cleanup: remove now unused B_ATTRIBUTE_USED macro. From-SVN: r2428 commit 1cc606d94d15956abc0a60fdf87063f9cfd50800 Author: Philipp Kutin Date: Thu Mar 8 19:15:03 2012 +0000 Polymost: fix mirror-related oob access analogous to r1872's fix for classic. When drawing from inside the mirror, there may be no 'bunches' (BUILD lingo, not TROR ones) collected, but following code used the first one unconditionally. From-SVN: r2427 commit f4b2cbe097eaa3d3db00f8b39997aae969c5f96c Author: Evan Ramos Date: Thu Mar 8 06:07:10 2012 +0000 Add "OSX_STARTUPWINDOW" Makefile variable to toggle the OS X startup window. Off by default. From-SVN: r2426 commit f06ef720cac3205ae3016d246484198de330aed8 Author: Evan Ramos Date: Thu Mar 8 06:06:00 2012 +0000 Fix OSX-related typos in Makefile and osxbuild.sh. From-SVN: r2425 commit 0e3538a55f17742eae5ef95f3383eb2dc2722b27 Author: Philipp Kutin Date: Wed Mar 7 19:42:37 2012 +0000 Optimizations and tweaks for C replacements of mhline and thline. Hlines for masked and translucent masked ceiling/floor (sprites). - apply the --> 'do { ... } while (--cnt)' transformation, making these functions iterate cnt+1 times like the asm version. This also fixes an off-by-one issue where sprites or masked ceilings/floors had a one-pixel non-drawn line to the right. - This time, only declare-as-local two 'extern' globals (asm1 and asm2). It seems that I was too eager with "localing" all file-scoped vars earlier. GCC is able to remove the loads from memory inside the loop by itself, whereas clang is not. This is not trivial, since it has to prove that the 'screen' pointer passed to the functions will never alias these globals. From-SVN: r2424 commit 54ce4e132c564328e77c02aace23c39bea1e1f21 Author: Philipp Kutin Date: Wed Mar 7 19:42:20 2012 +0000 Optimize 'rainbow' background drawing in the editor with 8-bit renderer. From-SVN: r2423 commit 15cdf7f68d38bf8a15e8e59688faf2509d127f73 Author: Evan Ramos Date: Mon Mar 5 07:25:55 2012 +0000 Fix building ebacktrace1.dll with versions of binutils/libbfd after 2.20.51-1. This removes the need to link and depend on libintl (for now). From-SVN: r2422 commit ac5bd539497e68853200adcb56e1955a27d7b631 Author: Evan Ramos Date: Mon Mar 5 07:25:24 2012 +0000 Fix -Wformat-security and -Wformat-extra-args warnings under clang. From-SVN: r2421 commit 73f67855b30a842a1816775e755bedfdb7aa7ca3 Author: Evan Ramos Date: Mon Mar 5 07:24:34 2012 +0000 Rewrite code for the "-rts" command line parameter to remove an unnecessary int32_t, prevent needless string copying, factor out duplicate math, centralize the default RTS name, and prevent clobbering of the RTSName CFG setting. From-SVN: r2420 commit 1b137ca314acd9df8b21b23b49450d78796152b7 Author: Evan Ramos Date: Mon Mar 5 07:24:04 2012 +0000 Add "echo" CON command which allows the user to print a quote only to the console and log file, for debugging or informational purposes. EVENT_INIT can finally be put to use! From-SVN: r2419 commit 42cc42f2f553376105ed21b72d9ba3f210a4fda7 Author: Evan Ramos Date: Mon Mar 5 07:23:34 2012 +0000 Remove ATTRIBUTE((used)) from gotpic[] because it only served to generate warnings when using LTO. From-SVN: r2418 commit 22cbb7d57ffcd3508e7f85d61a9d91e53847b505 Author: Evan Ramos Date: Mon Mar 5 07:23:02 2012 +0000 osxbuild.sh: zip -y -x "*.svn*" "*.git*" From-SVN: r2417 commit 58c6cab10bc90a703df4d652874e3012d5774246 Author: Philipp Kutin Date: Sun Mar 4 20:15:22 2012 +0000 Formatting; remove 'loop has empty body' warnings with clang. I have to admit, I like its grumbling. From-SVN: r2416 commit 3a760e33733267e03e60ba12c16ad4b6f36a1b63 Author: Philipp Kutin Date: Sun Mar 4 20:15:04 2012 +0000 Polymost: with r_parallaxskypanning=1, clamp the sky at a constant horizon. See E4L1 for what this means. From-SVN: r2415 commit 83a4cfebcc23184f035230b6edb9d0b39cdfb78c Author: Philipp Kutin Date: Sun Mar 4 20:14:48 2012 +0000 Fix apparent horizon not being independent of viewingrange (classic/Polymost). The apparent horizon (in units proportional to pixels by a constant factor) was being calculated without normalizing to viewingrange, resulting a discrepancy between the drawn and actual up/down angle with non-default viewingranges (e.g. with r_usenewaspect=1, or when setting it from setaspect). This also means that the center-of-aim will now be the same regardless of the aspect. This fixes many derived bugs: * inconsistency w/ crosshair when shooting a gun and aiming up/down (obviously) * bugs resulting from being able to look up/down too far (garbage non-slope texture-mapping and viewing BIGORBIT skies above the borders in classic). Note: mods that had workaround logic for this bug will have to remove it... From-SVN: r2414 commit 58db3972a4c67ef987e3a873124aec8fcca86b17 Author: Philipp Kutin Date: Sun Mar 4 20:14:32 2012 +0000 Tweak 'dncoords' display. added: sector extra; viewingrange and yxaspect before the main drawrooms call removed: randomseed From-SVN: r2413 commit c639b5e05b351f7465cf857a278a93b7bba235da Author: Philipp Kutin Date: Sun Mar 4 20:14:18 2012 +0000 ATTRIBUTE((pure)) for Ptile2tile(), add a forgotten comment. From-SVN: r2412 commit d8fcfe3ac00075cb25c3e7053cd97d650c3caa76 Author: Philipp Kutin Date: Sun Mar 4 20:14:01 2012 +0000 sector.c: fix a possible oob access of a local array. From-SVN: r2411 commit 42c9cf759bde87e8f4de9c15f0e1c79bf2718732 Author: Philipp Kutin Date: Sun Mar 4 20:13:47 2012 +0000 Clamp ud.camerahoriz after EVENT_DISPLAYROOMS (instead of before). From-SVN: r2410 commit 89d9ca428cd05cbef252e54d0602717627625b7c Author: Philipp Kutin Date: Sun Mar 4 20:13:34 2012 +0000 Make 'double ghoriz' static in polymost.c. From-SVN: r2409 commit 26797d84ef051b954e41be490db9ddad9c71f206 Author: Philipp Kutin Date: Sun Mar 4 20:13:16 2012 +0000 Apply transformations to nonpow2_mhline and nonpow2_thline. This has no measureable difference. Oh well, maybe it benefits weaker machines, since the generated loop code should definitely be prettier. From-SVN: r2408 commit 2dc01f4c15e88e9904c805ab3369c04ad505515c Author: Philipp Kutin Date: Sun Mar 4 20:13:01 2012 +0000 Optimize fade_screen_black(). 49 --> 54 fps for test scene. From-SVN: r2407 commit a8640b28e8e5fc1a1851fd83e0fdaa44dec3a727 Author: Philipp Kutin Date: Sun Mar 4 20:12:46 2012 +0000 Apply the transformations of the previous commit to tslopevlin(). This doesn't give much, maybe 0.5 fps more, probably because the loop body is pretty long. From-SVN: r2406 commit ca16858cb09730a4e67d1e0cdc8f1c9e1cfa81b7 Author: Philipp Kutin Date: Sun Mar 4 20:12:30 2012 +0000 Optimization of C replacements of basic texture mapping functions, part 1 Affected functions: hlineasm4, vlineasm1, mvlineasm1, tvlineasm1. Optimizations: - declare all used variables as possibly const-qualified locals in each function. This removes unnecessary loads from memory in the loops. - rewrite "for (; cnt>=0; cnt--) {...}" to "cnt++; do {...} while (--cnt);" in the three last ones (yes, these function iterate cnt+1 times). This makes them functionally equivalent to the asm versions (madness ensues for cnt < 0) and allows the compiler to remove one 'test' instruction at the end of each loop. - in the translucence function, replace addition by ORing Observations (system: Core2 Duo Linux x86_64): With a 1680x1050 window fully covered by the respective type of wall (simple, masked, trans. masked), fps increases by 3-4 from the baseline of approx. 60. From-SVN: r2405 commit a61321959f461a27a27d64224aad1613455be7ca Author: Philipp Kutin Date: Sun Mar 4 20:12:15 2012 +0000 More utils tweaks. - remove the objects too on 'clean' - fix warning with 'transpal' on x64 (generates translucency and shade tables) From-SVN: r2404 commit 0989778d2101103bad9ff2bf20c9f604583bc3c3 Author: Philipp Kutin Date: Sun Mar 4 20:11:49 2012 +0000 Makefile tweaks for the utilities. - print compilation status for building the final executable - add 'cleanutils' target in build/Makefile - don't link against pthread, seems unnecessary - don't build nedmalloc.o when not requested in Makefile.common From-SVN: r2403 commit 8344edaa0a22e7e2d55d40660c4db6cb360b18a1 Author: Evan Ramos Date: Sun Mar 4 09:33:23 2012 +0000 synthesis.sh: - Exclude "Apple/lib" rather than "Apple" so that required files are not left out of the tarball. - Add one to $lastrevision before generating the ChangeLog so that it only includes what is new to an update. osxbuild.sh: - Add stronger detection of the SVN revision by adding support for 1.7 (no longer relying on an ".svn" directory) and having a specific fallback in case the build location is neither svn nor git. - Echo the SVN revision to source/rev.h before the build processes and revert it afterwards. From-SVN: r2402 commit 810e433230edaef6457a45d0d0a0e42e9dd36809 Author: Evan Ramos Date: Sun Mar 4 09:32:57 2012 +0000 Under Mac OS X, look for libvpx in /usr/local to add support for Homebrew in addition to MacPorts. From-SVN: r2401 commit 4bb7c9218a686acd23e6c8f49cb6b14589e7eb70 Author: Evan Ramos Date: Sun Mar 4 09:32:33 2012 +0000 Under Mac OS X, override libsupc++ with libstdc++. From-SVN: r2400 commit 2302362c6197097297856aea6d635a9517f161ef Author: Evan Ramos Date: Sun Mar 4 09:32:06 2012 +0000 Add an explicit declaration so that Mac OS X binaries look for the Frameworks inside the app bundle before anywhere else. From-SVN: r2399 commit 557dddd9f15333058407d3fd0600cb95337566af Author: Evan Ramos Date: Sun Mar 4 09:31:37 2012 +0000 Add APPLE_FRAMEWORKS Makefile variable which can be passed to the make invocation. ex: make APPLE_FRAMEWORKS=~/Library/Frameworks From-SVN: r2398 commit 6d31a66c0226c4e18a94078e21f7c0634c761812 Author: Evan Ramos Date: Sun Mar 4 09:31:02 2012 +0000 Remove four self-assignments in backtrace.c that were added to avoid an unused parameter warning and add ATTRIBUTE((unused)) to the implicated parameters so they will not trigger the warning because they could not be removed. From-SVN: r2397 commit 841190fdf50fbf41cb1a509edb27367b67631105 Author: Evan Ramos Date: Sun Mar 4 09:30:27 2012 +0000 JFDuke3D port: OS X Startup Window, copied almost verbatim It needs to have the sound quality box removed and the Game directory box added, possibly among other things. From-SVN: r2396 commit d995255d417579864b6f33e1728623c461e122c8 Author: Evan Ramos Date: Sun Mar 4 09:29:05 2012 +0000 JFDuke3D port: Display DUKETEAM.ANM at the end of episode 3 under v1.3D. Fix for end-of-game sequence with 1.3D data, by Turrican. From-SVN: r2395 commit 5162c08d5814092a56e4edc2bcd2ed88da832f54 Author: Philipp Kutin Date: Thu Mar 1 23:36:11 2012 +0000 Define strtoll to _strtoi64 on MSVC. Usage of a search machine by Hendricks. From-SVN: r2394 commit ce5cf96b37e3c8e841049f592b5473c568546bea Author: Philipp Kutin Date: Thu Mar 1 23:35:53 2012 +0000 When failing to open a savegame file for writing, print the reason to the log. From-SVN: r2393 commit 3aa00bf36d5edd9ea78759678fcbea2caf1bd635 Author: Philipp Kutin Date: Wed Feb 29 15:27:40 2012 +0000 More rebust (and "correct"/expected) decimal number parsing in CON. The replacement of atoi with strtol in r2374 had the side-effect that numbers out of the range of a 32-bit integer were being returned as LONG_MAX/LONG_MIN instead of being converted by taking the bits and re-interpreting them (note that it was a coincidence that atoi behaved that way; to be strict, the behavior was undefined and there is no regression). Now, we implement parsing decimal integers using strtoll (with assuming "long long" being the same as int64_t) and check in which range the number falls. If it's in the range (INT32_MAX <= x <= UINT32_MAX), issue a warning; if it's not in (INT32_MIN <= x <= UINT32_MAX), warn too (though this better ought to be an error?). In each case, the bit representation is converted to the CON number type (int32 to assume maximum portability) by re-interpreting the bits [this is the same as an int/int cast, with GCC at least; more generally, it's implementation-defined per C99]. From-SVN: r2392 commit 11261ab28898d9e99a2ff4262a674e7c602b58c3 Author: Philipp Kutin Date: Mon Feb 27 19:40:28 2012 +0000 Make 'dommxoverlay' and 'beforedrawrooms' static in engine.c. From-SVN: r2391 commit dbd782a97badefade716d4e57a0f6501bee649b8 Author: Philipp Kutin Date: Mon Feb 27 19:40:01 2012 +0000 Significantly speed up non-power-of-two floor sprite texture mapping functions. (Classic renderer). We don't need 64-bit integers; also use the nice asm version of divscale32() if possible. From-SVN: r2390 commit 6c210dab1e24521d1d9406db111ad605e8869bc4 Author: Philipp Kutin Date: Sun Feb 26 17:38:17 2012 +0000 osxbuild: zip -r From-SVN: r2389 commit b2055a869f242e151038031166e7be434635bdbe Author: Philipp Kutin Date: Sun Feb 26 17:32:53 2012 +0000 Fix osxbuild.sh on my setup. From-SVN: r2388 commit 2d3aaecdbe15ea7749e5ba2be06a9bd5f5ff3fad Author: Philipp Kutin Date: Sat Feb 25 15:59:44 2012 +0000 Try to find another mirror wall if the assigned one breaks. This fixes mirrors consisting of more than one walls not drawing when the first assigned mirror wall breaks. It still does not let you have more than one mirror (i.e. mirror sectors) showing up at the same time in the scene. Affects classic and Polymost only. From-SVN: r2387 commit cb9c2497b071d308692e92967d78769211964221 Author: Evan Ramos Date: Sat Feb 25 03:31:20 2012 +0000 Update "osxbuild.sh" to reflect implementation of .app bundles on Mac OS X. From-SVN: r2386 commit 3e1fb19ec0a09755007d313791ab522df25be505 Author: Evan Ramos Date: Sat Feb 25 02:59:51 2012 +0000 The Mac OS X build process will now automatically copy the .app bundles to "./" and move the binaries into them. From-SVN: r2385 commit 437eba0738311fde5ec96b11d2efd97668a9378d Author: Evan Ramos Date: Sat Feb 25 02:59:13 2012 +0000 add Mac OS X .app bundles to repository From-SVN: r2384 commit 051b87683fcb8a251400db0e33d83cf310077bd1 Author: Evan Ramos Date: Sat Feb 25 02:57:59 2012 +0000 Add the source .psd files for the EDuke32 logo and program icon to the repository. Though they are .psd, they are effectively vector because they utilize paths. From-SVN: r2383 commit c50ca40b3165e9b62bc50fffdc31e022bb3400af Author: Evan Ramos Date: Sat Feb 25 02:57:25 2012 +0000 cosmetic: * update Windows icons to include 64x64, 128x128, and 256x256 sizes * add "orange_icon.ico" (unused; classic orange color of logo) * remove unused 32x32 "build_icon.bmp" file From-SVN: r2382 commit a5f9010f04e546a4fc8394d0af29478ca2bdd64f Author: Philipp Kutin Date: Fri Feb 24 19:51:54 2012 +0000 Do bound check for "quick" sector/wall accesses from CON, i.e. in getvarvar. This was causing oob sector accesses with code like this: getwall[hitwall].nextsector temp ifvarvare sector[temp].floorz sector[temp].ceilingz setvar tempb 1 (from DT's HYPERCORE). Also validate quote indices passed to CON's quote and userquote commands at runtime. From-SVN: r2381 commit 79891622fe028a7dbbdef10a16b60151aec95aaa Author: Philipp Kutin Date: Fri Feb 24 19:51:37 2012 +0000 Fix user quotes colored with a 2-digit number being wrongly x-aligned. Such game text was shown starting from about the center of the screen. The reason for the bug was this code: t += 1 + isdigit(*(t+2)); The sequence points here are at the beginning and end of this assignment expression, and the updating of t may happen anywhere between these (C99 6.5.16 #3). Please don't write such code. When in doubt, and assignment and reference to the same object should be split! From-SVN: r2380 commit ae92b84af40e9709e58b4630866bb95d44e5362e Author: Philipp Kutin Date: Tue Feb 21 19:33:33 2012 +0000 Pull the 'for (' ... ')' out of the TRAVERSE_{CONNECT,SPRITE_*} macros. This plays more nicely with automatic formatters. Also indent accordingly. From-SVN: r2379 commit 503fbce0d4b23961fb035a9da962f504d3d6c522 Author: Philipp Kutin Date: Tue Feb 21 19:33:09 2012 +0000 QUOTE_NVG_OFF-p->heat_on --> QUOTE_NVG_OFF-!!p->heat_on in sector.c. Because: 1) It used to be like this; 2) guard against bad CON input. From-SVN: r2378 commit 0a934aef035bda5198ab2470ac62c313da67ab01 Author: Philipp Kutin Date: Tue Feb 21 19:32:55 2012 +0000 Fix potential (certain?) oob access with ST28/SE21. Encountered with Scent.map. Since the SE21 are deleted after they have been used, the search for them in the ST28 code in sector.c may come up empty, in which case sector[-1] would be accessed. From-SVN: r2377 commit 217b3d581cabd4a3068a88792ff98d3a97b8589f Author: Philipp Kutin Date: Tue Feb 21 18:24:36 2012 +0000 Fix sprites with picnums >= MAXSPRITES not drawing in classic. This was discovered because viewscreens (TILE_VIEWSCR) ceased being drawn with the MAXTILES increase (reported by Hank, who also did the bisect). From-SVN: r2376 commit e1c6d08e3dce6964c7ee18a66697a10eb29609f3 Author: Philipp Kutin Date: Mon Feb 20 21:18:57 2012 +0000 Uncomment "CrosshairColor" parsing code in config.c. Untested, but LeoD says it works. From-SVN: r2375 commit bc42ee9141abb76bd891914099b38c5c0b8716b5 Author: Philipp Kutin Date: Mon Feb 20 21:17:39 2012 +0000 Define Batoi/Batol to strtol(...) in compat.h and use these when necessary. That is, everyplace a user input is to be converted. The only remaining instance of atoi() is now atoi(s_buildDate). From-SVN: r2374 commit a048b9606579f6703d76c49e757cd1d5fe7c1fb7 Author: Philipp Kutin Date: Mon Feb 20 19:54:24 2012 +0000 engine: make neartag accept a sprite-blacklist function and use it in sector.c. Internally, the last argument to neartag is now a pointer to a function int32_t (*blacklist_sprite_func)(int32_t i), which is supposed to return 1 if sprite[i] should NOT be considered for hitting. This is now used in the hard-coded neartag() calls in sector.c, but not in any way in CON (there's neither a C blacklist function provided, nor is there a possibility to define one in CON). There, all sprites with picnums >=1 and <=10 (i.e. the effectors) will be blacklisted. This remedies problems where such sprites would get in the way of switches. Note that a whitelist approach (only consider a predefined set, namely those picnums which will be checked afterwards) has back-compatibility implications since people may have used e.g. lotagged window sprites to cover a switch. Also, the >=1 to <=10 range is [sic] (the static, not dynamic values are used), since anyone redefining effector picnums is clearly out of their mind. From-SVN: r2373 commit 8a1f2156dbf07e67acd70377fa26864159d2e278 Author: Philipp Kutin Date: Mon Feb 20 19:53:42 2012 +0000 Make neartag() return void instead of always 0. From-SVN: r2372 commit c9df0d6080c4e9220b1de968ab3eb170704e96a8 Author: Philipp Kutin Date: Mon Feb 20 19:53:23 2012 +0000 polymost.c: More informative failure message for gloadtile_cached(). From-SVN: r2371 commit 34bd911b9d7a9ef0b870a5667726b6399473ebc5 Author: Philipp Kutin Date: Mon Feb 20 19:53:07 2012 +0000 Use maps selector: draw files found in ZIPs with pal 8. From-SVN: r2370 commit 32c214d0128dae9b693eca7f274626c6e663027e Author: Philipp Kutin Date: Mon Feb 20 19:52:53 2012 +0000 cache1d.c: more meaning-preserving transformations, patch up one oob access. lzwcompress can access one byte after lzwrawbuf[LZWSIZE] when provided with an uncompleng of LZWSIZE, so we increase that array's size by one. From-SVN: r2369 commit 049b3b1dd4c4e23efcee2fdf7e70f033c714a95d Author: Philipp Kutin Date: Mon Feb 20 19:52:38 2012 +0000 cache1d.c: formatting and trivial changes. Remove dfread and kdfwrite, only leave a recipe how to get their source from the respective used functions. From-SVN: r2368 commit 65692f30fde221703f9c7a4146f8006eca893b46 Author: Philipp Kutin Date: Mon Feb 20 19:52:22 2012 +0000 cache1d.c: rename three variables, put commented out code at the end. From-SVN: r2367 commit 65857fe7e61b7dbea69f7c9691cb28bb48a327d1 Author: Philipp Kutin Date: Mon Feb 20 19:52:04 2012 +0000 cache1d.c: allocate internal LZW buffers statically instead of with allocache. From-SVN: r2366 commit 430f3c9df4431baf874812782619af780cfb8aab Author: Richard Gobeille Date: Sun Feb 19 04:07:14 2012 +0000 Rebuild nedmalloc.dll using newest git sources From-SVN: r2365 commit 52f00186237f7b15ba373ca0f1a8f406b7830c59 Author: Philipp Kutin Date: Sat Feb 18 22:15:35 2012 +0000 Make compiler happy: remove 'may be used uninitialized' warning in multivoc.c. I'm not getting this warning (synthesis is) but I think it's justified because the VOC block parsing code isn't terribly validating... From-SVN: r2364 commit 24bd0be7099aa7f39713f410bbfac2082b33c8f9 Author: Philipp Kutin Date: Sat Feb 18 22:15:19 2012 +0000 Fix a potential free() of stack memory in screenshot code. Ouch! From-SVN: r2363 commit d6c1cd947ceaa3019ccc0c8ebb2b862f0cf4a645 Author: Philipp Kutin Date: Sat Feb 18 22:15:04 2012 +0000 Comment out unused dfread and kdfwrite functions in cache1d.c. From-SVN: r2362 commit 98ae10296cf0e14361e3b877d19cb77d2cb11671 Author: Philipp Kutin Date: Sat Feb 18 22:14:45 2012 +0000 constify various cache1d and pragmas functions, some copybuf* -> memcpy/move. The following functions have const qualifiers attached for the 'destination' arguments: kdfwrite, dfwrite in cache1d.c and copybuf{byte,reverse,} in the pragmas source or headers. A couple uses of the latter ones were replaced with calls to standard library functions. From-SVN: r2361 commit 5102745130bacf2fd7e602beec1dce026a8e2f08 Author: Philipp Kutin Date: Sat Feb 18 17:57:07 2012 +0000 cache1d.c: debugging feature routing all allocache requests to malloc. This is useful to debug out-of-bound violations for memory allocated with that function. From-SVN: r2360 commit e48f20a589d3da184aa9c2d7173c7ae3b72fd48e Author: Philipp Kutin Date: Sat Feb 18 17:56:52 2012 +0000 menus.c: rename _bar to sliderbar. From-SVN: r2359 commit 665093b8dccc8ec2249f7582c840696c2f7ee28e Author: Philipp Kutin Date: Sat Feb 18 17:56:39 2012 +0000 Menus: make aspect ratio also control r_usenewaspect. - RENDERER SETUP is now also accessible from classic, with only 2 options: 'aspect ratio' and 'ambient light level' - remove the latter option from the VIDEO SETUP menu - When compiled with OpenGL, the aspect ratio option cycles between 3 states: r_usenewaspect=1 (the modern way), and r_usenewaspect=0 but r_widescreen=0/1. In non-GL builds, there are only 2 states. - don't display black translucent overlay in COLOR CORRECTION menu From-SVN: r2358 commit 3da2fa3b3d9bcfb9d144200938555f8f16a992e4 Author: Philipp Kutin Date: Sat Feb 18 17:56:26 2012 +0000 Fix non-OpenGL build. From-SVN: r2357 commit 38cb4b366b98262049e58052e5fc0e36f63d3c8d Author: Philipp Kutin Date: Sat Feb 18 17:56:13 2012 +0000 In the user map selector, sort file names case-insensitively on Unix'y systems. This makes more sense because the game selector draws the names with uppercase letters and the hotkeys to jump to a map starting with a particualar letter aren't case sensitive, either. Mapster32's selector will still display maps starting with upper case first. From-SVN: r2356 commit e18155cf7d55c300847a718a90e243d3e7e78a30 Author: Philipp Kutin Date: Sat Feb 18 17:55:59 2012 +0000 Fix non-asm build, I forgot a line with the preceding change. From-SVN: r2355 commit 39d5490f1cbc855af5136a6d230ce228e0911079 Author: Philipp Kutin Date: Sat Feb 18 17:55:43 2012 +0000 engine.c: more formatting, removing of textually duplicate code. From-SVN: r2354 commit 670bc7c328f26211ba5ef2ef4ba6e925052d920a Author: Philipp Kutin Date: Sat Feb 18 17:55:27 2012 +0000 engine.c: formatting changes The bulk are whitespace changes; the only exception is a "if (expr) { stmt; }" --> "if (expr) stmt;" From-SVN: r2353 commit 192c20c6b6460841a8a7e101e27d0c941f274147 Author: Philipp Kutin Date: Thu Feb 16 20:29:51 2012 +0000 osxbuild.sh: detect whether we're keeping the source in SVN or git. From-SVN: r2352 commit ae5b0555a1c83b21c7cb19920ea0c017d6ae731f Author: Philipp Kutin Date: Thu Feb 16 19:25:56 2012 +0000 Update samples/trueror1.map with some tests of sprites lying on TROR floors. Also, there's a "ladder" that passes through a TROR portal, and the mirror in that map has been fixed for the classic renderer. From-SVN: r2351 commit 8a9b5d62c2ce2d42292e6bd4d35dd1a996c922e2 Author: Philipp Kutin Date: Thu Feb 16 19:25:42 2012 +0000 Mapster32: Fix extended ceiling/floor picnums taking on picnum 0 in Polymer. The reason was that drawmasks(), which was where the resetting of the fake RoR textures happened under Polymer, can be called from polymer_displayrooms() when mirrors are present. I was assuming that drawmasks() was only ever called after the 'main' drawrooms and that hence the sequence of fake RoR tile tweaking was set, reset, set, reset, ... which it was not. Now, do the resetting explicitly after every drawmasks() in the editor. From-SVN: r2350 commit bca8571a046b277c43fa0d892be3f209dcd8bf38 Author: Philipp Kutin Date: Thu Feb 16 19:25:18 2012 +0000 When loading a map in-game, clear TROR wall members corresponding to up/down links. I find this cleaner for two reasons. First, lotags won't get in the way of neartag(), so that doors and switches near constrained TROR walls can be pushed. Second, this removes the information leak so that CON coders aren't tempted to read that values directly before a proper API for that comes along. When writing out a map in-game (e.g. with dndebug), restore the respective members so that it can be loaded in the editor again. From-SVN: r2349 commit e0cbe811d3b42b9ef5274a4785154f3e94d701b5 Author: Philipp Kutin Date: Thu Feb 16 19:24:59 2012 +0000 engine.c: Rewrite tslopevlin (translucent slope vline texmapping) for clarity. From-SVN: r2348 commit e016a47c70584628b497aacc1b83a25deba8636f Author: Philipp Kutin Date: Thu Feb 16 19:24:44 2012 +0000 Fix player being not blocked by sprites lying on an extended floor. getzrange() returns the floor rather than the sprite if their heights are equal. Now, make an exception for extended floors (analogously, ceilings). From-SVN: r2347 commit 9bd63189a0633cb4d942c0a41beda41923bd468d Author: Philipp Kutin Date: Thu Feb 16 19:24:28 2012 +0000 Clean up VOC in-memory block type parsing. - Maintain a position relative to the start of the data. VOC doesn't mandate an EOF marker (blocktype 0). If we go over the end, fake that marker, so as to restart a looping sound or stop a one-shot one. This fixes an uninitialized mem access with the corrupt SNAKRM.VOC. - When encountering the EOF marker, don't read the 3 bytes of block size, since they may not be there. - Read blocksize by ORing and shifting the 3 bytes, not with *(int32_t *)... From-SVN: r2346 commit 6ef957d9ed581362ae38878c597ebb55c51cfc34 Author: Philipp Kutin Date: Thu Feb 16 19:24:09 2012 +0000 Mapster32: don't use lazy tile loading with r_hightile=0. From-SVN: r2345 commit 533353a2615876110d046b8a7023aefefbbde43a Author: Philipp Kutin Date: Tue Feb 14 23:14:07 2012 +0000 Fix use of an uninitialized variable in P_FindWall->FindDistance2D with noclip. From-SVN: r2344 commit 7aae9302afa8aebb5db0bf216f5e0ab3671e96c0 Author: Philipp Kutin Date: Tue Feb 14 23:13:53 2012 +0000 engine.c: replace 0xXXXXXXXX literals with INT32_MIN/MAX; whitespace changes. From-SVN: r2343 commit e8ca95e43804f832ebae6948d2771540b047cba1 Author: Philipp Kutin Date: Tue Feb 14 23:13:38 2012 +0000 Fix a couple of out-of-bounds accesses when roaming around with noclip. - guard cansee() against negative sectnums (return 0 immediately), since it's often called with the player sectnum as one argument - in resetpspritevars(), don't inset APLAYER sprite if sectnum < 0, which can happen if a map is started in void space accidentally (e.g. from the editor) - two checks before accessing sector[] with a player sectnum From-SVN: r2342 commit f46f49dc47d7956ea4670c90d90a8af174b44c51 Author: Philipp Kutin Date: Tue Feb 14 23:13:16 2012 +0000 Fix sprite rendering glitches with r_usenewaspect=1 in 8-bit mode. From-SVN: r2341 commit fb6936ab68db1d221a8039d5c269c3f26a39b5b1 Author: Philipp Kutin Date: Mon Feb 13 21:38:16 2012 +0000 Make 5th mouse button functional in Windows. From-SVN: r2340 commit 2dacc42c582aa4b0d40f412adacb6cd178e5e30f Author: Philipp Kutin Date: Mon Feb 13 21:38:00 2012 +0000 Draw HANDHOLDINGLASER and ~ACCESS with guniqhud=200 and 201, respectively. This fixes updateanimation picking up foreign (and thus potentially oob) frame numbers at "3: c > n". From-SVN: r2339 commit 9ce3de056ada3ae1f6c8c186445d664af95d1041 Author: Philipp Kutin Date: Mon Feb 13 21:37:46 2012 +0000 Remix mdsprite.c's updateanimation() to look prettier and clearer. Specifically, - rearrange conditionals - factor out constant expressions - add a couple of debugging printfs for extraordinary events (oob frames) - add VERIFY comments for implicit assertions I'd like to verify sometime Also, one calloc -> malloc. From-SVN: r2338 commit 0a57168e8ad65e6f015a62d3a659b6980815ae8e Author: Philipp Kutin Date: Sun Feb 12 13:47:33 2012 +0000 Debugging helper disabling a.nasm calls with OpenGL renderers. Uncomment #define DEBUG_VALGRIND_NO_SMC in duke3d.h to be able to valgrind --smc-check=none (or the default stack-only) with Polymost and Polymer renderers. From-SVN: r2337 commit bb724fd4b373c1abaaa65899ff766c8b7d903602 Author: Philipp Kutin Date: Sun Feb 12 13:47:15 2012 +0000 Patch up out-of-bounds access (r/w) when mixing 16-bit stereo *source* data. ... by allocating two bytes more for the mixing buffers. From-SVN: r2336 commit a246bafb7742d33c5bf8023a8a5e40f8926140d6 Author: Philipp Kutin Date: Sun Feb 12 13:46:57 2012 +0000 Fix uninitialized mem access in dorotatesprite with thin tiles (e.g. 3085). From-SVN: r2335 commit 8ea81ded523b69bc18fac77f6573c4768fbfba82 Author: Philipp Kutin Date: Sat Feb 11 11:52:33 2012 +0000 jmact/control.c: rewrite strange looking loop. From-SVN: r2334 commit fb2fa6f373166a2301bff9f3a5244acbd2d115c8 Author: Philipp Kutin Date: Sat Feb 11 11:52:19 2012 +0000 Draw translucent black background only when playing (back a demo or oneself). From-SVN: r2333 commit 52e0201f774dfd4d73d77115107e1a12da34a709 Author: Philipp Kutin Date: Sat Feb 11 11:51:48 2012 +0000 Fix menu text not drawing when not playing (back), introduced in r2326. From-SVN: r2332 commit d73897f2aca1cc5806cfe3bff1d4fa0fdac71606 Author: Philipp Kutin Date: Sat Feb 11 11:51:34 2012 +0000 Fix zero-size calloc when enumerating a joystick with no hats in SDL. From-SVN: r2331 commit afd9f9daf67b2258e335e8bca8a417de0f6ed1f5 Author: Philipp Kutin Date: Thu Feb 9 22:45:38 2012 +0000 Remove a couple of redundant declarations. From-SVN: r2330 commit 5f2be8fc5b2e2baa939a696e309569ff96d7f23b Author: Philipp Kutin Date: Thu Feb 9 22:45:18 2012 +0000 Lunatic: interface to events. From-SVN: r2329 commit 629dd281ba53c8ac163eed6fd82250ec9c42354d Author: Philipp Kutin Date: Thu Feb 9 22:44:45 2012 +0000 Add some #includes to gameexec.h and sector.h so that they can be included directly From-SVN: r2328 commit 202eb3a4a5575b96d1ca8019ac21f3f45c2cc21d Author: Philipp Kutin Date: Thu Feb 9 22:44:26 2012 +0000 Use a tokenlist for the event names and add tokenlist typedef to gamedef.h. From-SVN: r2327 commit 39593b2818b723bcc457c62d84ba0ec19cc78183 Author: Philipp Kutin Date: Thu Feb 9 22:44:09 2012 +0000 Make r_maxfps functional in demo playback. From-SVN: r2326 commit 213857ec650b1cb4402fc3124f5de43121f1ee06 Author: Philipp Kutin Date: Thu Feb 9 22:43:55 2012 +0000 Coalescle codes for dnkroz and dncgs cheats. From-SVN: r2325 commit 9f31639283080eea6dfcfdc8632a8e29d14455f7 Author: Philipp Kutin Date: Thu Feb 9 22:43:40 2012 +0000 Factor out identical (except for params) pieces of code of G_CheatGetInv(). From-SVN: r2324 commit 2d4ad254f2dd8f53b48562d0c676a461d4328a6e Author: Philipp Kutin Date: Thu Feb 9 22:43:21 2012 +0000 Fix zero-size calloc when enumerating a joystick with no hats in Windows. From-SVN: r2323 commit 7bb2cce6bb7e4c216d86fedf3e89643afad0d223 Author: Philipp Kutin Date: Thu Feb 9 22:43:06 2012 +0000 Revert r2303 functionality ("Don't wait for pain tinting to subside...") It was causing update issues when many tints were applied simultaneously, like being shot and spit at by enforcers while being on rails barefeet. Also, the GL modes were calling gltexinvalidate8() when picking up goodies or being hurt with that change, so it needs much more thought. From-SVN: r2322 commit 8087b6bee93b22bb46a57408ef1be37dd00640e6 Author: Philipp Kutin Date: Thu Feb 9 22:42:51 2012 +0000 Factor out two pieces of identical code in actors.c into A_HandleBeingSpitOn(). This fixes a bug in passing: 'int32_t j' was assigned to as a temporary inside one instance of the code, but used as if it were the previous sprite index further on. Would only happen with projectiles that "work like" both SPIT and RPG_IMPACT. From-SVN: r2321 commit 9e71f745ddf3d08fa9b1ff56bda652854c2d195d Author: Philipp Kutin Date: Wed Feb 8 11:01:03 2012 +0000 Probably fix crash when reaching light count limit in G_MoveEffectors SE50 code. From-SVN: r2320 commit a0af4dd68ccc22837f7aaabe1f18e3157b878bc8 Author: Philipp Kutin Date: Wed Feb 8 11:00:48 2012 +0000 Lunatic: use enum constants From-SVN: r2319 commit c0d85dc18d04ff2d77a642b316f4f799277d08a4 Author: Philipp Kutin Date: Sat Feb 4 21:35:00 2012 +0000 rotatesprite(..., windowx1,windowy1,windowx2,windowy2) --> rotatesprite_win From-SVN: r2318 commit ccc9199076b7b98f1b82d38ec2a06b4c0f6fbe78 Author: Philipp Kutin Date: Sat Feb 4 21:34:39 2012 +0000 Lunatic: a bit rearrangement, getbunch. From-SVN: r2317 commit 48b62fab21d28809f5d9250cea543a0141f122fc Author: Philipp Kutin Date: Sat Feb 4 21:34:22 2012 +0000 game.c: trivial tweaks to reduce code duplication (which is hard on the eyes) From-SVN: r2316 commit ce4c3d0d83aeb8499b038c5d120ba56b077ca54e Author: Philipp Kutin Date: Sat Feb 4 21:34:08 2012 +0000 Mapster32: fix crash with 'vidmode ' introduced in r2311. From-SVN: r2315 commit a6b1b6d54b3370636fbeeb44c4999b7e13b770e9 Author: Philipp Kutin Date: Sat Feb 4 21:33:52 2012 +0000 Factor out four instances of identical code into M32_DrawRoomsAndMasks(). From-SVN: r2314 commit 2517a41e537fe28e6535becc467f99d193e02856 Author: Philipp Kutin Date: Sat Feb 4 14:30:54 2012 +0000 EDuke32: Various menu tweaks and one fix. - make PGUP/PGDN and HOME/END behave as expected across all menus - in keyboard/mouse button mapping menu, draw function names that have been given custom names via CON with pal 8 for easier recognition - fix tinting of function names in mouse button mapping menu From-SVN: r2313 commit fc83701d66c9dfce05afdda7e4672d1c9d454c78 Author: Philipp Kutin Date: Sat Feb 4 14:30:39 2012 +0000 EDuke32: When in menus, always draw a black (33%) translucent background. Internally, there's a new function fade_screen_black() that implements the fading more efficiently than calling rotatesprite for classic, and uses tile 0 (assumed to have at least 64x32 size) in the GL modes. The black background of the user map selector is still done with rotatesprite and tile BLANK in every renderer. From-SVN: r2312 commit 5d8fdc19721fd76ffda96344c4f826e62c3f2086 Author: Philipp Kutin Date: Sat Feb 4 14:30:17 2012 +0000 Check 'bpp' parameter to vidmode OSD command in EDuke32. So that the game won't exit if you write 'vidmode 4' when intending 'setrendermode 4'. From-SVN: r2311 commit 4ba553c003175afc2827144cc4fb24433d61b341 Author: Philipp Kutin Date: Sat Feb 4 14:29:59 2012 +0000 Lunatic: fix interface when compiled with 'pointered' main arrays. Argh! From-SVN: r2310 commit 48954348de4c45611ed8d3040b85727f473c1543 Author: Philipp Kutin Date: Sat Feb 4 14:29:41 2012 +0000 Fix not-initialized variable warning in 'soundanims' CON token parser. From-SVN: r2309 commit 5f8a6d5d19c971cdf6b48e8635e6058bce050ab3 Author: Philipp Kutin Date: Thu Feb 2 17:35:05 2012 +0000 legibility improvements: rotatesprite(..., 0,0,xdim-1,ydim-1) -> rotatesprite_fs From-SVN: r2308 commit 72f174e6ad026dd7c036a800341a76109c28e66d Author: Philipp Kutin Date: Thu Feb 2 17:34:30 2012 +0000 Fix an update issue with the recent screen tint retaining on palette change. From-SVN: r2307 commit 7f3f12fa038aa71c6d1075c4d7ae5ba1ab6b6c53 Author: Philipp Kutin Date: Thu Feb 2 17:34:16 2012 +0000 When loading a map and in a few other places, reset screen tinting. From-SVN: r2306 commit e496e0d92365918f4078be9130150bf5c7c0d7a5 Author: Philipp Kutin Date: Wed Feb 1 21:51:26 2012 +0000 Fix a sector[-1] access when starting to draw a wall in an empty map. From-SVN: r2305 commit 28497c428d18f444bc51603d4bfc7153f8c37ce3 Author: Philipp Kutin Date: Mon Jan 30 21:19:13 2012 +0000 Fix demo progress bar in OpenGL modes by adding bit 1024 to rotatesprite calls. The problems still remains that rotatesprite behaves differently in classic and OpenGL modes with clipping boundaries specified (and maybe in some other cases) From-SVN: r2304 commit 65d3dd219f6f068ee0f711038390f4d702b6d23f Author: Philipp Kutin Date: Mon Jan 30 21:18:59 2012 +0000 Don't wait for pain tinting to subside when changing a base palette. This means that when e.g. emerging from water hurt will change the palette instantly, but because bit 16 is added to the P_SetGamePalette call, the tinting is retained. From-SVN: r2303 commit f7e647183e6b6916afa3001ce9f9ade9825867e7 Author: Philipp Kutin Date: Mon Jan 30 18:25:13 2012 +0000 Mapster32: tweak dragging a single sprite so that they can be dragged 'uphill'. The implementation uses the recently introduced updatesector_onlynextwall when setspritez fails. From-SVN: r2302 commit 084d83e0d49ce10a9964ee72f806f7ccada04b09 Author: Philipp Kutin Date: Sun Jan 29 21:46:44 2012 +0000 Make savegames between dynamicremap-enabled and -disabled builds compatible. Of course, only when the mod/TC in question doesn't use that feature. From-SVN: r2301 commit 40b3d4b010b4557fb4f8ac0aa647de8dd0a3006b Author: Richard Gobeille Date: Sat Jan 28 15:16:14 2012 +0000 Dynamic tile remapping shouldn't actually be disabled in synthesis builds, whether the source allows it to be compi led out or not. Removing features that certain mods may depend on to operate correctly without throwing any kind of error or warning at startup other than a logged message is bad. From-SVN: r2300 commit b4c8db2825789fa770bb0598bbf1dec5914ea1d2 Author: Philipp Kutin Date: Sat Jan 28 14:38:54 2012 +0000 add one line forgotten with dynamictileremap disabling From-SVN: r2299 commit 5a0869d17924df29fb547d6f33b43625e917d019 Author: Philipp Kutin Date: Sat Jan 28 14:38:41 2012 +0000 Lunatic: sectorsofbunch iterator, error(..., 2), temp 'ud' access From-SVN: r2298 commit 0cb8da799b625c20c1c94c3da17581a99ce0a672 Author: Philipp Kutin Date: Sat Jan 28 14:38:23 2012 +0000 Conditionally compile out the dynamic-to-static tile remapping feature. From-SVN: r2297 commit 7a69223d6fbe9813710967edff9667bbe66baa63 Author: Philipp Kutin Date: Sat Jan 28 14:37:56 2012 +0000 Move inithashnames() and freehashnames() declarations into namesdyn.h. From-SVN: r2296 commit a0bc56fb986e817e4d997f28e64c151385000520 Author: Philipp Kutin Date: Sat Jan 28 14:37:39 2012 +0000 Fix and clean up dynamic-to-static tile remapping source. From-SVN: r2295 commit c535037147bb89ef126c82b26703506eb6e332f9 Author: Philipp Kutin Date: Sat Jan 28 14:37:24 2012 +0000 Lunatic: prohibit initial assigns creating new globals, add some must-fail tests From-SVN: r2294 commit 966e97fff645e5a87bd57557153d3639557fd356 Author: Philipp Kutin Date: Sat Jan 28 14:37:08 2012 +0000 kplib.c without asm: I see an uninitialized access here, valgrind does not? From-SVN: r2293 commit c16221578410ebcb8dc360b120f17b722b59db3a Author: Philipp Kutin Date: Sat Jan 28 14:36:52 2012 +0000 A couple of Makefile tweaks for clang 3.1 from SVN, and a workaround for an assertion failure with clang. Really ought to file a bug report instead. From-SVN: r2292 commit 50fa8068002bbc618c70108bffcd93ebc4c6c461 Author: Philipp Kutin Date: Sat Jan 28 14:36:34 2012 +0000 Lunatic: fix for running with static main engine arrays. From-SVN: r2291 commit 52656a3b6d937a7e2e68e5e211da205249f6cb1b Author: Philipp Kutin Date: Fri Jan 27 15:03:55 2012 +0000 Remove a couple of nested externs and #include some headers directly ... instead of relying on indirect inclusion via duke3d.h. From-SVN: r2290 commit 7bcd0e7f84351a6e5af8f810cbbeaf567a332aac Author: Philipp Kutin Date: Fri Jan 27 15:03:34 2012 +0000 In Mapster32, register the 'vidmode' OSD command in non-GL builds. From-SVN: r2289 commit fc99897054c4d8ea336584f1382f51b5938de6cc Author: Philipp Kutin Date: Fri Jan 27 15:03:18 2012 +0000 Two tweaks for USE_OPENGL=0 builds. - Always parse 'animsounds' defs - don't print "ignored frame/animation definition" warnings From-SVN: r2288 commit 18bb1b33a6acc8f5c203593b748cd55904a0e80b Author: Philipp Kutin Date: Fri Jan 27 15:03:02 2012 +0000 Fix USE_OPENGL=0 build; squelch one warning. From-SVN: r2287 commit ca894de120a2439241b7ed45e45020830d5e62af Author: Philipp Kutin Date: Fri Jan 27 15:02:45 2012 +0000 Fix building with GCC 4.6 link-time optimization. It looks like GCC doesn't honor the 'used' attribute with LTO. This is "fixed" by declaring the variables in question with external linkage (i.e. removing the 'static'). I consider such behavior a GCC bug, though. From-SVN: r2286 commit 953b81d42b2b458eee74aeb05ee4295f246228d4 Author: Philipp Kutin Date: Fri Jan 27 15:02:25 2012 +0000 Make sdlayer.c's timerticspersec an 'int32_t' to match the declaration. From-SVN: r2285 commit c1154f58324c1386c4da4c36cebca38cf2a01c41 Author: Philipp Kutin Date: Thu Jan 26 21:58:55 2012 +0000 Route the 5th mouse button to the game; bump savegame version. The "double-click button4" had to make way for MOUSE5 in the button binds menu, but I don't think anyone cares. Savegame compatibility was actually silently broken with the MAXTILES update earlier, but I forgot updating the version... From-SVN: r2284 commit d5fdc470002f925931022d24c2c37b41ecb20fc3 Author: Philipp Kutin Date: Thu Jan 26 21:58:39 2012 +0000 small correction of a memory-clearing line in namesdyn.c From-SVN: r2283 commit 02f7f2d2c7fa8adeda482f497d60c20169775383 Author: Philipp Kutin Date: Thu Jan 26 21:58:25 2012 +0000 Rearrange 'struct hicreplc_t' members so that no padding is inserted on x64. From-SVN: r2282 commit 4f49cd2fe90dd77f9163b3394738a1c047659c2a Author: Philipp Kutin Date: Thu Jan 26 21:58:08 2012 +0000 engine.c cleanup, making some variables static mostly From-SVN: r2281 commit 44c97586017ddcbbfb529c8717bd4cbc2de47518 Author: Philipp Kutin Date: Thu Jan 26 21:57:51 2012 +0000 Fix a potential sector[-1] access when drawing a masked wall in Polymost. From-SVN: r2280 commit 76cff23a5b95357852794d1606d33a8b56a2a46e Author: Philipp Kutin Date: Tue Jan 24 18:07:36 2012 +0000 Fix the insert cicle wall-points bug reported by Norvak. From-SVN: r2279 commit 8dc4e4f58cf0abc4e5478cc20c8144948c935ffd Author: Philipp Kutin Date: Mon Jan 23 19:13:00 2012 +0000 Fix sprite[-1] access when aborting playing a sound in Mapster's Sound Index. Also a couple of other cleanup lines... might need more though, I'm not sure it's all good there. From-SVN: r2278 commit 7c1b4adde3f70885c8721783be39f80d3d929924 Author: Philipp Kutin Date: Sun Jan 22 17:18:49 2012 +0000 Fix sprite[] access with indices > MAXSPRITES in Polymer model drawing code. Internally, updateanimation() now takes a third parameter 'lpal'. From-SVN: r2277 commit 9df0394e11f8de338a91eae14d8bf2a97cfeb360 Author: Philipp Kutin Date: Fri Jan 20 22:12:11 2012 +0000 Mapster32: make sector flipping (X/Y) work properly with TROR. From-SVN: r2276 commit 2814ff27c605a60c6dd48fcbe2a6712aa463b186 Author: Philipp Kutin Date: Fri Jan 20 22:11:55 2012 +0000 astub.c: remove some tabs in the code From-SVN: r2275 commit 378d08a806629d6828d80ae04f1c6fed6ae10d7f Author: Philipp Kutin Date: Fri Jan 20 22:11:40 2012 +0000 Mapster32: always show highlighted sprites in 2D mode, even in a gray sector. From-SVN: r2274 commit 5972f7b5f9454e462a09a6834438487f1c2dd227 Author: Philipp Kutin Date: Fri Jan 20 15:48:03 2012 +0000 Fix a potential wall[-1] access in Mapster32. From-SVN: r2273 commit 21847b93c7ad6d63c4ba4d0498ff1a993e02e415 Author: Philipp Kutin Date: Fri Jan 20 13:24:15 2012 +0000 minor engine cleanup. - enclose glbuild.h in #idndef ... sentinels - engine.c: remove unused variable 'pageoffset', make 'lastx' static - formatting From-SVN: r2272 commit 2359368907586f6ff38c2daf208efccbc763862b Author: Philipp Kutin Date: Fri Jan 20 13:23:53 2012 +0000 Use ATTRIBUTE((used)) for symbols used only in inline asm. This may fix compilation for optimized builds with GCC or clang where the compiler would otherwise decide that those symbols are unused. From-SVN: r2271 commit 70d8a28169c26c1684195e6ef69c3d0ba9965815 Author: Philipp Kutin Date: Thu Jan 19 23:17:34 2012 +0000 Inreased debugging level for catching oob accesses to 'main' arrays. If enabled, this makes the following arrays be allocated statically: spriteext, spritesmooth, sector, wall, sprite, tsprite, while necessarily disabling the clipshape feature (because it relies on setting sector/wall to different malloc'd block temporarily). To compile, pass DEBUGANYWAY=1 in addition to RELEASE=0 to 'make', and it's really only useful with CC=clang, of course. From-SVN: r2270 commit 1127e2033c28ced3c73e3e2964b1f1db52020860 Author: Philipp Kutin Date: Thu Jan 19 23:17:03 2012 +0000 Fix a problem in G_DrawRooms where an sectnum updated to -1 may be used as index. From-SVN: r2269 commit c81ed056d99ec756e6c86e19a89e1cb981347fa1 Author: Philipp Kutin Date: Thu Jan 19 21:58:23 2012 +0000 Fix oob accesses when e.g. shooting tile -1. (can propagate via WEAPONx_SHOOTS) Ideally, we would also warn when setting WEAPONx_SHOOTS to negative values, but we'd have to intercept CON's setvar's and it wouldn't be pretty. From-SVN: r2268 commit d557bf938178df752c62053f34530b315ffba54d Author: Philipp Kutin Date: Thu Jan 19 21:58:06 2012 +0000 Double MAXTILES to 30720, reduce EXTRATILES (models w/ custom pal skin) to 3840 I'm decreasing EXTRATILES because I feel that it's way overcommitted. It's the max number of model-tiles that have their own skin for a certain palette, like the slimer egg in the HRP. From-SVN: r2267 commit 63ec3a24213cdecaa252968324bbfba92fc08127 Author: Philipp Kutin Date: Thu Jan 19 21:57:46 2012 +0000 less trivial stuff - fix one bound-checking line - rewrite two lines in astub.c to potentially not overflow an int16 - make tiletovox[] an array of int16's From-SVN: r2266 commit d3966f72b320fc7d689434e7c4e516fadbee2db5 Author: Philipp Kutin Date: Thu Jan 19 21:57:22 2012 +0000 trivial tweaks: make stuff static, remove unused stuff, formatting... From-SVN: r2265 commit 3a104a798cd1d2642e87b2863598825bfcd02ca2 Author: Evan Ramos Date: Tue Jan 17 04:31:59 2012 +0000 Add the 'yoffset' token to model definitions to allow models to compensate for ART tiles with large yoffsets, such as #603. Under normal circumstances the existing 'zadd' parameter should be used instead. Special thanks to Supertanker. From-SVN: r2264 commit 959c44a01893ae3743942f676e83c191715c15ce Author: Evan Ramos Date: Tue Jan 17 04:31:23 2012 +0000 weapons.con.sample: - hud_orientation now uses proper bitwise operations - clean up whitespace From-SVN: r2263 commit ef06e8ca24d6cf358d53a478ac7be333e2a5e58d Author: Philipp Kutin Date: Sun Jan 15 22:40:16 2012 +0000 gamedef.c: make some variables static and remove some #if 0'ed code. From-SVN: r2262 commit dc1e571e817f5ed46a869b575fa98f9f19b2763f Author: Philipp Kutin Date: Sun Jan 15 22:39:59 2012 +0000 Remove the allocache() allocation type for 'intptr_t *lookups'. Always malloc that buffer. This allows us to remove suckcache() from cache1d.c, which I believe to be buggy (see comments in the source). From-SVN: r2261 commit ae910f44bdbce95d3f9af1a2b848be91f217fa8b Author: Philipp Kutin Date: Sun Jan 15 22:39:38 2012 +0000 cleanup: - 'whitecol' was defined in the engine and in build.c, use only the engine one - make cachesize, artsize, artversion static in engine.c - undo some formatting havoc presumably done by astyle From-SVN: r2260 commit e0185336db6258b7fa06d09b842370c3a82b1d30 Author: Philipp Kutin Date: Sun Jan 15 22:39:10 2012 +0000 Increase the number of maximum art files from 64 to 256 and tweak loadpics(). It is likely that this is the value it used to have at some point, because the MAXTILEFILES macro equals 256 and is as old as the Duke3D source. loadpics() now refuses to load an ART file with localtilestart or localtileend out of bounds, or if localtileend<=localtilestart (i.e. no tiles in ART file, or nonsense). Also, on 'invalid art file version', continue instead of returning. Note: this does not increase the maximum number of tiles, which is still 15360, it only gives a bit more freedom to arrange them (well, into more art files). Also, I don't see what anyone keeps off from packing any number of tiles (from 1 to 15360) into an art file. Old EDITART limits? From-SVN: r2259 commit 6e44b542df11a9555fd47ff5a756359585c6db12 Author: Philipp Kutin Date: Sun Jan 15 22:38:54 2012 +0000 Add a hack to the animsounds DEF token parsing to not wrongly emit an error. From-SVN: r2258 commit 437c2310f0162ca826bc69da60ec31ca063e447c Author: Philipp Kutin Date: Sat Jan 14 14:48:45 2012 +0000 Fix parallaxed sector display in Mapster32 on Polymer. From-SVN: r2257 commit ee2502d700512760836739596fcc1f1a46d4536e Author: Philipp Kutin Date: Sat Jan 14 14:48:30 2012 +0000 Fix the Polymer hitches first encountered with Parkade. The cause was a combination of many factors. First, Polymer requires the start-drawing position to be inside the sector to draw (deviations lead to incorrect drawing). This was violated by the game, because it interpolated the current and next tic position without updating the sectnum, leading to inconsistencies especially when passing through narrow sectors. Polymer worked around it by doing an updatesector() each frame, however this works poorly for maps with overlapping geometry such as SoS or RoR. The solution to this is to add a new engine function, updatesector_onlynextwalls(), which searches the sectors (via nextsector) in breadth-first fashion instead of from 0 to numsectors-1, like updatesector does when it fails for the *immediate* nextwall neighbors. Internally, the breadt-first search helpers are moved into the engine. From-SVN: r2256 commit 4d2f8dc47422f67758205ea34f27eb49a2dc94a5 Author: Philipp Kutin Date: Thu Jan 12 20:49:50 2012 +0000 winlayer.c: in WM_PALETTECHANGED handling code ("someone stole the palette so try and steal it back"), prevent calling IDirectDrawSurface_SetPalette() with NULL arguments, causing a crash. It's happened for me on Vista, when initially changing from 8-bit to 32-bit mode. From-SVN: r2255 commit f11e00a45384b3f74504b7f04409c62f8c4363e8 Author: Philipp Kutin Date: Thu Jan 12 20:49:34 2012 +0000 Add Makefile option to use the DMALLOC (debug malloc) library. I didn't have much success in finding bugs using it, but it works out-of-the-box on my setup, so it may be useful in the future. From-SVN: r2254 commit 23b84e3233431b9fa362157f4b0418cc12e4d1cf Author: Philipp Kutin Date: Thu Jan 12 20:49:15 2012 +0000 sdlayer.c: formatting of preprocessor lines From-SVN: r2253 commit cf0c3ef579570eeb2361074aa0848cbf3a40d8fe Author: Philipp Kutin Date: Thu Jan 12 20:48:57 2012 +0000 Support for the first "thumb" mouse button, called MOUSE4 in the menu. The second one is passed to the 'mouseb' variable, but the game currently can't map it since ud.config.MouseFunctions[] would have to be enlarged, breaking savegame compatibility. Works both for the Windows and SDL layers. For the latter, instead of using the SDL_BUTTON_X1/X2 macro constants, I'm using 8 and 9, since that is what SDL (and incidentally or not, xev) gives me for those buttons. From-SVN: r2252 commit b968fd32220bfb1fee8f5ea22fc77e12d522b161 Author: Philipp Kutin Date: Thu Jan 12 20:48:38 2012 +0000 Temporarily disable the 'model thinning-out' feature intended to save memory. It turns out that with model interpolation, out-of-bounds frame numbers may be generated with thinned out models, so disable it until I can sort out what's wrong with it. Also, minor code cleanup. From-SVN: r2251 commit ad4e063599249edeb87e17064f36e54e2e31f574 Author: Philipp Kutin Date: Thu Jan 12 20:48:17 2012 +0000 polymer.c: "Compiling GPU program with bits (octal) %o" for easier reading. Also, for debugging builds, show this message from verbosity level 1 on. From-SVN: r2250 commit c9effc60ca694cf762d5ddf211e3ac09095025f2 Author: Philipp Kutin Date: Thu Jan 12 20:48:00 2012 +0000 Fix actor[].dispicnum becoming negative. Since the original source code release of Duke3D, there was a potentially dangerous hack where actor[].dispicnum was set to -4 to signal "this actor should not have a floor shadow for this moment" (it doesn't really work, if you ask me). Now, use another bit of actor[].flags for that purpose because setting any picnum members to negative values asks for trouble. From-SVN: r2249 commit 5784ffd843241244d3a2aaf26c66ec43b0497880 Author: Philipp Kutin Date: Thu Jan 12 20:47:41 2012 +0000 more internal cleanup... the only visible change is that polymost_trytexcache (formerly two instances of nearly duplicate code) now prints a diagnostic after a cache miss. The one that one is most likely to encounter is "r_downsize doesn't match", meaning that this setting likely differs between Mapster and the game. From-SVN: r2248 commit d84e5506617e56b1e474d0853b1b182068b715ca Author: Philipp Kutin Date: Tue Jan 10 23:45:34 2012 +0000 a couple more trivial tweaks From-SVN: r2247 commit 66f38f1c7c891c8d5a109a5c546303fdbf974757 Author: Philipp Kutin Date: Tue Jan 10 23:45:08 2012 +0000 md4.c/h: add consts to appropriate arguments From-SVN: r2246 commit 17eea2e02f6d94e49b6f1bc9f7ccb1e1fb811ea5 Author: Philipp Kutin Date: Tue Jan 10 23:44:49 2012 +0000 sounds.c: check the sound number before accessing arrays with it; always do this in "(unsigned)i < bound" fashion. From-SVN: r2245 commit 23f55edbe105ceccf74593401cb87202405fda62 Author: Philipp Kutin Date: Tue Jan 10 23:44:35 2012 +0000 trivial formatting / removing of old cruft / adding comments From-SVN: r2244 commit 896ea7b5ec834d105d8afe2454636365c7535871 Author: Philipp Kutin Date: Tue Jan 10 23:44:09 2012 +0000 animvpx sound: fix the 'may have many sounds per frame' requirement E.g. this should work correctly now: // FLY_BY, PIPEBOMB_EXPLODE, OCTA_DYING animsounds logo { 1 244 64 14 64 144 } From-SVN: r2243 commit ef26cddc551f38edf4f463d7f730de49a447dc70 Author: Philipp Kutin Date: Tue Jan 10 23:43:54 2012 +0000 Possibility of specifying sounds for a VPX anim-replacement via DEF. The syntax is as follows: animsounds { frame1 sound1 frame2 sound2 ... } has to be one of the tokens: cineov2, cineov3, RADLOGO, DUKETEAM, logo, vol41a, vol42a, vol4e1, vol43a, vol4e2, or vol4e3, corresponding to hard-coded Duke3D anims. The frameN's (1-based frame numbers) have to be in ascending order (but not necessarily strictly ascending, so that a frame may have more than one sound). Example: for Duke3D's XBLA nuke logo animation (IVF extracted from nuke.webm), the following definition overlays the video with a sound sequence similar (identical save for timing) to the original nuke animation: // frame 1: FLY_BY, frame 64: PIPEBOMB_EXPLODE animsounds logo { 1 244 64 14 } From-SVN: r2242 commit cba250fe163bbfa579a74ed1a7a5c491c8fe2471 Author: Philipp Kutin Date: Tue Jan 10 23:43:33 2012 +0000 In VPX 3 planed --> packed conversion code, pull constant expressions out of the loop. For the release build and the test animation, this lowers the time to 3-4 ms per conversion of one frame on my desktop machine. From-SVN: r2241 commit ca376acdd2d9e3c7d2d3a2e2df424c942571e6f6 Author: Philipp Kutin Date: Tue Jan 10 23:43:18 2012 +0000 maint: make the following static in polymost.c: - texcacheindex *firstcacheindex, *curcacheindex - trytexcache(), gloadtile_cached() - Factor out duplicated code into clear_cache_internal() From-SVN: r2240 commit 89a17eb5eece97eb2e375994558b8559b623a697 Author: Philipp Kutin Date: Sat Jan 7 20:37:48 2012 +0000 Makefile.common: oops, -DNEBUG was in the debug build, not the release one From-SVN: r2239 commit a2ec49550bd547b2578ca0dabe5da5b67879ee64 Author: Philipp Kutin Date: Sat Jan 7 20:37:36 2012 +0000 osxbuild.sh: don't build for ppc From-SVN: r2238 commit ed1ed834814ff813ad3f5ea4e4cfcf5efb62cb79 Author: Philipp Kutin Date: Sat Jan 7 17:48:55 2012 +0000 When defining a model with the 'model' token and there were errors, don't let it hang around causing trouble later on; delete it right now and inform the user. Add a couple of 'static's to some functions and file scope data in mdsprite.c From-SVN: r2237 commit 870eb8f76b7e280ad9755450754dcbb11213aa2c Author: Philipp Kutin Date: Thu Jan 5 21:58:23 2012 +0000 - When saving game, clear all polymer lights before. Not doing this makes the SE ones douple, triple, ... after each save. Maphack lights are reloaded with polymer_resetlights() (though I've had them disappearing after load, I couldn't reproduce it afterwards). - in debugging builds, print a message when polymer_resetlight is called on a nonexistent one. The problem is not so much the call itself (it's guarded), but the fact that resources on the caller side may not have been freed if it thinks that those lights do in fact exist. Right now, it's not the case though. - add 'loaded map hack' messages after some other successful loadmaphack calls From-SVN: r2236 commit 2a37b30db1721c8eed27bb5dc9b43ff60fdefdf5 Author: Philipp Kutin Date: Thu Jan 5 20:48:37 2012 +0000 When loading a game, DON'T restore 'adult' TV tiles. This fixes the recent crashes. Usually, after loading a game, some wall tiles are tweaked depending on whether adult mode is enabled or not. If it's not, those wall picnums are replaced with blank or broken screens. If it is, they are restored from the wall's .extra member. Apparently though, Mapster32 leaves some .extra members floating around even after deleting a TROR nextwall link (it's used as the 'lower wall index'). Because MAXWALLS is greater than MAXTILES, this may produce out-of-bounds accesses and corrupt memory (besides setting wall tilenums to nonsensical values) later in the game. Other than that, the change only affects loading savegames created with adult mode OFF. Kinky TV screenies simply won't be restored then. From-SVN: r2235 commit 3c8105df823a737942ae502cb76b90eb90b76bb3 Author: Philipp Kutin Date: Thu Jan 5 20:48:20 2012 +0000 savegame.c: some const void **ptr -> void **ptr, since they're certainly not const From-SVN: r2234 commit 2eabd18c0038fb0db3f581be0921a428b4c4281c Author: Philipp Kutin Date: Thu Jan 5 20:48:05 2012 +0000 trivial tweaks: some NULLing pointer after freeing them; move the 'too much mirrors' check one 'if' down since mirrors are only created when the condition holds From-SVN: r2233 commit 8d30baf376baa60c4f8c3e367db4c7dafd043816 Author: Philipp Kutin Date: Tue Jan 3 19:56:10 2012 +0000 Pass bit 16 to P_SetGamePalette from CON's setgamepalette (forgotten from earlier commit) From-SVN: r2232 commit ce930d4f0db20aa445ee0564c754e914550f81a6 Author: Philipp Kutin Date: Tue Jan 3 19:55:55 2012 +0000 Patch up access of malloc'd buffer one byte beyond its size in kplib's JPEG decoder (unearthed by valgrind). From-SVN: r2231 commit e7bf877d1887e701b34dfcb47c804391039976f8 Author: Philipp Kutin Date: Tue Jan 3 19:55:38 2012 +0000 In G_NewGame(), call Gv_RefreshPointers after Gv_ResetVars. Resetting the gamevars might produce inconsistencies between an earlier loaded game (for example, if it was saved with different/earlier CON code), and worst of all, the gamevars that reference C variables might be overwritten (i.e. the addresses to those variable, which is very bad!). From-SVN: r2230 commit 43e7e9c24c5dfeebc6d40f76fb3c8b962da72dff Author: Evan Ramos Date: Sun Jan 1 04:14:06 2012 +0000 - Format CON crash output in VM_ScriptInfo() much more nicely. - Execute VM_ScriptInfo() when DNDEBUG is used. From-SVN: r2229 commit 29b2dc9fcbf97089a8056e9cf020546ff5531449 Author: Evan Ramos Date: Sun Jan 1 04:12:37 2012 +0000 Comment ldcty[12] array from kpegrend() to remove last of set-but-unused warnings. I don't see any reason to leave this alone. From-SVN: r2228 commit b6462ee7ca317739a5a3b6db40b5ea6ef1169243 Author: Philipp Kutin Date: Fri Dec 30 22:17:29 2011 +0000 a.m32 light hotkeys: clamp hitag (range) to 0..32767 instead of 0..16000 From-SVN: r2227 commit 8faa7b10ae9314804bacc01c7c5c638e1e88f25e Author: Philipp Kutin Date: Thu Dec 29 14:26:30 2011 +0000 CON: make the 'palette' player member actually return the player's palette ID instead of -1. Setting is still only through 'setgamepalette'. From-SVN: r2226 commit 07c29a0de1a10b16d6b561fa1af1f3d82ef4bed6 Author: Philipp Kutin Date: Wed Dec 28 20:36:01 2011 +0000 Besides the performance issues, there's another reason why changing the palette 'frequently' isn't such a good idea. Assume an actor constantly changes the palette to some value and you're attacked by a newbeast at the same time. Then the pain tinting would be reset each time the actor's code is run. This commit adds a new flag 16 to setbrightness(), meaning "don't reset the fade tinting". Its only use right now is from CON's setgamepalette command (and there, always). The change is done in the engine and thus affects all platforms. From-SVN: r2225 commit 1d36a43bc652f3627e5bd60c1ea1225fd3a5b010 Author: Philipp Kutin Date: Wed Dec 28 20:35:44 2011 +0000 Trivial tweaks of setbrightness. Add an assertion that bits 1 and 4 are clear, mainly. Also remove setvgapalette() from source. From-SVN: r2224 commit 507f0da598fccb5668ada572ab61d565ad8e060c Author: Philipp Kutin Date: Wed Dec 28 20:35:23 2011 +0000 The earlier changes introduced bugs when palettes were not set correctly in certain situations (mostly cutscenes etc). This commit removes bit 1 from all flags that make it to setbrightness, the meaning of which is "don't actually update the palette". I have no idea what it was for and since the corresponding P_SetGamePalette() calls were from places like the mentioned cutscenes, I don't think it matters performance-wise. From-SVN: r2223 commit 57a6379e3b44dccdeb7aae95f000534780245fc1 Author: Philipp Kutin Date: Wed Dec 28 20:34:57 2011 +0000 SDL layer: don't call SDL_SetGammaRamp() if there would be no change. This is in the similar vein as the set-palette deferring and it's this that fixes the low FPS in the radioactively contaminated area in AMC TC: Megabase (since setgamma() is called from setbrightness()). Again, update issues might be expected, but changing focus between EDuke32 and the desktop and back seems to restore the gamma settings properly on Kubuntu. Looks like X (or whatever above handles this stuff) maintains it on a per-application basis. From-SVN: r2222 commit 4780b35737ea2ab5348ffbd51e727a6ddc513ff3 Author: Philipp Kutin Date: Wed Dec 28 20:34:41 2011 +0000 SDL layer: in 8-bit mode, defer setting the palette until showing the next frame. CON code sometimes uses 'setgamepalette' from withing actors, which is a bit too frequent. Deferring the actual palette updating means that multiple requests in between two screen redraws are coalesced into one, which is desirable for performance reasons and for the reduction of 'tearing' artefacts (but not prevention, since the drawing isn't synced to the screen refresh rate with vsync off). (Did-not-)update issues might be introduced. Windows isn't touched because - I expect it to be more brittle, especially in light of the ATI HW gamma problems. - I haven't tested whether the particular performance penalty that lead to this change ('gas' in AMC TC) exists there too From-SVN: r2221 commit 58aaf61009483ec64fbd256dc4622c4935b262ab Author: Philipp Kutin Date: Wed Dec 28 20:34:26 2011 +0000 screenshots: remove the old inversion and PCX code from the source From-SVN: r2220 commit 38e9af95fe100631b58b0110255776a8ef9ae7ef Author: Philipp Kutin Date: Wed Dec 28 20:34:10 2011 +0000 screenshots: if compiled with USE_LIBPNG, always use PNG, even for color-inversed shots. For both PNG and TGA, change the way they're done in 8-bit mode: instead of XORing every byte with 15, save the inverse palette (each component taken 255-x). From-SVN: r2219 commit 765016a7efee7010b6f8c963e0acc40e670e6677 Author: Philipp Kutin Date: Wed Dec 28 20:33:54 2011 +0000 savegame.c: fix compilation warnings with release build, add timing for debug From-SVN: r2218 commit b985a6b2bab5a0575e69ca293d63c51ad37cdd52 Author: Philipp Kutin Date: Wed Dec 28 20:33:40 2011 +0000 Factor out two nearly identical pieces of code in game.c and gameexec.c into G_HandleMirror(). From-SVN: r2217 commit b7728f6151b250a67a7686e2783b496fa60f75c0 Author: Philipp Kutin Date: Tue Dec 27 14:22:45 2011 +0000 engine: make smoststart[] (which saves starting "smostcnt"s) an array of int32's instead of shorts. This fixes their values' overflow in AMC TC megabase and probably a couple of other large maps. From-SVN: r2216 commit ba68edf2f3d57a594c389cd2c16dff3291547657 Author: Philipp Kutin Date: Tue Dec 27 14:22:28 2011 +0000 net: fix bug in Net_ParseServerPacket introduced with SAMESIZE_ACTOR_T. From-SVN: r2215 commit 335a2ef3dbe539a43b303faf715f9f6920229896 Author: Philipp Kutin Date: Mon Dec 26 15:44:23 2011 +0000 Fix sintable access with raw angle value (which might be outside [0..2047]) in overhead map drawing code. From-SVN: r2214 commit e43a52e64807186488ed65ed3280c2963840e417 Author: Philipp Kutin Date: Mon Dec 26 15:44:09 2011 +0000 patch up another out-of-bounds access in the voxel drawing code, though I'm not sure whether the increased array size is enough. From-SVN: r2213 commit 63f80e2444390aee7469e1b215a1564ca7127cd3 Author: Philipp Kutin Date: Mon Dec 26 14:37:34 2011 +0000 savegame.c: fix initial setting of compression threshold on savegame load; 64-bit fixes From-SVN: r2212 commit c0f313876236252261a4b779f63ce95033455ad0 Author: Philipp Kutin Date: Sun Dec 25 15:35:06 2011 +0000 start CON code at script[3] instead of script[1]. The 'move' command permits the constants 0 and 1, and moveptrs may reference the script up to index 2 then (though I'm not sure whether the code is reachable with moveofs either 0 or 1), so make sure it's nulled instead of whatever happened to compile at the first two positions. Move 1 is only used once in the original cons, when frozen and being shattered. From-SVN: r2211 commit 1f8b66a19b46b7b27420ce5dae1af5ec50b6d12f Author: Philipp Kutin Date: Sun Dec 25 15:34:52 2011 +0000 fix displaying the screenshot even for old-version savegames. From-SVN: r2210 commit 3db1ed589e896a435c1a2fcc5b10b4c1d2c7774f Author: Philipp Kutin Date: Sun Dec 25 15:34:37 2011 +0000 net: send BYTEVERSION as two bytes, high byte first. Now we don't need to worry about the numbers running out soon. Bump BYTEVERSION by three to celebrate this, too. From-SVN: r2209 commit c1dd1623b645b54f5638134cd598a7e879e3f0d7 Author: Philipp Kutin Date: Sun Dec 25 15:34:22 2011 +0000 Enable SAMESIZE_ACTOR_T described earlier. From-SVN: r2208 commit 401fdaef3c7bb5a100cf266c87f8e8746cc142dd Author: Philipp Kutin Date: Sun Dec 25 15:34:06 2011 +0000 Rewrite the savegame format in terms of the generic saving/loading system. This makes savegames practically the same as the initial snapshot of a demo. Saves are now named 'dukesavX.esv' (demos: 'edemoX.edm'). Additionally, many changes that couldn't/needn't be cleanly separated are added with this commit: - make spriteext_t have the same size across 32/64 bit platforms (actor_t partially) - prevent saving/loading in MP games (it certainly didn't work and still doesn't) - it's time we start using assertions! Define NDEBUG for releasse builds. - reset savegame major and minor versions (we have a new magic string, so no conflict) From-SVN: r2207 commit 67ad3520a815765e9532aa0e606f356801c02c14 Author: Philipp Kutin Date: Sun Dec 25 15:33:37 2011 +0000 Rewrite a couple of lines in clearfrags() to look more idiomatic. From-SVN: r2206 commit 2b44f328fc9290e65e523ab671e5ac400141ce1a Author: Philipp Kutin Date: Sun Dec 25 15:33:24 2011 +0000 Beauty tweaks; revert s_buildDate since we don't want windows builds to pull snapshots in the current development state now. From-SVN: r2205 commit 4a0f5823db5de347241e195974435b18c6287f06 Author: Philipp Kutin Date: Sun Dec 25 15:33:02 2011 +0000 Fix non-TROR build and add a warning that such a build is only useful for debugging, i.e. savegames and the like will break. From-SVN: r2204 commit ab54e6d58ae24d51511576d5b3a46cae67ea4c28 Author: Philipp Kutin Date: Sun Dec 25 15:32:44 2011 +0000 Eh, fix out-of-bounds issue in clearfrags() with MAXPLAYERS players. It was identified with the clearfrags rewriting, but not corrected. From-SVN: r2203 commit 4811bbaeae24a642ad81d664e81878eefee62c4f Author: Philipp Kutin Date: Sun Dec 25 15:32:30 2011 +0000 Factor out filename-based music setup code into G_SetupFilenameBasedMusic. There were two instances of nearly identical code in premap.c and savegame.c. Also identifies a (harmless) problem with realloc'ing, we had: if (len+1 > sizeof(MapInfo[...].musicfn)) MapInfo[...].musicfn = Brealloc(MapInfo[...].musicfn, len+1) which reallocs almost all the time (since .musicfn is a pointer). Now we do realloc every time... From-SVN: r2202 commit 2ec19689e9c2df22ad627457968ea6e2c9e6ab64 Author: Philipp Kutin Date: Sun Dec 25 15:32:14 2011 +0000 premap.c: write out inline function clearfrags() for clarity. From-SVN: r2201 commit 8f24292f21b664e62b678083bff4537bcb4157b7 Author: Philipp Kutin Date: Sun Dec 25 15:32:00 2011 +0000 misc. cleanup in savegame.c From-SVN: r2200 commit b937077d8dbed05c1145691156a4a94ec2981669 Author: Philipp Kutin Date: Sun Dec 25 15:31:46 2011 +0000 Rewrite EDuke32's -d option parsing code. Writing into argv[i] isn't very wise. Also resize firstdemofile[] to BMAX_PATH bytes. From-SVN: r2199 commit e621d24db9bdac03440ce1dfe85555a6a0e9b683 Author: Philipp Kutin Date: Sun Dec 25 15:31:30 2011 +0000 Remove written-out savegame.c function declarations from demo.c and include savegame.h instead. From-SVN: r2198 commit 470dbaea5b3f25998bc4f78b0f87618637641854 Author: Philipp Kutin Date: Sun Dec 25 15:31:14 2011 +0000 Remove 'projectile' field from actor_t because it was entirely unused. WARNING: This silently breaks savegames on 64-bit platforms. From-SVN: r2197 commit eb433d3f378aceb42db80df87b2f03f738ac2c83 Author: Philipp Kutin Date: Sun Dec 25 15:30:50 2011 +0000 Remove a few unused variables from global.[ch], update build date string. From-SVN: r2196 commit 6d7ec81a1349c744cad2dcfc6d6e0d6457ffa181 Author: Philipp Kutin Date: Wed Dec 21 18:43:39 2011 +0000 minor cosmetic tweaks in sector.[ch] and a off-by-one limit correction there From-SVN: r2195 commit a1f6b447bea3805f4efef6d8d2639d0601b17826 Author: Philipp Kutin Date: Wed Dec 21 18:43:24 2011 +0000 Fix out-of-bounds write when passing a map filename to Mapster32. From-SVN: r2194 commit 5d0618e144e33fa37e2d85c72a75990c25ae8fc0 Author: Philipp Kutin Date: Wed Dec 21 18:43:08 2011 +0000 Lunatic: actor. (Needs SAMESIZE_ACTOR_T, which is not yet enabled) From-SVN: r2193 commit 6cecb4e912610a8a8f9aaba4801cefc52887348b Author: Philipp Kutin Date: Wed Dec 21 18:42:49 2011 +0000 misc. beautifying some game code... From-SVN: r2192 commit c60b29ebd520b518be9448ff8ba048e6485c1203 Author: Philipp Kutin Date: Wed Dec 21 18:42:32 2011 +0000 some more clearbuf -> memset in gamedef.c plus add a forgotten keystatus reset in the editor From-SVN: r2191 commit 55b4df934494f2da9516008d1b92ffdfa55ff313 Author: Philipp Kutin Date: Wed Dec 21 18:42:12 2011 +0000 savegame.c: minor cleanup and crash prevention in doloadplayer2 if loading directly from file to state. From-SVN: r2190 commit 32f07e296066ea8280e13cff7eedffd3d1c77637 Author: Philipp Kutin Date: Wed Dec 21 18:41:55 2011 +0000 CON parser cleanup: In C_Compile, initially clear three arrays with Bmemset(..., 0, sizeof(...)) instead of clearbuf(..., MAX..., 0), because the latter would clear only half of the data on 64-bit platforms. From-SVN: r2189 commit 2030b8b9bed4f39ce00d05a220c837a90f1c99c4 Author: Philipp Kutin Date: Wed Dec 21 18:41:38 2011 +0000 In EDuke32 loading/saving menus, when finding old version savegame, display some information about it instead of simply omitting it. Internally, struct savegame --> struct savegame_ for easier grepping. From-SVN: r2188 commit ac4d3278d203393a0c60e6779186663806e9caa9 Author: Philipp Kutin Date: Wed Dec 21 18:41:17 2011 +0000 actor t_data commoning: forgot do add a #define in duke3d.h From-SVN: r2187 commit 1da14b245de5af2c68f5cdd37c34365ad34b34c5 Author: Philipp Kutin Date: Wed Dec 21 18:41:03 2011 +0000 animvpx loop: do at least on input device poll each frame (i.e. even if we're lagging) to be able to cancel the movie in any case. From-SVN: r2186 commit d06074ffa04ff24f3b5f2f5511e95e505648998c Author: Philipp Kutin Date: Wed Dec 21 18:40:47 2011 +0000 Preliminary commoning of actor[].t_data[10] to an array of int32's on both 32- and 64-bit platforms. Also, make struct type actor_t also have a common size of 128 bytes. New code currently disabled and #ifdef'd for comparison. This requires certain t_data[] entries ([1]: move ptr, [4]: action ptr and [5]: ai ptr with actors) to be converted to script offsets instead of pointers, breaking savegame and net packet compatibility (we could in theory try hard not to, but it would be too much trouble). From-SVN: r2185 commit 3689c6c8cbe7fa96f2c4179b4c41d37a415c3593 Author: Philipp Kutin Date: Sat Dec 17 18:51:50 2011 +0000 Add new actor[].flags flag 2048 (SPRITE_NOCLIP), for 'spriteflags' CON usage. Actors are always moved such that _they_ clip against blocking sprites, even if their blocking bit is clear. Setting the new bit make them not clip against anything. The promary use of this is for decorative moving sprites that are spawned in masses, such as rain or snow. From-SVN: r2184 commit 7f2c446d1f3ca06ab2af07b4d3ecbd72f654de28 Author: Philipp Kutin Date: Sat Dec 17 18:51:29 2011 +0000 engine.c, in engine_addtsprite: if we can't add more tsprites because we already have MAXSPRITESONSCREEN of them, return 1 to signal that the caller should break out of the loop. From-SVN: r2183 commit 0edc97ef719bb5c7fce68b6973be97a2f4f7fb49 Author: Philipp Kutin Date: Thu Dec 15 22:43:01 2011 +0000 Tweaks to compile the release build with clang. Now if it only would not generate curious code like this one (Ubuntu 11.10's clang 2.9 on i386): 0x080a57ea <+538>: xor %al,%al 0x080a57ec <+540>: test %al,%al 0x080a57ee <+542>: jnz 0x80a57f2 => 0x080a57f0 <+544>: jmp 0x80a57f0 0x080a57f2 <+546>: shl $0x4,%edi From-SVN: r2182 commit 54f4eea8dc1b539c89ca7cdec5412eb15ec52863 Author: Philipp Kutin Date: Thu Dec 15 22:42:42 2011 +0000 Patch up out-of-bounds access in some voxel drawing code. From-SVN: r2181 commit 1c5a847ea1053cbffde084838cccab31df490af4 Author: Philipp Kutin Date: Thu Dec 15 22:42:25 2011 +0000 Don't spawn weapon tiles (WEAPONx_SPAWN) if any such value has been set to negative numbers. Previously, only checks for being zero were performed, but CON code in the wild also has WEAPONx_SPAWN -1, which would propagate to the sprite picnum... From-SVN: r2180 commit a54e7c9fb2b81629ca14e4d555cc4df94514b632 Author: Philipp Kutin Date: Mon Dec 12 23:18:53 2011 +0000 a.m32: new state 'print_parallel_midpts' From-SVN: r2179 commit b5e9d5fa4df602c5d5d041756c3de1477e21d12a Author: Philipp Kutin Date: Mon Dec 12 23:18:35 2011 +0000 Mapster32: Rudimentary support for auto-aligning along TROR nextwalls. Usage: press the ['] (quote) modifier together with the PERIOD key. Aligns only the immediate upper and lower neighbors of each wall that got aligned by following point2s or nextwalls. Doesn't play well with Alt (carry over xrepeat) yet, might need two subsequent alignment passes. From-SVN: r2178 commit a4783f02e347fef6dec963329818ea7a602ec767 Author: Philipp Kutin Date: Mon Dec 12 23:18:15 2011 +0000 Fix out-of-bounds access in tile selector code in astub.c From-SVN: r2177 commit 065ffb74e36477849dfbb1441f66c99d9a5b25d3 Author: Philipp Kutin Date: Mon Dec 12 23:18:00 2011 +0000 checkdefs.sh script: hackish support for CON files, only 'include *.con' and 'definesound ... *.(voc|wav|ogg)' commands (missing: 'music', something else?). From-SVN: r2176 commit 8b5f9c2309cb73674e6450e0275465e460ea2dca Author: Philipp Kutin Date: Sun Dec 11 13:26:54 2011 +0000 Fix two yax_drawrooms() calls with too large sectnums (copy&paste error). From-SVN: r2175 commit f833b0b8d0fe292c7744cd6ea0bb5443ffa641f1 Author: Philipp Kutin Date: Sun Dec 11 13:26:39 2011 +0000 Fix a number of oob accesses with "switch switches". Various code checked for switch tiles in the following manner, for (ii=0; ii<2; ii++) switch (DynamicTileMap[sprite[i].picnum-1+ii]) { case SOME_SWITCH: ... } which blows for picnum 0. Now, we simply disallow it. From-SVN: r2174 commit dff30b42e8ad121d2a7f0945be345bea11f7c3fa Author: Philipp Kutin Date: Sun Dec 11 13:26:22 2011 +0000 Makefile: Remove {eduke32,mapster32}.memmap files on clean/veryclean targets (bioman request). From-SVN: r2173 commit 13392fea96dafb389bc541e5afe6adde27026f85 Author: Philipp Kutin Date: Fri Dec 9 19:12:15 2011 +0000 Fix negative array access in premap.c From-SVN: r2172 commit 9f89c901f17042b24cb3407e3edc9a7aedf0a877 Author: Philipp Kutin Date: Fri Dec 9 19:12:01 2011 +0000 Fix potential out-of-bounds array access in P_DisplayTip (happened with WGR2 SVN, so not sure where there's a tipping animation there). From-SVN: r2171 commit de47de2e2b8558b1210c048d4fe0af515cc28118 Author: Philipp Kutin Date: Fri Dec 9 19:11:47 2011 +0000 Fix sintable[] access with out-of-bounds values in core engine functions (getzrange, hitscan, clipmove, drawmapview). They're reproducible with DNE1.3D; Since these angle values most likely come from CON code, my suggestion would be to bit-and all values representing angles with 2047 when setting the from CON, but I'd have to think about potential side-effects of doing this. From-SVN: r2170 commit f264873276b9ca98d8196b2c9d9a0e350df61c62 Author: Philipp Kutin Date: Fri Dec 9 19:11:31 2011 +0000 - Fix invalid polymer light array access originating from game's cleanup callback 'G_Polymer_UnInit'. - In astub.c, reset spritelightid to -1 when nulling the spritelightptr of a sprite (no crashes observed, just precaution) - In sdlayer.c, catch SIGILLs with our signal handler too, since illegal instructions are what the instrumented debug builds will execute when attempting to carry out an undefined (per C) operation. From-SVN: r2169 commit 92485d6abca0a15a3ba46a2d57d0e7383ed52fb7 Author: Philipp Kutin Date: Fri Dec 9 19:11:08 2011 +0000 engine.c: fix shift by negative value in parascan(). From-SVN: r2168 commit 974aeab7054c6ba3c5a64a2caa236fe47c52e6c8 Author: Philipp Kutin Date: Fri Dec 9 19:10:51 2011 +0000 polymer.c: fix out-of-bounds picanm[] read. From-SVN: r2167 commit cdcd44fcba7dfae64d7e2c161ab826a3ba4a10df Author: Philipp Kutin Date: Fri Dec 9 19:10:35 2011 +0000 gameexec.c: fix calculation of a pointer value outside the bounds of an array and an invalid derived pointer value. From-SVN: r2166 commit a57879127c293f8832c48940f26c5d183103a02c Author: Philipp Kutin Date: Fri Dec 9 19:10:21 2011 +0000 Fix shift by values greater than 31 in some voxel loading code. From-SVN: r2165 commit cc505e2d8937afcf51f3ef1d0d7cb1c043c4cff1 Author: Philipp Kutin Date: Fri Dec 9 19:10:03 2011 +0000 kplib.c: patch up negative array access, dunno how to really fix this at the root. From-SVN: r2164 commit cd164922829f5c8edf6505e4d3e5b7fb4b7d3083 Author: Philipp Kutin Date: Fri Dec 9 19:09:45 2011 +0000 Mapster32: fix AWFUL out-of-bounds WRITE with sector highlighting. How in the name of hell this could pass undetected for so long is a mystery to me. From-SVN: r2163 commit dc70f059ebac6240ed12701fdb61ade850898c05 Author: Philipp Kutin Date: Fri Dec 9 19:09:29 2011 +0000 polymost_printext256: fix oob read when passing negative 'col' or 'backcol' values; check the color index that is potentially gotten from the string to be printed. From-SVN: r2162 commit 46229e7ef1af04e21460f4cc0265ba95117e15b0 Author: Philipp Kutin Date: Fri Dec 9 19:09:14 2011 +0000 Fix a potential out-of-bounds read and write when loading the help file in Mapster32. From-SVN: r2161 commit a8bbfbe79239587faec5efad9f553956e71ec6b8 Author: Philipp Kutin Date: Fri Dec 9 19:09:00 2011 +0000 When compiling debugging builds with clang, enable -fcatch-undefined-behavior. From-SVN: r2160 commit 780cc66c84f9017d7d79701be3c2797d2aa02636 Author: Philipp Kutin Date: Fri Dec 9 19:08:47 2011 +0000 Makefiles: disable a few warning categories and other switches when compiling with clang to prevent spamming the output. From-SVN: r2159 commit 4ba86af77d557bb71a035c25416acc4b3d0aa880 Author: Philipp Kutin Date: Fri Dec 9 19:08:29 2011 +0000 Remove some warnings with clang, code-side changes. From-SVN: r2158 commit 5e4bc7d9af84b4168ab092b8dccf3ce9d83859f8 Author: Philipp Kutin Date: Fri Dec 9 19:08:05 2011 +0000 Fix a warning with 64-bit builds. From-SVN: r2157 commit 8c3b9fd5e0b44192168d90c94e5612d71f0cc4c3 Author: Richard Gobeille Date: Thu Dec 8 03:56:38 2011 +0000 Simple one-liner from Robin Green to fix a problem where the menu background tint would sometimes draw over the menu contents From-SVN: r2156 commit 92f802040cca9f37589c539d023c088242623170 Author: Philipp Kutin Date: Sun Dec 4 21:21:01 2011 +0000 a.m32: New function save_restore_hlsectors, also accessible from the Quote-F menu. If some sectors are highlighted, save their indices. The highlighting of those particular sectors can then be restored at a later time (but careful across structural modifications that tweak sector indices) by running the same function. Shares a 'gamearray' with function 'collect_teleporting_sectors', so the latter will reset this one when run. From-SVN: r2155 commit c9f823e7ab88911aec4bcb39e8a3095d9b644eda Author: Philipp Kutin Date: Sun Dec 4 21:20:48 2011 +0000 M32Script: when failing to compile a state with a menu name, don't keep the menu entry. From-SVN: r2154 commit 7f23e6e260aad6327db038ad0c3463fe22209841 Author: Philipp Kutin Date: Sun Dec 4 21:20:31 2011 +0000 Mapster32: fix filling all sectors of a bunch with Ctrl-U. Previously, only one sector was filled and the 'clear bunch' message was displayed even if the operation was canceled. From-SVN: r2153 commit 39688545cb956bdc552515fe9f70365ab0f26827 Author: Philipp Kutin Date: Sun Dec 4 21:20:17 2011 +0000 CON parser cleanup: make labelcode save offsets to CON code instead of pointers and make it into an int32_t*. From-SVN: r2152 commit 684aefba5c22952afda54de3025693bc9cf334fb Author: Philipp Kutin Date: Sun Dec 4 21:19:57 2011 +0000 CON parser cleanup: make labeltype be an int32_t* instead of an intptr_t*. From-SVN: r2151 commit f5be993b06c420bdb499167889ab7d9164901245 Author: Philipp Kutin Date: Sun Dec 4 21:19:41 2011 +0000 CON parser cleanup: when getting a value from labelcode[], assume that it represents a pointer into the script for label types other than LABEL_DEFINE instead of checking inclusion of the value in the script bounds. This assertion was tested with WGR2 SVN. From-SVN: r2150 commit 3b1650a944f0e25c5b62f7a63efe8e5d2e7eb866 Author: Philipp Kutin Date: Sun Dec 4 18:10:06 2011 +0000 CON: Add the following commands to those which shouldn't be optimized away with empty branches: ifcanseetarget, ifpdistl, ifpdistg, ifgotweapononce. From-SVN: r2149 commit e5b320334a238b168c34b32980140503215c1103 Author: Philipp Kutin Date: Sun Dec 4 18:09:50 2011 +0000 Lunatic: more Makefile tweaks; spriteext From-SVN: r2148 commit 57216a176bca7d6d79c1ef7aa1f62a938e49b128 Author: Richard Gobeille Date: Sun Dec 4 00:31:20 2011 +0000 Fix issue reported at http://forums.duke4.net/topic/5068-bug-introduced-in-old-versions-of-eduke32 From-SVN: r2147 commit 40c5af2bd37be30098bff2fd5bcb8784e65451a0 Author: Philipp Kutin Date: Sat Dec 3 13:13:44 2011 +0000 Mapster32: When failing to extend a collection of sectors because one of them has a different height, print the sectnums of two differing sectors to so that the mapper can find and examine them with Ctrl-J. From-SVN: r2146 commit 21300941500ea736f77085bfc80f99db8e864250 Author: Philipp Kutin Date: Sat Dec 3 13:13:28 2011 +0000 Mapster32: new cfg var 'glusememcache', the same as r_memcache cvar. From-SVN: r2145 commit 5d99cfde5163e9c646437eed824141358963cbfd Author: Philipp Kutin Date: Sat Dec 3 13:13:08 2011 +0000 Mapster32: when having some sectors highlighted, also show how many walls they contain in total. From-SVN: r2144 commit 669a29241a19ddbec9cfc01caaa56ea8e182bcc9 Author: Philipp Kutin Date: Sat Dec 3 13:12:51 2011 +0000 Lunatic: Makefile bits for Windows. From-SVN: r2143 commit efa0dc01f3da027ed0aed0e73f0266c6d549a60c Author: Philipp Kutin Date: Sun Nov 27 12:02:41 2011 +0000 Revert r2141 functionality because it was a stupid-ass hack and breaks E3L5. The texture warping mode will need to be set depending on whether we're actually drawing a parallaxed sky or not. From-SVN: r2142 commit 7aa2bf0ba09e82d79d40bbf3f0e2f8b413e35b58 Author: Philipp Kutin Date: Sat Nov 26 22:41:09 2011 +0000 Upload sky textures with s wrapping set to GL_CLAMP{_TO_EDGE}. This fixes the vertical (~1 texel wide) stripes that are especially noticable with tiled art skies and Polymost with r_parallaxskyclamp=1 or Polymer (which always uploads skies with repeating s and t coords). What constitutes a sky tile is currently hardcoded to be >=78 and <=99. From-SVN: r2141 commit f27465de2cc8d35b9146e362b93f89e93ea1b946 Author: Philipp Kutin Date: Sat Nov 26 22:40:54 2011 +0000 Fix moving cloud panning like in E4L1. From-SVN: r2140 commit a2bfec8e580ffa94a4eaad63c02a67941874c86b Author: Philipp Kutin Date: Sat Nov 26 22:40:39 2011 +0000 Remove old duplicate_selected_sectors() function and copysector(), which was only used there, from the source. From-SVN: r2139 commit 864eda4240cd4c34b32f72c730eb2bf52f71ab20 Author: Philipp Kutin Date: Sat Nov 26 22:40:23 2011 +0000 Rewrite sector duplication (Insert or C) in terms of backup_highlighted_sector and restore_highlighted_sector functions. What this means is that TROR bunches are now correctly duplicated too (only if all sectors of a given bunch are highlighted). From-SVN: r2138 commit 5f4542abd2cf0d937bc377b9a98794872c340a3a Author: Philipp Kutin Date: Sat Nov 26 22:40:07 2011 +0000 New modifier for RAlt. When RShift is depressed while highlighting sectors (i.e. first press RAlt, then hold RShift to make it active), consider all sectors, even the grayed out ones. This makes 6 modifier keys in 4 categories for RAlt. Can you name them all? Also spell out the labels that get drawn near the reticle when applying some of the modifiers and make them not show when not actually selecting (e.g. pressed RShift alone, but have highlighted sectors) From-SVN: r2137 commit 181cf84130c2a28b9ead7c41dce26f9c4b65f401 Author: Philipp Kutin Date: Sat Nov 26 22:39:50 2011 +0000 In backing up highlighted sectors code: also back up TROR information so that bunches and nextwall links are restores, too. Now, to coalesce two TROR maps (e.g. for a CBP), one could do for i allsectors, sethighlightsector i 1 on the console, and then load the 'other' map to copy over the contents of the first, including all TROR stuff. Note that neither selecting all sectors with RAlt, nor duplicating them with Insert would lead to the desired effect (yet). Internally, - yax_setbunch() now has different behavior for bunchnums -1, -2 and -3 (it either clears the nextwalls or not) - build.c has a helper function free_n_ptrs(). This could be handy in other situations where many blocks of memory must be allocated consecutively and freed in case of failure From-SVN: r2136 commit 9174f92b6aba50d30552be8ba150fcabfd788c13 Author: Philipp Kutin Date: Sat Nov 26 14:12:59 2011 +0000 When restoring temporarily backed up map, clear all TROR bunches. This is suboptimal, but at least 'correct' and won't produce the aforementioned corruptions anymore. From-SVN: r2135 commit 09b64212d124edfaea53167ffffc8a9fe647c11e Author: Philipp Kutin Date: Sat Nov 26 14:12:44 2011 +0000 Auto-correct the just mentioned inconsistency by clearing the respective TROR nextwalls. (i.e. setting them to -1 on 'corruptcheck tryfix') From-SVN: r2134 commit ed972fcb1a9f07a899718c4bc65085affb1cabbd Author: Philipp Kutin Date: Sat Nov 26 14:12:30 2011 +0000 corruption checker: catch TROR-nextwalls in non-extended sectors. These can be caused by copying map parts from one map to another (or a new one). The copying system is slightly broken right now.... From-SVN: r2133 commit 6c71be6f17256102469727ec24f5d3a79433d347 Author: Philipp Kutin Date: Sat Nov 26 14:12:15 2011 +0000 Backing up and restoring highlighted portion of map: calculate new next{wall,sector} indices instead of using checksectorpointer() so that the nextwalls will be restored exactly as they were (provided that they are copied). Also fix tweaking the sectnums of sprites. From-SVN: r2132 commit 12e7b0a3f1925e3cee7335c69cc5a81c39626556 Author: Philipp Kutin Date: Fri Nov 25 13:46:48 2011 +0000 Fix two bugs with the loop punching code that made it practically useless. From-SVN: r2131 commit a2a3330770400273b136f87456cd0d479e533fcd Author: Philipp Kutin Date: Fri Nov 25 09:53:07 2011 +0000 Ability to duplicate an inner loop in a neighboring TROR sector. Called 'loop punching'. In addition to duplicating the loop, the inner portions of the original and cloned loop are made into a new bunch, and the loop walls are made to be neighbors, linking their movement to each other. This gives a way to create island sectors with a differing bunchnum in the midst of an already extended area. Usage: For an extended sector containing a CCW inner loop, select its points using Ctrl+Shift. Press Ctrl-E to be queried whether to duplicate the points into the upper or lower extension (even if it's unambiguous). A number of conditions must be met for a successful 'punch', which should hopefully be more or less obvious. Among them: - loop walls should all be red - the starting wall is only considered among the non-grayed-out ones - the neighboring sector must not contain points inside or at the loop From-SVN: r2130 commit aa1216677ea1ad54661d352df1050c5db7ac365a Author: Philipp Kutin Date: Fri Nov 25 09:52:52 2011 +0000 "Sloped extended sectors cannot be split", oops. Also fix a glitch that would break out of the 2D mode loop when splitting a sector would exceed limits. From-SVN: r2129 commit 49a2bd96787ea05ffabc1b1f163fda06c2e5b696 Author: Philipp Kutin Date: Fri Nov 25 09:52:37 2011 +0000 Factor out high-level 'add loop to sector' code into own function. From-SVN: r2128 commit 93498d43485f5b3565967e394931a248cfcade84 Author: Philipp Kutin Date: Fri Nov 25 09:52:22 2011 +0000 in 'adding new loop to sector': use local 'firstwall' instead of ovh.suckwall From-SVN: r2127 commit 7ba2ee015851f25fd5683c9f93fa2b1a2227e07e Author: Philipp Kutin Date: Fri Nov 25 09:52:08 2011 +0000 Three Mapster32 changes (2 wall-drawing related, 1 crash fix) - Don't crash when sector joining fails under certain circumstances. - Increase the point lock (Manhattan) distance from 1/16th to 1/8th of the grid square length, making it easier to snap to vertices not lying at the grid points with grid lock on - When drawing walls, don't snap to any of them except the first drawn From-SVN: r2126 commit 2e6601912d36a26bd0f6739f871330ea0acb9e11 Author: Philipp Kutin Date: Fri Nov 25 09:51:53 2011 +0000 Batch-insertion of many points at once using line drawing and ENTER. When having drawn N new points (and having one 'free') and pressing ENTER, the N line segments between the new points are checked one by one for intersection with every non-grayed-out wall and a wall vertex is inserted at every intersecting point. This may be viewed as a prerequisite for a 'cutter' style tool. From-SVN: r2125 commit d1c347fe2581ce57c22e42087bdccf01aa27554e Author: Philipp Kutin Date: Fri Nov 25 09:51:36 2011 +0000 Warn user if pressing Ctrl+Shift+ENTER (check all wall pointers) in TROR map. From-SVN: r2124 commit bcd913d161d3224a19c5028f5942d6a76c7cebed Author: Philipp Kutin Date: Fri Nov 25 09:51:21 2011 +0000 Factor out high-level point inserting code into M32_InsertPoint(). This function only handles the actual insertion, also taking care of constrained TROR walls. Anything around the inserting such as backing up drawn walls or snapping the x/y position to the grid is handled outside. From-SVN: r2123 commit 776ffb604c3791e208ceeddbd35ae183493d8f8f Author: Philipp Kutin Date: Fri Nov 25 09:51:06 2011 +0000 Somewhat largish commit with various keyboard tinkering for Mapster. The main change consist of adding a key press (and release) callback whose only purpose is to be used from m32script as EVENT_KEYPRESS. When entering that event, the RETURN variable will be set to the keystatus code of the key, and whether it was pressed or released can be checked by looking at keystatus[] at that code (ifholdkey and ifhitkey do this). The purpose of this, then, is to be able to remap keys in a more general (and complicated) fashion than is possible with the mapster32.cfg 'remap' option. Various other additions build around this central one: - add an example EVENT_KEYPRESS to a.m32, among other things emulating the keypad arrows with Alt- for notebook convenience; disabled initially - a.m32: set 'owner' with Alt-KP2: now Alt-Shift-KP2, because of collision with the above - new m32script command: setkey , setting keystatus[] to 1 (note: may be restricted to use in EVENT_KEYPRESS only in the future) - fix indexing an m32script array with a defined label, there used to be a 'not a gamevar' error instead - add the following constant labels for some key codes: KEY_SCROLL, KEY_F1 .. KEY_F12 From-SVN: r2122 commit 64fb75bd6ac30367cdaebaa5781bf2397af506e6 Author: Philipp Kutin Date: Fri Nov 25 09:50:40 2011 +0000 - Make old-nextwalls invalid on the following two occasions: ovh_whiteoutgrab with no highlighted sectors; and when entering 3D mode, even if there are highlighted sectors. This should have almost no effect, but I find it cleaner that way. - Check map for corruption every time an editing change is done. This was accidentally disabled when commenting out the undo code (which I've yet to debug). From-SVN: r2121 commit 1a5f522a6c6f65b2db2882d26a3b463707f546b2 Author: Philipp Kutin Date: Fri Nov 25 09:50:21 2011 +0000 Make it impossible to start drawing walls when having a circle-wall selected. (There was a corner case where this was possible.) From-SVN: r2120 commit 7a7c9023bd88a1ec0c7d4847d079a9826819f465 Author: Philipp Kutin Date: Fri Nov 25 09:50:07 2011 +0000 Remove after_handleevents_hook and its only user, the keystatus-level clearing of SPACE and C when in side-view mode. Now, this is accomplished by checking directly in the overheadeditor code. From-SVN: r2119 commit c57ce4c68dcee44814ed0540c2a9939a7dd11af5 Author: Philipp Kutin Date: Fri Nov 25 09:49:40 2011 +0000 Eliminate potential malloc(0) calls when loading (converting) md2 models with no skins or no GL comands. From-SVN: r2118 commit ee506eb34027327fb7a75b16ff008846d33013a4 Author: Philipp Kutin Date: Fri Nov 25 09:49:22 2011 +0000 Fix calling glEnable() without checking for the rendering mode in the tile selector. This could lead to a crash when OpenGL wasn't initialized before. From-SVN: r2117 commit 907914ae152b64578179d0c8e914edf082f83d04 Author: Philipp Kutin Date: Thu Nov 17 21:10:18 2011 +0000 Fix the Makefile on OSX. Their linker has a different syntax for requesting the memory map. From-SVN: r2116 commit 2b0d01b4ad49d54de6e3ee97c2964b13a8a80f9f Author: Philipp Kutin Date: Thu Nov 17 21:10:04 2011 +0000 Fix the flickering in the tile selector with lazy hightile loading on (lazy_tileselector=1 in mapster32.cfg). We're drawing tiles one by one, so glDrawBuffer(GL_FRONT_AND_BACK) is our friend. From-SVN: r2115 commit ba3221068240e2643dbdb9f292c95cf77fee9521 Author: Philipp Kutin Date: Thu Nov 17 21:09:49 2011 +0000 Remove the -nopause switch of r2108, since it didn't help at all. From-SVN: r2114 commit 4f25d8087720aac18ba673524ec4e140c2a9ab37 Author: Philipp Kutin Date: Thu Nov 17 21:09:26 2011 +0000 triv: comment out FX_PlayLoopedAuto debug message to stdout From-SVN: r2113 commit 680dce993f4efdf546b52b604cf7ce85d81abff1 Author: Philipp Kutin Date: Fri Nov 11 22:39:56 2011 +0000 Correct thinko with the ceiling/floor movement code. When moving more than one sector c/f and moving one of them would go beyond the other side (ceilingz > floorz), don't move any sector c/f at all. When moving only one sector in that case, move so that ceilingz == floorz. From-SVN: r2112 commit 1a1e807ace55b870e7a39556238d604dec3bf490 Author: Philipp Kutin Date: Fri Nov 11 20:05:44 2011 +0000 Tweak raising/lowering (groups of) ceilings or floors. Now, if more than one sectors are affected, always move them by the same amount. That is, if one of them would be sticking against the other side, don't move the rest. Another change consists of determining the z delta first, and only then moving the sprites by that amount. This fixes the problem where you'd e.g. raise a 'floor door' against the ceiling, and the effector sprites would be raised one time too much, preventing them from being lowered the next time. From-SVN: r2111 commit 2187c75714bf8f43003de8cfd388a98c2617f715 Author: Philipp Kutin Date: Fri Nov 11 20:05:29 2011 +0000 A couple of Mapster changes related to saving. - new mapster32.cfg and OSD variable 'fixmaponsave_sprites', telling the editor whether to 'fix' the sprite sectnums on saving and entering 3D mode. Note that a) sprite sectnums are never fixed when 'script_expertmode' is enabled, as before, and b) sprites that have out-of-bounds sectnums are still fixed if a proper sector is found - if saving and some sprite sectnums have thus been tweaked, inform the mapper on the status line and print the changes in the OSD - fix update issue similar to an earlier one: when 'saving as', the astub.c- based file name is now updated too, so saving with Ctrl-S now saves into the one save with 'save as' (and not the old one) - don't attempt to recheck wall pointers from scratch (when saving and running with -check) if it's a TROR map From-SVN: r2110 commit c2054fcddddad1f750aa98294898476284240125 Author: Philipp Kutin Date: Thu Nov 10 21:47:42 2011 +0000 Oops. Revert the *alloc wrapping to catch them being called with bad values. This was meant for debugging only. From-SVN: r2109 commit 75b260e5beccd70e829705235eae441f23064d44 Author: Philipp Kutin Date: Thu Nov 10 21:47:26 2011 +0000 On Windows, add command-line switch -nopause, disabling the pause key. Hopefully this fixes the periodic pausing/unpausing that a few people have been experiencing. Also fix build with GCC 3. From-SVN: r2108 commit b80f8da977abe5e4771ffc237097bf8f37904294 Author: Philipp Kutin Date: Thu Nov 10 21:47:03 2011 +0000 Fix building with both LTO and VPX support enabled. Specifically, don't use the 'optimize' function attribute if LTO is enabled. From-SVN: r2107 commit 2bd03f18738ea5ca77b89fdcd8b687c2e38f176a Author: Philipp Kutin Date: Tue Nov 8 16:50:10 2011 +0000 Also print file name of cache file in case of failure to open it. From-SVN: r2106 commit d76ac30b0b9cbfbe6c064d00424879a021ea72b1 Author: Philipp Kutin Date: Sat Nov 5 12:13:50 2011 +0000 Fix the 'displayrandvar{var}' CON and m32script commands for environments with RAND_MAX > 32767 (everything except Windows?). The 'displayrand' command now returns values from 0 to 32767 inclusive, across all platforms. From-SVN: r2105 commit 954964e7cd146b4b2d316108044a1b7889cd0e0b Author: Philipp Kutin Date: Thu Nov 3 23:08:54 2011 +0000 New CON command setactorsoundpitch which can be used to change the pitch of a playing sound. The pitch offset has the same meaning as the definesound pitch range endpoints, i.e. the units are 1/100th of a seminote. Note that just like the random pitch offset, increasing the pitch makes the sound duration shorter (and vice versa). From-SVN: r2104 commit bdc390289b4d9210e7561f4f403f0b31e9d6feec Author: Philipp Kutin Date: Thu Nov 3 23:08:35 2011 +0000 m32: Make a couple of often-used operations not spam messages to the log. From-SVN: r2103 commit d6feefad5a722e10548129d5eee7cd6d26b803eb Author: Philipp Kutin Date: Tue Nov 1 22:03:09 2011 +0000 Eliminate one uinitialized mem access related to projectiles (it's the filler member, so maybe not *that* bad) and an invalid memory access when trying to access a per-player gamevar in a player-less context (e.g. WGR2 SVN r25 WGR2GAME.CON line 10448). From-SVN: r2102 commit 007e062fa253621e1d44d6bf65a9311b674309d2 Author: Philipp Kutin Date: Tue Nov 1 22:02:54 2011 +0000 Explicitly initialize voice->Playing and voice->Paused members in some sound playback functions. Without these, there would be an uninitialized access in line 444 of multivoc.c (if the memory in question was allocated with malloc, but still...) From-SVN: r2101 commit ba61228c1cea95b53104a4a8b4a450b05a1e3251 Author: Philipp Kutin Date: Tue Nov 1 22:02:37 2011 +0000 More beauty tinkering: decorate the 'start' pointer of the mixing functions and some VoiceNode struct members with a const, commit forgotten vorbis.c changes. From-SVN: r2100 commit d505f767525899c5153391e26a22e0d6bfc019fb Author: Philipp Kutin Date: Tue Nov 1 22:02:14 2011 +0000 trivial stylistic changes continued: upcase all macro constants and make MV_MaxVolume into one again. From-SVN: r2099 commit d15656c80f7e37ec27ed97ea71887c3ec4f585d8 Author: Philipp Kutin Date: Tue Nov 1 22:01:54 2011 +0000 multivoc.c: trivial stylistic changes, make some functions static From-SVN: r2098 commit 248c4de89219986f5a89645f28471e4d177656cd Author: Philipp Kutin Date: Tue Nov 1 22:01:35 2011 +0000 Fix another dragpoint() bug that was wrongly omitting walls. This one could have only happened with TROR maps, I think. From-SVN: r2097 commit 580cadde96c9d7bd8d85f5e3d43e909c8a8f815b Author: Philipp Kutin Date: Mon Oct 31 19:50:06 2011 +0000 Oops. That last one wasn't supposed to be committed. Here's the log for the last one + this one: A couple of tweaks against accidental overwriting of maps. - first, fix a bug where the map name wasn't reset to 'newboard.map' when starting a new map - When saving with Ctrl-S, query the user for confirmation and also show the file name where the map will be written - when going into the ESC-menu, print the file name where the map will be written on pressing 'S' above the '(S)ave' text From-SVN: r2096 commit 1454d753dcf72f9b2ecd50132c9fe8b2451cd990 Author: Philipp Kutin Date: Mon Oct 31 19:49:43 2011 +0000 A couple of tweaks against accidental overwriting of maps. - first, fix a bug where From-SVN: r2095 commit 2fbe75829a451fdae9115d1b0b39996ff5125d3a Author: Philipp Kutin Date: Sun Oct 30 21:48:57 2011 +0000 Fix an init issue with the earlier ATI workaround. From-SVN: r2094 commit 2ee2b318efdbb67ebbadb1401fd46a6f474ed35e Author: Philipp Kutin Date: Sun Oct 30 19:48:46 2011 +0000 Increase MAXSOUNDS to 4096, making the maximum valid sound ID be 4093. Keep in mind that MUSICANDSFXs with ambient sounds must still have lotags less than 999 because values >=1000 are used for the amount of reverb. (999 can't be used because the original code reads '< 999' and I'm not sure whether it has any special significance... probably not though) From-SVN: r2093 commit c9523cc9485c3d24910367cdad7d789b88c50f47 Author: Philipp Kutin Date: Sun Oct 30 19:48:29 2011 +0000 When joining sectors and there's more than one non-grayed-out sector under the cursor, query the mapper to pick one. The joining can still fail afterwards, which makes it only a semi-automatic helper feature. From-SVN: r2092 commit f850e980e3ecc2ab07de1adb64f17bdf64e9e0ea Author: Philipp Kutin Date: Sun Oct 30 19:48:13 2011 +0000 This fixes the aforementioned TROR corruption. It happened because Mapster32 allowed circle-walls started on the unconstrained _other_ side of a constrained wall. Also fix a potential invalid wall access when inserting a point (pretty serious, that!) From-SVN: r2091 commit aac4139b50652e56f69074bdd3f36fdd11357bf2 Author: Philipp Kutin Date: Sun Oct 30 19:47:58 2011 +0000 (Almost) correct insertion of points in the midst of having some walls drawn, also for make-circle (C, SPACE). There's still a TROR corruption happening probably when inserting on constrained walls, but I've yet to get behind the real cause. From-SVN: r2090 commit 056886383a573d2d7bf61bfbffe6369aa12a1b44 Author: Philipp Kutin Date: Sun Oct 30 19:47:42 2011 +0000 Make deleting points correct while having some walls drawn. For that, some wall drawing state is ripped out from overheadeditor() into a a file-scope struct (even if we don't yet need it there). If the deleting touches the first drawn point, the walls drawn so far are cleared. From-SVN: r2089 commit 71af8ec73c7efe3c37b9634c00b9f5de00269f8c Author: Philipp Kutin Date: Sun Oct 30 19:47:26 2011 +0000 Eliminate one malloc(0) when corrupt-checking an empty map, clean up overheadeditor() by allocating temp variables in the blocks where they are needed. From-SVN: r2088 commit 1a1efe738813ea5646daa398e189d232d6bfd6a3 Author: Philipp Kutin Date: Sun Oct 30 19:47:07 2011 +0000 Fix the bug where many kick sounds were started when pressing HOME or END in the user map selector. Now it's only one. From-SVN: r2087 commit 36bc2b8ee9ff5839db5ba32471685f7a5c0aebce Author: Philipp Kutin Date: Sun Oct 30 19:46:51 2011 +0000 A couple of small tweaks: - fix arg checking in checkdefs.sh - some tilenum and quote ID validation in the CON interpreter - G_DrawDigiNum and friends: eliminate redundant strlen calls From-SVN: r2086 commit e070ca6966a7869fc136712e4a1d2da3d11bd106 Author: Philipp Kutin Date: Thu Oct 27 13:14:22 2011 +0000 Workaround (two, actually) for the hardware gamma bug in 8-bit fullscreen with ATI cards. From the time of OpenGL initialization, gamma lookup in classic/fullscreen will be done in software. Before that, always do a setgamma() after setting the palette, since this is what resets the HW gamma. However, this may lead to unappealing artifacts with portions of the scene being sent to the screen with different gammas. From-SVN: r2085 commit d4d84b528518170c2ee5b78d09e7ee59c940f445 Author: Philipp Kutin Date: Thu Oct 27 13:14:06 2011 +0000 Makefile: remove ebacktrace1.dll as dependency to eduke32 and mapster32 and add it to the 'all' target instead source/midi.c: eliminate one 'variable set but not used' warning From-SVN: r2084 commit bd63b0d9afdc22afd7ec8c5f2149e7b7c6f9f36c Author: Philipp Kutin Date: Thu Oct 27 13:13:51 2011 +0000 Comment out some unnecessary lines in animvpx.c From-SVN: r2083 commit 36445c6e4a7efbc18b1301447eac64308d4aee01 Author: Philipp Kutin Date: Thu Oct 27 13:13:37 2011 +0000 Comment out some leftover code from the "make back-facing switches invisible" hack. From-SVN: r2082 commit 275d8fc0456806621d523b68e24e5cb3a9bcc407 Author: Philipp Kutin Date: Thu Oct 27 13:13:22 2011 +0000 Bash helper script to find wrongly-cased file names in DEFs and maybe replace them with the proper names. Usage: checkdefs.sh [[] -patch] is taken to be the base directory of the search path. -patch uses 'sed -i' to replace the offending findings From-SVN: r2081 commit 8918c685b5af2c30c77863c0d2a0cd09af64fca0 Author: Pierre-Loup A. Griffais Date: Sun Oct 23 05:02:57 2011 +0000 glbuild: tell gl.h not to include the system's glext.h We pack our own copy of glext.h to avoid build breakages on older environments, and having gl.h include its own was defeating all that. From-SVN: r2080 commit 92c1b9cfdf3b5fbdbfecb82c760ef2c6a64334c5 Author: Philipp Kutin Date: Mon Oct 17 18:42:10 2011 +0000 Eliminate all 'variable ... set but not used [-Wunused-but-set-variable]' warnings with GCC 4.6 except one in kplib.c From-SVN: r2079 commit 03b6c279d441cc2021c824ba292c7ff2ce839ce7 Author: Philipp Kutin Date: Mon Oct 17 18:41:38 2011 +0000 Make Polymer's FOV depend viewingrange variable in a 'tangent-linear' fashion. Among other things, this makes the FOV widening when shrunk work. User CON code should always check the initial viewingrange value when attempting to do FOV effects like zoom, because it is not guaranteed to be 65536 due to different screen aspect ratios etc. From-SVN: r2078 commit 1a8493c6aa24e2abc41994a76db410675345b5a7 Author: Philipp Kutin Date: Mon Oct 17 18:41:17 2011 +0000 Two tweaks when keying in values directly in the editor's 3D mode. First, when pressing 'S on signed members (like the shade), display the real signed value instead of the value cast to an unsigned type. Second, when aiming at an overwall and pressing G, affect the overwall instead of the wall. Maybe these changes affect a few other queries too... From-SVN: r2077 commit 1a48296ffb8871b771a8d4dca63a631d03b75519 Author: Philipp Kutin Date: Tue Oct 11 16:53:52 2011 +0000 OSX build: don't include startup window (where the hell is the nib file?); makefile bits for libpng from maxports (dynamically linked, not enabled); update osxbuild.sh so that the 64-bit build links (statically) to libvpx From-SVN: r2076 commit 67c147dbd6136bef2f75056709e3641d195c1b48 Author: Philipp Kutin Date: Tue Oct 11 16:53:29 2011 +0000 mapster32 script: when defining an event, enable it automatically From-SVN: r2075 commit e0266e4383d324a20bed83df9729c8222c985f58 Author: Philipp Kutin Date: Tue Oct 11 16:53:15 2011 +0000 lunatic: more sandboxing mechanisms, makefile lines for OSX From-SVN: r2074 commit c44b28137350e6be0e4af3ee1f443a8d231cde8c Author: Philipp Kutin Date: Tue Oct 11 16:52:53 2011 +0000 fix osx build: looks like it doesn't have the GL debugging functions From-SVN: r2073 commit 5b2217390a23eb9ba90acc2bd2782f521c212ecb Author: Evan Ramos Date: Mon Oct 10 00:07:00 2011 +0000 Tripbombs now stop producing laserlines when they reach invalid space. In effect, tripbombs facing the wrong way will not make infinite laser lines. fix: http://forums.duke4.net/topic/4907-laserline-crash-bug/ From-SVN: r2072 commit f1016d8a937716a16e1394eb09380a67d0b72cb3 Author: Philipp Kutin Date: Mon Oct 3 17:44:06 2011 +0000 Fix being squished in sectors with little headroom but extended non-blocking ceilings or floors. In such cases, you're not squished unconditionally (instead of fetching the ceiling or floor height of the neighbor sector), but TROR isn't meant for small-scale RoR anyway. From-SVN: r2071 commit b1b3611f24d466f78a07dc50f906e3b4f0bb45aa Author: Philipp Kutin Date: Mon Oct 3 17:43:51 2011 +0000 Fix dragpoint()!!! There was a bug that omitted setting the new position of certain wall-points since the TROR introduction. From-SVN: r2070 commit 7275591d33c30fb2728aef3cae92f284c24f6447 Author: Philipp Kutin Date: Mon Oct 3 17:43:36 2011 +0000 Initialize prlights[lighti].flags.invalidate with 0 when calling polymer_addlight(). I have no idea whether it's the 'right' thing, but it fixes this: Conditional jump or move depends on uninitialised value(s) at polymer_updatelights (polymer.c:5090) by polymer_drawrooms (polymer.c:938) . . . Uninitialised value was created by a stack allocation at loadmaphack (engine.c:9482) Fix another uninitialized access when rendering jpegs. From-SVN: r2069 commit fe427a2d9351bc396e87ee6be56a5e973b1746ef Author: Philipp Kutin Date: Mon Oct 3 17:43:16 2011 +0000 Delete maphack lights when changing from Polymer to another renderer. This fixes a crash when loading a map afterwards. Tweak a few debugging messages and some whitespace. From-SVN: r2068 commit 2db16323fe13c1a071597b0b35ff0c29402e79f6 Author: Pierre-Loup A. Griffais Date: Mon Oct 3 00:14:56 2011 +0000 Polymer: support for creating a debugging context in winlayer This also fixes a warning when building for Windows. From-SVN: r2067 commit 42ca2493a829ba7ec1bb4759e0c041cc2369d19b Author: Philipp Kutin Date: Sun Oct 2 22:38:09 2011 +0000 Show fake TROR texture when show-invisibility [I] is on in Mapster32/Polymer. Also move a 'int16_t editstatus' declaration from polymost.c to engine_priv.h. From-SVN: r2066 commit cbe11db74cccda3f83714f55aae3febf0a61aac2 Author: Philipp Kutin Date: Sun Oct 2 22:37:51 2011 +0000 kextract (without further filenames) lists all files in the GRP. From-SVN: r2065 commit 4c6b0e93f23f6cdbc1d4d37256171c7ec197373b Author: Philipp Kutin Date: Sun Oct 2 22:37:33 2011 +0000 maint: refactor closing cache files and removing duplicate pointers into their own functions From-SVN: r2064 commit 4eca4d92888cec7a6bf4634cf55dafba458c429d Author: Pierre-Loup A. Griffais Date: Sun Oct 2 11:44:05 2011 +0000 Polymer: fix stupid typo that broke r2057 From-SVN: r2063 commit 391c68cb4ef95dd3381bfd3ea0ebba6c6c14a5cf Author: Evan Ramos Date: Sun Oct 2 07:47:18 2011 +0000 fix clobbering of ebacktrace1.dll during synthesis building From-SVN: r2062 commit 3f8f9544911e23edf97aba56b046679d4857ab87 Author: Evan Ramos Date: Sun Oct 2 07:18:49 2011 +0000 Fix GCC 4.6 out-of-bounds and uninitialized warnings involving bossmove[]. My choice of solution is simply to add an extra set of values duplicating the previous five because doing so would definitely show the user no changes. I could have tinkered with the messy loop where the out-of-bounds references are made but there is no guarantee I could have succeeded or kept compatibility. From-SVN: r2061 commit 7da96c369ccd7872f66dd4f0fc97fcf64df401af Author: Evan Ramos Date: Sun Oct 2 07:18:17 2011 +0000 remove two instances of duplicate USE_OPENGL preprocessor checks missed by the removal of the POLYMOST definition From-SVN: r2060 commit 51e61edc407d9bf1e18ffdd11ceda48db1494faa Author: Evan Ramos Date: Sun Oct 2 07:16:57 2011 +0000 move Electric Fence (EFENCE) handling from build/Makefile to Makefile.common From-SVN: r2059 commit 9cf16f417680be407d6e08ed05ee952b8c115e41 Author: Pierre-Loup A. Griffais Date: Sun Oct 2 07:09:15 2011 +0000 Polymer: constantly get the textures handle for projective spotlights Getting the texture handles without requiring invalidation means we can handle ART-animating tilenums without impacting performance too much. From-SVN: r2058 commit db3f82d039c339858d57762d3d808c6727333e9c Author: Pierre-Loup A. Griffais Date: Sun Oct 2 07:09:04 2011 +0000 Polymer: fix horizontal spotlight SEs constantly getting invalidated Polymer has a hack that snaps horiz values of spotlights between 90 and 110 to 90 and 110 to avoid triggering aliasing artifacts with perfectly horizontal spotlights. Propagate that change all the way to the spotlight SE sprite so that the code won't think that the horiz is always different from the light and mark it invalid each frame. From-SVN: r2057 commit 189353ef363b628473582b166470f3ce428c0cb3 Author: Pierre-Loup A. Griffais Date: Sun Oct 2 05:56:35 2011 +0000 Polymer: preliminary support for GL_ARB_debug_output This won't actually do anything until the a debug bit is added when creating the context, but that requires support for GLX_create_context which SDL doesn't support. I'll add support for WGL_create_context to winlayer in a bit as a stopgap. Also updates our local copy of glext.h with a fresh one from the Khronos registry. From-SVN: r2056 commit b5acdcfe9035e5d7f323e776558cfd9f02d47add Author: Pierre-Loup A. Griffais Date: Sun Oct 2 03:09:20 2011 +0000 Polymer: Fix upside-down projective textures We need to Y-invert the projection texcoords when sampling from the lightmap. From-SVN: r2055 commit 32c5e765ebbdb20c2601451de6418c3141937419 Author: Pierre-Loup A. Griffais Date: Sun Oct 2 01:44:54 2011 +0000 Polymer: apply ART animation to spotlight lightmaps. From-SVN: r2054 commit a5c19f7ee8618c39b8a9ead6a87913f9a7aba5b5 Author: Pierre-Loup A. Griffais Date: Sun Oct 2 01:00:14 2011 +0000 Polymer: Discard cached sprite planes on texinvalidate Sprites would stick with their old material on global palette change. This goes through all prsprites and clobbers their CRCs so that an alternate skin / tint / highpal can be applied accordingly. From-SVN: r2053 commit 547b4c5933401d122eeba09ea1d4351a1b2c75b5 Author: Pierre-Loup A. Griffais Date: Sun Oct 2 00:32:00 2011 +0000 Polymer: account for model flipping for backface culling. The winding order of faces is different if only flipping about X or Y, and we were unconditionally culling CW faces. From-SVN: r2052 commit 26e682d2e57aba980ebbddca80567eb5048428ff Author: Pierre-Loup A. Griffais Date: Sun Oct 2 00:31:46 2011 +0000 polymer: fix leading whitespace in polymer_drawmdsprite From-SVN: r2051 commit 887e4d103087c6020d69b0926c975843b186ef71 Author: Philipp Kutin Date: Fri Sep 30 14:30:33 2011 +0000 fix a stupid copy&paste error that made sector[].ceilingbunch/floorbunch not functioning From-SVN: r2050 commit 926908b2efa82999b591dd08d6e23fbb67b2c844 Author: Philipp Kutin Date: Fri Sep 30 14:02:13 2011 +0000 fix for the fix From-SVN: r2049 commit 205d8095fd51999eefcc6f7ae9f4dcacf06c775f Author: Philipp Kutin Date: Fri Sep 30 13:52:02 2011 +0000 When X- or Y-flipping a selection of highlighted sectors, also handle setting the nextwall pointers correctly; Add some 'asksave=1' and 'make old-nextwalls invalid'. From-SVN: r2048 commit 86497f2a313f7c888d0f39173f988391aa057996 Author: Philipp Kutin Date: Wed Sep 28 20:31:59 2011 +0000 Makefile lines for building with libvpx from Macports on OSX From-SVN: r2047 commit 9cfeb75172b305f6ad618a67626290af804d5841 Author: Philipp Kutin Date: Wed Sep 28 20:30:41 2011 +0000 Sanitize drawing sprites at different levels with TROR/classic. This should fix most problems where sprites appear to be drawn through walls. From-SVN: r2046 commit 4e6448f01f80efa1a3294da40e5c2b2ee66d3cb1 Author: Philipp Kutin Date: Wed Sep 28 20:30:24 2011 +0000 Two tweaks to make the precaching more efficient/less redundant in the game. First, if we're in Polymer, don't precache tinted tiles that have a highpal for that certain pal. Second, don't precache tiles for palnum 251 (the last non-reserved one, which is used as a crosshair pal). Assuming that there are no other tints, this cuts the initial precache time and cache size on disk in half. From-SVN: r2045 commit 097b7252d9370824e5dd5b2dcd27efac8a34c4d7 Author: Philipp Kutin Date: Sun Sep 25 15:11:47 2011 +0000 lunatic bits and pieces From-SVN: r2044 commit 867a61bd34ecf479329fd008b7cf3e064dfa130f Author: Philipp Kutin Date: Sun Sep 25 15:11:28 2011 +0000 When inserting a new sprite and determining its picnum by frequency count of the picnums of all sprites, omit the newly inserted sprite itself! From-SVN: r2043 commit 14fdb08adfd2546ec392a3be80dfaf36ff61574e Author: Philipp Kutin Date: Sun Sep 25 15:11:11 2011 +0000 VPX: in 3 planes -> packed format conversion code, group together the three individual loops and compile the enclosing function at -O3 (-O1 for debugging builds). Now, the time for this conversion ranges from 7 to 18 ms per frame across various tested machines, a clear improvement. From-SVN: r2042 commit ca3b80d98982520a331f205d9a107726e2637ca8 Author: Philipp Kutin Date: Thu Sep 22 16:53:10 2011 +0000 synthesis: package ebacktrace1.dll, remove backtrace.dll and libi*.dll Makefile: remove ebacktrace1.dll on 'veryclean' target From-SVN: r2041 commit 168334b6ad034213258856802941df95d96be358 Author: Philipp Kutin Date: Thu Sep 22 16:52:55 2011 +0000 backtrace.c: add flags to open() so that the log file is opened user-r/w. This way, crashlogs will really be appended. Additionally, print a time at the end of each backtrace. winlayer.c: load ebacktrace1.dll instead of the old one Makefile.common: when building with DEBUGANYWAY=1, don't omit frame pointers This will let us get a stack trace for crashes with the release build code. From-SVN: r2040 commit b99f405f0b66e4f516396c2db721da2f148b2b4e Author: Philipp Kutin Date: Thu Sep 22 16:52:32 2011 +0000 When searching a nextwall for a white wall after dragging a point, exclude grayed out walls. From-SVN: r2039 commit 11c084f9da9074005a0413e0acccc06ac7d055bb Author: Philipp Kutin Date: Wed Sep 21 22:38:37 2011 +0000 enable VPX support for Windows From-SVN: r2038 commit b3cf0f7b339966beef2c9115359259ff6162b620 Author: Philipp Kutin Date: Wed Sep 21 22:38:24 2011 +0000 Add backtrace.c (the same that was used to build backtrace.dll earlier) to tree and build our own DLL, now called ebacktrace1.dll. The change consists of breaking the link to the libintl lib and its dependencies, so the backtrace dll is now the only one required. From-SVN: r2037 commit 9798b197d037dc8bb1b91569b27fbf8684441c6d Author: Philipp Kutin Date: Wed Sep 21 15:54:47 2011 +0000 Add statically linked libvpx to tree, built with gcc-4.5 mingw and ./configure --disable-vp8-encoder --disable-multithread Also add VPX/VP8 headers for an easy build on Windows. Throw in the necessary lines into the Makefile but do not enable VPX support yet. From-SVN: r2036 commit 28021a503bceb62e99ad86e600d99658319dbbad Author: Philipp Kutin Date: Tue Sep 20 19:12:42 2011 +0000 Fix http://forums.duke4.net/topic/1348-mapster32-problems-and-bugs/page__st__480 (I think, didn't test it) From-SVN: r2035 commit 53622c2a2a991fdc7c54e8ed283ce2990542f707 Author: Philipp Kutin Date: Tue Sep 20 19:12:24 2011 +0000 First Lunatic development bits. From-SVN: r2034 commit 3d8c079ebc7d80da4567da7aa3dfaf0fe4ba05c1 Author: Philipp Kutin Date: Sun Sep 18 11:55:31 2011 +0000 - protect stat bit 2 when pasting to ceilings or floors - when pasting to walls or maskwalls, the following user bits are kept now: 4 (top/bottom alignment [O]) 1+64 (blocking, hitscan) 8+256 (x/y-flip) - print '(one-sided)' when pressing Shift + ([B] or [H]) on a wall From-SVN: r2033 commit 2b86a4c612a9cb03cb91b280d4c68b4ed3d2e645 Author: Pierre-Loup A. Griffais Date: Sun Sep 18 07:18:50 2011 +0000 Polymer: sanitize backface culling Keep track of which side is getting culled, swap around mirrors, swap around model drawing. From-SVN: r2032 commit 4128ca72de99d7ef943fa8741e2752458a5b6e0d Author: Philipp Kutin Date: Sat Sep 17 15:26:52 2011 +0000 fix picking From-SVN: r2031 commit da66b2f95e61a5ea52f68a897a45a996472d18d6 Author: Philipp Kutin Date: Sat Sep 17 14:26:02 2011 +0000 More natural mouse picking in software mode, closer to "what's under the cursor is picked" but still not perfect. In particular, sometimes a wrong wall is selected, and sprites don't get picked through portals. As a rule of thumb, don't be too far away from the objects you're modifying in 3D mode. From-SVN: r2030 commit 5933e521c77b57a246e51c126fcd3f98516ca68b Author: Philipp Kutin Date: Sat Sep 17 14:25:42 2011 +0000 In the textured 2D mode of Mapster32, only texture non-grayed out sectors. From-SVN: r2029 commit 999331deecacf649d1d4ba00dd0368625e847134 Author: Philipp Kutin Date: Fri Sep 16 19:17:48 2011 +0000 Three-way clipping in Mapster32 (still toggled with 'N): on and off as before, and additionally a mode that doesn't clip against masked walls and sprites. From-SVN: r2028 commit 91c0ae43c22bc2ebd0c665ae01aa3f5207d79bd6 Author: Philipp Kutin Date: Thu Sep 15 19:31:44 2011 +0000 In the editor, when rescaling the texture after dragging a wall-point, also traverse the TROR neighbors. From-SVN: r2027 commit c4e853e742745f191f3f8e443730036a641f6317 Author: Philipp Kutin Date: Thu Sep 15 17:05:00 2011 +0000 Add high-resolution timers C API for profiling. The functions are called uint64_t gethiticks() and gethitickspersec(). For SDL 1.2, the timer has the same resolution as getticks (1000 Hz). For Windows and SDL 1.3, the resolution of the underlying perf-timers is used. The only user of these functions right now is some TROR on-screen debugging code. Revert an earlier change regarding r_preview_mouseaim. We can't do the check because editstatus is set later. From-SVN: r2026 commit 9b82846df42b020269a970b3bf07ecadeefe7eb5 Author: Philipp Kutin Date: Thu Sep 15 17:04:37 2011 +0000 - Add new trueror1.map that showcases the functionality and limitations of the additional rendering pass - Remove r_preview_mouseaim cvar from the game, since it's only for Mapster - sdlmusic.c: (Failed) attempt to fix a call of waitpid() with a non-existent process ID in the external MIDI playing code. I think there's a race there... From-SVN: r2025 commit e61a6284eeeecddea28bdd57a87664d3bb386bf9 Author: Philipp Kutin Date: Thu Sep 15 17:04:14 2011 +0000 Support for drawing 'island sectors' for TROR/classic (and with limited functionality, Polymost). The new feature can be enabled/disabled with the 'r_tror_nomaskpass' cvar. The basic idea is that when drawing lower or upper levels, a first pass is performed that ignores all red walls for which the TROR nextwall link 'towards' the viewer arrives at a red wall. Thus, in the worst case, there can be up to twice as many rendering passes now (when it is discovered that the no-mask-pass isn't different that what would be drawn with the ordinary one, the latter is skipped, since we've already drawn all needed geometry). Hovever, this kind of multi-pass splitting is only suitable for simple scenes, like the upper subway in the TROR test map. In particular, multiple islands shouldn't 'see' each other. Two issues are worth mentioning: first, care needs to be taken for translucent ceilings or floors, since drawing them twice isn't the same as drawing them once. This is done for classic, but not for Polymost. Second, sprites (which are always drawn _after_ the geometry for a given pass) are still clipped to the geometry of the ordinary pass, resulting in their disappearance from certain angles. -- Additionaly, a change made it into this commit that fixes redundant collection of sprites in TROR:classic/Polymost. From-SVN: r2024 commit 3c7d49573266fbc4caa9545157494e0e6d3a57fd Author: Philipp Kutin Date: Thu Sep 15 17:03:50 2011 +0000 misc. cleanup: - remove 'imageSize' global which was always yres*bytesperline and only used once - some clearbuf() -> Bmemset() because I find the latter easier to read - remove some clearbufs to 0 of some global arrays on init From-SVN: r2023 commit 693381e9ec42de634a0bee70b02aff682393e652 Author: Philipp Kutin Date: Thu Sep 15 17:03:29 2011 +0000 Make uninitialization sequence more consistent across the editor code. It's always like this now: ExtUninit -> (writesetup, misc.) uninitengine -> (uninitsystem -> (uninit timers, mouse, ...)) exit() Some paths still lead to a plain exit(), like failures in cache1d.c or mdsprite.c From-SVN: r2022 commit 7f0eb3f90d0c1438515c28911eaca167bec18547 Author: Philipp Kutin Date: Thu Sep 15 17:03:08 2011 +0000 In camera viewscreen tiles, also draw upper and lower TROR levels. Works in any renderer because it's drawn with the software one... Also add a hack to make Polymer realize that viewscreen tiles can change each tic so that they don't show a static image anymore. From-SVN: r2021 commit 589b988bb789b6610a360ac12bc55d1cc00d53a4 Author: Philipp Kutin Date: Thu Sep 15 17:02:52 2011 +0000 Make a couple of variables static in the engine; don't initialize umost/dmost with other than base levels, since the y*most arrays are copied there later. From-SVN: r2020 commit 830d1ad910952ebd0edd86b0b25862d5d1fddc73 Author: Philipp Kutin Date: Thu Sep 15 17:02:35 2011 +0000 - In the editor, make bunch-equal-making [J] stricter, because the way it was handled could lead to a bunch whose floors and ceilings covered different areas. A fix for the reduced functionality arising from this change is underway. - Rewrite a small portion of code using yax_vnextsec() in game.c. From-SVN: r2019 commit 8f73233b5655d134ad7582218c427bb9a69e7a87 Author: Philipp Kutin Date: Thu Sep 15 17:02:12 2011 +0000 Engine: add funtion 'yax_vnextsec(wall, cf)' to C API. It's often useful when dealing with sectors on the two sides of a bunch. Make yax_globallev and yax_globalbunch variables non-static. Rewrite a TROR-related bit in the engine code using the new function. From-SVN: r2018 commit 4796c4cd14e6fc1376255f39aaf81537fd55dae3 Author: Philipp Kutin Date: Mon Sep 12 15:03:51 2011 +0000 fix a couple of editor issues: - one reported by Micky: http://forums.duke4.net/topic/3911-true-room-over-room/page__view__findpost__p__106610 - malloc(0) call when saving a map with no sprites - update 'asksave' after Alt-S and corrupt-check on starting a new map From-SVN: r2017 commit e4d608dc520946ee8a03bc14514e4a1fad284075 Author: Richard Gobeille Date: Mon Sep 12 06:25:50 2011 +0000 Add a couple of missed sanity checks for accessing player and sprite structure members as vars. Should fix crashes with stuff like "ifvare player[some value greater than MAXPLAYERS].kickback_pic blah" From-SVN: r2016 commit b3f0d2fee3965aaccdf9caf4d06aa83220f447c1 Author: Philipp Kutin Date: Sat Sep 10 15:45:11 2011 +0000 engine: In setbrightness() and qsetmodeany(), call setpalette() only if the palette changed from the last one (either globally or within the last call of one of the function). This fixes the ugly OSD flickering in 8-bit mode when a screen tint effect is in action (such as when being hurt or snotted on). From-SVN: r2015 commit 52eeeb78f01a17eadc4537ed729b2b680d166186 Author: Philipp Kutin Date: Sat Sep 10 15:44:53 2011 +0000 A couple of trivial/cleanup changes. setvgapalette() is removed from the engine, since it had no users. From-SVN: r2014 commit 76391c0bbc8ec01729ca02c13fcf60d4a96b49a7 Author: Philipp Kutin Date: Sat Sep 10 15:44:31 2011 +0000 Mapster32: when changing screen palettes, pass flag 2 to setbrightness(). This will prevent it from calling gltexinvalidateall() when e.g. submerging and resurfacing, mimicking the behavior of the game, where only gltexinvalidate8() is called in such situations. From-SVN: r2013 commit 106d4ed860ec610f9ee2ccbfb573c10e48e000be Author: Philipp Kutin Date: Sat Sep 10 15:44:16 2011 +0000 Mapster32: make the heinum&2 and stat inconsistency be displayed only once with 'corruptcheck now', but still print each corrected one on tryfix. From-SVN: r2012 commit 7ef307efff4f881d490c0744598acf6d0675945c Author: Philipp Kutin Date: Tue Sep 6 17:46:50 2011 +0000 sdlayer.c: also SDL_WarpMouse() in debugging builds. This has at least three effects: 1) Mouse turning works with SDL 1.3 2) The mouse pointer can't leave the window area with the console up, so that focus always stays with the application 3) Menu selection using the mouse doesn't work. Not dramatic IMO. From-SVN: r2011 commit 873f824b9978e1cc769014a36d6c8cef41f73c7d Author: Philipp Kutin Date: Tue Sep 6 17:46:34 2011 +0000 polymer.c: Fix a potential zero-size calloc call when a two-walled sector is present (like in E4L1). Also sneak in a trivial change in cache1d.c From-SVN: r2010 commit 40a263f7829ecac6c0b0216bad9a3718ff216394 Author: Philipp Kutin Date: Tue Sep 6 17:46:17 2011 +0000 Using this dynamic checking tool: http://embed.cs.utah.edu/ubc/, fix two issues with signed integer overflow. One is related to clipping and the other to Polymost mouse-picking for overlong walls. Many more remain especially in the 8-bit rendering code, but I expect many of them to be intended. From-SVN: r2009 commit 7f5b9fb842d6f0ffa6ac07039845fe7e3cc48868 Author: Philipp Kutin Date: Tue Sep 6 17:46:00 2011 +0000 Tweak the source so that it can be built by clang. The only necessary change is to remove a couple of 'inline's for functions with external linkage, which seems to be a GCC convenience. From-SVN: r2008 commit c8095d8d8748e36f45cfebe08cba58fda0b431df Author: Philipp Kutin Date: Tue Sep 6 17:45:39 2011 +0000 mdsprite.c: prevent a couple of float divides by zero and save model file name into m->head.nam after loading (but before preprocessing for Polymer) From-SVN: r2007 commit c6d2edc67d17b2d029f6e44cce04be63fd29da07 Author: Philipp Kutin Date: Tue Sep 6 17:45:21 2011 +0000 Make Polymer declare a callback function G_Polymer_UnInit() that is called whenever we change to another renderer etc. and define it for the game and editor. The purpose of the function is to clean up references to Polymer resources like lights. This fixes 1) all lights becoming spot lights in the game and 2) an issue with maphack lights in the editor (can't recall which exactly). From-SVN: r2006 commit 76d6002ca3e876c172f979afa3cf4405e3cefb0c Author: Richard Gobeille Date: Sun Sep 4 23:06:12 2011 +0000 Fix crashes on 64-bit due to unintended address truncation on ptr vars From-SVN: r2005 commit fac46eb73f61b02f3a1a74fee2d561e9204e1af1 Author: Philipp Kutin Date: Sun Sep 4 19:44:51 2011 +0000 Better handling of tsprites that are duplicated through TROR portals. Specifically, now also consider the sprite tile's yoffset, and fix an issue when a tsprite got duplicated 'toward' the viewer. Also add a couple of tests in trueror1.map. From-SVN: r2004 commit b44ce1b205ab033bd5e1c90373236fa0c4523634 Author: Philipp Kutin Date: Sun Sep 4 19:44:24 2011 +0000 Unbreak zip support as another means to group files. Using 16-bit integers to hold file lengths is certainly very frownworthy. From-SVN: r2003 commit ad2c8b2a42dddee07c087576889d34472342dcad Author: Philipp Kutin Date: Sun Sep 4 19:44:07 2011 +0000 Prepare polymost.c for proper umost/dmost clipping of TROR passes. No real functional changes. From-SVN: r2002 commit 4238ff17f67813483c5c8d42fd743876c8e08c99 Author: Philipp Kutin Date: Sun Sep 4 19:43:48 2011 +0000 Move the fixspritesectors call and the start sector updating into ExtPreSaveMap(). This makes the latter also correct when testing a map from the editor. From-SVN: r2001 commit ff3aa5a47e5eec8631890983251cce9560d9c764 Author: Philipp Kutin Date: Fri Sep 2 22:15:43 2011 +0000 use updatesectorz instead of updatesector for the startsectnum updating when saving a map. From-SVN: r2000 commit 00885f49a74da261aa29ef0cf5f89a96b14d739d Author: Pierre-Loup A. Griffais Date: Thu Sep 1 20:11:22 2011 +0000 synthesis: require /bin/bash synthesis.sh has bash-isms, so sh or dash won't cut it. From-SVN: r1999 commit 397ccb9b6aba868bcc1c22d1934aec4fc2eb466f Author: Philipp Kutin Date: Thu Sep 1 19:58:40 2011 +0000 Oops... From-SVN: r1998 commit d43f3ca91875e9d6529be82ff264551353ba2691 Author: Philipp Kutin Date: Thu Sep 1 19:53:05 2011 +0000 BACKSPACE key in 3D mode now deletes a red-wall link when aimed at a wall or mask. With script_expertmode enabled, SHIFT-BACKSPACE clears the upwall link and CTRL- BACKSPACE the downwall link. These functions are useful because the automatic nextwall determination code sometimes gets it wrong (not corrupting anything) or if you want to vertically displace a sector attached to a higher or lower level. Also add the exploding ceiling example to the TROR test map. From-SVN: r1997 commit 65d84e38eda6aacc1e79fac6ff40006ddfa9ab36 Author: Philipp Kutin Date: Thu Sep 1 18:38:13 2011 +0000 Much more elegant solution to updating the player's sectnum when passing through TROR portals that works with a little help from updatesectorz() (change not visible from CON code). Relies only on the presence of an extension whose portal isn't blocked and also plays nicely with corner cases like being shrunk and enabling the jetpack. This should fix the upward moving platforms in WGR2. From-SVN: r1996 commit a591de4d288e20443b6eab0b1e7e30ce5d40b585 Author: Philipp Kutin Date: Thu Sep 1 18:37:53 2011 +0000 * game and editor: emit a warning when a search-path directory specified on the command-line isn't found (instead of saying nothing) * editor: Move inconsistent (stat&2)/heinum detection into the corruption checker. This makes a lot of original maps spew countless 'errors', but it's preferable for new maps since such floors and ceilings could behave strangely with TROR. From-SVN: r1995 commit f1c33e90384077d4e4184f09ac5cecc1594cdf21 Author: Philipp Kutin Date: Sun Aug 28 17:31:08 2011 +0000 polymost.c: remove the rest of the rendmode 1 and 2 code from the build From-SVN: r1994 commit e07f86c9f42ac9c65a9a6c50c626b7e1c618be3f Author: Pierre-Loup A. Griffais Date: Sun Aug 28 04:42:27 2011 +0000 Polymer: fix leak of GL query objects In cases where performing occlusion queries for multiple red walls leading to the same sector, we would sometimes leak a number of query objects. This was apparently harmless on NVIDIA drivers, but would leak tons of memory on ATI. From-SVN: r1993 commit 1d33f6cac61cc2d42454b35ddf63554fa36a4688 Author: Evan Ramos Date: Sat Aug 27 05:08:31 2011 +0000 weapons.con.sample: fix a potential bug modders may encounter: use the special G_Draw temp variables in G_DrawWeaponTile(_crystal) instead of the ones intended for individual drawing states From-SVN: r1992 commit f03db2fee304a403061d766519bd642b0fd01ff7 Author: Pierre-Loup A. Griffais Date: Sun Aug 21 19:41:34 2011 +0000 Polymer: fix sector masks translucency. The code was using the Polymer-cached version of the sector cstat to determine the translucency of its diffuse material, meaning it would never get it right on the first try; that's what you get for having completely different variables named 's' and 'sec'. From-SVN: r1991 commit b2eeb24a3068277feb2d800bccbf563cffb73750 Author: Pierre-Loup A. Griffais Date: Sun Aug 21 19:41:22 2011 +0000 Polymer: Don't draw back faces of sector masks. We normally enable backface culling always, but turn it off for two-sided sprites; we need to make sure it's re-enabled after that as sector masks are drawn after. From-SVN: r1990 commit 84ac18a96c25d38b5bed13e5f15a9d7bacd19bd0 Author: Evan Ramos Date: Sat Aug 20 23:28:36 2011 +0000 quotes don't print at all if blank From-SVN: r1989 commit 12db2115ceffc55aa61ac3d6ae829334f8a34c5b Author: Evan Ramos Date: Sat Aug 20 23:28:19 2011 +0000 add weapons.con.sample, a direct port of the HUD display code to CON From-SVN: r1988 commit 35517dbadc9d58397ff8424b7226596d318ad6af Author: Evan Ramos Date: Sat Aug 20 23:28:14 2011 +0000 add support for the include command to names.h loaded by Mapster32, and names.h no longer requires # in front of commands for CON compatibility From-SVN: r1987 commit 63f584423542fbd4661bed1dd6459e45fc6cc375 Author: Evan Ramos Date: Sat Aug 20 23:28:06 2011 +0000 change the help dialog to say 'demo.edm' instead of 'demo.dmo', change support for drag and drop demo files from '.dmo' to '.edm', and change the debughelp dialog to remove the reference to the removed '-nD' gamevars.txt dumping parameter From-SVN: r1986 commit b6eab38eb6ff6a0614dd7e2a3ffada61a83e1d04 Author: Evan Ramos Date: Sat Aug 20 23:28:02 2011 +0000 gut and update enhance.con.sample From-SVN: r1985 commit b0d64fb084a8c28fc7340fb5e6bcca36f695d8ce Author: Evan Ramos Date: Sat Aug 20 23:27:58 2011 +0000 update soundefs.h to match the final v1.5 DEFS.CON From-SVN: r1984 commit 31560e056aebc93936e3b98de48ec7e392f84c66 Author: Evan Ramos Date: Sat Aug 20 23:27:46 2011 +0000 add two tile labels which Todd forgot to move from GAME.CON to DEFS.CON and therefore did not make it to names.h From-SVN: r1983 commit dedc6eab287fbe7e8c1e14668655c045c1c4a77c Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:06:00 2011 +0000 Polymer: fix external view. Some of the ROR code was operating under the assumption that drawasks always correspond to one call of polymer_displarooms(), but that's not necessarily the case; external view draws all sectors from the top polymer_drawrooms(), which was causing crashes. Just ignore the sector mask queues in external view mode, we already don't draw masked walls. From-SVN: r1982 commit cc72c25383a87f1f7f64beef55cb676f66ebabdc Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:05:49 2011 +0000 Polymer: propagate lights across vertical boundaries. Check all the bunch siblings if we get a floor/ceiling hit and walk them if their own planes hit. From-SVN: r1981 commit 9c87a11fc96420ada7c4b99bc13596a8fd7c64d6 Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:05:38 2011 +0000 Polymer: add preliminary support for sector masks. When walking the sectors in displayrooms, detect floor/sector masks to place them in a mask queue. The queues are allocated on the heap, but a stack pointer is maintained by the displayrooms to allow it to play nice with mirror recursion. Right now the masks are drawn after all of drawmasks is finished; that means you can see sprites and wall masks through sector masks, but not the opposite. There is a slight attempt at blending far to near, but nothing too conclusive yet; that means that in some cases some sector masks won't be visible through other sector masks, but it should work for trivial cases. The next step would be to copy all the drawmasks logic into Polymer and have it (attempt to) properly interleave sector masks where they belong in the blending order. From-SVN: r1980 commit 8d9df05c08eddd8c9c6034a4505ce07422b5873d Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:05:24 2011 +0000 Polymer: Don't draw 1-way walls twice. Previously they would get counted both as 1-way walls for immediate drawing and as mask walls for delayed drawing. From-SVN: r1979 commit b8fb8b09309990cdf4e8ef02f32747b96c82efc3 Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:05:14 2011 +0000 Polymer: Don't bother fogcalc()ing invisible planes. Doesn't actually matter that much. From-SVN: r1978 commit 5ac554c82b149469319a10bebbffe5eea987e881 Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:05:04 2011 +0000 Polymer: handle floor/ceiling translucency. Assigns the right alpha value to floor/ceiling planes if their translucency bits are set and make sure that changing the cstat now triggers an update of the material for editing purposes. This doesn't do anything by itself, but will be needed to correctly draw floor/ceiling masks. From-SVN: r1977 commit f4d6b13ee97945742c33bb485042eb8bec1c0d5c Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:04:53 2011 +0000 Polymer: Reorganize main displayrooms loop a bit. When walking the sectors, put more drawing work between queuing and reaping the occlusion queries to potentially make them more efficient. From-SVN: r1976 commit 25d65310a2f811f64f451e713bf38a1b6dfb16c5 Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:04:42 2011 +0000 Polymer: Correct(er) TROR walking. Enumerate the vertical siblings of each walked sector and check them against the current frustum. No occlusion queries yet, but that should correct any missing sectors until a flaw in that logic is discovered. From-SVN: r1975 commit 07869fab175d97ce236c73fbff2b54959b69b98e Author: Pierre-Loup A. Griffais Date: Sat Aug 20 21:04:28 2011 +0000 Polymer skeleton cleanup. Reorganize polymer.c a bit to match the order of prototypes from the header, move macros from the middle into the header. From-SVN: r1974 commit b8fa5599fab78f0a3c1b12ff5d12797faa81e61c Author: Philipp Kutin Date: Sat Aug 20 11:54:16 2011 +0000 disable undo/redo editor feature until I can debug the disappearing sprites From-SVN: r1973 commit ba745632d1c1d20c04523fb31ac26a99a9c7e13e Author: Philipp Kutin Date: Sat Aug 20 11:53:52 2011 +0000 disable hidden switch heuristic of r1968 From-SVN: r1972 commit 807f406bfd63342a78b78e4ee50e19f0c0d878b4 Author: Philipp Kutin Date: Thu Aug 18 22:01:18 2011 +0000 slight tweak for software renderer sprite picking: don't pick them if they're behind a TROR portal from the current position. From-SVN: r1971 commit f14cdc5e1f9f1e0fd3458d082f539a2ad28bd60d Author: Philipp Kutin Date: Thu Aug 18 22:01:01 2011 +0000 Make Ctrl-Alt-A also remove gray walls in the side-view mode. This makes TROR-heavy maps look much less cramped when used in conjunction with Ctrl-A. From-SVN: r1970 commit b74d8b3bfd3f166e730b4f8f2df6de09c269b3ee Author: Philipp Kutin Date: Wed Aug 17 18:52:54 2011 +0000 Various cleanup work: - fix an earlier 'oops': make highpals load correctly again - maphack lights shouldn't be double-loaded now - slight tweak to the loading screen fadein/out timing - two bound checks - make some variables static in engine.c From-SVN: r1969 commit 0744d62317738352a5abb103617d1cf16e501a1c Author: Philipp Kutin Date: Wed Aug 17 18:52:16 2011 +0000 Take a stab at hidden model switch handling. There are at least two ways by which switches have been hidden in the original and user maps. One is to make it face a wall, and another is to 'embed' it in e.g. the floor, like the monitor with the burning fuse in E4L1. Both kinds show up when the switches are rendered as models, revealing the secrets that the mapper sought to hide. My proposal, implemented in this commit, is to apply a heuristic for such switches at premap and make them invisible (set cstat bit 32768). The conditions are re-checked during the game in case there is a switch coming out of the floor, for example. A new spriteext bit is used for this feature. From-SVN: r1968 commit 966ca72709af7bfe15d1e4cd0bc9f3b66bf393a9 Author: Philipp Kutin Date: Tue Aug 16 19:17:45 2011 +0000 * "Fix" two bugs introduced by r1450. In quotation marks, because I merely tracked down the offending changes without understanding them. Mild breakage of TX's ROR is expected. The two bugs are: - RPG projectiles don't pass through water - can't emerge from slime in bobsp2 * Coalesce Polymer lights that are at the same position for FIRE-like sprites so that only one light is actually generated. This is good for usermaps that have multi-sprite fires, like bobsp2 again. From-SVN: r1967 commit d915da5eef805f851511b059107e12477b6e9684 Author: Philipp Kutin Date: Mon Aug 15 15:46:42 2011 +0000 fix sector updating between TROR bunches, leading to 'being stuck' glitches. Difference: one character. From-SVN: r1966 commit dbd16d2857056fb77512439b42cd5e86efe6ad82 Author: Pierre-Loup A. Griffais Date: Mon Aug 15 03:41:42 2011 +0000 Fix colored fog in Polymer. This fixes a ridiculous interaction problem between non-black fog and additive lighting passes. Plagman is stupid. From-SVN: r1965 commit be264c1e3714e783f5116853c1c6c9965b3cfd44 Author: Richard Gobeille Date: Fri Aug 12 15:40:28 2011 +0000 Fix gamearray overallocation on 64-bit... was being allocated as (array size * sizeof(intptr_t)) when the struct actually contains a ptr to a block of int32_t From-SVN: r1964 commit 8b556cfb78a5aa1a386e4151b50ea7e74afbc239 Author: Richard Gobeille Date: Fri Aug 12 06:07:21 2011 +0000 ENet 1.3.3 From-SVN: r1963 commit 60d9a5bcd1306b98e09ce02b0e2fb1ae7a79e3ca Author: Philipp Kutin Date: Thu Aug 11 21:49:18 2011 +0000 fix rotscrnang weirdness for any r_usenewaspect From-SVN: r1962 commit 2136b05aa948bc9ee9050449c6482f2863c6d129 Author: Philipp Kutin Date: Wed Aug 10 11:58:59 2011 +0000 make r_usenewaspect imply NOT glwidescreen (i.e. disable r_anamorphic there, because that would be redundant). r_projectionhack is still active, but doesn't seem to do much. From-SVN: r1961 commit 680e288c05dbb636da0957fb7f5bd026815997a0 Author: Philipp Kutin Date: Wed Aug 10 11:47:23 2011 +0000 * fix screen warping with r_usenewaspect: now you have a larger FOV when being shrunk * fix 'squishing' when taking off shrunk (the reason was TROR game code using updatesectorz) and a potential sector[-1] access From-SVN: r1960 commit 9d580218db82b474f615b241299ffff598208c36 Author: Philipp Kutin Date: Tue Aug 9 16:03:56 2011 +0000 * Address http://forums.duke4.net/topic/3911-true-room-over-room/page__view__findpost__p__103306 by using setspritez() instead of setsprite() for the sectnum updating. * Change 'yax-nextwall(0/1)' to 'upwall/downwall' in the corruption checker, makes it much nicer to read. From-SVN: r1959 commit 0760607718ff30e7d02dfc284838ea68a305959c Author: Philipp Kutin Date: Mon Aug 8 19:30:24 2011 +0000 don't crash wall alignment with void-tiled walls From-SVN: r1958 commit 4460790aac12889ec13254dad441c7b6974d0b55 Author: Philipp Kutin Date: Sat Aug 6 11:50:45 2011 +0000 * skip grayed out sectors when changing tags in 2d mode * make Ctrl-Alt-A (formerly 'toggle inner gray walls') now remove all gray walls entirely in 2d mode * make r_usenewaspect enabled by default From-SVN: r1957 commit a439fdd18b4747c6aa42054d77afeb30bfe88a4a Author: Philipp Kutin Date: Wed Aug 3 17:22:46 2011 +0000 Add a warning when calling {save,load}mapstate from EVENT_ANIMATESPRITES (forgotten from earlier changes). From-SVN: r1956 commit 6883cf84011a1929ace119b0545dad6a54870332 Author: Philipp Kutin Date: Wed Aug 3 17:22:25 2011 +0000 Lots of M32script tweaks: * fix breaking out of 'switch' blocks and compilation of the 'default' case * Have a way of assigning 'special function' menu [' F] entries to script states. Writing a string literal after the state name will register the state under that name. Menu names are limited to 24 characters and it's possible to have up to 16 of them. * new branching command 'ifinteractive', true if a state runs from the menu mentioned above. * new command: getnumberfromuser <> "query_string" See 'state collect_teleporting_sectors' in a.m32 for a combined usage of the new functionality. From-SVN: r1955 commit 3bb73894a67a6c02804f193c05ebd696d34edbf5 Author: Philipp Kutin Date: Mon Aug 1 19:04:41 2011 +0000 fix a typo that made TROR-nextwall corruptions only detected for the ceiling and write an auto-correction routine for inconsistencies with them. From-SVN: r1954 commit e5124fb91ebfd8d30deec9797d30f37249e31f66 Author: Philipp Kutin Date: Sat Jul 30 20:36:04 2011 +0000 Patch up this issue: http://forums.duke4.net/topic/4685-glitch-on-keyboard-customization-page/ by setting the key_names[] characters in the non-ASCII range to '?' on Windows From-SVN: r1953 commit c7f690b3e48b0213814236bba139dfe8fc1a23ed Author: Philipp Kutin Date: Sat Jul 30 13:03:07 2011 +0000 * a.m32: new state 'correctslopes' which will check all ceilings and floors for a stat&2 and heinum mismatch and correct accordingly (the result isn't visible, but such an inconsistency can prevent planes from TROR-joining) * helper feature: when shade preview is enabled, the ceilings and floors of highlighted sectors are shown in pal 6. This makes it possible to highlight the TROR-joining candidate sectors in 3D mode using e.g. 'sethighlightsector searchsector 1' while aiming at the respective ceilings and floors, and get visual feedback. * when failing TROR-joining early ('no consistent joining combinations found'), print to the console why it failed. * more Makefile.deps updating From-SVN: r1952 commit 64c2e6a31309e5de46e5159b027e32cd0d0aaa5d Author: Philipp Kutin Date: Fri Jul 29 22:08:02 2011 +0000 update Makefile.deps From-SVN: r1951 commit 8767c1d1f4bd2a32ecec7a677eb5dac3f927c1a9 Author: Philipp Kutin Date: Fri Jul 29 22:07:49 2011 +0000 maint 2: refactor bits of code that twiddle/untwiddle pointers for persistent storage into a G_Util_PtrToIdx() function From-SVN: r1950 commit 57ce886baec7a02cfba26487ee90c2cf80311bad Author: Philipp Kutin Date: Fri Jul 29 22:07:28 2011 +0000 maint 1: refactor 3 redundant instances of the same code into G_ResetInterpolations() From-SVN: r1949 commit c95a0075b9771ad678486f2cc46ccae2e71d046c Author: Evan Ramos Date: Thu Jul 28 21:12:02 2011 +0000 move tiles.cfg out of eduke32/samples/ into eduke32/ and update synthesis.sh to reflect that From-SVN: r1948 commit cd12464f431414e6acb381f66e44af12c5c736f1 Author: Evan Ramos Date: Thu Jul 28 21:10:59 2011 +0000 minor change in duke3d.def.sample to link to the wiki, but it still needs a major overhaul From-SVN: r1947 commit a01eded487b68976c1a99184608d598ad328ecd0 Author: Evan Ramos Date: Thu Jul 28 21:09:24 2011 +0000 fix shrinker/expander glowing bug From-SVN: r1946 commit afbaeface7cc411b0fe34805805cd5a5d6457ecd Author: Philipp Kutin Date: Wed Jul 27 19:59:09 2011 +0000 add 'gametics' to the 'dncoords' display, this gives a feeling for how often things are updated wrt the game clock From-SVN: r1945 commit 508c4cba77c628434e783a2777bb1aa2ed2f96b5 Author: Philipp Kutin Date: Sun Jul 24 18:40:10 2011 +0000 More fog/visibility tweaking. This makes Polymost's not depend on the screen width. From-SVN: r1944 commit 33f28ef8955d63ddff6545183e785eec61cd27db Author: Philipp Kutin Date: Sun Jul 24 15:15:57 2011 +0000 * Clean up after myself. It seems that Polymost isn't very clean with handling texture IDs sometimes, so switching between the two GL renderers could mess them up with the last revision. This is fixed now by always uninitializing Polymer when changing from it to another renderer. * New shade/visibility calculation code, which is activated with 'r_usenewshading' (on by default), and is closer to the classic look. Also tweak the FOGSCALE macro to have approximately the same fog distance with all renderers. * Mapster32: END modifier to RShift. If it's pressed when RShift is released, sprites which are in grayed out sectors are also selected; Make changing shade affect all highlighted sprites in 3D mode (when aiming at one of them). * some debug code to watch out for suspicious glGenTexture/glDeleteTextures calls, not active. From-SVN: r1943 commit 674dd52a2c99b3fce572a78ff1d74d302c414a46 Author: Philipp Kutin Date: Fri Jul 22 22:00:53 2011 +0000 Janitorial work part 2, perfect for a rainy day. This fixes a lot of leaks, both on the client side as well as for memory allocated by OpenGL. If you had crashes after a few times of restartvid'ing in Polymer, this should fix it. From-SVN: r1942 commit 0c39e5b8883a87ee5586b5f4c4f80b7f27fa302e Author: Philipp Kutin Date: Fri Jul 22 13:32:01 2011 +0000 A bit of cleanup with memory issues. First, it is now possible to disable the memcache (which is there to cache the texcache) by setting the new cvar 'r_memcache' to 0. Do this if you're constrained on memory or getting crashes when e.g. doing vidrestart often. Also, the memcache will disable itself (and free its storage, if it's there) the first time it fails to allocate. Fix a strcpy with identical arguments in game.c and a couple of uninitialized mem accesses related to Polymer lights. From-SVN: r1941 commit 1347ed45972fe66bdabcc8218e5ae834185e481d Author: Pierre-Loup A. Griffais Date: Thu Jul 21 23:45:12 2011 +0000 Update synthesis with pending versioning changes by TerminX that have been running without problems for a while. From-SVN: r1940 commit 157cacd3dda4e60ea63d542bf5e8fcd1072d735e Author: Evan Ramos Date: Thu Jul 21 23:40:01 2011 +0000 fix my earlier keep.me fix to not print a newline so that the produced files match the svn copy From-SVN: r1939 commit 308d59acccf3f50888ed97785ce268668bd61227 Author: Evan Ramos Date: Thu Jul 21 23:37:23 2011 +0000 delete mistakenly added 'eduke32/source/jaudiolib/obj_win' folder From-SVN: r1938 commit 6527cde7edc0b47567e016e0b8877b043f48a2c2 Author: Evan Ramos Date: Thu Jul 21 22:39:29 2011 +0000 My first commit! The main feature is the addition of -mx and -mh command-line parameters to EDuke32 and Mapster32. These parameters include a con and def "module" respectively. This translates into essentially including the file from the bottom of the compiled script. I fixed the classic buggy behavior of the BROKEHYDROPLANT and REACTOR2 sprites. I also fixed a small, long-standing bug where FRAMEEFFECT1 blurs are not affected by sector floorpal. You can see one example of this by shrinking the Enforcer on the upper inside of the toppled building in E3L11: Freeway. I tweaked the Makefile so that it would automatically regenerate the keep.me files in the $(OBJ) and $(EOBJ) directories after they are deleted for cleaning. One final change is a slight positioning cleanup of both programs' --help dialog boxes. From-SVN: r1937 commit 50edafc0813c5fc8a585055d185f1a63ae18739e Author: Philipp Kutin Date: Thu Jul 21 21:01:31 2011 +0000 fix stupid crash with Alt-C (picnum replacer) From-SVN: r1936 commit cc428156b747e898a9b09066cd244760fc7693f4 Author: Philipp Kutin Date: Wed Jul 20 23:04:20 2011 +0000 Build fix for OSX/PowerPC From-SVN: r1935 commit 8c4759805c0388b9fe6e1d94b05cc0517d5ec8b6 Author: Philipp Kutin Date: Wed Jul 20 22:08:05 2011 +0000 Make useractor's bit 4 mean 'this actor will not move by itself' to make it possible to have it in a rotating sector with full rounding correction. No token name is provided because the three others come from CON and I don't want to clutter the namespace; fix the editor issue where the box wasn't shown on occasion in the tile selector (8-bit) From-SVN: r1934 commit a7103c9aa6ca2b9a60a9061e62555feded21c830 Author: Philipp Kutin Date: Mon Jul 18 19:06:29 2011 +0000 VP8 video playback as (side-by-side) replacement of ANM moving pictures. Usage: For an ANM file .anm/ANM, EDuke32 looks for .ivf, which is the VP8 stream transported by an IVF container. It can be extracted from a WebM file with e.g. mkvextract tracks .webm 1:.ivf (part of Mkvtoolnix, the Matroska toolset) Libvpx is required, and the 'YUV'-->RGB conversion is implemented using a fragment shader, so it's for OpenGL modes only. Also, this commit doesn't enable the code. Unfinished: sound, aspect correction for fullscreen w/ non-square pixels, ... ? --- Make MAXNODESPERLINE in engine_priv.h actually a macro that depends on MAXYSAVES and MAXDIM instead of using the obsolete precomputed value. I think this might have been the cause for the latest patched-up overhead view crash. From-SVN: r1933 commit d51c06f46ffb3977f41b935c30e15242e30d3fa7 Author: Philipp Kutin Date: Wed Jul 13 16:42:29 2011 +0000 Make smostcnt an int32 to prevent overflow (and subsequent crash) with too many saved positions; In Mapster, make it possible to bunch-join an extended with a non-extended floor inner to the first one, so that inner sectors created out of loops can be deleted by joining the sectors then. From-SVN: r1932 commit 077fa6e1a3eb26954ef3999571812f14f4a076a4 Author: Philipp Kutin Date: Sun Jul 10 15:39:21 2011 +0000 * new editor cfg options: corruptcheck_noalreadyrefd (silinces 'already referenced warning'), r_usenewaspect, r_screenxy * Read-only CON access to sector bunchnums by adding the labels '.ceilingbunch' and '.floorbunch' to the CON sector structure From-SVN: r1931 commit 25a9dacabfeea5866ad07b7aaf9f02d08bea7013 Author: Philipp Kutin Date: Sat Jul 9 17:36:02 2011 +0000 * Join-bunch functionality in 2d mode ('J'). When applied to two adjacent extended floors with different bunchnums, this makes them equal so that their sectors can be joined in a next step if their ceiling bunchnums are equal. The two floors also must be non-sloped and at the same height. * slightly tweaked status line, now also displaying the number of bunches * fix a couple of issues unearthed by valgrind and a TROR nextwall corruption when joining sectors From-SVN: r1930 commit 1448d71a7ec08161d23b5638bce115f85e504c50 Author: Richard Gobeille Date: Tue Jul 5 04:56:51 2011 +0000 Fix embedded gog.com duke3d URLs... zero functional changes in this commit From-SVN: r1929 commit be40858e44ea29afc7f2b1f72233d74ea49af28e Author: Philipp Kutin Date: Mon Jul 4 21:20:59 2011 +0000 Addresses posts #180 and #181 of the TROR thread. Specifically, * it is now possible to paste (and have an outer red wall automatically) highlighted sectors into a sector that is extended on one side and non-sloped on the other. For this, the highlighted sectors must be in one connected component. * Make it possible to not display inner gray walls, toggled with Ctrl-Alt-A, but only when no manual grayout (Ctrl-R) is in effect. * bugfix: don't clear original TROR-nextwall link when duplicating extended highlighted sector * m32script: protect wall members relevant to TROR * save autogray (Ctrl-A) and showinnergray (see above) to mapster32.cfg From-SVN: r1928 commit f8156bb218c36fc353ff59379bcec9c324b18a2c Author: Philipp Kutin Date: Sun Jul 3 22:51:28 2011 +0000 * New m32script commands: - sethighlightsector - updatehighlightsector - collectsectors <> <> The latter does a breadth-first search starting from an initial sector and collects nextsectors only when the filtering state, given a sectnum as RETURN input, writes a nonzero value into RETURN. As a usage example, a.m32 includes the state 'collect_teleporting_sectors', that collects all sectors containing an SE7 and highlights them afterwards. This way, it should be possible to retrofit old maps with TROR by distributing small scripts that do most of the work (right now, joining has to be done by hand, though). * corruption checker: for the 'nextwall inconsistent with nextsector' corruption, suggest an alternative fix by searching fitting nextwalls and changing the nextwall of the corrupt wall (as opposed to the nextsector). It will display with a leading '?' in the listing, and can be demanded by suffixing 'corruptcheck tryfix' with it. For example, corruptcheck tryfix 9-21 ? would fix some corruptions in Billy Boy's cranium.map without introducing drawing errors. * fix demo playback (tueidj figured this out) From-SVN: r1927 commit 111a5e6de6f593a986761e04ce9181e91041ad5f Author: Philipp Kutin Date: Fri Jul 1 17:15:07 2011 +0000 * We cansee() now through TROR portals, making enemies recognize you from above and below * fixed subway roof interpolation; also small tweak to make this possible: http://forums.duke4.net/topic/3911-true-room-over-room/page__view__findpost__p__99099 * API change: Sect_{Set,Clear}Interpolation now takes sectnums directly From-SVN: r1926 commit 6f881539d8b70d3dae78de33a42be84e80e47b77 Author: Philipp Kutin Date: Fri Jul 1 12:22:12 2011 +0000 fix MSVC build From-SVN: r1925 commit a2a66dd6476a19b9b7d9f3c972b556181acd4c12 Author: Philipp Kutin Date: Wed Jun 29 19:57:05 2011 +0000 * Fix usage of uninitialized array (\!), which could result in TROR connections being deleted at random when deleting sectors. I guess this is a sign of approaching senility :( * When dragging highlighted sprites, do a setsprite() after each position update. This way, they won't end up on the wrong level * TROR support for SE 31 and 32 in-game, example provided in test map * some uncommited stuff for TROR: SE 6/14 From-SVN: r1924 commit ab4d6f4fc98c5f4e5c1faaa9941d98bb4e423073 Author: Philipp Kutin Date: Mon Jun 27 10:55:08 2011 +0000 make min. resolution 320x200 (Hendricks266's request) From-SVN: r1923 commit d9a33b8f2638bbf104a592f7be842fb1f4a3a248 Author: Philipp Kutin Date: Sun Jun 26 23:29:51 2011 +0000 fix highlighted sector deleting and probably a couple of other inconsistencies stemming from that bug From-SVN: r1922 commit ca8064ea7c83f9893e0a1e4b43cfdec547d5b35d Author: Philipp Kutin Date: Sun Jun 26 21:59:42 2011 +0000 * Make destructable ceilings and floors (SE 13 pointing down) behave well with TROR; also carry sprites and players on the roof of a subway. The latter uses t_data[9] on the pivot sprite. * Make the minimum resolution possible 640x480. Sometimes you'd accidentally enter something like 'vidmode 800 60' and crashes would ensue... * fix a warning From-SVN: r1921 commit 512ae2b46e60c994b2d727eb62841c44f516bbdd Author: Philipp Kutin Date: Sun Jun 26 13:00:31 2011 +0000 Polymost: crash prevention for bad pal sprites (and warning in Mapster 3D mode) From-SVN: r1920 commit 0e9c138d741f6e9da4ced41501a5b130fdf9bd04 Author: Pierre-Loup A. Griffais Date: Sun Jun 26 08:54:02 2011 +0000 Polymer ROR support, but no support for masked floor/ceilings yet. From-SVN: r1919 commit 19a5ae8c2cd16178ffe584a5ef7bcb3454b30963 Author: Richard Gobeille Date: Sat Jun 25 16:37:10 2011 +0000 Fix the blacked out bonus screen and run game.c through astyle From-SVN: r1918 commit f619c8acc90736f3cdefb00def56435d47661454 Author: Philipp Kutin Date: Fri Jun 24 13:23:53 2011 +0000 another small fix From-SVN: r1917 commit 09bb7d721cd0df4934071fbad4025007bbb03e8b Author: Philipp Kutin Date: Fri Jun 24 11:16:12 2011 +0000 Don't crash G_ShowCacheLocks when there are many locks; Better sprite interpolation in subways From-SVN: r1916 commit 96cd1701e4cc6c864d4e266cc4824f7438439565 Author: Richard Gobeille Date: Thu Jun 23 15:41:08 2011 +0000 Patch from Hendricks266 to add "-rts" command line parameter From-SVN: r1915 commit 9638a390b5f75eb8fd0d587f1bd857b284037216 Author: Philipp Kutin Date: Wed Jun 22 19:26:11 2011 +0000 I now understand SE0's From-SVN: r1914 commit ad862486e327e58861a3f84a7f17f2be7af5e81d Author: Philipp Kutin Date: Wed Jun 22 19:12:47 2011 +0000 Make certain sprites in rotating sectors impervious against diverging from their initial position due to roundoff error accumulation. The sprites affected are those with statnums 0, STANDABLE, FX, and FALLER (also SE lights, but that shouldn't be considered permanent) contained in sectors with SE 0, 6 or 14. Fix some interpolation issues with such sprites in passing, though they still jitter on occasion. For usage examples, take a look at the updated trueror1.map. Implementation note: the so instrumented sprites use actor[].t_data[7] to hold a magic number (0x18190000 + pivot spr idx), and t_data[8] and [9] for the initial coords relative to the pivot point. From-SVN: r1913 commit be96e0e70ff713949bc3f42a5fd97c80888bc6aa Author: Philipp Kutin Date: Mon Jun 20 21:07:47 2011 +0000 fix NOASM=1 build From-SVN: r1912 commit ff0e8c3674784c8a0285f4dee63f9ec42d105a37 Author: Philipp Kutin Date: Sun Jun 19 18:42:48 2011 +0000 safer sprintf From-SVN: r1911 commit 0e06d5fa0d91c9ebc30e6549d8e6942a29931265 Author: Philipp Kutin Date: Sun Jun 19 18:30:32 2011 +0000 * Thin out models in memory by removing unused frames. This saves 200MB with DNE on Polymer. * fix memory corruption when loading a Polymer savegame using another renderer and then change to Polymer * fix possible crash in OSD_Exec() and uninitialized mem access in game config reader * move makeasmwriteable() to baselayer.c From-SVN: r1910 commit 14c46ab5cc8c6ce80cf1400cedfdd4c6f4284025 Author: Richard Gobeille Date: Sun Jun 19 00:11:52 2011 +0000 Patch from Hendricks266 and whatever changes happened to be in my tree. I hope they work ;) "The most noticeable change is the addition of the "includedefault" CON and DEF command, which will attempt to include eduke.con (or nam.con, or ww2gi.con), then game.con, or duke3d.def, or nam.def, or ww2gi.def. This is useful for TCs like my add-ons, where for my pseudo-mutators I currently say "include EDUKE.CON", but I also have to juggle this terrible order of paths, so that I can have an EDUKE.CON file in my HRP which says "include GAME.CON" to allow the mainline game to actually run, but also allow DukePlus to load its EDUKE.CON file (since it uses that and not an -x switch), and also allow any custom EDUKE.CON files in the root to be used." From-SVN: r1909 commit c9fd086a7bc4abce180848097a3d7a483b6441af Author: Philipp Kutin Date: Sat Jun 18 13:02:08 2011 +0000 * Tighter y[ud]most clamping in TROR/classic. This fixes the overdraw bug when standing on the rails in the test map. * Voxel tweaks: horizontally scale wall-aligned ones by 5/4, make them ignore per-tile yoffset in classic (i.e. emulate Polymost; I think this is more sensible since they're not clipped to floors/ceilings anyway), make Polymost know the voxel scale * Always cull back-facing, one-sided, wall-aligned sprites (classic/Polymost), irrespective of whether it's a sprite, voxel or model. This can lead to falsely not drawing them in certain circumstances, but IMO that's preferable to visible hidden switches etc. * Change defaults for r_novoxmips to 1 and lazytileselector to 0 From-SVN: r1908 commit 8115478896d94da1fb8b9a5d7cdd61dc60d7c275 Author: Philipp Kutin Date: Fri Jun 17 13:11:19 2011 +0000 also fix eduke32 on x86 and include a script for compiling all four versions, packing each into a fat binary and zipping the whole pack. From-SVN: r1907 commit cfb0524506f83842c3a2c09f681bd7dbf3ae7c51 Author: Philipp Kutin Date: Fri Jun 17 11:58:37 2011 +0000 Replacing 'NSApp' with the value returned from [NSApplication sharedApplication] is the last step to avoid null addresses in the x86 code. Go figure... From-SVN: r1906 commit b98ea6e522d2b0b2f5a007b9c96e8c1caab30b16 Author: Philipp Kutin Date: Fri Jun 17 11:53:41 2011 +0000 A couple more OSX tweaks: pull in 'nibless' SDLMain.m into tree for future hacking, fix backspace ('delete') key in OSD, almost everything to make x86 binaries actually run. From-SVN: r1905 commit e7beb20fa7e14f6280ce0bcb2c747d113d71b0cf Author: Philipp Kutin Date: Thu Jun 16 19:39:22 2011 +0000 Fix mapster's command-line parsing and copy over some of the 'custom mod dir' logic, currently used in the sound board to also find files outside of GRPs. From-SVN: r1904 commit d1ef2319f2503cec107302fc97d14f95020f97e6 Author: Philipp Kutin Date: Wed Jun 15 10:38:12 2011 +0000 A couple of OSX fixes: one 64-bit cleanup, compilation fix on ppc (is that ever used?), nasm command line fix for x86 From-SVN: r1903 commit 9ef31db14689e89d066a22e7c770fe9f79f99c6f Author: Richard Gobeille Date: Sat Jun 4 16:56:47 2011 +0000 ENet 1.3.2 From-SVN: r1902 commit 05021d71d2e770e7f6d52604abddd427bd94351d Author: Philipp Kutin Date: Sat Jun 4 00:06:08 2011 +0000 A couple of tweaks for easier work with TROR: * When TROR-joining and sectors reachable through former red walls could need displacement, ask the user; if something is wrong with the walls of the two components to join, jump to that place and print coordinates of offending wall and its point2 in the OSD * Ctrl-TAB in 2D mode now toggles filling of the currently aimed-at sector; it's not very in sync with the rest of the controls though (e.g. some commands will potentially affect each sector that contains the crosshair) * Fill sectors slightly different so that highlighted sectors above each other are easier to distinguish * In the editor, always clear the screen to a 'rainbow' of the palette before each frame. This makes no-draw ('HOM') and accidental translucency glitches stand out more clearly * a few misc. tweaks, consistency checks, and fixes From-SVN: r1901 commit 642933078e40b6709ca082e61b78bc6940c3d156 Author: Philipp Kutin Date: Sun May 29 23:10:51 2011 +0000 -- TROR: * Mapster32 now makes sandwiches, too: select all floors of a bunch and 'extend them below'. This will put a new sector between the highlighted ones and the their lower neighbors and displace the z's accordingly. Make sure you have enough headroom. * To facilitate the above, RAlt now has two more modifier keys (checked at release time, as usual): for every sector that would be selected, END will select all sectors whose floor bunchnum equals the first (this is useful for sandwiching), and HOME will select all sectors whose ceiling bunchnum equals it (not very useful, but provided for completeness). * Sloping extended sectors is now checked more rigorously -- misc: * When deleting highlighted sectors with DEL, pressing LShift will now always delete them irrespective whether the mouse pointer is over one of them. This is useful for the cleanup of corrupted maps. * 2D drawing is slightly tweaked so that active walls always display over inactive ones From-SVN: r1900 commit 8326e5c2d49588dd14af6b7f3f36a3b406534125 Author: Philipp Kutin Date: Sun May 29 12:30:38 2011 +0000 editor: tweak RShift so that unnecessary gray walls aren't selected; fix ugly bug with TROR joining game: when entering/leaving water or slime, delay changing palette by one game tic to make it look right From-SVN: r1899 commit 64f2ba98dd4b979f7801972c188dde1f4edc991d Author: Philipp Kutin Date: Sat May 28 14:15:41 2011 +0000 fix crash with RTS playback From-SVN: r1898 commit 11d2e9b1abaf37b6ec0c2271a1939ac860cf1926 Author: Richard Gobeille Date: Fri May 27 21:24:01 2011 +0000 Fix CON_SCRIPTSIZE From-SVN: r1897 commit 6bb83297d2a527ae321a2fa5b993902315b9644a Author: Philipp Kutin Date: Tue May 24 21:46:51 2011 +0000 set op support for loop highlighting with RCtrl-RShift From-SVN: r1896 commit a36ef92dfdcdb77463d812fd7b18f95f26ee94b0 Author: Philipp Kutin Date: Mon May 23 22:42:39 2011 +0000 TROR: join sectors to a new bunch. For this, highlight exactly two connected components having the same outline and being TROR-consistent (same height etc.) and press Ctrl-J. Any ambiguity (connect c/f with f/c?, move which component?) is resolved by asking the user. Warning: hot off the keyboard and likely buggy From-SVN: r1895 commit e89940c235f89bdcf02f94842444348af3133998 Author: Philipp Kutin Date: Mon May 23 18:07:45 2011 +0000 Increase default tile cache size to 24M in Mapster32 and add a command-line parameter '-cachesize ' From-SVN: r1894 commit 51c2f8fb56032f1ed9c57a5b8d40e771a71fa24b Author: Philipp Kutin Date: Mon May 23 14:22:32 2011 +0000 fix: loop joining/sector splitting with TROR'ed sectors, rendering bugs due to slopes. change keys: [I] toggles invisibility preview, ['I] toggles sprite invisibility bit From-SVN: r1893 commit 8d62476cffb4c66b22e3e64b7794957b6aa7fa62 Author: Philipp Kutin Date: Sun May 22 21:52:22 2011 +0000 Polymost: * rudimentary TROR support * free mixing of multi- and single-tile pskies * Don't cull models behind you. That is, treat them like floor sprites in that respect. This way large models like corpses don't disappear from the view unexpectedly. Classic: * tweak the last row and column of the translucency table so that e.g. a transparent sprite against a FANSPRITE wall doesn't show up purple (only if Duke3D table is found) Misc.: * fixes TROR-nextwall corruption when deleting sectors * tile selector 'goto' now has also completion * I forgot a file for the non-OpenGL build last time From-SVN: r1892 commit 2cd0e68a2d1962e2dfd29c096087de5e323525a5 Author: Richard Gobeille Date: Fri May 20 02:34:41 2011 +0000 Fix some CON compile errors I introduced in r1857 From-SVN: r1891 commit 0dc2434e4e3a60a3367817c6b804ac8c6ca0073e Author: Philipp Kutin Date: Wed May 18 22:44:09 2011 +0000 * Auto-grayout for plain old sectors toggled with Ctrl-A. When it is in effect, _all_ sectors which fall outside the [min ceiling z, max floor z] bounds of all active extended sectors are deactivated. * make it possible to duplicate from extended sectors; all extensions are cleared from them * lazy hightile loading in tile selector can now be disabled in mapster32.cfg * fixes USE_OPENGL=0 build From-SVN: r1890 commit d7e1c8071f9006575357bcb001c514dd4ec04ccd Author: Philipp Kutin Date: Tue May 17 21:48:13 2011 +0000 Translucent slope texture mapping; make overhead view always display grayed-out walls instead of only non-TRORed ones From-SVN: r1889 commit a58d739fb5b9e44a0a6d74dd73d19c4919e6b123 Author: Philipp Kutin Date: Sun May 15 23:23:10 2011 +0000 yay, I forgot the example and test map From-SVN: r1888 commit c22ca9d3300efde69967bb34696903db5fd78578 Author: Philipp Kutin Date: Sun May 15 23:16:37 2011 +0000 ~-_-~-_-~ lift the curtain for... ~-_-~-_-~ True Room over Room (also known as PROR) (or YAX) ~-_-~-_-~ ~~~~~~~~~~~~~~~~~~~~~~~ ~-_-~-_-~ From-SVN: r1887 commit b5c654a2a2a8fedf0cb63461a7653983737aff93 Author: Philipp Kutin Date: Sun May 15 22:37:24 2011 +0000 * Include file cleanup by dragging most declarations into editor.h * more useful auto-red wall feature: if no structure-changing operations have been applied after highlighting and duplicating, now also paste 'visual' fields of outer walls (this is one example of the use of a system that temporarily keeps track of nextwalls for former red lines) * multi-pkies now have individual parallaxyscale From-SVN: r1886 commit faf08720236bbd739ce457324bcad40fa7b32df9 Author: Richard Gobeille Date: Sat May 14 02:00:21 2011 +0000 Fix SE49 and SE50 breakage From-SVN: r1885 commit da5ca1d3a3f8e3de1d8c587007868e27e40e9941 Author: Richard Gobeille Date: Fri May 13 05:48:22 2011 +0000 Add null ptr check to minitext and fix the quotes for DNCLIP From-SVN: r1884 commit 0767a6ecd47686a605e81faf71c87358f882ecbf Author: Philipp Kutin Date: Thu May 12 23:35:29 2011 +0000 sure enough, I forgot a file From-SVN: r1883 commit cee3355033afd2750ab47d8577f09381e99103dd Author: Philipp Kutin Date: Thu May 12 23:31:13 2011 +0000 -- engine: * support for free mixing of multi- and single-tile parallaxed skies in classic * make visibility independent of yxaspect and viewingrange in OpenGL modes -- editor: * when dragging walls, restore pixel width after that (only for the left and right walls of pointhighlight, and its nextwalls, if any) * pasting on walls and auto-aligning them now carries over a few more fields -- fixes: * visibility in OpenGL modes wasn't incremented gradually (regression due to making 'clamp' an inline function instead of a macro) * memory corruption due to calling qlz_compress with less than the recommended surplus storage of 400 bytes * decorative sprites in the mirror showing non-flipped * make the subway SE message (much) more helpful by showing which sector the game considers to be the track sector From-SVN: r1882 commit 140dccaadf94f516ab8ec0faf0abb970d47defa1 Author: Pierre-Loup A. Griffais Date: Wed May 11 22:15:35 2011 +0000 Only invoke pkg-config for non-Windows platforms. From-SVN: r1881 commit 30cbca37fa15867e4d4a5d73b9470e136c7f1c46 Author: Pierre-Loup A. Griffais Date: Wed May 11 22:14:06 2011 +0000 Fix two warnings I introduced a while back. From-SVN: r1880 commit f7e3f318bf60d25e5e5a417164fd13f3ea5cb517 Author: Pierre-Loup A. Griffais Date: Wed May 11 21:58:19 2011 +0000 Fixes for building on OpenBSD. Doesn't break Linux, pending Win32 synthesis results. From-SVN: r1879 commit 97fd2935a4d932ad86159b0136747edbc616f206 Author: Philipp Kutin Date: Sun May 8 20:12:16 2011 +0000 fix a.m32 script, inserted light SEs now have nonzero repeat From-SVN: r1878 commit 7e074cf78aff94e9ab4dd6e61f067b5862dc5eae Author: Philipp Kutin Date: Sat May 7 18:23:34 2011 +0000 A crapload of random stuff. * Polymer light access to m32script (light[].). As an application, provide a state 'insertlights' that takes the currently active lights and puts them into the map as SEs (e.g. for maphack recovery). * Prototype of a mechanism to gray out certain portion of a map, making them inactive to various, but not all, editing operations. Highlighting a set of sectors and pressing Ctrl-R will make the Z bounds be [(least ceiling z), (greatest floor z)] of all selected ones, pressing Ctrl-R when no sectors are highlighted will reset them. Not sure if it's for production use at this stage... * The 'align walls' feature [.] now has three independently toggleable behaviours: recurse nextwalls (toggled when Ctrl is pressed), iterate point2s (disabled when Shift is pressed), and also copy pixel width (toggled when Alt is pressed). * Make shades clamp instead of overflowing in the editor Fixes: * crash when carrying out certain operations on walls with xrepeat 0 * the Pause key on linux. Also make demo recording start on Shift-ScrollLock because ScrollLock alone is too easily pressed when pausing From-SVN: r1877 commit b85e3ff9913aae9e3e0dc7eb6e5eed076d25d025 Author: Philipp Kutin Date: Mon May 2 21:33:11 2011 +0000 fixes a horrible uninitialized value bug with the tag-labeling system From-SVN: r1876 commit 65005ac7419c6f7b1c58f04eeb2f222e4843bdbd Author: Philipp Kutin Date: Mon May 2 16:58:11 2011 +0000 tweak point deleting for less checksectorpointer calls From-SVN: r1875 commit b9fbce7fba53a655a52afc661627523266df415b Author: Philipp Kutin Date: Thu Apr 28 21:28:33 2011 +0000 Fix more overheadmap crashes, this time with 'Last Pissed Time'. Mapster32 now asks to jump to a sector, wall, sprite, or coordinates with 'J. Also fix crash when pressing '-' (not KP-) when aiming at something with tile 0. From-SVN: r1874 commit 35de0a85bd1f67efb85d943e8c9d5877f871b765 Author: Pierre-Loup A. Griffais Date: Wed Apr 27 14:30:48 2011 +0000 Fix the bug where Mapster32 tile selection would display the detail map of a tile. From-SVN: r1873 commit 3210f5841106fc99096246176bc60e873e558368 Author: Philipp Kutin Date: Mon Apr 25 19:50:08 2011 +0000 Fix two overheadmap-related crashes. From-SVN: r1872 commit 5def62326105b87c4115d5d49722dd05a4bbf80d Author: Richard Gobeille Date: Mon Apr 25 18:58:14 2011 +0000 Fix NAM/WW2GI support... From-SVN: r1871 commit 030c5618f946c9fba6ccf5e922681da48d4192a8 Author: Philipp Kutin Date: Fri Apr 22 22:51:03 2011 +0000 ahem... From-SVN: r1870 commit bb3c0f5c4b35668a2b6b62f8c0c79164ab46a576 Author: Philipp Kutin Date: Fri Apr 22 22:48:06 2011 +0000 Insert two divide-by-zero checks that seem to fix the overhead map crash, but only with NOASM=1. Fix a couple of Mapster32 bugs and prettify some code there. Fix EDuke32 bug where the demo system overwrote boardname[] while using the file picker, making navigation between directories impossible. From-SVN: r1869 commit d75bd9971c370e81d442df369890cfe4b29164d5 Author: Philipp Kutin Date: Sun Apr 17 17:37:20 2011 +0000 fix compilation warning From-SVN: r1868 commit 1673d96fcf277b9fda642e8f9151ae5a1079c252 Author: Philipp Kutin Date: Sun Apr 17 17:01:20 2011 +0000 * Support for entering names instead of numbers in various contexts (TAB-autocompletion included): first, when querying for a tile number, and second: * Tag labeling system for 'link'-type tags, including saving and restoring the tag labels to a separate file '.maptags'. Whether a tag is eligible for linking, is determined by a hardcoded (but extensible via m32script) function. From-SVN: r1867 commit 7b6d282ccd922bcf1eedb878b14059a5c09f64a2 Author: Philipp Kutin Date: Thu Apr 14 20:48:08 2011 +0000 * Correctly draw floor-aligned sprites with non-power-of-two textures in classic renderer. * Sprite cstat 2048 ('use own shade', [N]) now works more or less. (Issues may arise when combined with sector light effects.) * Begin work on 'smart' tag labeling system for Mapster32. Right now, it only displays a '+' after tags with linking semantics. * From-SVN: r1866 commit 7dee839bf665e5570d9851ee30b03a2b6be6ae01 Author: Philipp Kutin Date: Mon Apr 11 22:28:58 2011 +0000 slightly better linehighlight handling in 2d side-view mode From-SVN: r1865 commit ffcc882563d4273641e9c31e2b57ec218bae4544 Author: Philipp Kutin Date: Sat Apr 9 22:38:39 2011 +0000 fix demo playback on 64-bit systems; bump demo minor version number to reflect changes in r1857 From-SVN: r1864 commit 138f7bf96602db17917a204b984421550cd00455 Author: Richard Gobeille Date: Sat Apr 9 18:58:40 2011 +0000 Add missing ENet license From-SVN: r1863 commit b1436dc6ac9dda685e6514954da2b43cb3e46adf Author: Philipp Kutin Date: Sat Apr 9 15:35:46 2011 +0000 Revert 'move sprites with ceiling/floor'-behaviour, maybe fix tile drawing? From-SVN: r1862 commit 26008c7017fd50dbbe0c45947679519839b6f012 Author: Philipp Kutin Date: Sat Apr 9 13:28:28 2011 +0000 another 64-bit fix From-SVN: r1861 commit eb83354389a524fb3ef80ed47891ced21f0f5008 Author: Philipp Kutin Date: Sat Apr 9 13:27:08 2011 +0000 Revise shade preview; fix PGUP/PGDN with selected sectors; allow INS/DEL in 2D side-view mode; 64-bit printf cleanup From-SVN: r1860 commit f49994c813c2c32a4d42cd63de3a757c0846a113 Author: Richard Gobeille Date: Fri Apr 8 22:05:32 2011 +0000 Fix crash from http://forums.duke4.net/topic/3719-svn1857-dukeplus/page__view__findpost__p__80340 From-SVN: r1859 commit 9ae99350299dab6ac8002838d8da44f682cfbea0 Author: Richard Gobeille Date: Thu Apr 7 17:36:11 2011 +0000 Fuck, oops From-SVN: r1858 commit 88d3cc20052aabf79ab3bcf268125638c561b263 Author: Richard Gobeille Date: Thu Apr 7 01:16:29 2011 +0000 Cleaning out my tree... mostly internal changes. Adds workaround to disable texture compression with the crappy fglrx driver on Linux, fixes FIRE sprites so that they don't render at their sector's floorz all the time, changes CON compiler around a bit to use a loop instead of calling C_ParseCommand() 10 million times. From-SVN: r1857 commit 352703dc61da1a43994fdfadd3b1d8a87c1b7cde Author: Philipp Kutin Date: Fri Mar 25 11:42:07 2011 +0000 editor and makefile tweaks From-SVN: r1856 commit 176d54e63370601bf12e4d4e2497a2c6d0fdd527 Author: Richard Gobeille Date: Thu Mar 24 16:55:44 2011 +0000 Fix this fuckery: http://forums.duke4.net/index.php?showtopic=3646 From-SVN: r1855 commit 24bd07ca37c359c52d694544105ad5daa273121d Author: Philipp Kutin Date: Wed Mar 23 17:41:01 2011 +0000 * Lazy hightile loading in Mapster32 tile selector (first display all as lowtiles, then load each one while allowing movement) * Consolidate the various, slightly different, methods of bounding a sprite between a sector's ceiling and floor into one common function * Fixes for accumulated bugs: shade preview, r_shadescale_unbounded, and a couple of unreported ones * Yaks, gnus, and bisons... From-SVN: r1854 commit 9d2958adbc090b0b207745113564277216c36fb9 Author: Philipp Kutin Date: Sat Mar 19 18:16:41 2011 +0000 remove my mudflap related code in makefile.common From-SVN: r1853 commit 9397dade9c0103af3c87ee1a18e7861147596f07 Author: Philipp Kutin Date: Sat Mar 19 18:07:12 2011 +0000 * Comment out some practically dead code (rendmode 1 and 2, pcx screenshots), cutting some 8k from the release binary. * Refactor two nearly identical chunks in polymost.c into one function in the hope of getting some more, but interestingly that did nothing at all. At least it's more readable this way... * Commit, but don't enable, code for writing PNG screenshots (I'm tired of converting them every time). Requires libpng which in turn requires zlib. From-SVN: r1852 commit 4c622d6b417aa18e3748c2fce5edddcf5c3cda8b Author: Richard Gobeille Date: Sat Mar 19 18:01:13 2011 +0000 Don't return the "out of memory" error code from daskinloader() if kplib reports either of the dimensions are 0. Instead, return the generic failure code. From-SVN: r1851 commit 186dfa1672945891b93c57d0d2838f8aa54b0748 Author: Richard Gobeille Date: Sat Mar 19 17:59:09 2011 +0000 angry nerd rage From-SVN: r1850 commit 183206cdbc6a02725c09c6b9f10e5e6e618871f8 Author: Richard Gobeille Date: Sat Mar 19 17:35:49 2011 +0000 Update s_buildDate in preparation for an update of http://eduke32.com/VERSION and eduke32_current.zip From-SVN: r1849 commit a21c4fbfedd86de99da7457019f033b000a9efd4 Author: Philipp Kutin Date: Thu Mar 17 23:37:38 2011 +0000 Tweakery in various places. Engine stuff: * Add 'r_shadescale_unbounded' cvar. When set to 0, OpenGL renderers should never draw completely black objects (currently only implemented for Polymost) Mapster32: * Add 'r_shadescale' to config * In 3D mode, make SPACE behave the same as holding down a mose button: the currently pointed-at object is locked. Required some modification of a.m32 to play well (i.e. not reset SPACE). This is useful by itself but more so in conjunction with the next point * make Alt behave as a modifier with PGUP/PGDN: when aiming at a 2-sided wall, move the other side's sector's ceiling or floor (only this is new). * Auto-alignment of walls can be controlled in a finer grained fashion now: When pressing '.', only the immediate neighbors get aligned. Use Ctrl-. for the old behaviour. * When inserting a point in 2D mode, auto-align the neighboring wall From-SVN: r1848 commit 8305e71f96383ddf1ee32f31eac3dbefa4d71fd6 Author: Pierre-Loup A. Griffais Date: Thu Mar 17 01:27:24 2011 +0000 Don't warp mouse if DEBUGGINGAIDS is enabled; this'll make us ignore events if they happen to exactly go the the center of the screen, but not that big of a deal. From-SVN: r1847 commit 1a705b480b6ae1aaae6a8524eeef7ee92eddf4df Author: Philipp Kutin Date: Mon Mar 14 20:00:13 2011 +0000 fix getnumber256 crash From-SVN: r1846 commit e458d5ab3256071495576dcc6a2e4ef688556d12 Author: Philipp Kutin Date: Mon Mar 14 17:36:46 2011 +0000 fix lone sector drawing From-SVN: r1845 commit 41a4eb517b4f605d42f3f2e6b069887ce96f5daa Author: Richard Gobeille Date: Mon Mar 14 03:10:25 2011 +0000 SDL 1.3 fixes From-SVN: r1844 commit ef0f7c011e6d1802adf96dcb2be8c3dd21f20a7c Author: Philipp Kutin Date: Sun Mar 13 11:59:32 2011 +0000 fixes: various ones accumulated in the forum (falling into infinity, stuck in doors), crash in polymer mouse picker when in void space, creation of surplus loops on sector split when sector has weird geometry. addition: disable sprite sectnum checking with m32script expert mode enabled. From-SVN: r1843 commit f456f7016b7aab70fb3c0e6e3f5a5ae217e7c0ed Author: Pierre-Loup A. Griffais Date: Sun Mar 13 02:23:18 2011 +0000 svn merge -r 1800:1841 ../polymer From-SVN: r1842 commit 3f92f46185ccb6e9f2145858156886a4a6210ebe Author: Richard Gobeille Date: Sat Mar 12 16:37:45 2011 +0000 Disable texture compression when ATI's horrible OpenGL implementation is detected From-SVN: r1841 commit fc286aff5b826dea1c2dec117bb877f2081f7a1b Author: Richard Gobeille Date: Fri Mar 11 21:28:04 2011 +0000 Addresses http://forums.duke4.net/index.php?s=&showtopic=2961&view=findpost&p=77346 From-SVN: r1840 commit 534ab87c04a9b3a59a72b7acad160c938a3a3de5 Author: Pierre-Loup A. Griffais Date: Fri Mar 11 08:01:43 2011 +0000 MD3 export script for Blender, based off the XReal hosted one and modified to not prompt you for shader paths, collapsed into a single file and to avoid transforming normals. This might break for rotations, but I don't think such transforms should happen with a straight import from ASE -> export to MD3. From-SVN: r1839 commit c38ec974ec15be5147f19dba2376941cde03f704 Author: Pierre-Loup A. Griffais Date: Fri Mar 11 04:55:02 2011 +0000 Blender ASE: fix animation import. From-SVN: r1838 commit 6a4a3b1641c22645a487ce39f2f03b546d25ec85 Author: Richard Gobeille Date: Wed Mar 9 18:53:04 2011 +0000 fix mikesnd From-SVN: r1837 commit 551a5152cf94f7e368d67970e368618cffa0ee1c Author: Philipp Kutin Date: Tue Mar 8 23:02:38 2011 +0000 Besides catching a few more corner cases, there's better mouselook handling and a warning (but no fix) for a rare and bad corruption when splitting a sector in this revision. From-SVN: r1836 commit 398f09b802ee1a4381aaf36ff861c3a6a4fc3b9e Author: Pierre-Loup A. Griffais Date: Tue Mar 8 06:54:48 2011 +0000 Add animation support to the ASE import script. From-SVN: r1835 commit a5e33acd7cdc980f838d416500c29987653d0014 Author: Pierre-Loup A. Griffais Date: Tue Mar 8 05:46:33 2011 +0000 Checking in ASE import script for Blender, improved with vertex normal support. From-SVN: r1834 commit dbedc0a643fe943a2912fa876fd541a5e77f7ed6 Author: Philipp Kutin Date: Mon Mar 7 22:56:00 2011 +0000 minor fixes From-SVN: r1833 commit 206469fa43e4ecef2a599aa9b2e8b8cab57174d4 Author: Philipp Kutin Date: Mon Mar 7 16:30:06 2011 +0000 mapster32: new command-line switch '-namesfile ' for overriding NAMES.H; new 'drawlabel ' m32script command for drawing small labels, see end of a.m32 for an example; some special handling for sprites whose tile yoffset is greater or equal their pixel height. From-SVN: r1832 commit 61c28e4ee5d4a0079b405ba7945d965c2f606f2f Author: Richard Gobeille Date: Sat Mar 5 21:38:13 2011 +0000 piss on music in savegames From-SVN: r1831 commit be321841fdf940c8dd56b1ba6c67d82ea63560fa Author: Philipp Kutin Date: Sat Mar 5 12:59:27 2011 +0000 Make RShift/RAlt-selection and various sector operations available in side-view mode. Adds yet another modifier, this time to RShift: if RCtrl is pressed at release time, select only sprites. (If no box drawn, old behaviour of selecting wall-points of line-highlighted wall's loop.) From-SVN: r1830 commit c7e1f9232099dd96530dcb416a261f8cf2cd9a1f Author: Richard Gobeille Date: Sat Mar 5 07:17:00 2011 +0000 Fix a couple of warnings when building with SDL 1.3 From-SVN: r1829 commit b1386e4fa0bda03fa7d5977b597c21064dc6c027 Author: Richard Gobeille Date: Sat Mar 5 07:15:44 2011 +0000 TerminX: have you ever considered to make fire with pal 1 cast blueish light instead of default? sure, I can do that From-SVN: r1828 commit baf2a57b8d522cea91e79d304e9c95c495901adc Author: Richard Gobeille Date: Sat Mar 5 03:57:15 2011 +0000 Update nedmalloc.dll and fix undesirable FIRE/FIRE2 and COOLEXPLOSION1 behavior from http://forums.duke4.net/index.php?showtopic=2961&st=90&start=90 From-SVN: r1827 commit d0fef03b4e3ef80146c8134829aaa19003dd0b3f Author: Richard Gobeille Date: Sat Mar 5 01:41:38 2011 +0000 a couple of multiplayer fixes From-SVN: r1826 commit eb58f30b92772f4c5f3cc5ec2465b4170caf4f77 Author: Richard Gobeille Date: Sat Mar 5 00:29:27 2011 +0000 Fix http://forums.duke4.net/index.php?s=&showtopic=2961&view=findpost&p=60758 From-SVN: r1825 commit c5471edd2e97ea56102d73ebd71de05c34452c0a Author: Richard Gobeille Date: Fri Mar 4 18:47:06 2011 +0000 Add the svn revision to the version string in Mapster32 From-SVN: r1824 commit 1658cdc137d6bbbf69785257de7f54f1a90a948c Author: Richard Gobeille Date: Fri Mar 4 10:09:12 2011 +0000 Add a couple more resolutions to the table in baselayer.c and add the compile date and time to eduke32.log From-SVN: r1823 commit 9588e34fc510cf7c08cdb613f20fb2403b7c5969 Author: Richard Gobeille Date: Fri Mar 4 09:29:54 2011 +0000 Update synthesis script From-SVN: r1822 commit f7937b8d98665aa5e5a3ddb93f35508874ba73e3 Author: Richard Gobeille Date: Fri Mar 4 09:29:03 2011 +0000 Use svn revision numbers in synthesis build strings From-SVN: r1821 commit 400214ba1b66bef126d21a159a467323dbde0aad Author: Richard Gobeille Date: Fri Mar 4 08:50:58 2011 +0000 Consolidate POLYMOST preprocessor define into USE_OPENGL, remove SUPERBUILD preprocessor define, add additional mode to neartag() to skip sprite searches and speed up processing (and enable for CON_OPERATE), fix issue with nearby single instance sounds not playing due to out of range sounds blocking their playback, fix issue with settings.cfg being reset to default bindings when running a mod that specifies its own cfg base name, improve CON structure member interface read/write performance, fix a bug with CON "move" pointer validation From-SVN: r1820 commit f40486aec441d7a5e14044191082758f1958379f Author: Pierre-Loup A. Griffais Date: Fri Mar 4 07:04:42 2011 +0000 Move hardcoded windowed resolution list to baselayer (based off winlayer ones + 1366x768). From-SVN: r1819 commit 7d9656a738ff4022084d306fe4ede84417ea03a7 Author: Pierre-Loup A. Griffais Date: Fri Mar 4 05:33:35 2011 +0000 Adds r_pr_overridemodelscale to help with getting models in-game, also works with HUD models. From-SVN: r1818 commit fd2705ce561fc9a73e154a9b41b9e62877fddc1d Author: Pierre-Loup A. Griffais Date: Thu Mar 3 06:57:42 2011 +0000 Slight tweak to the main loop to be more interactive when the game code runs really slow (as opposed to the renderer). From-SVN: r1817 commit d5e650b827185c55552effa57b2dcf7153c09261 Author: Philipp Kutin Date: Wed Mar 2 21:21:47 2011 +0000 New sector selection mode in 2d mode: if RCtrl is pressed when releasing RAlt, then instead of the sector having to be contained in the rectangle, the mouse pointer must be inside a sector to be selected. This way it's easy to select sectors with arbitrary shapes. Set ops work independently of it, too. Also some annoyance fixes with sprite movement. From-SVN: r1816 commit b5243816263c6017d9d9f65f00a6bb75b83ad32a Author: Philipp Kutin Date: Tue Mar 1 19:50:05 2011 +0000 fix sprite ornamentation From-SVN: r1815 commit e6ffd45fc7fc7faddd0b164b3e2f1efe1ccbdd71 Author: Pierre-Loup A. Griffais Date: Tue Mar 1 05:52:33 2011 +0000 Add custom FOV support for HUD model definitions with the 'fov' DEF token (in build angles). Also adds an r_pr_overridehud cvar in order to preview DEF token changes in-game using the r_pr_hud* cvars. From-SVN: r1814 commit 9192fe66f928ddfc1b27905ee1985944da46c2db Author: Philipp Kutin Date: Mon Feb 28 18:37:49 2011 +0000 more m32 fixes From-SVN: r1813 commit 53343df82dc312d3bbb27f9c2cde82d2ad8a4eef Author: Pierre-Loup A. Griffais Date: Mon Feb 28 03:56:37 2011 +0000 Add Polymer support to rotatesprite, which hooks up highpal amongst other things. From-SVN: r1812 commit cce2602ad4a92c62abcb20af84a056f198be1655 Author: Philipp Kutin Date: Sun Feb 27 23:21:20 2011 +0000 m32 fixery. random z position of inserted sprites is bad! From-SVN: r1811 commit e9586bb9d4a04f8152a69f9201906848b462f95a Author: Pierre-Loup A. Griffais Date: Sun Feb 27 22:11:39 2011 +0000 Fix the build with USE_OPENGL=0. From-SVN: r1810 commit 5fb185694d19e53f95cb35d0f6857f192df5381e Author: Pierre-Loup A. Griffais Date: Sun Feb 27 21:07:37 2011 +0000 Fix warnings when building with POLYMER=0. From-SVN: r1809 commit a04b8b5a533c5d1771c2808398b371ec4c80cbb5 Author: Philipp Kutin Date: Sun Feb 27 19:13:44 2011 +0000 Final round of Mapster32 hardening. Going over the limits should now always produce an error message instead of corrupting the data. Also fixes crash in defs.c (thanks for the crashlog, LeoD). From-SVN: r1808 commit 9aff408f5efac981de69d99493daec3f12716a5e Author: Richard Gobeille Date: Sun Feb 27 18:01:49 2011 +0000 fix monumental fuckup in r1805 that broke pretty much every EDuke32 mod ever From-SVN: r1807 commit e0ab7c8626bc5b74773d9e98a6360d6d9df081c2 Author: Richard Gobeille Date: Sat Feb 26 23:38:18 2011 +0000 MSVC build fix From-SVN: r1806 commit c15a3853662a1286d539ca5baf7fbd5386e0ae94 Author: Richard Gobeille Date: Fri Feb 25 22:50:59 2011 +0000 fix win32 build From-SVN: r1805 commit 4b576fcd279da752d8c21bcea13b843780c0980a Author: Philipp Kutin Date: Fri Feb 25 22:49:56 2011 +0000 Allocate some extra space after static wall[] and sector[] for the editor. From-SVN: r1804 commit c59ed3803d14db063f085d5f38378675de36c2a5 Author: Philipp Kutin Date: Fri Feb 25 22:10:25 2011 +0000 Oops, r1801 crashed Mapster in the undo system. Also less/better automatic wall[].xrepeat resizing on things like attaching a wall to another. From-SVN: r1803 commit 5f431630957e6b35d98529e679e3e98d152d9368 Author: Richard Gobeille Date: Fri Feb 25 21:50:19 2011 +0000 Multiplayer improvements From-SVN: r1802 commit e7698f05d03661aa509e99266f53ccd52bfd75a3 Author: Philipp Kutin Date: Thu Feb 24 20:40:27 2011 +0000 Mapster32 cleanup. The biggest visible change should be the more robust editing near the limits (still not perfect though). From-SVN: r1801 commit 2b711189bb23aca51aabb70d5dc25f9304f274f8 Author: Pierre-Loup A. Griffais Date: Tue Feb 22 02:34:18 2011 +0000 Merge 1775:1799 to polymer-broken. From-SVN: r1800 commit ba1b17f339c9ba54a842f8dca07ada5c20fb4a25 Author: Philipp Kutin Date: Mon Feb 21 23:08:21 2011 +0000 Selective auto-correction option for the corruption checker. 'corruptcheck now' will print numbered tags for each warning, which can then be used like this: 'corruptcheck tryfix 20 34-64'. General cleanup; make mapster32 not depend on enet objects. From-SVN: r1799 commit 6884b14d5e4f5af25993cb0cafd0d4c39a1655ef Author: Pierre-Loup A. Griffais Date: Sun Feb 20 06:07:57 2011 +0000 DREALMSPAL and TITLEPAL were accidentally swapped with revision 1772. From-SVN: r1798 commit c6f1236a0db3a8c6b8e545e3c77a282bbfe37ae0 Author: Philipp Kutin Date: Tue Feb 15 21:02:43 2011 +0000 Mundane Mapster Maintenance Melee, Part 2 From-SVN: r1797 commit 333e66f36a59200cd9b0659efc6cd84532464080 Author: Pierre-Loup A. Griffais Date: Sun Feb 13 23:37:35 2011 +0000 Fix shade updating for swapped bottomwalls. From-SVN: r1796 commit 5a6cf0890c66ec00cbe0a023c98e60c223280f1e Author: Philipp Kutin Date: Sun Feb 13 23:26:54 2011 +0000 small fix for drawcircle16z m32script command From-SVN: r1795 commit 9bf05d54f6a95b9792d2c65343853b3f56571167 Author: Pierre-Loup A. Griffais Date: Sun Feb 13 23:16:56 2011 +0000 Fix editor picking with swapped bottomwalls. From-SVN: r1794 commit c2447e9f870247b2c534db6878bcb87de9dd638d Author: Philipp Kutin Date: Sun Feb 13 21:48:22 2011 +0000 use sprite's cstat bit 2048 for approximately the same effect as spritenoshade; some side-view and other editor tweaks From-SVN: r1793 commit e53eac7e79d2e2f4f87f38d3d46796b68435aec7 Author: Philipp Kutin Date: Sun Feb 13 15:15:37 2011 +0000 temporarily bump the additional space after wall[] to 1024 walltypes in the editor; display map corruption status in upper left corner in the corrupt case. From-SVN: r1792 commit 6d28ad63a48aaaf4fd8136aa3222d5e9f2ab5409 Author: Philipp Kutin Date: Sat Feb 12 13:25:24 2011 +0000 More OSX build fixery and printf/scanf cleanup for 64-bit systems From-SVN: r1791 commit 25ed83fb134a697d4f2a23e1c22a57c09070b813 Author: Philipp Kutin Date: Thu Feb 10 23:15:02 2011 +0000 * Fix a serious logic mistake with checksectorpointer. Previously, a white wall could 'connect' to a red one, leaving the reverse link intact and creating a situation like this: w_new <-> w <-- w_old. * Have the corruption checker catch this case among a few other new ones. Rename OSD command 'autocorruptcheck' to simply 'corruptcheck' with options 'corruptcheck ', 'corruptcheck now' and 'corruptcheck tryfix'. * When pasting sector selection into valid player space (releasing AltGr), ask whether a surrounding outer loop should be created since this is probably not always desired. From-SVN: r1790 commit 3ce91ef335fa160aaf5e19d886651b0f8cb5fe34 Author: Philipp Kutin Date: Sun Feb 6 22:57:32 2011 +0000 fix some issues with compilation on mac osx; make B, N, M keys behave the same as KP1, KP2, KP3 when pointing at a polymer light (hack around keyboard strangeness) From-SVN: r1789 commit 74450d76567c1a490fab7187ca0ed0067e03212e Author: Philipp Kutin Date: Sat Feb 5 17:16:15 2011 +0000 make [ and ] keys cycle search matches and Alt-[ and Alt-] cycle corrupt places; make Alt behave the same as Shift when panning/resizing textures in 3D mode to work around dead Shift+KP5+KP2/8 combination. From-SVN: r1788 commit 2db939ba7ecb0b8834bde3cb24bc568f1395c282 Author: Philipp Kutin Date: Thu Feb 3 17:44:03 2011 +0000 Fix handling of lotag and friends in generic sprite search. Tags like 65535 which are really (int16_t)(-1) are now also found. From-SVN: r1787 commit 76947d8d83ace7b35ec15e885cab1b45c466eeaa Author: Richard Gobeille Date: Mon Jan 31 18:16:11 2011 +0000 Oops, missed a segment when applying the patch from bioman by hand From-SVN: r1786 commit 1dd1c2a584a9e78d8f4beb40b649c0a02b329770 Author: Richard Gobeille Date: Mon Jan 31 04:13:53 2011 +0000 Patch from bioman to fix an issue with static linking GTK and to correct the alignment of the fullscreen checkbox in the startup window when building with POLYMER=0 From-SVN: r1785 commit f661054fbd6fb832073c817508c9a02290e7d07f Author: Philipp Kutin Date: Sun Jan 30 11:02:28 2011 +0000 print 'cached tile' messages only from 5 ms up so as not to flood the OSD/log; quit on out of mem in one more place; new tool md2tool to query MD2 model info or change the scale/translate fields so that desired bounds are produced From-SVN: r1784 commit 766af1484ec006408d57b7d04ece84a9b1b613bf Author: Pierre-Loup A. Griffais Date: Thu Jan 27 07:57:52 2011 +0000 Change highpal maps to 6-bit and add corresponding scale and bias to bypass linear interpolation around the borders. From-SVN: r1783 commit 7049a2b70d49813b6d24e1334e5b038f51075ff2 Author: Pierre-Loup A. Griffais Date: Thu Jan 27 07:05:12 2011 +0000 Hook basepal up to highpal. From-SVN: r1782 commit a4f4255ae3621754d8b8fcc13d462224670d6328 Author: Pierre-Loup A. Griffais Date: Thu Jan 27 06:35:52 2011 +0000 Move the new basepal table one step further so that the engine is now aware of it. From-SVN: r1781 commit 2b6f51b625903b99e8b7c12422d14c033239e341 Author: Philipp Kutin Date: Sun Jan 23 15:30:28 2011 +0000 With the help of Coccinelle, eliminate a few sector[-1] accesses and calculations of §or[-1] (bound checking code not committed). From-SVN: r1780 commit afdbbc229ad617a5daeef347edf9e413299b5584 Author: Richard Gobeille Date: Sun Jan 23 04:59:04 2011 +0000 Make audio initialization failures non-fatal From-SVN: r1779 commit f10dbe70a1deed731d0454ae39357045409c32ee Author: Philipp Kutin Date: Thu Jan 20 21:46:15 2011 +0000 fix non-Polymer build From-SVN: r1778 commit b82a288c66f5a05d968db8df991163beffc784f0 Author: Philipp Kutin Date: Thu Jan 20 19:00:12 2011 +0000 Fix clipshape bug reported by DeeperThought. Reason was absent-mindedness while coding :/ From-SVN: r1777 commit 543ade10f5eb394453dbac75b448bf1a282ce360 Author: Philipp Kutin Date: Thu Jan 20 10:52:33 2011 +0000 fix false save failure message and clean up begindrawing/enddrawing pairs From-SVN: r1776 commit 7c660d308217d95b8c506495ac34c098218b01da Author: Pierre-Loup A. Griffais Date: Wed Jan 19 03:22:25 2011 +0000 Unbreak polymer-broken. From-SVN: r1775 commit 247bc1181c2c267fc08cde0a605a1debe09da04f Author: Pierre-Loup A. Griffais Date: Wed Jan 19 03:13:05 2011 +0000 Creating polymer-perf private branch. AKA polymer-broken, so use at your own risk. From-SVN: r1774 commit 3624729078b37a8d9e4e3dfa31e6927c26790b9e Author: Pierre-Loup A. Griffais Date: Tue Jan 18 01:34:39 2011 +0000 Fix the lighting model so that lights don't get the modulated diffuse (defeats the purpose if they do, since you wouldn't be able to light a fully shaded room). That means the highpal lookup has to be performed twice now, once with the modulated diffuse to apply to the result and once with no modulation to make a diffuse that the lighting code can use. That means that lighting isn't 100% accurate with respect to the highpal result, but that's the best approach I could think of. From-SVN: r1773 commit 870c7391107a15232b4110bad9f39006cc4ea6dd Author: Pierre-Loup A. Griffais Date: Mon Jan 17 03:49:34 2011 +0000 Manage base palette as IDs instead of passing pointers around ($10 says I broke something). Corresponding engine change will be coming up; this is in prevision of highpal handling of game palettes. From-SVN: r1772 commit e27b7ec843ddcb47b7746ffca24515df092e6a88 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 07:20:11 2011 +0000 Don't use -rdynamic on platforms that don't necessarily support it. From-SVN: r1771 commit 914263ba3e818befd8f8ddd3daf864380107d654 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 07:19:29 2011 +0000 Define OV_EXCLUDE_STATIC_CALLBACKS before including vorbisfile.h to avoid having some unused global structures (and warnings) around. From-SVN: r1770 commit 41ab75cbd16353b3387425c9c398c1f37f4564b5 Author: Richard Gobeille Date: Sun Jan 16 04:13:40 2011 +0000 Sync ENet with latest cvs commit From-SVN: r1769 commit 6b8c976d3d254008c6f7d0efdebe2198a3457d11 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 03:57:44 2011 +0000 Fix more MinGW warnings. From-SVN: r1768 commit ab210ac3d3e5077ad3c6fc640dd2c988a5be77d6 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 03:56:12 2011 +0000 Don't include compat.h from protocol.c and define UNREFERENCED_PARAMETER directly instead to fix the MinGW build. From-SVN: r1767 commit 066b6302b1e7a1c24ed56b672d7c17b06ef0a604 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 03:53:27 2011 +0000 Fix all the remaining warnings (except the warn_unused_result stuff, pass -Wno-unused-result). From-SVN: r1766 commit 73c6b74366e503be22c319f384dab7e43dbe003d Author: Pierre-Loup A. Griffais Date: Sun Jan 16 03:43:48 2011 +0000 Build game_banner.o and editor_banner.o with -Wno-pointer-sign. From-SVN: r1765 commit 07e9daf2620282734fcc2861585eb833cc10d657 Author: Pierre-Loup A. Griffais Date: Sun Jan 16 03:33:48 2011 +0000 Remove some warnings. From-SVN: r1764 commit e7dde14dd1b3a6df84d92ef3cbf403dbde39d806 Author: Richard Gobeille Date: Sun Jan 16 02:51:22 2011 +0000 Add "Bstrstr" to compat header From-SVN: r1763 commit 5d2226aab2e9444b39c913376c11853032c82aa1 Author: Richard Gobeille Date: Sun Jan 16 02:50:27 2011 +0000 Run engine source through new version of astyle, add printf() call to OSD_Printf() to facilitate console access through stdin/stdout for dedicated server mode, minor changes to sdlayer to allow operating without actually initializing SDL From-SVN: r1762 commit b1533ad9d4eb2994ba7abd558ef3bd696cc7657c Author: Richard Gobeille Date: Sun Jan 16 02:45:54 2011 +0000 Switch back to using GL_COMPRESSED_RGB_ARB and GL_COMPRESSED_RGBA_ARB instead of explicitly asking for DXT1 and DXT5 (maybe fix white boxes on ATI?), change check for Radeon X1xxx cards to work on mobile cards with different GL_RENDERER strings From-SVN: r1761 commit a468e53afe6944d12c402edab75098023a1151e8 Author: Philipp Kutin Date: Sun Jan 16 00:23:39 2011 +0000 Too much stuff for one commit. engine: * sector-like sprite clipping now works with x- xor y-flipped actual sprites mapster32: * corruption checker has been hooked up to loading/saving routines to inform/warn the user * also warn if mouse pointer is over corrupt wall which is shown in pink then: you should not move such a wall! * faster map loading by deferring polymer_loadboard to 3d mode entrance (also removes some 'glGetTexLevelParameteriv returned GL_FALSE' warnings) * more logical maphack light handling, the logic is still a bit dodgy though * some menu and misc. function fixup * redundancy elimination... API: * added consts various for 'char *filename' parameters * loadboard() now accepts bit 4 for flags (formerly 'fromwhere') From-SVN: r1760 commit 3afecdc3c6913c9b3e9b54786e80d6a55555d3c2 Author: Pierre-Loup A. Griffais Date: Fri Jan 14 19:50:01 2011 +0000 Fix a problem with model skins introduced by highpal. Liztroops would turn blue on death. From-SVN: r1759 commit c1fc01bd4beeae736e557eb8d16e4786fce1ea46 Author: Pierre-Loup A. Griffais Date: Wed Jan 12 17:10:41 2011 +0000 Fix editor picking in Polymer; sorry! From-SVN: r1758 commit 706c61f37263718bef8d6c0476b185c8cf766950 Author: Pierre-Loup A. Griffais Date: Wed Jan 12 02:31:50 2011 +0000 Perform the highpal lookup after the diffuse modulation and detail to hit more range in the highpalookup map. This shuffles a fair bit of lighting model around, so I wouldn't be surprised if I broke something. From-SVN: r1757 commit 1bd0db682100d9529382bf9ac407010d71fda6e2 Author: Pierre-Loup A. Griffais Date: Wed Jan 12 02:06:51 2011 +0000 Hook highpal to model skins. From-SVN: r1756 commit c66431b4d1afb6107c6b5c58d65412f8d6b82e96 Author: Philipp Kutin Date: Sun Jan 9 22:49:50 2011 +0000 have gltexcompr option in mapster32; fix prhighpal.py script From-SVN: r1755 commit 17659a275192f1692ddf74aadd71ec7bf755cfa1 Author: Philipp Kutin Date: Sun Jan 9 18:53:06 2011 +0000 Make mapster32 know r_downsize parameter. For best caching performance, this and glusetexcache should be the same as for the game. Highpalookup script can now generate maps equivalent to the current PHRP tint defs. From-SVN: r1754 commit f92325fbf42ed9198779977756b0b4aacda00db5 Author: Pierre-Loup A. Griffais Date: Fri Jan 7 01:50:23 2011 +0000 Move the highpalookup python helper scripts somewhere that makes sense and that's packaged by synthesis source snapshots (zebioman request). From-SVN: r1753 commit d58ade6e435a8ca5c848e84ad1f062d444168ee6 Author: Pierre-Loup A. Griffais Date: Mon Jan 3 23:50:20 2011 +0000 Fix build. From-SVN: r1752 commit eb0c596b05b865aa2586b13a267a2fef58d06335 Author: Philipp Kutin Date: Mon Jan 3 22:04:20 2011 +0000 A bunch of mutually unrelated updates. First, there's a new script for the generation of highpalookup images. Python 2.6, NumPy and PIL are required. Next, the map corruption checker has been ported to C. This is so that Mapster32 will be able to take decisions more cleverly based on the corruptness of the map. It also catches a few more issues like inconsistent nextwall/nextsector tags now. Finally, link the executables with --large-address-aware on Windows. This gives a gig more private virtual memory on XP when booting with /3GB. YMMV, but I can play IW2 with Polymer now. From-SVN: r1751 commit 7ee78b60be1510557770092ad8cb066ca3102bf0 Author: Philipp Kutin Date: Sat Jan 1 18:35:59 2011 +0000 Make deferred polymer model processing not crash; make tile name search case-insensitive. From-SVN: r1750 commit 05bb1af31c5c0d76bdc4123085e83e7dc2b89100 Author: Philipp Kutin Date: Fri Dec 31 01:35:00 2010 +0000 (ATM broken) support for PNG highpal files; their dimensions must be the same as the TGA ones. From-SVN: r1749 commit 64755bad685da5d3a6d4e18b16b79457de46dc44 Author: Pierre-Loup A. Griffais Date: Thu Dec 30 08:13:37 2010 +0000 Highpalookup support is more or less ready, also checked in sample script to generate the highpalookup maps offline (only with a few incomplete pals right now). New DEF token: highpalookup [pal] [filename] New cvar: r_pr_highpalookups From-SVN: r1748 commit 896d4a52a9ad57442573a68e874c9ddc7b523294 Author: Pierre-Loup A. Griffais Date: Wed Dec 29 20:46:11 2010 +0000 Get the glTexImage3D function pointer from the ICD, not from dlsym/GetProcAddress. This fixes OpenGL on Windows since opengl32.dll only has version 1.1 symbols. From-SVN: r1747 commit 4bb5f8842f13aeb2763b22509fbf88a80f352cb4 Author: Pierre-Loup A. Griffais Date: Wed Dec 29 09:17:48 2010 +0000 Fix release builds. From-SVN: r1746 commit 60374be187815f03166898b6031b481c5c7cf57c Author: Pierre-Loup A. Griffais Date: Wed Dec 29 06:23:49 2010 +0000 Highpalookup maps implementation on the renderer side. Currently set to a hardcoded highpalookup of 6:6:6->RGB and causes a noticeable quality drop. Use the debug1 cvar to toggle ingame. From-SVN: r1745 commit 673e301abdec68269299ff9d2142ce4d7aea5fc4 Author: Philipp Kutin Date: Fri Dec 24 15:44:37 2010 +0000 Split MD3 model post-processing into common and Polymer parts and defer the latter if the game is started with a different renderer. This has the benefit of faster startup times and much less memory consumption in that case. When the user switches to Polymer later in-game, all processing is done in one run. I've observed crashes due to the music system if it takes too long, so the it may be unreliable. Also some calloc->malloc where the clearing is unnecessary. From-SVN: r1744 commit 1ad83074dc82d70e67071b726a9a036576b58b83 Author: Philipp Kutin Date: Mon Dec 20 16:55:37 2010 +0000 d'oh From-SVN: r1743 commit b4a9385eac6413d66198134c50e04f24148ae962 Author: Pierre-Loup A. Griffais Date: Mon Dec 20 03:34:18 2010 +0000 Fix the build for everything else; it looks like the macro definition for ATTRIBUTE was just missing from helixhorned's change. From-SVN: r1742 commit e5df8942f49dc27a3f7feef8241eb4d35422b994 Author: Richard Gobeille Date: Sun Dec 19 23:00:11 2010 +0000 fix r1740 msvc build breakage From-SVN: r1741 commit 0138da1ed812c5bcd8eea716995a471fb87e6232 Author: Philipp Kutin Date: Sun Dec 19 22:47:10 2010 +0000 Atrributify various function declarations. Right now the attributes used are noreturn, nonnull and format, the latter allowing us to catch silly printf errors. Again, these range from relatively benign to disastrous. From-SVN: r1740 commit 7568c7891039e49a94e6a1ce70e8b973ed913ada Author: Philipp Kutin Date: Sun Dec 19 22:29:01 2010 +0000 Strip out most duplicated Makefile stuff into Makefile.common -- this should make configuration and maintenance much less troublesome. Attention to everyone who builds their own Edukes: you may have to re-set some paths like the one to the DirectX SDK. From-SVN: r1739 commit 6c6a3e29833a97aac807259ef5a845d73c08cb08 Author: Philipp Kutin Date: Sun Dec 19 18:15:36 2010 +0000 Revert the four Makefiles to have a base version in case I screw up again... From-SVN: r1738 commit a68270eb96a5a6cffd0d7f001d67b056df8d3e30 Author: Pierre-Loup A. Griffais Date: Sun Dec 19 02:04:59 2010 +0000 getcwd with NULL gives us memory allocated from the system, so don't try to use nedmalloc to free it. From-SVN: r1737 commit 39910b18ddb85bb0081eb49863b8675fe9c00794 Author: Philipp Kutin Date: Fri Dec 17 14:22:15 2010 +0000 Fixes former crash in drawline16 and swaps drawpixel with the unsafe variant there; fixes potential sector[-1] access in sliding Star Trek doors; make CC overridable in Makefiles so that other toolchains or static analyzers like scan-build/clang can be used; with its help, fix some issues, some more severe than others. From-SVN: r1736 commit 583dd34b9028bfcc5bedf8fa11f5aa13821f0a0e Author: Pierre-Loup A. Griffais Date: Fri Dec 17 03:56:25 2010 +0000 Fix a bug where having two or more lighting passes on a multi-surface mdsprite would leak some GL state and disable blending for all but the first surface. From-SVN: r1735 commit 6e5424d8ee2ccde941a0cf3e5f689f7169792ef8 Author: Philipp Kutin Date: Tue Dec 7 19:05:55 2010 +0000 This commit doesn't add anything interesting for anyone not interested in tracing down completely absurd bugs. From-SVN: r1734 commit 50d27a2ea242e5a28763f0acde7e1b7e0886c13f Author: Philipp Kutin Date: Sun Dec 5 17:39:52 2010 +0000 More sensible dragging in side view mode. When pasting walls in 3D mode, match the actual pixel width of the source wall. From-SVN: r1733 commit aa392940620264c9a14339f9c6c010562a44582b Author: Richard Gobeille Date: Fri Dec 3 06:50:16 2010 +0000 Fix digitalnumberz spacing and saving/loading of screen size From-SVN: r1732 commit 6bd8171d4a8e36cc7906e68e4947ceed354c3242 Author: Philipp Kutin Date: Wed Dec 1 22:07:46 2010 +0000 Adds chselshade (change selected shade) to a.m32 From-SVN: r1731 commit faf1a8c97a0a8250bf2308bf81d376d708d64628 Author: Philipp Kutin Date: Sat Nov 27 22:12:24 2010 +0000 A week worth of Mapster hacking: first, there is an experimental side view mode toggled with [F3]. Nav keys are {QWAZ}, MMB and RMB. Use with care because it is still in construction. The sector selection routines have been rewritten -- it is now possible to paste the selection into a room and a new inner loop will be added automatically (MickyC's idea). Adds m32script commands drawline16z and drawcircle16z. From-SVN: r1730 commit 2e5f70503edc30d8d20313962008bc97d7bc1ef7 Author: Richard Gobeille Date: Tue Nov 23 22:30:27 2010 +0000 remove obsolete CON compile warnings about affecting multiplayer sync, add -nodinput compatibility parameter to work around DirectInput crash issues on certain systems, fix http://forums.duke4.net/index.php?s=&showtopic=2961&view=findpost&p=60752 From-SVN: r1729 commit 9250a03c9991f11770b973afb935c665a33ec9bd Author: Philipp Kutin Date: Sat Nov 20 16:47:18 2010 +0000 Set union ['] and difference [;] for sector selection in Mapster32; probably fix for crash on clipshape-init; replace tabs in doc/build*.txt with three spaces. From-SVN: r1728 commit fb26cce9da75155d504b422b5419ab7c8c9debbd Author: Philipp Kutin Date: Fri Nov 12 18:16:42 2010 +0000 Makefile: pass NEDMALLOC variable to build/Makefile From-SVN: r1727 commit b8d9576005bfd081cf412f58b09629ac4895b40c Author: Philipp Kutin Date: Wed Nov 10 21:11:55 2010 +0000 a.m32 corruption checker: also handle out-of-range picnum From-SVN: r1726 commit 5f655619e6df97a169d9ccefc7b264fc38eb0b5b Author: Philipp Kutin Date: Tue Nov 9 21:10:26 2010 +0000 Use posix_memalign in fork/exec midi player when not using nedmalloc. This fixes compilation in this case for me. From-SVN: r1725 commit 2b0d571e68d63c5158f16d4e95752d68036f3aad Author: Pierre-Loup A. Griffais Date: Mon Nov 8 04:56:10 2010 +0000 Works around a bug with newer NVIDIA GL drivers where creating a GL context would remove write access to our code sections. bugs 3086185 and 3104646 From-SVN: r1724 commit 981bda3a5705e7fc8d028b061b1e4ef2e1d62e0e Author: Philipp Kutin Date: Sun Oct 31 19:59:13 2010 +0000 Delete _clipshape_.map. Easy to forget if it's not on the file system anymore... From-SVN: r1723 commit 500783f1f6cd8f8f2de5872588533cc50f24dc51 Author: Philipp Kutin Date: Sun Oct 31 19:54:03 2010 +0000 Fixes quite a few nasty bugs with the new clipping code, including the crash. Clip shapes are now loaded from _clipshape0.map through _clipshape9.map (no break like when loading tiles, just see if each is present). Mapster32: insert some safety code for sprites with sectnum<0. Because this is still a bad thing, have the m32script corruption checker catch this and run it periodically from EVENT_DRAW2DSCREEN. Also draw such sprites in 2D mode with a blood-red color, and make them draggable. Remove set[sector,wall,sprite] commands. From-SVN: r1722 commit 3c51e5ba0e2f1e6f5586714673ba6d7ecfd6b2e0 Author: Philipp Kutin Date: Sat Oct 30 20:32:06 2010 +0000 New sprite clipping for hitscan; crude debugging code for tracing down the crash that Commander is getting and I can reproduce only in real Windows with the synthesis build. From-SVN: r1721 commit 32bc9f8c636a1345a01b1a61972d62ce5fd410cf Author: Philipp Kutin Date: Fri Oct 29 12:51:10 2010 +0000 Fix crash. Reason was obsolete code. From-SVN: r1720 commit b1bb7b9f567da74201008ca39741d42417ebc499 Author: Philipp Kutin Date: Thu Oct 28 20:17:22 2010 +0000 Sector-like sprite clipping. Check samples/spriteclip.txt. From-SVN: r1719 commit 4ca86b5dc636ab1f36555920eb59e7ddf4658ff1 Author: Philipp Kutin Date: Sun Oct 24 21:52:21 2010 +0000 Temporarily replace drawpixels by a bounds-checked version in engine.c. From-SVN: r1718 commit 93422e005360bf3f0a81db8eb44e291046902088 Author: Philipp Kutin Date: Fri Oct 22 23:12:59 2010 +0000 Don't reset extra tags before loading map in Mapster32. From-SVN: r1717 commit a5cd6e4e248eda2ede7e27239b64089bfdae5c1b Author: Pierre-Loup A. Griffais Date: Thu Oct 21 02:20:40 2010 +0000 SDL and menu joystick fixes by NY00123 (thanks!). From-SVN: r1716 commit 6096b064174d05402e694427b2cd0fdb37f90d7d Author: Pierre-Loup A. Griffais Date: Tue Oct 19 05:42:21 2010 +0000 Pull in backtrace.c (pre-compiled as backtrace.dll and MinGW dependencies) from http://code.google.com/p/backtrace-mingw. When running debugging snapshots, this will print out a helpful backtrace in eduke32.crashlog. I had to disable stack protectors for debug builds as this was pulling in a dependency that I assume most people won't have. If anyone feels like merging that code into EDuke32 itself and find a way to remove the ugly libintl dependencies, be my guest. In the meantime, sorry for the awful commit. From-SVN: r1715 commit bb92e22f4f5f453f629a2daf3ea81557a216784f Author: Pierre-Loup A. Griffais Date: Tue Oct 19 04:39:54 2010 +0000 Package debug binaries in synthesis. From-SVN: r1714 commit 01aa731a8f2a2fea9e58f045383dfbbb0d95d2dd Author: Pierre-Loup A. Griffais Date: Tue Oct 19 03:41:32 2010 +0000 Link debug builds with -rdynamic in order to get symbol names when printing backtraces from the signal handler. From-SVN: r1713 commit 0f0927650327045f2774db65c37616e2408dba58 Author: Philipp Kutin Date: Sun Oct 17 14:49:39 2010 +0000 New aspect determination code for classic/Polymost, controlled with r_usenewaspect and r_screenaspect cvars; print stack traces with SDL/GCC; change signature of app_main in game.c to match declarations found in other places and return different positive values on init error. From-SVN: r1712 commit f3de533bf1a554a90e6095564260fc09fa46332a Author: Philipp Kutin Date: Sat Oct 9 22:59:17 2010 +0000 New CON command 'clipmovenoslide', doing the same as clipmove but stopping at collisions before sliding calculations. Fixes a problem with Mapster32 where names.h was tried to be read before setting up the search path. From-SVN: r1711 commit 9d7b6c792ad1b984ce18fc80aedc79599aa58a7d Author: Philipp Kutin Date: Thu Sep 30 23:05:40 2010 +0000 Mapster32: make sector keep old firstwall when adding inner loop, rewrite setfirstwall to use malloc'ed memory for temp storage instead of end of sector[], reintroduce correct searchwall determination in Polymer mouse picker (intersection of xy projection of aiming ray with wall); added commands to m32script: shiftvarvar[lr], ifhighlighted, ifin3dmode, updatehighlight, sethighlight; coded prototype terrain helper based on isolines and triangle strips. From-SVN: r1710 commit 3722980973c4fd7f139d4150ad9c39be100ff83c Author: Philipp Kutin Date: Tue Sep 28 21:58:36 2010 +0000 Make pointer checking on save disabled by default. From-SVN: r1709 commit dfb8a91d5cf7a851778628a9175caaf55696cac3 Author: Philipp Kutin Date: Mon Sep 27 21:52:04 2010 +0000 New CON commands: * sectsetinterpolation * sectclearinterpolation * clipmove <> <> <> <> * lineintersect <> <> <> <> * rayintersect <> <> <> <> * calchypotenuse <> (all except *interpolation also in m32script). Also fixes Sect_ClearInterpolation to be symmetrical to its Set counterpart (shouldnt change anything since it was unused). Added "-conversion YYYYMMDD" switch for keyword-compatibility with old mods. Mapster32: invisible sprite preview with Quote-i. From-SVN: r1708 commit 54195f063d25bb333ed6cc44119d44aa48a7568a Author: Richard Gobeille Date: Tue Sep 14 18:19:38 2010 +0000 Automatically name savegames based on the map name instead of canceling the save if no name is entered From-SVN: r1707 commit 417188f165b4daffbafcd99b2973afb6b32b4042 Author: Philipp Kutin Date: Mon Sep 6 23:08:35 2010 +0000 mapster32 fixes: aiming crash in polymer, more accurate aiming in polymost + calibration/replacement crosshair via "r_preview_mouseaim", 2 other crashes; fix "S" in tile selector, make read-only variable overridable with "script_expertmode", misc. beautifying. From-SVN: r1706 commit 65f342b3811700317ab0ff3df759e027adc8300f Author: Richard Gobeille Date: Wed Sep 1 02:35:36 2010 +0000 msvc compile fix From-SVN: r1705 commit e6dbedaabed44540d49c36851c2804f2b1f0f08b Author: Pierre-Loup A. Griffais Date: Thu Aug 26 15:27:57 2010 +0000 Re-tie initial SDL mouse grabbing to DEBUGGINGAIDS. From-SVN: r1704 commit 88060380bdbe34736fa216c9c49d9b9cecbc1780 Author: Pierre-Loup A. Griffais Date: Thu Aug 26 15:27:16 2010 +0000 Correctly (I hope) handle the zoom argument of rotatesprite when drawing HUD models in Polymer. From-SVN: r1703 commit ca00713c154453734476837b41cc56688d0eb0ba Author: Pierre-Loup A. Griffais Date: Thu Aug 26 15:24:12 2010 +0000 Add a few debug cvars for development purposes. From-SVN: r1702 commit e5bb5a9e472236d7fc6ad5678bd16c7c56940b1c Author: Philipp Kutin Date: Thu Aug 26 13:50:09 2010 +0000 Fixes various issues with selecting: sectors and duplicating them many times in a row, sprites and then deleting some of them (also adds set union ['] and difference [;] to RSHIFT); adds the ability to move all selected sprites in the XY plane in 3d mode with SHIFT-LMB and align to the grid in an absolute fashion with CTRL. From-SVN: r1701 commit 4460677773b662e68253f205f41ac7f5918e3d88 Author: Pierre-Loup A. Griffais Date: Sat Aug 21 19:04:37 2010 +0000 Fix wrong interpretation of SPREXT_NOTMD that would cause it to assume the flag was set whenever any flag was set, causing the models to switch on and off in Duke Plus with Polymer. From-SVN: r1700 commit e4b06a083311b5e9abe304cd3cc60b5249396639 Author: Pierre-Loup A. Griffais Date: Sat Aug 21 07:39:12 2010 +0000 Polymost-style HUD model support for Polymer. It properly displays all HRP HUD models as far as I can tell. From-SVN: r1699 commit 12cbb8ada2488aafa953a9db622eb29322c4335b Author: Philipp Kutin Date: Wed Aug 18 23:21:19 2010 +0000 Tweaks keys for the PR override vars once more. Keyboards are annoying. From-SVN: r1698 commit a517e6f1ea66bc6463548a83340a59aadda2b8d1 Author: Philipp Kutin Date: Tue Aug 17 20:00:44 2010 +0000 Fixes crash in 2d map drawing where sector[-1] was accessed; added commands a2xy and ah2xyz to m32script, coded 2d preview of swinging and sliding doors; added "samprate" setting to configuration, useful if the default one gives jittering/echoey audio From-SVN: r1697 commit b60bd56f1e36cb1f80efbeb808258a501ca59a91 Author: Philipp Kutin Date: Mon Aug 16 13:56:49 2010 +0000 Search for named tile in tile selector ('S'); various bugfixes (among other things with PR-override vars) From-SVN: r1696 commit 5450b618f819d1a7d95a4d8ef425dcb6e633ba05 Author: Philipp Kutin Date: Sat Aug 14 21:32:28 2010 +0000 bugfixes; mark tiles in tile selector for later grouping (press SPACE on a tile); a.m32: convert to CRLF and add [xyz]vel query in 3d mode (Alt-KP1), also different keys for Polymer override var tweaking; some CRLF->LF in LF-only files. From-SVN: r1695 commit 1e20d5fef2c1fb8bd9fceddf62eb9947824d3487 Author: Richard Gobeille Date: Fri Aug 13 06:45:38 2010 +0000 don't link build utils to all the libs needed for the actual engine itself From-SVN: r1694 commit 51007806120b5cb2ad795d886adde265c686b239 Author: Philipp Kutin Date: Thu Aug 12 21:06:51 2010 +0000 Makefile cleanups: fixed building with GCC 3, made tabs into spaces where outside command context; Windows: make startup window stay 3 seconds if there was an error -- this way you won't mistake yourself forgetting to copy game data for a crash *d'oh* From-SVN: r1693 commit 59d0516c2c4d202b1620a8c6a6aa99bfefbbce82 Author: Philipp Kutin Date: Thu Aug 12 13:38:37 2010 +0000 Fixes compilation for now. Now if my executable would start... From-SVN: r1692 commit 32815b938631924a495b97e3ef1861c0eddee492 Author: Philipp Kutin Date: Wed Aug 11 22:37:45 2010 +0000 A bunch of m32script additions, fixes and general stuff, among them: local vars/arrays, inline quotes and prettier error messages. From-SVN: r1691 commit d7dc83a510ccbb74447581cd49310c19f970d6b7 Author: Richard Gobeille Date: Sun Aug 8 00:06:26 2010 +0000 Fix some crashes with weapon sounds inappropriately set to -1 in the cons From-SVN: r1690 commit dbb48f2980aa5d0ed40717565093871d6b249015 Author: Richard Gobeille Date: Sat Aug 7 23:15:35 2010 +0000 Remove detection of sprites outside of sectors at map load and fix green sprites in Mapster32 with Polymer From-SVN: r1689 commit 63e907721a720d63db3eecf83b0dc46d36cac3c9 Author: Richard Gobeille Date: Sat Aug 7 23:14:23 2010 +0000 Possibly fix another weird crash From-SVN: r1688 commit 9e0d8388a0483385962480d74b0223fd5cfa13e7 Author: Richard Gobeille Date: Sat Aug 7 23:06:28 2010 +0000 This is not my day. >: From-SVN: r1687 commit 7804b5c62b96c0cf05399ba5feeb98250fde4ded Author: Richard Gobeille Date: Sat Aug 7 22:59:46 2010 +0000 I am an idiot From-SVN: r1686 commit 2a9bcbbe90e0f16b87f24492bf78cb0a01ccd308 Author: Richard Gobeille Date: Sat Aug 7 22:52:58 2010 +0000 Another 64-bit crash fix From-SVN: r1685 commit cca5d082921dc2fb0d140b3846b873f8a46dd632 Author: Richard Gobeille Date: Sat Aug 7 22:38:15 2010 +0000 Fix bugs for DarkDefender From-SVN: r1684 commit 7e15b4f9ba9148f5fb241639f1e1fd3802f1366c Author: Philipp Kutin Date: Tue Aug 3 22:21:13 2010 +0000 m32script: added BUILD functions getclosestcol and divscale, made 2d drawing commands accept VGA-palette colors (-1 through -255) in addition to editor colors, made 2d mode show Polymer SE light outlines From-SVN: r1683 commit c642c2e4e99c28d33e1a6f60900e40939502c087 Author: Philipp Kutin Date: Tue Aug 3 17:45:44 2010 +0000 added m32_autoexec.cfg execution on startup of mapster32 (like autoexec.cfg for the game); in 3d mode: shift-pgup/pgdn -> alt-pgup/pgdn for 2-sided walls From-SVN: r1682 commit 87c5078d35b91931dcbed09393fef58d71ada5d3 Author: Pierre-Loup A. Griffais Date: Tue Aug 3 15:19:01 2010 +0000 Implement 'away1' and 'away2' maphacks in Polymer. From-SVN: r1681 commit 1439bc9561c890291a16f59fc0025940938f912c Author: Pierre-Loup A. Griffais Date: Tue Aug 3 15:06:24 2010 +0000 Respect the 'notmd' maphack when deciding to draw models in Polymer. From-SVN: r1680 commit 2838d3d4d2a21653835c0a1858749527a2f98c3a Author: Philipp Kutin Date: Mon Aug 2 18:59:59 2010 +0000 Partially fixes bug #3034382 and a few other ones. From-SVN: r1679 commit 430fbcd3a0eb57c88d18df38b6ac9a98fa44f47a Author: Richard Gobeille Date: Mon Aug 2 08:19:28 2010 +0000 Damnit From-SVN: r1678 commit 1e5d056b976e1be3acc9b6592f51202cf1dd97cf Author: Richard Gobeille Date: Mon Aug 2 08:13:51 2010 +0000 Global thermonuclear code rape From-SVN: r1677 commit c9c93d8aa82294196759a8236f182c27692033df Author: Richard Gobeille Date: Mon Jul 26 22:36:45 2010 +0000 Polymer performance improvement and some game related bug fixes. Improves Polymer framerate by about 25% in most cases and fixes problems causing Duke Caribbean doors to malfunction. From-SVN: r1676 commit b6b74f8d0efe699be32e60f714dcf2ea418f2fa2 Author: Richard Gobeille Date: Mon Jul 26 22:35:09 2010 +0000 From-SVN: r1675 commit c718f581774e77c436a156bc85e010c1fd048757 Author: Pierre-Loup A. Griffais Date: Sun Jul 25 02:16:22 2010 +0000 Reorganize a little code so that lightmaps can be used when a spotlight isn't currently casting a shadow. This fixes the problem where the window lights in the E1L1 apartment secret would jump between square and circle-shaped depending on the shadowcount and the view angle. From-SVN: r1674 commit 4714a9c4f76a4eac4061d9890f0277bbf7dfde77 Author: Richard Gobeille Date: Thu Jul 22 20:29:09 2010 +0000 more multiplayer fixes From-SVN: r1673 commit 32103421647fc2ab0f7cd6dba215217c2e61b67a Author: Richard Gobeille Date: Mon Jul 19 15:14:00 2010 +0000 mostly multiplayer fixes among other things From-SVN: r1672 commit b7c947db321755a7c01219c262d10a790a44f08b Author: Richard Gobeille Date: Mon Jul 5 21:38:13 2010 +0000 fix screwed up movement in Mapster32 From-SVN: r1671 commit 69c1a3e4615d9377ea4d1dfa4934a84b6bd93faf Author: Pierre-Loup A. Griffais Date: Mon Jul 5 19:33:29 2010 +0000 Fix build. From-SVN: r1670 commit b48584250ae4007db8b5893d133a42762bbcd6b5 Author: Pierre-Loup A. Griffais Date: Mon Jul 5 08:59:58 2010 +0000 Lose the quitflag check until we know while it gets out of sync between clients and server. This cause the new networking code to be somewhat usable again. From-SVN: r1669 commit 5f51ed0a8f1732892c4d053cf053157c764d15d1 Author: Pierre-Loup A. Griffais Date: Mon Jul 5 08:10:15 2010 +0000 Fix multiplayer. From-SVN: r1668 commit 708515707507ffe60bc94559d4569048256560cd Author: Richard Gobeille Date: Mon Jul 5 04:37:28 2010 +0000 Sound fixes... again. Also fixes SPINNINGNUKEICON visible in the upper left corner in widescreen. From-SVN: r1667 commit ca3f9128f6ae75d4af2e604150b02fe826020124 Author: Richard Gobeille Date: Mon Jul 5 01:45:29 2010 +0000 fix some crap From-SVN: r1666 commit fed3c0e62cc8fb86fa043569d0499d430fc09d63 Author: Richard Gobeille Date: Sat Jul 3 08:53:57 2010 +0000 Emit RPG_EXPLODE, PIPEBOMB_EXPODE and LASERTRIP_EXPLODE from the actual EXPLOSION2 sprite instead of whatever spawned EXPLOSION2, to prevent the sound from being owned by whatever sprite happens to spawn with the ID the RPG/pipebomb/whatever had before it was removed Add brightness/gamma/contrast cvars to Mapster32 Fix bug with WEAPON_SEMIAUTO flag for custom weapons Fix VM error with starttrack when specifying an invalid music track Fix detection of 0x1a EOF characters in CON files Fix a couple of additional sound issues Fix crash in pushmove() Fix Mapster32 textured 2D mode display being a few pixels off from the actual lines drawn Fix crash when clicking "cancel" in Mapster32 startup window Add Makefile detection to build with -march=pentium3 -mtune=generic on i686 From-SVN: r1665 commit c5e478ac9660ba44c99a46f0547ccb02e204001b Author: Pierre-Loup A. Griffais Date: Fri Jul 2 01:26:56 2010 +0000 Make the "Start" button of the GTK start-up window the default button of the window, which means pressing Enter now works at you'd expect. From-SVN: r1664 commit 1e1a0d2f7913b18404314be5b94ca90571c95f01 Author: Philipp Kutin Date: Sun Jun 27 10:08:58 2010 +0000 SDL/non-Windows: external midi playing with fork/exec and signals; double initprintf internal buffers since they got too long for the --help text; warn on replacing empty tile with a hightile; fix a keypad issue in Mapster32 From-SVN: r1663 commit 89a907439c8eddc470c3d90842c5fc716098a805 Author: Richard Gobeille Date: Sat Jun 26 08:51:42 2010 +0000 Final round (I hope!) of sound fixes. Should also fix the crash on exit on Windows and the REACTOR sprite size bug. From-SVN: r1662 commit b047c90a5ca28f40e2043b1d255313e131b39174 Author: Philipp Kutin Date: Fri Jun 25 23:01:54 2010 +0000 m32script: infinite loop safety halt (send a SIGINT), saved input history, states can be invoked without "state" keyword when in OSD From-SVN: r1661 commit 58e39b203d7c6c4a61e7f6b5f912185ca0cc5fb5 Author: Richard Gobeille Date: Wed Jun 23 04:20:46 2010 +0000 This is mostly just build fixes for USE_OPENGL=0, POLYMOST=0 and POLYMER=0. Also updated the precompiled libogg/libvorbis/libvorbisfile that are supplied for MinGW. From-SVN: r1660 commit 09c5e5d44a92598bd4ae229c2385e012270517e2 Author: Richard Gobeille Date: Tue Jun 22 21:59:28 2010 +0000 Oops, forgot a file from ENet 1.3.0 From-SVN: r1659 commit b5b380a2baccc1aaed6a06c60feb8984b3daf314 Author: Richard Gobeille Date: Tue Jun 22 21:50:01 2010 +0000 rotatesprite and multivoc have a rape baby No, seriously. Adds widescreen aware rotatesprite and works out half a dozen huge problems in the sound system, among other things. From-SVN: r1658 commit efa7927d1ee8ffe9a5f45a6fbe4159c5dc34011d Author: Richard Gobeille Date: Mon Jun 7 09:03:16 2010 +0000 shading changes and fixes for a few crashes From-SVN: r1657 commit 4c01021bf17e7236bad1833474ca84a3bccc229f Author: Richard Gobeille Date: Sat May 29 05:03:02 2010 +0000 Fix a couple of stupid typos and remove some dead code from Mapster32 From-SVN: r1656 commit 806911779ebeabf36b63fe342c0a382de92237c1 Author: Philipp Kutin Date: Fri May 28 23:08:32 2010 +0000 check limits in more places when drawing walls in 2d mode. From-SVN: r1655 commit 1dd94762d11663d9ca420076e5c4e31dbf091b5f Author: Richard Gobeille Date: Tue May 25 11:26:09 2010 +0000 probably fix snapshot filenames From-SVN: r1654 commit 184bc8be9a1efe56711c85ec5b79b7515c8f4e46 Author: Richard Gobeille Date: Tue May 25 11:00:42 2010 +0000 From-SVN: r1653 commit a401d2bf4ea0d9857a788841828289280cfc97a6 Author: Richard Gobeille Date: Tue May 25 10:56:00 2010 +0000 Updated synthesis script, moved some non-essential files around, updated license headers on all non-BUILDLIC files, added memory cache on top of texcache to improve load times, moved some duplicated keyboard handling stuff from winlayer/sdlayer to baselayer, fixed keypad / in Mapster32 tile selector, fixed bug where p->rotscrnang and p->look_ang never reset to 0, added support for reloading maphack based polymer lights after mode changes/savegame loads, other minor changes From-SVN: r1652 commit e3253c10ff912f8c1d10cac588851212ca8d22aa Author: Richard Gobeille Date: Tue May 25 10:47:52 2010 +0000 From-SVN: r1651 commit a1722e75c0dbe0a9788fdbbe0cb936d843372578 Author: Philipp Kutin Date: Sat May 22 23:42:37 2010 +0000 forgot a file From-SVN: r1650 commit cfad374d22c52687731aa8a72efb2684d0da27b0 Author: Philipp Kutin Date: Sat May 22 23:41:18 2010 +0000 More of them. Includes the possiblity of typing m32script commands directly into the OSD (without "do", see osdtryscript in mapster32.cfg) and improved diagnostics. From-SVN: r1649 commit c73ad89d024c88089f7ac1dbdcaa976eecf4262e Author: Philipp Kutin Date: Sat May 22 14:04:47 2010 +0000 more polymer-override variable twiddling in m32script, fixes and beautifying. From-SVN: r1648 commit b09cb5cf9fd86fed701a55f2aec5c80814d45561 Author: Richard Gobeille Date: Fri May 21 05:53:21 2010 +0000 fix some breakage with the "load last game" screen that pops up when you die From-SVN: r1647 commit 3ce58acc47239ee3318cf24d4bb27b03929632c2 Author: Richard Gobeille Date: Thu May 20 06:05:46 2010 +0000 fixes crashes when a bad model name is specified due to a typo I didn't notice after a find/replace From-SVN: r1646 commit 3fb214d59b36d288ffd8250bceb8e4131effbec7 Author: Richard Gobeille Date: Wed May 19 10:02:35 2010 +0000 minor changes from my tree that I'm committing to test automated synthesis builds From-SVN: r1645 commit 561a13aa09f1e1c18eda77489163fcdae17e5fa8 Author: Philipp Kutin Date: Tue May 18 05:14:17 2010 +0000 Mapster32 maintenance pack #1 The bulk of this commit is "code rape"--or rather, caressing, rewritten for readability. Actual changes/fixes: - fixed "walking" in 2d mode - fixed DELETE key in OSD in SDL build - main loop in general (timeout for event wait after 200 ms so that highlights blink) - access to some pr_override* variables in m32script (suggested by Roma Loom) - API cleanup (added statics and consts here and there) From-SVN: r1644 commit b13e97b9ef65a43830477ce4da7a787df33dccda Author: Richard Gobeille Date: Tue May 18 00:30:30 2010 +0000 Make nedmalloc a compile time option and add support for loading an external nedmalloc.dll at run time if it isn't compiled in From-SVN: r1643 commit 932656d1fbd229ff6e9284e39a582c196851535c Author: Richard Gobeille Date: Sun May 16 22:53:08 2010 +0000 win32 stuck input fix among other minor changes From-SVN: r1642 commit 2753fc72391d33f1c42b1809d11b3ae49b354481 Author: Pierre-Loup A. Griffais Date: Sun May 16 22:42:22 2010 +0000 This should fix the build on unix platforms. From-SVN: r1641 commit 85e1162e567eb91c867524a423f2c13ccb38b67d Author: Richard Gobeille Date: Sat May 15 09:07:49 2010 +0000 update to latest enet cvs From-SVN: r1640 commit 1d75838f7997897488753a0b9ae9c7db6c3ecfbb Author: Richard Gobeille Date: Fri May 14 12:40:24 2010 +0000 fix shrunk player speed From-SVN: r1639 commit faa5c759d9b0b6ca20dd6e99069349f935194e02 Author: Richard Gobeille Date: Wed May 12 00:53:35 2010 +0000 fix SwissCM's piece of shit corrupt map that will never be released because he has no friends who would want to play it From-SVN: r1638 commit dc348a5220ec23bf166adcb033b2d92df075ca29 Author: Philipp Kutin Date: Mon May 10 21:23:30 2010 +0000 Fixes some problems with mapster zooming; reset keystatus[] after playtesting. From-SVN: r1637 commit 8f3bba4af08f71aa9f3db064ff0e7c8c9bb284dd Author: Pierre-Loup A. Griffais Date: Mon May 10 03:11:15 2010 +0000 Fix classic mode (typo broke it). From-SVN: r1636 commit 02dd79129fd00258c3947c2bd2c746e414c15c55 Author: Richard Gobeille Date: Sun May 9 22:12:29 2010 +0000 fix a few more reported issues From-SVN: r1635 commit 4584a382f13522e52218cd4517646b9063535a4d Author: Richard Gobeille Date: Sun May 9 08:51:25 2010 +0000 fix input when using vsync From-SVN: r1634 commit 5f11b8a31e3ff2834e894f08dd79f7bbb7fedcc6 Author: Richard Gobeille Date: Sat May 8 20:15:24 2010 +0000 fix mouse positioning issue when using alt+tab on win32 and fix game speed at low framerates From-SVN: r1633 commit 6f419ef147b024cccb0498746b7d3d66de2bfe4e Author: Richard Gobeille Date: Fri May 7 20:45:40 2010 +0000 Fixes anim playback, mouse lag with low fps, keyboard setup menu From-SVN: r1632 commit 39c962ef8a121471f34b5510bb6d9ba11c393c1a Author: Richard Gobeille Date: Wed May 5 07:31:38 2010 +0000 From-SVN: r1631 commit c074897cd4d50803ff4d8d0bc4f4d420d72bf11e Author: Richard Gobeille Date: Tue May 4 23:40:49 2010 +0000 fixes weird problems From-SVN: r1630 commit e3be2d0e682a465cbcacea0dcee594c0d5ca063f Author: Richard Gobeille Date: Mon May 3 10:32:38 2010 +0000 fix a couple of issues with the new keyboard code From-SVN: r1629 commit f4cb74765c3a74c5c3d386a701e069e96daaba2f Author: Richard Gobeille Date: Mon May 3 10:21:04 2010 +0000 fix version printed to eduke32.log... oops! From-SVN: r1628 commit b632651085f628fd3233ca01ac20fcc7b8377972 Author: Richard Gobeille Date: Mon May 3 08:30:25 2010 +0000 MinGW build fix From-SVN: r1627 commit fb1a290e7e86ac38a7d33850a1700e42c858f14d Author: Richard Gobeille Date: Mon May 3 01:03:06 2010 +0000 From-SVN: r1626 commit bb45b28c201d498e153af3b28f448ff66458a917 Author: Richard Gobeille Date: Sun May 2 23:27:30 2010 +0000 Source code "cleanup," herein referred to as "rape" From-SVN: r1625 commit 08c4d27fdb1ad73fb322b33d98050358a91466a3 Author: Pierre-Loup A. Griffais Date: Mon Apr 26 04:55:42 2010 +0000 %esi gets modified by swapchar2 but isn't listed as an output operand for the GCC extended assembly version. This causes the compiler to fail to restore it after swapchar2 executes, causing crashes if used in a loop. This change fixes the security camera crash when using GCC 4.4.x or 4.5.0. From-SVN: r1624 commit cfe136cf696206f01a04609d9d5d4c917ecc8475 Author: Pierre-Loup A. Griffais Date: Mon Apr 26 00:51:44 2010 +0000 Fail gracefully when processing (some) corrupt models instead of corrupting the heap and possibly crashing. From-SVN: r1623 commit 0d5ec488bde40ac2fb01d41c95ce841f32e2ab86 Author: Philipp Kutin Date: Mon Apr 19 21:22:26 2010 +0000 Various mapster32 fixes: check wall limits in sector drawing; don't count BACKSPACEing there as a new revision (probably fixes undo-related crashes). Also a patch-fix for a crash I couldn't pin down exactly and a corruption checker for m32script. From-SVN: r1622 commit ff9d6ec442f515a807c0bbd89839f009e302596d Author: Philipp Kutin Date: Sun Apr 11 13:04:53 2010 +0000 m32: have default grid size in configuration From-SVN: r1621 commit 44329bd53af1a94927bf438428970269586a7161 Author: Richard Gobeille Date: Fri Mar 26 02:53:22 2010 +0000 Fix building engine utils w/ nedmalloc From-SVN: r1620 commit 03cd4baa198147fe04b801c08795624822be03d2 Author: Richard Gobeille Date: Thu Mar 18 09:10:43 2010 +0000 fix array read/write commands From-SVN: r1619 commit b15c970db715d1c203539381bd081ea1fe97ea4a Author: Richard Gobeille Date: Wed Mar 17 07:40:13 2010 +0000 From-SVN: r1618 commit 255eb7c2577b9f40439849dde64bf5eb889513df Author: Richard Gobeille Date: Mon Mar 15 00:06:48 2010 +0000 further animlib improvements... like the previous commits, this probably speeds up playback of giant .anm files on very slow systems (handhelds like the Dingoo, etc) From-SVN: r1617 commit 9781ccc1dca34deac24feb7d73ca1761841b5382 Author: Philipp Kutin Date: Sun Mar 14 15:49:03 2010 +0000 fixes line numbering in CONs From-SVN: r1616 commit b0d1e068dcfae97cf0b90f8616bf646b4b1d7bf7 Author: Richard Gobeille Date: Sun Mar 14 11:42:13 2010 +0000 From-SVN: r1615 commit efc1754048629a70b40732d090b43702ca4beed9 Author: Richard Gobeille Date: Sun Mar 14 11:15:53 2010 +0000 From-SVN: r1614 commit 00138adf20267c77d5fbfe8612ae370ff945e33d Author: Philipp Kutin Date: Fri Mar 12 23:28:10 2010 +0000 Ups entering of sprite extra in 3d mode from 1024 to 65536. Also a toy for tinkering with tints in mapster. From-SVN: r1613 commit cab02e8a375222a65df16828d5d54555ce040363 Author: Richard Gobeille Date: Fri Mar 12 06:21:06 2010 +0000 From-SVN: r1612 commit ce0eed709e60adf40e5536fb7b6143cd9472cb80 Author: Richard Gobeille Date: Fri Mar 12 05:50:30 2010 +0000 Misc changes. Probably breaks something, but probably fixes something else! From-SVN: r1611 commit 1ec6f23b2d14d01d092772bc71501f28941a2b8d Author: Philipp Kutin Date: Thu Mar 11 23:35:22 2010 +0000 Save last rendered texture tempoarily in memory when precaching. This cuts about 10 percent on initial precaching time on the average (E1-3 L1-4, current HRP). Also don't precache special palettes that the user hasn't chosen to render (saves a few % maybe) or models (can be substantial). From-SVN: r1610 commit 3e8fc7432fcd796239a0f47d668f44450edb553c Author: Pierre-Loup A. Griffais Date: Sun Mar 7 01:09:39 2010 +0000 Model specular map support and polymer fix for the OSX/ATI driver. From-SVN: r1609 commit 9b309ef483a468137ac9bdac09fd298a4088a9d9 Author: Pierre-Loup A. Griffais Date: Sun Mar 7 00:09:00 2010 +0000 Add proper DEF tokens for normal scale/bias in model skins. From-SVN: r1608 commit 21969fe9552969318544dc423792370218c7127e Author: Richard Gobeille Date: Thu Mar 4 12:03:32 2010 +0000 fix for underwater ceiling issue From-SVN: r1607 commit 6df9f4e8c2914d0f53dff9ae56ee5dbd4aeb362f Author: Richard Gobeille Date: Wed Mar 3 01:43:34 2010 +0000 Better mouse fix? From-SVN: r1606 commit fa0ab52e76ad6c63c0876740f89c0f4c6869018f Author: Richard Gobeille Date: Wed Mar 3 01:37:27 2010 +0000 Fix a couple of bugs From-SVN: r1605 commit f61ccd5b9b99f7d3fd24aaf0050b51a0643373ec Author: Richard Gobeille Date: Tue Mar 2 22:49:26 2010 +0000 Rewrote gametext_z() and renamed it to G_PrintGameText(). Other (very) minor changes. From-SVN: r1604 commit 906c3af4bddf018f18b58d8b2c887edf95138529 Author: Richard Gobeille Date: Tue Mar 2 22:44:12 2010 +0000 Fix for mouse stalls at < 10 fps From-SVN: r1603 commit c2d36f7424a6bc4191952b1a55566fe1ee966de3 Author: Richard Gobeille Date: Mon Mar 1 09:13:25 2010 +0000 force r_vbos to 0 for Polymost on ATI R520 From-SVN: r1602 commit f8f4fba270cb53415f766ecc48612fd4ae4c2630 Author: Richard Gobeille Date: Mon Mar 1 09:09:26 2010 +0000 internal sound handling changes/optimizations, seems to be working and shouldn't affect end users From-SVN: r1601 commit ac819ca9c2d5a9f8f014f2295d013e01e9bb76ed Author: Richard Gobeille Date: Mon Mar 1 03:04:57 2010 +0000 Fix crash when calling rotatesprite from CON with invalid coordinates From-SVN: r1600 commit 5dc93305ba765c788bd4cd78f83449329b785f37 Author: Richard Gobeille Date: Tue Feb 23 18:13:46 2010 +0000 Minor formatting changes, fix nedmalloc on BSD, fix win32 joystick detection issue, fix for ambient sounds, possible fix for stopsound malfunctioning after extended play time, add CON compilation error for duplicate "break" in switch statement From-SVN: r1599 commit 83a7656dea3594a59c13f13f0f3726a30c4d5ffc Author: Philipp Kutin Date: Sat Feb 13 21:46:42 2010 +0000 EDuke32: new demo system should be stable now; Made the $EDUKE32_MUSIC_CMD env var work (SDL only). Mapster32: Helper feature -- pressing SHIFT on a 2-sided wall makes the PGUP/PGDN etc. commands operate on the sector at the other end of the wall; replaced searchstat numbers by #defined names and eliminated the worst cases of code duplication in astub.c From-SVN: r1598 commit 76561b1c13a2d9fcd16638fcc8e45a2482747417 Author: Peter Veenstra Date: Wed Feb 10 18:20:30 2010 +0000 Fix some 64 bit casts. From-SVN: r1597 commit 87cb93ca0ae2609e39f6f21fafcb3ca69fc4670a Author: Pierre-Loup A. Griffais Date: Mon Jan 25 01:11:34 2010 +0000 This is an attempt to fix r1595. - pr_resetlights() was exported but polymer.c wasn't changed to reflect that. This also broke the gcc build so I'm not sure how this was missed. - commented code was laying around in the middle of polymer.h - savegame.c using a bunch of C99 non-constant initializers. Please keep in mind that MSVC is one of the supported compilers and doesn't know C99. - savegame.c using localtime_r, which doesn't exist on Win32. - demo playback calling resetlights and drawrooms without ever calling pr_loadboard(). - this change makes the game run very choppy here. From-SVN: r1596 commit 0861c4d4aed811bbed803f3cf1959df633f07a46 Author: Philipp Kutin Date: Sun Jan 24 23:33:17 2010 +0000 Improved demo system. Kick ass and watch :)\ Features: * start recording in mid-game (ScrollLock) * saves interleaved diffs for later sync correction * supports fast-forward/rewind Some work still needed to trace down remaining sync problems. Also be sure to check the demo* cvars. From-SVN: r1595 commit ba68c02f0a673a105235c65221f64f948197adde Author: Pierre-Loup A. Griffais Date: Sun Jan 24 05:57:43 2010 +0000 Model normal mapping support. This calculates the averaged texture-tangent basis for every face of every model when loading them, so this change will make startup times a lot worse until we implement a way to cache the computed models to disk. From-SVN: r1594 commit a245a01a6d2b2a70830aff92dc228a43966b124d Author: Richard Gobeille Date: Sat Jan 23 22:12:02 2010 +0000 Very few actual changes... mostly formatting fixes from astyle From-SVN: r1593 commit ed760bb06a3707fa8595a79b1eafba36312b0447 Author: Richard Gobeille Date: Thu Jan 21 10:02:04 2010 +0000 More nedmalloc updates, possibly fix win32 mouse death at ~10 fps or less, fix dummytile crash, more untested multiplayer changes... different enet channels for different types of traffic in order to eliminate latency due to the occasional reliable packet getting dropped, therefore causing a hitch in the flow of unreliable movement packets on the same channel, remove mmulti API from engine in favor of having everything in game land From-SVN: r1592 commit 0cb5e6590dbf6210ea608e94d43c8d6750a8e6b2 Author: Pierre-Loup A. Griffais Date: Thu Jan 21 05:52:19 2010 +0000 Properly invert the tangent space matrix instead of transposing it (after all, model tangent space isn't guaranteed to be orthogonal) and do so offline. This removes a little strain from the GPU. From-SVN: r1591 commit d6b3ba4bf37cb6779c643339e455cd86b9bd4dc1 Author: Richard Gobeille Date: Mon Jan 18 11:40:40 2010 +0000 Fix building with MSVC From-SVN: r1590 commit cf9f453796df04d30d12860c3a49add7795c3a50 Author: Pierre-Loup A. Griffais Date: Mon Jan 18 07:07:22 2010 +0000 This should correctly compute the normal of all BUILD floors and walls. Fixes bug 2806174 (E1L1 projection room floor not affected by light and parallaxing artifacts). From-SVN: r1589 commit 8ee229adf08ee044036c66063ce15df4131e6201 Author: Pierre-Loup A. Griffais Date: Sun Jan 17 20:08:03 2010 +0000 This should be the correct type for aGlobalMemoryStatusEx. From-SVN: r1588 commit f9a6d1bfa987f46b18ee4e2c1a579c01fb54b220 Author: Richard Gobeille Date: Sat Jan 16 23:08:17 2010 +0000 Clean out remaining changes from tree... this is mostly crap like variable name cleanup From-SVN: r1587 commit cd73dcf215859fad8e69903ae54d3fd7ec6fa9af Author: Richard Gobeille Date: Sat Jan 16 20:17:33 2010 +0000 Update nedmalloc, fix loading tiles from .art files contained in a .zip, workaround GCC 4.4.x squarerotatetile() miscompilation issue From-SVN: r1586 commit e22dbd940bd7823c8b288eb5d71dfbf2ea7c5f70 Author: Pierre-Loup A. Griffais Date: Mon Jan 11 19:00:32 2010 +0000 Don't process the SDL_mixer effect if we're not done initializing. From-SVN: r1585 commit 230c6b2d54d32b696fda7aed535067b62f37cc01 Author: Pierre-Loup A. Griffais Date: Mon Jan 11 17:26:44 2010 +0000 Annnnnd revert something I didn't mean to commit. From-SVN: r1584 commit e8b7f20ec9bd2c5a29972c16a41242b5570286e7 Author: Pierre-Loup A. Griffais Date: Mon Jan 11 17:25:47 2010 +0000 Fences access to common resources between the possible SDL_mixer effect thread and the rest of the audio code. From-SVN: r1583 commit 9fe73e67e8311c2bf53994f738997efb30abde88 Author: Richard Gobeille Date: Tue Jan 5 21:53:14 2010 +0000 more semi-tested multiplayer changes and sound callback fix From-SVN: r1582 commit d36dfee161bb8ef18e06e62963d9b86d5971756d Author: Pierre-Loup A. Griffais Date: Tue Jan 5 14:22:46 2010 +0000 Fixes a bug when you can't enable music from the sounds menu. Not sure why this line had a multiplayer-related check before rev 1574 yet. From-SVN: r1581 commit cb112755137743d49441223a9412825e17999805 Author: Pierre-Loup A. Griffais Date: Tue Jan 5 04:57:51 2010 +0000 Changing S_TestSoundCallback() back to what it was before revision 1490 since calling into MultiVoc from the DirectSound buffer worker thread can cause deadlocks. TODO: make the callback value accurately point to the sound instance. Maybe change the type to intptr_t and directly pass a pointer? From-SVN: r1580 commit 9c238ff124afec605c2236f74e619b9bedf57f44 Author: Philipp Kutin Date: Mon Jan 4 14:38:29 2010 +0000 m32script fixes and additions From-SVN: r1579 commit 93c699f911eeae18e02db9b72cc379ef426cf9b3 Author: Pierre-Loup A. Griffais Date: Mon Jan 4 06:01:34 2010 +0000 Adds code to disable the Vista/7 DWM when setting OpenGL modes. This buys some OpenGL performance in windowed mode and works around an ATI OpenGL driver bug. From-SVN: r1578 commit 63efb7e5332d328a5b5e6f6cdb538fee6c29b943 Author: Pierre-Loup A. Griffais Date: Sat Jan 2 17:29:31 2010 +0000 Hook the polymer map selection code to a few more places in the editor code. This will fix the screen turning greenish when selecting a pal with Alt-P. I could just drop the selection from these cases since the cursor can't actually move, but then people would ask why the FPS gets higher in this occurrences. From-SVN: r1577 commit 11d8019c873acb7df2e6facb325e4becc21ea540 Author: Pierre-Loup A. Griffais Date: Fri Jan 1 08:26:23 2010 +0000 Revert part of revision 1540 which broke E2L4 and parts of E2L5. From-SVN: r1576 commit 5d859013f9d0094b61e6c26f58467bcf20494a6d Author: Pierre-Loup A. Griffais Date: Thu Dec 31 10:00:21 2009 +0000 This fixes a small problem with the mapster32 polymer selection code. From-SVN: r1575 commit 9715916a06960f072c5268c2fd2884ed2ca1016c Author: Richard Gobeille Date: Wed Dec 30 23:07:00 2009 +0000 further multiplayer improvements From-SVN: r1574 commit 48a2d082e2258b6974210952a12cc6c46f874e67 Author: Richard Gobeille Date: Thu Dec 17 11:17:48 2009 +0000 Cleaning out tree in case I can't work on anything for a while... more multiplay fixes From-SVN: r1573 commit 9e9babd9af5f48b0803a1e096e78472fb5eb162d Author: Richard Gobeille Date: Tue Dec 15 05:53:15 2009 +0000 more multiplayer crap From-SVN: r1572 commit 97050d5b895be2eaa0230c82590bf535e9814520 Author: Richard Gobeille Date: Mon Dec 14 20:14:12 2009 +0000 more multiplay fixes + server password support + client ping time display From-SVN: r1571 commit 11c7b9f4919b6db752b00a0f35a35f4cc380cf8a Author: Richard Gobeille Date: Mon Dec 14 09:54:11 2009 +0000 more multiplayer fixes From-SVN: r1570 commit 176c11efd75cf56c5f2080ffeeca8f66a0ba47f0 Author: Pierre-Loup A. Griffais Date: Mon Dec 14 07:08:21 2009 +0000 This fixes a renderer crash with external view + lights. From-SVN: r1569 commit 5b34c1386f6c9ff4520a2364a081faee0779e758 Author: Pierre-Loup A. Griffais Date: Mon Dec 14 05:51:07 2009 +0000 Package more files in synthesis at H266's request. From-SVN: r1568 commit 528fb436cc934b0c85a0c62b9886b218e2dd6506 Author: Richard Gobeille Date: Mon Dec 14 05:23:29 2009 +0000 A bunch of multiplayer improvements From-SVN: r1567 commit 5be48d399154386f2575410e75a39219945c3831 Author: Pierre-Loup A. Griffais Date: Sun Dec 13 05:13:59 2009 +0000 Fix wall and sector updating over the wire so that it doesn't crash. From-SVN: r1566 commit e47225c43aa0a586e611bf3afdead59647b31ccf Author: Pierre-Loup A. Griffais Date: Sun Dec 13 01:54:29 2009 +0000 Fix the San Andreas texture fix in some cases. From-SVN: r1565 commit aff363d77a04e7bb995b318ed9b11782c70186c3 Author: Pierre-Loup A. Griffais Date: Sun Dec 13 01:23:44 2009 +0000 Fix the build with POLYMER=0 or USE_OPENGL=0. From-SVN: r1564 commit d6e22bc47ee7c8412fd15154cf8b56fef487ec84 Author: Pierre-Loup A. Griffais Date: Sat Dec 12 22:06:41 2009 +0000 Correct an error with rev 1556 that would cause drawing problems with parallaxed ceilings. From-SVN: r1563 commit 16cb84b2912d69a4b03c2cb8ff1cbd22252f7f76 Author: Pierre-Loup A. Griffais Date: Sat Dec 12 20:14:13 2009 +0000 Change the BUILD Makefiles to properly link the tools against nedmalloc. From-SVN: r1562 commit d905cb5ed1b54364c7b37f76c72a0130d66d2e49 Author: Richard Gobeille Date: Sat Dec 12 12:04:18 2009 +0000 oops From-SVN: r1561 commit 1df914a1e1dcb1961dd01279b2a12a064e8fa882 Author: Richard Gobeille Date: Sat Dec 12 11:07:59 2009 +0000 multiplayer fixes From-SVN: r1560 commit 369ebd0f012891d87c5afb55eff44b21e6ae1398 Author: Pierre-Loup A. Griffais Date: Wed Dec 9 07:03:25 2009 +0000 Port of the San Andreas fault texture alignment fix from Hunter_rus to Polymer. I have no idea what it does, but it works and the last thing I want to do is to mess with build texture alignment ever again. From-SVN: r1559 commit 493034a99f408b3b31b3d7c0b9429f6983669e17 Author: Pierre-Loup A. Griffais Date: Tue Dec 8 06:02:58 2009 +0000 Remove some dead code. Cstat 16384 was properly implemented at the top of polymer_drawsprite(), so no need for this hack anymore. From-SVN: r1558 commit 8722b61eba0a9ba54a536a32031cc29b0e639499 Author: Pierre-Loup A. Griffais Date: Tue Dec 8 05:57:31 2009 +0000 Don't overwrite hictinting[MAXPALOOKUPS-1].f when resetting the fullscreen tint hack. This fixes a bug where detail maps lighten models. From-SVN: r1557 commit 5016fad1bb45dbe719627590f20d73b3f6397064 Author: Pierre-Loup A. Griffais Date: Mon Dec 7 07:17:33 2009 +0000 Don't cache sector parallaxing information in _prwalls. This fixes a bug where setting floor/ceiling parallaxing bits in the editor doesn't parallax the corresponding walls right away. From-SVN: r1556 commit c3f577418906673973fdf78de855295a921a387c Author: Pierre-Loup A. Griffais Date: Mon Dec 7 07:04:57 2009 +0000 Correct ceiling palette and shade validation in Polymer. That fix prevents changes to a ceiling palettes or shade from being ignored until the sector gets otherwise invalidated. From-SVN: r1555 commit bccecde04f272a3e96c46b7d05fec0ace757a965 Author: Pierre-Loup A. Griffais Date: Mon Dec 7 07:01:44 2009 +0000 Proper editor picking code for Polymer. Also fixes a bunch of tabs that MSVC snuck in polymer.c. From-SVN: r1554 commit ef3f403d2c66a04d62378a3a2c860e0f573b07d2 Author: Pierre-Loup A. Griffais Date: Sun Dec 6 05:46:48 2009 +0000 Don't change the CWD to the eduke32.exe directory on Windows. EDuke32 now searches the CWD for data files on all platforms. From-SVN: r1553 commit a41bbf8e01f7a806224e4fc684da7e0be5656163 Author: Richard Gobeille Date: Sat Dec 5 09:22:43 2009 +0000 Ball-busting true client-server multiplayer prototype/alpha/whatever From-SVN: r1552 commit 7ab16eef5ff1d1770629dba4a9247c97b4072e4e Author: Pierre-Loup A. Griffais Date: Thu Dec 3 07:37:34 2009 +0000 Don't rely on repeating texture samplers to flip polymer sprites and request clamped textures for sprite textures. Fixes bug 2869362. From-SVN: r1551 commit 260495bf9188e6f5d07fbc13650de9be0a141a73 Author: Pierre-Loup A. Griffais Date: Thu Dec 3 06:21:39 2009 +0000 Make polymer impervious to corrupt maps (for the tenth time..). Fixes bug 2869996. From-SVN: r1550 commit 570caa01794ae2b1cdc99e81a9e708bca61281ac Author: Pierre-Loup A. Griffais Date: Thu Dec 3 05:38:09 2009 +0000 Don't save the OpenGL driver max texture size to the config file and remove some remaining instrumentation from rev 1546. From-SVN: r1549 commit 10e45c8704bb8e99470585e2f83a79202798def9 Author: Pierre-Loup A. Griffais Date: Thu Dec 3 04:41:09 2009 +0000 Don't overflow scantoasc[] with high scancodes. This makes the 'T' key work in the console on my laptop. From-SVN: r1548 commit cb7606f2b5aafb4cfaad9d368398b2eaa6600d2e Author: Pierre-Loup A. Griffais Date: Thu Dec 3 03:11:41 2009 +0000 Don't change the CWD to the eduke32.exe directory on Windows. EDuke32 now searches the CWD for data files on all platforms. From-SVN: r1547 commit eed244dfcbd7e834e6d008f1dcdec0cf1a7e3c29 Author: Pierre-Loup A. Griffais Date: Thu Dec 3 03:07:04 2009 +0000 Fixes a compressed texture cache bug where the background menu tile would sometime get replaced with another tile. From-SVN: r1546 commit fb3f6e3f03da7757736a8141b59b0af39a765664 Author: Richard Gobeille Date: Fri Nov 20 03:54:40 2009 +0000 some CON compilation fixes From-SVN: r1545 commit ee0a44060669d75aa0628ae75de49bb119950016 Author: Richard Gobeille Date: Wed Nov 18 01:17:56 2009 +0000 Second gtk startup window patch from bioman, other random fixes I can't be bothered to remember From-SVN: r1544 commit 01b10864a677bc3f6ab561e25a030a7ca1965d03 Author: Richard Gobeille Date: Mon Nov 16 03:57:31 2009 +0000 fix glaring oversight in new multiplayer random ID generation scheme From-SVN: r1543 commit f3c5bad0af6e4d7dabd93e251c1486810d1ea086 Author: Philipp Kutin Date: Sun Nov 15 20:01:33 2009 +0000 fixes wall drawing (bug introduced in r1540) From-SVN: r1542 commit 1a2539207bac26209b20573d90510b1faaa57388 Author: Richard Gobeille Date: Sun Nov 15 09:10:50 2009 +0000 lower memory use for tilefromtexture by way of lzf compression, untested From-SVN: r1541 commit 329acc9e8fe1bc597e7f452b4ff40e7ffd461681 Author: Richard Gobeille Date: Sat Nov 14 02:30:47 2009 +0000 A bunch of crap I meant to commit days ago... gtk startup window patch from bioman, nedmalloc REPLACE_SYSTEM_ALLOCATOR fix (related code uses #ifdef REPLACE_SYSTEM_ALLOCATOR so defining it to 0 was still satisfying the condition), slightly lower CPU usage in Mapster 2D mode, fix an ancient bug causing the player to not make vent footstep sounds on sprite based vents, fix map save state cvars, add "skill" cvar to console, fix saving the game while CON_SHOWVIEW is in use From-SVN: r1540 commit 76453c30a68386508150dcb75a5f40dc8391e742 Author: Peter Veenstra Date: Wed Nov 4 08:11:21 2009 +0000 Fix 64 bit problems after viewing a security cam. From-SVN: r1539 commit 52e73e11bd9a92cbd6f37b7ae5ff3f5c8185b0b4 Author: Philipp Kutin Date: Sun Nov 1 20:30:09 2009 +0000 more demo control + sound access for m32script From-SVN: r1538 commit 992bbb3aff54981caa25896ac6ef830d7ebe63b8 Author: Richard Gobeille Date: Thu Oct 29 22:22:44 2009 +0000 Change multiplayer random ID generation scheme and remove some dead code From-SVN: r1537 commit df3f900abf7b8969622985a2f233c8452d1e8d0a Author: Philipp Kutin Date: Sun Oct 25 23:25:38 2009 +0000 crude demo fast-forward/rewind; more m32script goodness From-SVN: r1536 commit b157eecd73b77873d65d4fd5c2c01f5dc5757a4b Author: Richard Gobeille Date: Sun Oct 18 02:59:31 2009 +0000 From-SVN: r1535 commit 13dec294e97d1a63c8806946a81e2b82647cb616 Author: Richard Gobeille Date: Sat Oct 17 09:33:32 2009 +0000 clean up "renderer setup" menu a bit so we can put polymer shit in it later From-SVN: r1534 commit 38e71229c18f8623dbbb47fa09acea3f33666f5e Author: Pierre-Loup A. Griffais Date: Sat Oct 17 06:27:46 2009 +0000 Don't override the system allocator with nedmalloc and remove the unused nedmalloc code from polymer.c. This should fix a few crashes caused by ALSA and Mesa picking up memory allocator symbols from eduke32. From-SVN: r1533 commit 9f58f4ab5e6d8381981eeb44899f2ac523cf9714 Author: Richard Gobeille Date: Thu Oct 15 23:08:47 2009 +0000 Fixes mouse on win32 and some other relatively minor issues, drops win9x support, adds BUILD_NOLARGEPAGES and BUILD_WIN9X environment var support to disable large page support and force 9x to pass OS version check, fixes issue with crosshair turning white during the next run after starting the game with a new cfg but quitting at the menu instead of entering a level From-SVN: r1532 commit 519692272612373eed64627c0cfee46d863b9154 Author: Pierre-Loup A. Griffais Date: Thu Oct 15 16:02:55 2009 +0000 Don't do interpolations if they're already being done. This would cause problems when using showview inside EVENT_DISPLAYROOMS. From-SVN: r1531 commit c5926fd4fa0683af0007bfd1590d9727e3329401 Author: Philipp Kutin Date: Sun Oct 11 20:13:16 2009 +0000 relocated some key events From-SVN: r1530 commit e866d247a71ccb63fb81ad7a0487836cc572dc7e Author: Philipp Kutin Date: Sun Oct 11 16:18:06 2009 +0000 small fix From-SVN: r1529 commit d7c0ce04a6be9a1e78b6c98978a663024162994a Author: Philipp Kutin Date: Sun Oct 11 15:52:16 2009 +0000 m32script conveniece From-SVN: r1528 commit cefa8762422d819164ef35be0396133fab9b95e4 Author: Richard Gobeille Date: Wed Oct 7 06:47:35 2009 +0000 Memory cleanups, use Bm/c/realloc/free everywhere (configured as nedmalloc version in compat.h), add large page support for Vista/7, tweak nedmalloc settings, add support for projecting textures from SE50 spotlights placed in maps via sprite owner member (manipulated through CONs via sprite htpicnum member), fix building Mapster32 with MSVC, increase PR_MAXLIGHTS to 1024 From-SVN: r1527 commit 2ffe2157090d1962893e741235be7b26a21784fe Author: Pierre-Loup A. Griffais Date: Sun Oct 4 15:41:40 2009 +0000 Fix specpower and specfactor definitions for diffuse maps. From-SVN: r1526 commit f750306fee5878a99c3e6a4b56c7a4e7409f6f69 Author: Richard Gobeille Date: Sun Oct 4 02:58:15 2009 +0000 better version of the 16x16 icon from hendricks266 From-SVN: r1525 commit 1aa061d6a4c520dd3fc171ed309b99438a899e57 Author: Pierre-Loup A. Griffais Date: Sat Oct 3 21:14:42 2009 +0000 Don't crash when adding spotlights from gameland because of uninitialized mylight.tilenum. From-SVN: r1524 commit ae429891ab585cc898c2dd31f672d2427205b416 Author: Richard Gobeille Date: Sat Oct 3 14:34:05 2009 +0000 fix for ogg clicks and segfaults from JF From-SVN: r1523 commit 6cecf570f813a30b5d7b726ab138f2ac00396769 Author: Philipp Kutin Date: Sat Oct 3 13:33:47 2009 +0000 The actual "stuff"... From-SVN: r1522 commit 751b8ecc157de86fdabbbb7b8d92247978a08a14 Author: Philipp Kutin Date: Sat Oct 3 13:20:31 2009 +0000 m32script: stuff for fiddling with polymer lights From-SVN: r1521 commit 45fbb20e02e4d7592b81cdd90b5d8892f20fba2f Author: Philipp Kutin Date: Thu Oct 1 20:14:36 2009 +0000 another one... From-SVN: r1520 commit 24f44888cfa1e238b9baeee2eb65b7c14a050336 Author: Philipp Kutin Date: Thu Oct 1 19:43:15 2009 +0000 small m32 changes From-SVN: r1519 commit 3a7af18d1129cc292afa3e6d70f433aec37efc7c Author: Pierre-Loup A. Griffais Date: Thu Oct 1 06:31:22 2009 +0000 Adds a source package exception list to remove useless files before packaging. From-SVN: r1518 commit 323ed0aaac5c96d1c8a31380dfe95f9ba662fa8e Author: Pierre-Loup A. Griffais Date: Thu Oct 1 05:51:17 2009 +0000 Hack to appropriately set the group ownership and permissions after creating the packages. This really belongs in the crontabbed script instead, but it doesn't exist yet. From-SVN: r1517 commit 934f1ba9ff3e266b94bf816dc610a4f93cc5466a Author: Pierre-Loup A. Griffais Date: Thu Oct 1 05:33:49 2009 +0000 Fix typo with the ChangeLog. From-SVN: r1516 commit bb108100bc8333e2456e6c4b8f5bfb6286588aa5 Author: Pierre-Loup A. Griffais Date: Thu Oct 1 05:25:34 2009 +0000 Generates a changelog based on the SVN log between snapshots. From-SVN: r1515 commit ca61fb3f4b86282d27b38512c1b8c60ed7eec147 Author: Richard Gobeille Date: Thu Oct 1 05:05:19 2009 +0000 generic commit message describing nothing From-SVN: r1514 commit c1999ca40fc2f56f3319e5aa24a0a3f85cae5123 Author: Pierre-Loup A. Griffais Date: Thu Oct 1 04:37:20 2009 +0000 Forgot to uncomment a few lines. From-SVN: r1513 commit facae8b39bd297f9e9b95fef976536460fb843e5 Author: Pierre-Loup A. Griffais Date: Thu Oct 1 04:36:05 2009 +0000 Automated build and packaging script. From-SVN: r1512 commit bf53edd75cb82359cfb72d0d387e54fc43349a4d Author: Richard Gobeille Date: Thu Oct 1 00:50:20 2009 +0000 More corrupt map fixes fuck ebase.map From-SVN: r1511 commit 95057768578db083dfd6691fb2d7b1261baa931e Author: Richard Gobeille Date: Thu Oct 1 00:28:40 2009 +0000 Corrupt map fixes Specifically seems to fix ebase.map by msandt From-SVN: r1510 commit a0ebd9539a9380f758f0d5f6059150f32818eb6f Author: Richard Gobeille Date: Wed Sep 30 22:19:57 2009 +0000 update nedmalloc to r1116 From-SVN: r1509 commit 8c743da1028cb8d2e622719f21bee5f91e0bbf27 Author: Richard Gobeille Date: Wed Sep 30 21:46:07 2009 +0000 Mapster32 SE40 and SE50 support (stfu frenchie!) From-SVN: r1508 commit b0702a27c89f7c874f3ec16f99abbd51206f3f0b Author: Pierre-Loup A. Griffais Date: Wed Sep 30 14:32:11 2009 +0000 Custom aspect ratio support for Polymer: r_pr_customaspect. Implements bug 2799107. From-SVN: r1507 commit 24b88d0332acb9badcae8c2ee46c463d7af02b47 Author: Pierre-Loup A. Griffais Date: Wed Sep 30 01:26:13 2009 +0000 Checks for required GPU/OpenGL functionality when initializing Polymer and fallbacks to Polymost if appropriate. This should prevent crashes when trying to run Polymer on older GPUs/drivers. From-SVN: r1506 commit 659633501433935c791f1d8d9ab5b11514a5c5b9 Author: Pierre-Loup A. Griffais Date: Wed Sep 30 01:00:49 2009 +0000 Fix mirrors with screen resizing. From-SVN: r1505 commit 54b91202280e008a15cee2d59443b9dc4669791b Author: Pierre-Loup A. Griffais Date: Wed Sep 30 00:51:45 2009 +0000 Polymer screen resizing support. Fixes misaligned crosshair with full HUD. From-SVN: r1504 commit 7e774c59049dad44dfcf82a826984c1ce89ae595 Author: Pierre-Loup A. Griffais Date: Tue Sep 29 23:27:48 2009 +0000 Avoid hardcoded tool names to allow cross-compiling. From-SVN: r1503 commit 16936a7d9dec2e3ae28e2b37cbd599027d13e806 Author: Richard Gobeille Date: Mon Sep 28 00:01:06 2009 +0000 Misc From-SVN: r1502 commit a27db012a88068309140712b02e1c7f8cb4ced69 Author: Philipp Kutin Date: Sun Sep 20 15:43:09 2009 +0000 small additions and fixes From-SVN: r1501 commit cd585024da3ccf629118cfee8529e6da16584bb2 Author: Philipp Kutin Date: Fri Sep 18 21:44:46 2009 +0000 mapster-script stuff From-SVN: r1500 commit 8be4521c686cbbefc0e2bde2f5521bd467a6cea5 Author: Philipp Kutin Date: Thu Sep 17 22:08:37 2009 +0000 some more functions for m32-script From-SVN: r1499 commit c1ceb4d256a172ab38b45067fc2bd285ca25be19 Author: Philipp Kutin Date: Wed Sep 16 22:33:10 2009 +0000 d'oh From-SVN: r1498 commit dd9c8e52ea21c514a4347aa67a080d82559ee6ec Author: Philipp Kutin Date: Wed Sep 16 22:24:24 2009 +0000 drawing functions and key access for m32-script; misc. fixes From-SVN: r1497 commit 0ff974ba3d7c7ef81d3cfdf0c9078c10b0d1cea5 Author: Philipp Kutin Date: Mon Sep 14 22:11:37 2009 +0000 indirect constants for m32-script alongside with other changes From-SVN: r1496 commit 4f749e3e9d183658cbe19c9221efa5a251733390 Author: Philipp Kutin Date: Mon Sep 14 14:02:08 2009 +0000 fixes compilation error. From-SVN: r1495 commit 63fde200add8449925accd0c1be9cb1f54b7c9b7 Author: Philipp Kutin Date: Sat Sep 12 23:13:02 2009 +0000 test file for m32-script From-SVN: r1494 commit 6b33bf195ed07ae916d287763b39980a412f5615 Author: Philipp Kutin Date: Sat Sep 12 23:03:15 2009 +0000 Initial checkin of m32-script. From-SVN: r1493 commit 6352b34d70c8393071f73735c938f0e537bd3dfc Author: Richard Gobeille Date: Wed Sep 9 07:19:14 2009 +0000 Use C versions of divscale##() instead of asm to work around an overflow with drawmapview(), get rid of leftover custom 'int64' type in favor of int64_t, other minor fixes From-SVN: r1492 commit 93e4b0fef482c4246bab40465a58e3a52fbf25bf Author: Philipp Kutin Date: Mon Aug 31 13:43:13 2009 +0000 4x bigger max. zoom in 2d mode at Gambini's request From-SVN: r1491 commit 65a789a1b655241827efb568d7fe5867861bff1c Author: Richard Gobeille Date: Fri Aug 28 23:08:00 2009 +0000 Couple weeks worth of random bs changes From-SVN: r1490 commit fadd7095cc3cdf0b561ef9cefd865db16bbf96f6 Author: Pierre-Loup A. Griffais Date: Wed Aug 12 17:43:17 2009 +0000 Don't request alpha bits for the first FBO. It'll prevent the FBO from getting complete when running 16-bits. From-SVN: r1489 commit 87589529594ed5f42fedb10c764db9ca4aeba806 Author: Richard Gobeille Date: Sun Aug 9 05:32:17 2009 +0000 Fix a couple of minor issues From-SVN: r1488 commit cf4af0b96f6015af56577e552f4f0f7e669e2f48 Author: Richard Gobeille Date: Thu Aug 6 10:12:13 2009 +0000 From-SVN: r1487 commit 9f15324ff8e066b08050e8a0a3ad4cebac7d06af Author: Philipp Kutin Date: Wed Aug 5 22:37:48 2009 +0000 make mapster slightly less cpu-hungry under linux. Also a (temporary?) fix for a crash From-SVN: r1486 commit 23df99cdc95adf8206908a8e038bcd54f40c0dad Author: Philipp Kutin Date: Mon Aug 3 22:15:53 2009 +0000 little debugging helper for linux From-SVN: r1485 commit cbf13520713e37c429a530f47d433914e0c6caa8 Author: Philipp Kutin Date: Sun Aug 2 20:20:26 2009 +0000 m32: "ported" searchwall determination when aiming at floor or ceiling to polymost From-SVN: r1484 commit a766376118eff2de48ba2e413c6ac4aa553cef73 Author: Philipp Kutin Date: Fri Jul 31 20:44:28 2009 +0000 m32 aim: fixes a bug with polymer overwalls From-SVN: r1483 commit 99ef76271f15a19b35aaa5da94a46c349cf507ef Author: Philipp Kutin Date: Fri Jul 31 14:00:52 2009 +0000 model handling for new m32 aim; adapted gradients in astub.c From-SVN: r1482 commit 7d22e1de394d6ac7b3234e140fe4f4f1a6d78490 Author: Richard Gobeille Date: Fri Jul 31 11:45:29 2009 +0000 fixes... mostly sound fuckery From-SVN: r1481 commit d3d5fb90eec8996e9e0c72e7544e64d5b12f7d9c Author: Philipp Kutin Date: Thu Jul 30 18:44:09 2009 +0000 fix of bug reported by DanM From-SVN: r1480 commit 72986cb09f1a16808714ee29b93ffc5b62c8c89b Author: Richard Gobeille Date: Wed Jul 29 21:56:56 2009 +0000 From-SVN: r1479 commit 70e81fd41b261380d9542e35a963c7fa115c0fa5 Author: Richard Gobeille Date: Wed Jul 29 20:26:03 2009 +0000 sound with MSVC works again From-SVN: r1478 commit 6d80190930a6e9bf4576ecbd1ad3ea8e9c84c408 Author: Richard Gobeille Date: Wed Jul 29 10:33:56 2009 +0000 fixes From-SVN: r1477 commit fc46da09eb8d02b8dde1177744855aa1341d6588 Author: Richard Gobeille Date: Wed Jul 29 01:26:28 2009 +0000 From-SVN: r1476 commit d9eeee84a42167c16301da48546d008789e635b9 Author: Richard Gobeille Date: Tue Jul 28 08:28:58 2009 +0000 Fix support for .def defined highres music replacements From-SVN: r1475 commit b810644cd4efa4c004c1dada3f6003f591dbc1f5 Author: Richard Gobeille Date: Tue Jul 28 08:10:26 2009 +0000 From-SVN: r1474 commit 5422ffeb2dc70f6563155485152cdc592ecab52a Author: Richard Gobeille Date: Tue Jul 28 06:32:58 2009 +0000 bring back MIDI support for linux plus a few bug fixes From-SVN: r1473 commit 0fd4ddce2fae1aea41b0c456b854c63dde124c0f Author: Richard Gobeille Date: Mon Jul 27 10:46:42 2009 +0000 Hack MIDI back in for win32 MSVC still broken From-SVN: r1472 commit 1cdd18b0165c42b09a58c0bb8347e8d3b4147a8a Author: Richard Gobeille Date: Mon Jul 27 05:47:50 2009 +0000 Initial working commit of JonoF's audiolib re-port... I think From-SVN: r1471 commit 2d12b1f54f2703665032130ccaf42b119767d372 Author: Richard Gobeille Date: Mon Jul 27 05:45:14 2009 +0000 From-SVN: r1470 commit 44098d97fe5057dcd030af79601ae73c737a3136 Author: Richard Gobeille Date: Mon Jul 27 05:34:05 2009 +0000 this commit is also broken From-SVN: r1469 commit 8bc92a3254619492b0f51ac8a41ec10900910530 Author: Richard Gobeille Date: Mon Jul 27 05:33:12 2009 +0000 this commit is broken From-SVN: r1468 commit c569ef3950fdb37c9626f06777c7cd8f9e509b11 Author: Philipp Kutin Date: Sun Jul 26 19:01:39 2009 +0000 adapted mapster32 sounds to higher angle/volume resolutions (see rev. 1465) From-SVN: r1467 commit d7c1cbbb64e81575d43fc243238c351d5f40c6b2 Author: Philipp Kutin Date: Sat Jul 25 20:16:22 2009 +0000 mapster32: more logical "bottom walls swapped"-bit handling; misc. cleanups From-SVN: r1466 commit 4a8118971988ce6d131d57f2842ed92f1435811c Author: Richard Gobeille Date: Fri Jul 24 02:31:34 2009 +0000 Clean out tree... misc changes From-SVN: r1465 commit e5430e2f01f9f9e273a5ea73cafbe99f9414fcf2 Author: Philipp Kutin Date: Mon Jul 20 22:01:44 2009 +0000 new m32 aiming: changed the way distance is determined, so it also handles parallaxed sectors. From-SVN: r1464 commit 9d34dd662f58b6101c0179c95d26ad1b8e23c58e Author: Philipp Kutin Date: Sat Jul 18 20:37:20 2009 +0000 new mapster aiming now handles planar sprites From-SVN: r1463 commit ee1db52011ed14c2c59c1c0126e63f7d3b010158 Author: Philipp Kutin Date: Fri Jul 17 21:47:04 2009 +0000 new mapster mouse aiming: now handles masked walls, fixed searchwall determination when aiming at ceiling/floor From-SVN: r1462 commit b3150f0326062cae6177500c729111adfda951f1 Author: Richard Gobeille Date: Wed Jul 15 01:26:38 2009 +0000 Added ifactorsound & stopactorsound, fixed qsprintf issues, removed dead unfinished fmod support code, fiddled with structure packing and data sizes to increase the max concurrent playbacks of the same sound from 4 to 8, fixed several sound bugs where when one player's jetpack or scuba sounds stopped in multiplayer, everyone's hitched, increased max sound voices to 96 (was 32) From-SVN: r1461 commit 2c9cc92daf321cf4457e28f4f3ff92be32e522b5 Author: Pierre-Loup A. Griffais Date: Mon Jul 13 22:30:13 2009 +0000 Untested code to propagate more SE changes to polymer lights at DTs request. Priority isn't propagated yet. From-SVN: r1460 commit dfe7b2253e31304eceb17cb2e65f894a96d4b53d Author: Richard Gobeille Date: Mon Jul 13 06:55:00 2009 +0000 From-SVN: r1459 commit b40bea7a6530b9b93d9bc36685295edb77404084 Author: Richard Gobeille Date: Sun Jul 12 23:41:16 2009 +0000 Misc minor changes From-SVN: r1458 commit 2b7ab45a3a5dfb72875d560fc9ca337c6b1daec4 Author: Richard Gobeille Date: Sun Jul 12 01:55:34 2009 +0000 fix building with MSVC after Helixhorned's commit fix FastLZ mipmap corruption issue fix Polymer MSVC warnings rewrote qsprintf to take up to 32 parameters, either quotes or gamevars added qstrncat to concatenate n characters of one quote to another exposed internal sectorofwall() function to CON changed CON parser to count ( ) ; and , as whitespace so people can make their code more readable added ACTIVATOR and ACTIVATORLOCKED support to SE49 and SE50 added SPRITE_USEACTIVATOR flag to allow actor execution based on whether a sector is "locked" or not rearranged a few structures for faster array lookups fixed EVENT_HOLSTER From-SVN: r1457 commit 3f62b1be9c863c9f4388b2f0f4bebe246e11193b Author: Philipp Kutin Date: Sat Jul 11 22:20:15 2009 +0000 Improved mouse aiming for Mapster32 (not yet in action) From-SVN: r1456 commit b588d7160001736c5ff62166b3ef8778d23dc1db Author: Richard Gobeille Date: Thu Jul 9 03:54:18 2009 +0000 Replace LibLZF with FastLZ (http://www.fastlz.org/lzf.htm) From-SVN: r1455 commit fd6f54657392d42c65e0e3bd5a731289db45be2b Author: Richard Gobeille Date: Thu Jul 9 02:29:48 2009 +0000 Remove dead copy protection and watcom support code, fix structure alignment and packing issues preventing Polymer from working with MSVC, enable link time code generation (whole program optimization) for MSVC builds, fix most warnings showing up in MSVC with /w2, add pulsating dynamic lights when holding the shrinker or expander From-SVN: r1454 commit 599a440aa4ef3b35e3fa1beabee4bad09025cae6 Author: Richard Gobeille Date: Tue Jul 7 03:00:23 2009 +0000 Fixes APLAYER alignment with fake sprite on ROR water From-SVN: r1453 commit 7977c5b7cb69ecf713e4f090190b6f09a66e461d Author: Richard Gobeille Date: Tue Jul 7 00:42:06 2009 +0000 Fixes a couple of gameplay bugs introduced with ROR, fixes a MSVC compile issue with the newer version of kplib.c and updates nedmalloc with changes from the latest version in their svn From-SVN: r1452 commit 56f36e75dbf976a7626fffe6a31d9d79361648b6 Author: Richard Gobeille Date: Sun Jul 5 03:15:35 2009 +0000 Fixes a crash when loading a savegame w/ saved map states in it after restarting EDuke32 From-SVN: r1451 commit a2046c18fbc3f2dbb4e39d1f1b970df03ad12040 Author: Richard Gobeille Date: Sat Jul 4 09:28:21 2009 +0000 ROR support... mostly working but obviously not finished yet From-SVN: r1450 commit 1cc041e17b1863ddfcadbbe6bae3e96783f032bc Author: Philipp Kutin Date: Fri Jul 3 13:01:52 2009 +0000 safety check when copying sectors; a suggestion to bypass a strange bug From-SVN: r1449 commit e7418e243b67889830e4a8650ff82fcc179cd4f7 Author: Richard Gobeille Date: Mon Jun 29 19:07:32 2009 +0000 Formatting From-SVN: r1448 commit 7b3ee66e550aaa6b574187149b39f4259fdcfdfc Author: Richard Gobeille Date: Sun Jun 28 23:47:38 2009 +0000 More undo fixes From-SVN: r1447 commit 1e5b19acf7923c243cd3984f1ef0207011dd2eed Author: Pierre-Loup A. Griffais Date: Sun Jun 28 21:16:11 2009 +0000 Adds r_pr_ati_nodepthoffset and the proper detection code to winlayer and sdlayer to make polymer run properly on R520-class Radeon chips. A bug needs to be filed to AMD. From-SVN: r1446 commit a15d7cc3ac629b691226102769e8968b4631152b Author: Pierre-Loup A. Griffais Date: Sun Jun 28 21:03:50 2009 +0000 Changes r_pr_atiworkaround to r_pr_ati_fboworkaround and ports the detection code to SDLayer. From-SVN: r1445 commit 3820d041ab1abd3187dc6accd963d5b6f6b982d1 Author: Richard Gobeille Date: Sun Jun 28 20:23:12 2009 +0000 Mapster undo fixes and some other relatively minor stuff... SPRITE_NOLIGHT flag to kill built in lights from CONs From-SVN: r1444 commit 788f503e7489be78fa5ae4047cad5e6b71bff823 Author: Richard Gobeille Date: Sat Jun 27 08:20:09 2009 +0000 Fix multiplayer switches casting light in single player From-SVN: r1443 commit d335f824e501630cd1f6f1ea06a563fa4911e1e5 Author: Peter Veenstra Date: Fri Jun 26 17:06:09 2009 +0000 Restore old __int64 typedef. Restore former 64 bit fixes. Add a new one. From-SVN: r1442 commit 1f1e38741ec780e58eea23bf2c9e3151a03c02a7 Author: Peter Veenstra Date: Fri Jun 26 17:04:46 2009 +0000 Keep maxbins in sync with max threaded cache. Fixes memory corruption and out of bounds access From-SVN: r1441 commit 542e80d8c64384089c9a86ccbdeb5af474be3bdf Author: Richard Gobeille Date: Wed Jun 24 08:20:10 2009 +0000 Generic non-descript commit message From-SVN: r1440 commit f9061414b94bf1dce5ab9c59808ca016451b8d6b Author: Richard Gobeille Date: Mon Jun 22 20:48:56 2009 +0000 Fix r1438 crash on win32 From-SVN: r1439 commit 81961e7d620ec4bb7309b191441e09b47f582457 Author: Peter Veenstra Date: Mon Jun 22 09:52:30 2009 +0000 Fix building on my pc From-SVN: r1438 commit c9636ed40c396a9bd87eda065834b03d0f93461e Author: Richard Gobeille Date: Fri Jun 19 06:28:11 2009 +0000 Disable -unstable command line parameter, because I never liked it anyway. :p From-SVN: r1437 commit 8bb7fd067d0df92a12ed1a2adcec2c9e6b1f6b3e Author: Richard Gobeille Date: Fri Jun 19 01:10:10 2009 +0000 CON stuff From-SVN: r1436 commit 78b0dc40562fba7a1efb1175e6769f635fd3409d Author: Richard Gobeille Date: Thu Jun 18 05:57:10 2009 +0000 Fix for stupid con programmers making stupid con errors and a couple of other extremely minor changes From-SVN: r1435 commit 7505b6ef6f5029b5bec7b18a8891018dff7c9cfa Author: Richard Gobeille Date: Tue Jun 16 22:11:13 2009 +0000 Mostly just Mapster fixes From-SVN: r1434 commit 2b0278254113474715ad100e15f86a92429eba06 Author: Pierre-Loup A. Griffais Date: Sun Jun 14 13:35:19 2009 +0000 Adds cstat 8192 for sprites that do not cast shadows and documents it in build.h. From-SVN: r1433 commit 79bff93a4dd9c80f546a5698e6d514d33a75ca65 Author: Pierre-Loup A. Griffais Date: Sun Jun 14 13:02:10 2009 +0000 Sanitizes cstat 16384 and documents it in build.h. From-SVN: r1432 commit c46103be0ca3f7c867df39542de9c078a42b29a0 Author: Richard Gobeille Date: Sat Jun 13 21:09:09 2009 +0000 I hate accidentally committing test code From-SVN: r1431 commit c9b7ff5fcbc2c235ca8ab693afdcee0c8240ee16 Author: Richard Gobeille Date: Sat Jun 13 21:06:45 2009 +0000 More memory pool crap, startup window log update fixes, gameland light changes and minor polymer fixes From-SVN: r1430 commit 6605ec59341997e01e3130524ad4e407c46c01a6 Author: Pierre-Loup A. Griffais Date: Wed Jun 10 11:12:56 2009 +0000 Use polymer_invalidatelights(). From-SVN: r1429 commit b167df55239d780735c17a0b8dc314143b6cb4db Author: Pierre-Loup A. Griffais Date: Tue Jun 9 09:32:23 2009 +0000 Sanitizes prsector and prwall flags, fixes a mempool crash when exiting the game before the engine gets initialized, and adds polymer_texinvalidate() to fix water/nightvision global palette change. SwissCM is still an asshole. From-SVN: r1428 commit 12316dc1ac4f396db32f767e9ba6ba938df9154a Author: Richard Gobeille Date: Tue Jun 9 08:31:38 2009 +0000 Damn cat From-SVN: r1427 commit 82a0d50b8b3c8759fce63d1fda0050f751bc3595 Author: Richard Gobeille Date: Tue Jun 9 06:43:10 2009 +0000 Fix building on linux From-SVN: r1426 commit 67800b21ea4affb398c24796dbd79f7b39529889 Author: Richard Gobeille Date: Tue Jun 9 06:19:58 2009 +0000 Cleaning out tree... some light changes, polymer memory pools, some meaningless optimizations, etc From-SVN: r1425 commit b78328197733fb67976cb6d3bdab467001017001 Author: Richard Gobeille Date: Tue Jun 9 02:12:35 2009 +0000 nedmalloc, from http://www.nedprod.com/programs/portable/nedmalloc/ greatly speeds up memory allocations From-SVN: r1424 commit 0ad1e26e760052377a22da6c0c97475b8847f483 Author: Richard Gobeille Date: Mon Jun 8 00:31:53 2009 +0000 Fix rendmode != 4 SE light crashes From-SVN: r1423 commit c98745471220bb6449bb368ba63a332c40194ed8 Author: Pierre-Loup A. Griffais Date: Mon Jun 8 00:29:29 2009 +0000 Fixes y-flipping on the bottom side of some doors (see E1L3 security doors). Also, fuck you SwissCM. From-SVN: r1422 commit c6d07450d70e190b94e2c16a3c956b6c53267af2 Author: Pierre-Loup A. Griffais Date: Sun Jun 7 23:35:11 2009 +0000 Fixes full-screen tinting effects to bypass the material cache and apply instantly. From-SVN: r1421 commit e022c4bda30167e68ad525380af74e8750f73cf2 Author: Pierre-Loup A. Griffais Date: Sun Jun 7 21:23:26 2009 +0000 Don't loop against MAXLIGHTS when invalidating or removing a light from a plane. From-SVN: r1420 commit 791561d3c6dae14e6cef31dc5b9e788581eca6b2 Author: Pierre-Loup A. Griffais Date: Sun Jun 7 20:27:45 2009 +0000 This adds a fast light culling test for non-sloped floors and ceilings (TerminX suggested that change). From-SVN: r1419 commit 1b7513ec8a393e1b5bb279bccfba9fc9cfcbb5cb Author: Pierre-Loup A. Griffais Date: Sun Jun 7 18:38:13 2009 +0000 This adds support for animated, palettized and shaded skies. From-SVN: r1418 commit 1e57510c9019cc92d07a5646ece41275853d7079 Author: Pierre-Loup A. Griffais Date: Sun Jun 7 13:17:55 2009 +0000 Re-hooks pr_lighting. From-SVN: r1417 commit 4004513cac2609f606d4784c96d542a4afd70802 Author: Pierre-Loup A. Griffais Date: Sun Jun 7 13:07:04 2009 +0000 Don't go through multiple lighting passes when rendering the shadow maps. From-SVN: r1416 commit b9d4d478a719b4afebe02f9fe06a8ff7edc1e6cb Author: Pierre-Loup A. Griffais Date: Sun Jun 7 12:58:40 2009 +0000 Formatting fix. From-SVN: r1415 commit 0c9a636fe8f654fddf602401d09e1497d8990e2d Author: Pierre-Loup A. Griffais Date: Sun Jun 7 12:57:46 2009 +0000 Don't try to add polymer lights if not running polymer. This prevents polymost/classic from crashing. From-SVN: r1414 commit 9169bf523c025a917b2d42b5e987f69524dae96e Author: Pierre-Loup A. Griffais Date: Sun Jun 7 12:51:00 2009 +0000 Fixes light culling. From-SVN: r1413 commit 8ea6c4d90b64914b9ec1c8d984c9d0e9dcb27d23 Author: Richard Gobeille Date: Sun Jun 7 07:36:15 2009 +0000 From-SVN: r1412 commit e55cae65d5d64dd585487c3276c26c8be05f1113 Author: Richard Gobeille Date: Sun Jun 7 06:23:33 2009 +0000 Misc minor changes From-SVN: r1411 commit ef05ced0802ef686ab72637c83f4f6a7ba714d89 Author: Richard Gobeille Date: Sun Jun 7 03:13:55 2009 +0000 More light crap From-SVN: r1410 commit da62efaf3e7d7ac1b635282209686f49ac97e347 Author: Richard Gobeille Date: Sat Jun 6 22:30:53 2009 +0000 More light stuff... most gameland lights should be working again now From-SVN: r1409 commit 6b1a5301132456922091c3a57d8add2af645fd13 Author: Pierre-Loup A. Griffais Date: Sat Jun 6 16:00:48 2009 +0000 Adds r_pr_shadowfiltering and r_pr_atiworkaround cvars. From-SVN: r1408 commit 7a19acc021ff596c785caa27e62a684fb5881a0c Author: Pierre-Loup A. Griffais Date: Sat Jun 6 14:22:17 2009 +0000 Using memcpy with clearly overlapping blocks is sad. From-SVN: r1407 commit 027c9eab95f7682fed6a66657c5f52c313309e2a Author: Pierre-Loup A. Griffais Date: Sat Jun 6 13:48:52 2009 +0000 Avoid a square root in the point light GPU program by comparing squared lengths. This changes the lighting model a bit since the attenuation calculation is based against these lengths. From-SVN: r1406 commit 38b5b62dbdd143145631d126cf62860295440d77 Author: Pierre-Loup A. Griffais Date: Sat Jun 6 13:40:15 2009 +0000 Re-implements the old light priority system, removes applylights() and optimizes the light invalidation code. From-SVN: r1405 commit 7968f6b2c753ee38387925840b53db14a35093b3 Author: Pierre-Loup A. Griffais Date: Sat Jun 6 13:12:29 2009 +0000 Reverts the priority change and removes applylights. From-SVN: r1404 commit 421091854249ec7f650db52a1b16a66b0d82e9b5 Author: Pierre-Loup A. Griffais Date: Sat Jun 6 11:17:10 2009 +0000 Fix the build on Linux. From-SVN: r1403 commit 604377f6d6f9111807edce051385a7bff245fe90 Author: Richard Gobeille Date: Sat Jun 6 10:20:00 2009 +0000 Light stuff From-SVN: r1402 commit bb28bf7937295ccc6c2c62add63bceb3ac9cb88c Author: Richard Gobeille Date: Fri Jun 5 21:10:42 2009 +0000 From-SVN: r1401 commit bfff7424d34cb20a787a766fcb03abed8c4a0217 Author: Richard Gobeille Date: Fri Jun 5 20:34:40 2009 +0000 Fix VS manifest error From-SVN: r1400 commit 6c992687a8c8d6909fbd8068974b60a167e050c0 Author: Richard Gobeille Date: Fri Jun 5 20:09:13 2009 +0000 MSVC fixes + clean out tree From-SVN: r1399 commit 190beaedd62a6a476e792fdec77f33373e7847b6 Author: Pierre-Loup A. Griffais Date: Mon Jun 1 21:11:26 2009 +0000 This prevents shadows from flooding the OSD and killing performance. From-SVN: r1398 commit 49afecf1988f32226dfa45be289eb529945024aa Author: Pierre-Loup A. Griffais Date: Mon Jun 1 20:55:36 2009 +0000 This overhauls the light culling/management code. Note: this renders the current gameland dynamic light code useless, to it'll have to be ported before they're back. Please don't complain on the forums. From-SVN: r1397 commit 36180b04240c3524dac030cbef6d194af5e1564c Author: Philipp Kutin Date: Sun May 31 22:06:18 2009 +0000 minor stuff From-SVN: r1396 commit a8cb79142613ddcd8a5048500d461fdb98f12296 Author: Pierre-Loup A. Griffais Date: Sun May 31 18:16:14 2009 +0000 More corrupt map checks. From-SVN: r1395 commit 53c001fb502072dc19ca592b3571e7b5cf417a8e Author: Pierre-Loup A. Griffais Date: Sun May 31 18:10:09 2009 +0000 Light pathing tweak. From-SVN: r1394 commit 9b05b08fd1c7f1e9e9831ba36a80a88c353c1c9f Author: Richard Gobeille Date: Thu May 28 02:55:46 2009 +0000 From-SVN: r1393 commit ae135b4444861ce42e10f91e3197779b79b745ce Author: Philipp Kutin Date: Mon May 25 21:47:08 2009 +0000 fancy gradient at a few more places; minor corrections From-SVN: r1392 commit 0ff87b33a8c7cf5dac7ba186456ba78c67b3347b Author: Philipp Kutin Date: Sun May 24 22:18:40 2009 +0000 mapster32: fix when rotating sprite; fancy gradient in sprite search From-SVN: r1391 commit b022ad017c042c49f1ba4591506cf55a6db7dec9 Author: Richard Gobeille Date: Fri May 22 23:49:25 2009 +0000 Misc small fixes From-SVN: r1390 commit e422e813ea0afe55a9e0e5b2bdd64662fb23ac0d Author: Pierre-Loup A. Griffais Date: Wed May 20 22:30:18 2009 +0000 Work around ATI driver bug (that's there since Cat 8.10 according to the intertubes). From-SVN: r1389 commit cc9cc1b93095b40f0c3675f11b9ce80a1fef49bb Author: Pierre-Loup A. Griffais Date: Sun May 17 21:55:50 2009 +0000 Speed up polymer_init a little. From-SVN: r1388 commit 39edd8852a283dc84fcc572a8a8b86adcd324365 Author: Pierre-Loup A. Griffais Date: Sun May 17 16:12:53 2009 +0000 Moves editorselect and clearmapdata to non-external function categories, makes them static and prototypes them in the header. From-SVN: r1387 commit 09f85d61605a048260858bef0a8620651e61edc3 Author: Richard Gobeille Date: Sat May 16 22:32:23 2009 +0000 Missed one From-SVN: r1386 commit 4405fac6aa14f307cd0bde47ecfca89e3cf22609 Author: Richard Gobeille Date: Sat May 16 22:26:40 2009 +0000 Fixes most polymer memory leaks From-SVN: r1385 commit 7b546e5811671b84f3c29f83ff45453fab2e310f Author: Richard Gobeille Date: Sat May 16 04:07:09 2009 +0000 Misc crap From-SVN: r1384 commit 9f520b37e8ecc41595e9799b6df17ba9d5251963 Author: Pierre-Loup A. Griffais Date: Sat May 16 01:33:04 2009 +0000 Unbreak specular maps (were broken because of mirror unbreaking). From-SVN: r1383 commit 6549231ec42e6d48b2194a1f40fc2f42d66c6018 Author: Pierre-Loup A. Griffais Date: Sat May 16 01:28:42 2009 +0000 Unbreak mirrors. From-SVN: r1382 commit 03644ba7d23d5b2b6067844858fce5bda21b078a Author: Pierre-Loup A. Griffais Date: Sat May 16 00:50:30 2009 +0000 More tweaks to the specular lighting model. From-SVN: r1381 commit 36dd910a34987412745de5dbeace29f2581ea8aa Author: Pierre-Loup A. Griffais Date: Fri May 15 14:23:08 2009 +0000 Tweak the lighting model so that specular highlights ignore the diffuse map value when a specular map is defined. From-SVN: r1380 commit d527f5b6fd9f5d3a45a44ea1fbd0bce9666bfe6b Author: Peter Veenstra Date: Thu May 14 12:35:13 2009 +0000 Fix a warning. Nobody seems to use this field though? From-SVN: r1379 commit ca03fac6a16c2a93bedee7083579704095685714 Author: Peter Veenstra Date: Wed May 13 10:40:42 2009 +0000 Improve saving on 64 bit linux. DukePlus seems to save/load for me now. No changes for HUBmaps though. From-SVN: r1378 commit ece22589281bfad4bebddf655e69c371603c5593 Author: Pierre-Loup A. Griffais Date: Tue May 12 20:08:38 2009 +0000 Spotlightmaps. From-SVN: r1377 commit 7100544f97ae585f75bd8576a6d1c6bb6313573b Author: Pierre-Loup A. Griffais Date: Sun May 10 19:19:25 2009 +0000 Corrects polymost rotation offset scale (didn't match build units before) and a bug in the polymer offset code (bug 2783065). From-SVN: r1376 commit 5580fa8443781ed0f55e92215302f749c827c9f0 Author: Pierre-Loup A. Griffais Date: Sun May 10 17:51:00 2009 +0000 Adds pitch/roll script rotation for mdsprites (bug 2783065). From-SVN: r1375 commit 87a97d1a63ebb4315942cbe4eb0eea43668f17bb Author: Pierre-Loup A. Griffais Date: Sat May 9 11:04:10 2009 +0000 Parallax the parallax skies (bug 2783074). From-SVN: r1374 commit 3f860912f0a533a84277faed9e69aa202a761b79 Author: Pierre-Loup A. Griffais Date: Sat May 9 10:42:57 2009 +0000 Mirror skies (bug 2783066). From-SVN: r1373 commit 96a25ef689581cab7555691496d3cc9a9ff6dceb Author: Philipp Kutin Date: Fri May 8 23:13:12 2009 +0000 mapster32: fixes crash in linux From-SVN: r1372 commit ab55b55053a35fc645e052de444b361dbafe50ab Author: Pierre-Loup A. Griffais Date: Fri May 8 19:15:14 2009 +0000 Fixes floor-aligned sprite and flipping/1-way interaction (bug 2783071). From-SVN: r1371 commit 73f21cedfbde6ea6d69ec70955d7f1df520b1388 Author: Richard Gobeille Date: Fri May 8 18:26:10 2009 +0000 bleh From-SVN: r1370 commit aa4f7a92285b079c8548707c03e98cebbe9daef3 Author: Pierre-Loup A. Griffais Date: Fri May 8 18:04:02 2009 +0000 Fixes floor-aligned sprites being affected by the real center cstat bit (bug #2783389). From-SVN: r1369 commit 655966b4f8ddb49fca5a2f1563d38478fc71ccdc Author: Peter Veenstra Date: Thu May 7 18:55:33 2009 +0000 Fastcall is not 64 bit. From-SVN: r1368 commit b175cdfcc94d1bf30d55364efaf32974de54d6d9 Author: Peter Veenstra Date: Thu May 7 18:50:53 2009 +0000 Fix memory addresses being either 32 or 64 bit From-SVN: r1367 commit e19c418498494bf5826af39f14c8d052b2ac95ed Author: Pierre-Loup A. Griffais Date: Thu May 7 16:05:33 2009 +0000 Fix the build with POLYMOST=0. From-SVN: r1366 commit 7f983f8d61882ebc5537488c69b6c4700533498a Author: Pierre-Loup A. Griffais Date: Thu May 7 16:00:49 2009 +0000 Fix the build with USE_OPENGL=0 and/or POLYMER=0. From-SVN: r1365 commit 7ff459ca3f7b099c5cb83838a22d063e0c2c31c3 Author: Richard Gobeille Date: Wed May 6 23:58:53 2009 +0000 Mapster fixes and a new 8x8 pixel font I've been playing around with From-SVN: r1364 commit 6782f0cfade85f1158278d8986b28ac1096bc9d1 Author: Richard Gobeille Date: Tue May 5 21:25:06 2009 +0000 undo improvements From-SVN: r1363 commit a67af0ed3b216a6ccdc68bc69b630d330887218e Author: Richard Gobeille Date: Tue May 5 20:01:23 2009 +0000 Use LZF for undo/redo snapshots From-SVN: r1362 commit 7d407f047bee1dd01c00c9275c8b32fbe9a4a937 Author: Richard Gobeille Date: Tue May 5 16:21:33 2009 +0000 Undo/redo support for Mapster32 and some other minor changes From-SVN: r1361 commit 95ea93ce8288fca07d15a89d8e3852ea1388a29c Author: Richard Gobeille Date: Fri May 1 19:28:57 2009 +0000 Mapster fixes From-SVN: r1360 commit 00949fb684b091529d81d3d8f7ae70c36a545d44 Author: Richard Gobeille Date: Fri May 1 06:35:27 2009 +0000 Widescreen-friendly Mapster32 2D mode From-SVN: r1359 commit e009532ee222bc1933b6411380f1786591f4ca0a Author: Richard Gobeille Date: Thu Apr 30 21:09:44 2009 +0000 Add support for cvars of type 'double', fix vid_gamma/brightness/contrast cvars, save cvars to eduke32_binds.cfg at shutdown, better method for drawing the floor textures in Mapster32 2D mode, slightly more yellow/orange lights on fire/rockets/lasers/etc From-SVN: r1358 commit 1ea9c255b7286e2e844446eb68cfec4227225fa6 Author: Richard Gobeille Date: Thu Apr 30 01:07:08 2009 +0000 More cvar shit From-SVN: r1357 commit f74dfd8ada9ff1883920bd36e084b6615a927a40 Author: Richard Gobeille Date: Wed Apr 29 20:20:57 2009 +0000 From-SVN: r1356 commit c4bbe2175409b841d475ac5f0e704dd5fb96a186 Author: Richard Gobeille Date: Wed Apr 29 19:43:51 2009 +0000 Some more cvar stuff From-SVN: r1355 commit 3cceb8a6df093a33ec519de128643c1e43ab9af9 Author: Richard Gobeille Date: Wed Apr 29 07:47:10 2009 +0000 Clean up polymost vars From-SVN: r1354 commit 8f8083d848d87dc1cf1417dbfe0c5fcc91625743 Author: Richard Gobeille Date: Wed Apr 29 06:27:09 2009 +0000 Fix CVAR_MULTI flag From-SVN: r1353 commit 1b7b17161d4d0a14762452de890928037ae001c6 Author: Richard Gobeille Date: Wed Apr 29 06:20:07 2009 +0000 Unify cvar handling between the engine and game sides of things From-SVN: r1352 commit f1986b6c4393aa8142576c4191addb010eee039d Author: Richard Gobeille Date: Wed Apr 29 00:51:03 2009 +0000 test versions of new startup dialog images From-SVN: r1351 commit 09e93bed99a06bc570a43be6ccc57e7c2aaa145b Author: Richard Gobeille Date: Tue Apr 28 22:56:43 2009 +0000 Modified priority system to use 6 priority levels instead of 3, added proper def syntax "specular" and "normal" which work identically to "detail" and "glow" for defining normals and specular maps (defining these with pals 100 and 101 will no longer work) From-SVN: r1350 commit d89791099fcf2c8f59f3f5374181df7984a2f8e7 Author: Richard Gobeille Date: Tue Apr 28 05:31:32 2009 +0000 Light SE changes... helixhorned's idea From-SVN: r1349 commit ff6aee307416dbb64d588541ef62115978fb1ff3 Author: Philipp Kutin Date: Sun Apr 26 20:51:00 2009 +0000 various input enhancements for mapster32 From-SVN: r1348 commit 2500f1ae9bf691725cf9cda86b859db40c317e47 Author: Pierre-Loup A. Griffais Date: Sun Apr 26 17:47:08 2009 +0000 Couple of fixes for corrupt maps. From-SVN: r1347 commit 60055965a9a111c20b08c2b3c8b1f290bc8c02db Author: Richard Gobeille Date: Sun Apr 26 05:57:42 2009 +0000 Remove jmact/types.h in favor of standardized inttypes.h stuff From-SVN: r1346 commit 56891d6bb1953b281ca58c98ce4110ec1925c573 Author: Richard Gobeille Date: Fri Apr 24 21:12:30 2009 +0000 test commit From-SVN: r1345 commit 92f7f921930be5763afbd6a65f916dcea4703b85 Author: Richard Gobeille Date: Fri Apr 24 06:04:13 2009 +0000 From-SVN: r1344 commit 7b2eaa0febd5da6ba6e21501c7e379e49d5169f2 Author: Richard Gobeille Date: Fri Apr 24 04:02:39 2009 +0000 Sprite cstat 16384: invisible w/ shadows this also adds shadows for the player when in first person From-SVN: r1343 commit aa54966f05c6032b0d44cf9ca56abc90d1cdb1af Author: Richard Gobeille Date: Fri Apr 24 03:29:28 2009 +0000 From-SVN: r1342 commit 6db4a9ee51d14f5631464e661023805d02760d29 Author: Richard Gobeille Date: Fri Apr 24 02:53:50 2009 +0000 Sector effector based light sources, basic Mapster32 light support, additional sprite/model alpha control, sprite selection in Mapster32 3D mode with Polymer From-SVN: r1341 commit aa3a0b527dd66eef01744ac6beb2c7b9c15a85b3 Author: Richard Gobeille Date: Thu Apr 23 21:08:48 2009 +0000 From-SVN: r1340 commit 9535b55563f94fc34456462bebada799fd573c87 Author: Richard Gobeille Date: Thu Apr 23 17:44:55 2009 +0000 From-SVN: r1339 commit bf1403717b33b4cf3d0407c6cc4bf6b1d3caee8c Author: Richard Gobeille Date: Thu Apr 23 09:30:10 2009 +0000 From-SVN: r1338 commit 2b83dfad4a0bcc9276be0077278c77936d142dc7 Author: Richard Gobeille Date: Thu Apr 23 09:09:41 2009 +0000 Revision 1337: fixes the crash on exit with polymer on win32 that's pretty l33t, right? From-SVN: r1337 commit d99a19e62729cbf3d77b5446809543d4e1450860 Author: Richard Gobeille Date: Thu Apr 23 07:09:24 2009 +0000 From-SVN: r1336 commit 11a0aa82c2713030c45cfd434667563ace96b340 Author: Pierre-Loup A. Griffais Date: Sun Apr 19 18:00:51 2009 +0000 Really fix concave relative slopes. From-SVN: r1335 commit 9350f39f079db43e5406efb86e840373b6802076 Author: Pierre-Loup A. Griffais Date: Sun Apr 19 17:23:07 2009 +0000 Don't step over the bounds of the plane buffer in buffertoplane (now computeplane). From-SVN: r1334 commit 4809421a9c583c390bc19947afe12c964a1b9fa6 Author: Pierre-Loup A. Griffais Date: Sun Apr 19 17:03:18 2009 +0000 Fixes a texturing bug with a combination of relative texturing and concave sectors. From-SVN: r1333 commit d2520e442454468b5071898c53eb453d95769c71 Author: Pierre-Loup A. Griffais Date: Sun Apr 19 09:49:27 2009 +0000 Reverts part of 1331 and misc. fixes. From-SVN: r1332 commit f46062d5f52ba07e7a2d45416fce44ccda7af91a Author: Richard Gobeille Date: Fri Apr 17 18:34:55 2009 +0000 From-SVN: r1331 commit a06b37c1f5b572d4df3ec571593fd4d9bd2b0fe2 Author: Richard Gobeille Date: Thu Apr 16 06:49:29 2009 +0000 Fixes a stupid mistake I made and changes mem* calls to Bmem* for consistency with the rest of the codebase From-SVN: r1330 commit 95e6bddf758c78f648cca0d42c4ad8e5b7305abf Author: Richard Gobeille Date: Thu Apr 16 06:41:24 2009 +0000 Nothing important From-SVN: r1329 commit 0fa1a90f1df68e637286f3b9fc0bceb357ef3d98 Author: Pierre-Loup A. Griffais Date: Thu Apr 16 06:31:19 2009 +0000 Few fixes for the visibility checks. From-SVN: r1328 commit f0611771a53315f75e578c17e14d7b2295538868 Author: Richard Gobeille Date: Wed Apr 15 05:58:38 2009 +0000 From-SVN: r1327 commit bc2874b4ea6365f98a6a4addc54ddd79cd2cb26c Author: Richard Gobeille Date: Tue Apr 14 23:34:48 2009 +0000 From-SVN: r1326 commit 5bb295c2cfaf5ea80e3ab4c1a0f26608d9e3bdcc Author: Richard Gobeille Date: Tue Apr 14 22:55:32 2009 +0000 From-SVN: r1325 commit 7b22dc4591adbb7dada1acdabf7f9b390414e96d Author: Pierre-Loup A. Griffais Date: Tue Apr 14 13:58:38 2009 +0000 Message log cleanup for GPU program compilation and removed a GL error. From-SVN: r1324 commit 165a29d1cb5a1b5e7b41b48f8895bc4ccf073b49 Author: Pierre-Loup A. Griffais Date: Tue Apr 14 12:37:44 2009 +0000 ATI fixes. (sigh) From-SVN: r1323 commit 67c8c4d06a9c6038888f42fa12c0a97d7d4b464a Author: Pierre-Loup A. Griffais Date: Tue Apr 14 08:39:13 2009 +0000 Update the TODO list and fix the light leaking fix. From-SVN: r1322 commit 67868a3b503131ac41f12a811aa63c92c5696fc7 Author: Richard Gobeille Date: Tue Apr 14 07:39:11 2009 +0000 From-SVN: r1321 commit 4622bd096474457c4e01a4f89c7d997f80bb8f74 Author: Pierre-Loup A. Griffais Date: Tue Apr 14 07:38:45 2009 +0000 Don't parse closed sectors. From-SVN: r1320 commit f8f06ed97f52c330310d88ed3ebbe5230c0f157b Author: Richard Gobeille Date: Tue Apr 14 07:15:08 2009 +0000 From-SVN: r1319 commit 287cef61812feb7f91a0a223a9db448b8200594c Author: Pierre-Loup A. Griffais Date: Tue Apr 14 07:01:55 2009 +0000 Don't propagate light through sealed portals. From-SVN: r1318 commit acdccdf15f801e4163a530d776afe60d3a29d00b Author: Richard Gobeille Date: Tue Apr 14 04:20:37 2009 +0000 From-SVN: r1317 commit b337bb48ab8fb8fd46ef3fc1e5d497c6ff923c15 Author: Richard Gobeille Date: Mon Apr 13 06:53:03 2009 +0000 From-SVN: r1316 commit 0b3d868208f159423da6c6d29ab5ea959f36b9e7 Author: Richard Gobeille Date: Mon Apr 13 06:01:50 2009 +0000 From-SVN: r1315 commit f5c456f23608f4bc5035531cd1e99eab83471019 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 22:27:49 2009 +0000 Fix for E3L4 (and possible others) corrupt sectors. From-SVN: r1314 commit 4737c421444fbfe2c44c6b0fef8968e4929f4770 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 22:23:47 2009 +0000 Couple of cleanups. From-SVN: r1313 commit d05368dcf98c16f9d04fe9c309c02b3f32b2ce4e Author: Richard Gobeille Date: Sun Apr 12 21:52:49 2009 +0000 From-SVN: r1312 commit 65f67c82e93afab6e4ce31aa4dc4563e276ebe68 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 19:26:02 2009 +0000 Sanitize wall computation code a bit and fixes a problem with crossing slopes (E1L3 vertical security doors and E2L4 starting door). From-SVN: r1311 commit 9569bc4ba6a84da7a209bd823dcd2242a246e175 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 17:37:35 2009 +0000 Works around a precision bug that would cause the sloped floor in the E1L1 bathroom vent to have a wrong normal matrix. From-SVN: r1310 commit ed1b294b490f2e9835e86270575d2142a034c8e2 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 17:29:50 2009 +0000 Fix detail mapping on ATI cards. From-SVN: r1309 commit f4f554caef080a23b96bcfac6e5a311e7f1c79c3 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 17:22:24 2009 +0000 Store staticlights in savegames. From-SVN: r1308 commit fb9986d66857adc30eb559128d48389cfffad67e Author: Pierre-Loup A. Griffais Date: Sun Apr 12 17:14:18 2009 +0000 Adds a bunch of cvars to tweak polymer. From-SVN: r1307 commit 783b6bdb0cebdd7d37dfa0d03b2bedb3b1be7129 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 16:39:54 2009 +0000 Clean up a bit of dead code. From-SVN: r1306 commit 51db7d7097601a10a59340c019b98d72db348b6a Author: Pierre-Loup A. Griffais Date: Sun Apr 12 16:28:20 2009 +0000 Light priority system. From-SVN: r1305 commit 8f076dc6d84bd822e8ec6ce65302bf7e362332bb Author: Pierre-Loup A. Griffais Date: Sun Apr 12 13:51:43 2009 +0000 Per-frame lights cleanup. From-SVN: r1304 commit 989435dbdf9b683b4819e942890bec84907c35db Author: Pierre-Loup A. Griffais Date: Sun Apr 12 13:02:36 2009 +0000 Game-tic lights and recon car headlights. From-SVN: r1303 commit 02477a9b919d30916aae0662ae9b7f45fa08f234 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 12:32:50 2009 +0000 Minshade and maxshade parameters for dynamic lighthacks. From-SVN: r1302 commit 1a27325478e782275278c439a08ef4b6fadfdf2c Author: Pierre-Loup A. Griffais Date: Sun Apr 12 10:46:31 2009 +0000 Fixes models after modeswitches on Windows and removes warnings. From-SVN: r1301 commit 898ddadee49d8a61b842493c0a23e278bdb78cb4 Author: Pierre-Loup A. Griffais Date: Sun Apr 12 09:57:25 2009 +0000 Correctly invalidate the GPU programs and skybox VBO on modeswitches. From-SVN: r1300 commit feaa2c94276fba40379357e9561e99987e1e00d0 Author: Philipp Kutin Date: Sat Apr 11 20:25:11 2009 +0000 (Relative) grid lock for Shift-LMB sprite positioning in 3d mode From-SVN: r1299 commit c2cfbf791198c7ccd44b8407340d21e1e757ef67 Author: Pierre-Loup A. Griffais Date: Sat Apr 11 18:01:39 2009 +0000 Polymost-like shading. From-SVN: r1298 commit fd222fc195873c8aa87cb40e6f4e43e4e86c4b2f Author: Richard Gobeille Date: Wed Apr 8 00:02:44 2009 +0000 From-SVN: r1297 commit 8e18956027681f3eba3ccd60d3fd993ff04e7093 Author: Philipp Kutin Date: Tue Apr 7 18:56:22 2009 +0000 added some mapster32 config vars; fixed mapster32 crash in linux; DEBUGANYWAY for Makefiles From-SVN: r1296 commit 8fe733f76a2b14944faef5288de8cca23f44ac88 Author: Pierre-Loup A. Griffais Date: Thu Apr 2 17:49:10 2009 +0000 That looks more correct. From-SVN: r1295 commit c15a1d53a5b3b2ec558143dd28b62dca913dd374 Author: Pierre-Loup A. Griffais Date: Thu Apr 2 17:17:24 2009 +0000 Reduce near-clipping range and fixes a bug with one-way walls that are also map limits. From-SVN: r1294 commit e0d10d9f825b5f720f2c34127e57b3b3aec31b36 Author: Pierre-Loup A. Griffais Date: Wed Apr 1 18:52:15 2009 +0000 Adds pr_maxlightpasses cvar. From-SVN: r1293 commit ed02303e3a5d859473bb48a6b6369eae87e1fa8e Author: Pierre-Loup A. Griffais Date: Wed Apr 1 18:34:11 2009 +0000 Don't prepare shadows of lights that aren't in view. From-SVN: r1292 commit 5cc11b277c4439d6f204d2d54825deedc5026dce Author: Pierre-Loup A. Griffais Date: Wed Apr 1 18:11:01 2009 +0000 Fixes the bug where the renderer would get in "external view" mode on slopes. From-SVN: r1291 commit 50de0b8b6697f980dcde0cc72b525213c84c2225 Author: Pierre-Loup A. Griffais Date: Wed Apr 1 17:58:22 2009 +0000 Fixes shadow bug. From-SVN: r1290 commit b8466bbe383480e46a8ed02b166b1b74bf6964c4 Author: Richard Gobeille Date: Wed Apr 1 17:57:51 2009 +0000 From-SVN: r1289 commit 1bcab0961b0bee245b26e76b232358c526d372b1 Author: Pierre-Loup A. Griffais Date: Tue Mar 31 23:23:06 2009 +0000 Lighthacks. From-SVN: r1288 commit eadced16a324a08443e743bb65911616fcbfdbbf Author: Pierre-Loup A. Griffais Date: Sun Mar 29 21:08:52 2009 +0000 Fix mirrors and model animation. From-SVN: r1287 commit 07b1dac71edbe3072c36c61ad51229af7c8cfad5 Author: Pierre-Loup A. Griffais Date: Sun Mar 29 19:31:24 2009 +0000 E1L2 door fix. From-SVN: r1286 commit a77428820b50b8758ae84d1c1953d9d5cc718cc0 Author: Pierre-Loup A. Griffais Date: Sun Mar 29 17:14:41 2009 +0000 pr_specularoverride and less retarded default values for the parallax overrides. From-SVN: r1285 commit 38913fbd0179e531040a552fab8253d8305f86ab Author: Pierre-Loup A. Griffais Date: Sun Mar 29 15:16:33 2009 +0000 4-step Iterative parallax mapping, parallaxscale and parallaxbias DEF tokens for normal maps, support for floating-point cvars, pr_overrideparallax cvar to fine-tune the scale and bias settings. From-SVN: r1284 commit ce652ecde9ad6629839c9d76d53e77479f7c11d7 Author: Pierre-Loup A. Griffais Date: Sat Mar 28 18:25:30 2009 +0000 Faster normal mapping. From-SVN: r1283 commit 2fcd8f657fd8c358be76dec06a6b0820c55e92fe Author: Pierre-Loup A. Griffais Date: Sat Mar 28 16:50:46 2009 +0000 Tie mirror map reflections to specular map texels. From-SVN: r1282 commit fb2d0b8dc0656080830cad02e8fdcc260ca828e8 Author: Pierre-Loup A. Griffais Date: Sat Mar 28 16:14:10 2009 +0000 Specular maps (pal 101). From-SVN: r1281 commit e0c9b63dc90a3c77e607b20c852d09a52e10465b Author: Pierre-Loup A. Griffais Date: Sat Mar 28 15:54:25 2009 +0000 Sanitize texture coordinate usage in the GPU program. That allows normal and glow maps to benefit from the diffuse map scale. From-SVN: r1280 commit f134236559021623f91f8c5ce88302535828f7d4 Author: Pierre-Loup A. Griffais Date: Sat Mar 28 15:19:44 2009 +0000 Adds specpower and specfactor tokens for model skins. From-SVN: r1279 commit ab6f92cf0654200afcf142f2eb3b70ca859a115e Author: Pierre-Loup A. Griffais Date: Sat Mar 28 12:14:37 2009 +0000 Adds specpower and specfactor definition tokens for textures. From-SVN: r1278 commit bb00146371795f4a8a29ef576db3ca837c0eb454 Author: Pierre-Loup A. Griffais Date: Sat Mar 28 11:43:16 2009 +0000 Sanitize terminology a bit. From-SVN: r1277 commit f7c54497293844452cc9e6b27d69fa951d8df40f Author: Pierre-Loup A. Griffais Date: Sat Mar 28 11:20:05 2009 +0000 Proper savegame loading and vidmode switching from the menu. From-SVN: r1276 commit 9046f88077d8bfb1bea70f9733cf57114b03a661 Author: Richard Gobeille Date: Fri Mar 27 21:54:55 2009 +0000 From-SVN: r1275 commit ebaedb857ebdefb79be0712b455daafadb31685e Author: Pierre-Loup A. Griffais Date: Fri Mar 27 13:46:40 2009 +0000 Hack to avoid horizontal shadow maps. From-SVN: r1274 commit eb68c1531d9793781f89ef544d8d9095c91440ac Author: Pierre-Loup A. Griffais Date: Fri Mar 27 12:56:42 2009 +0000 Cast light on models and self-shadowing. From-SVN: r1273 commit a92ca8d861fc6aa9a3160fb88a41527f8dbba02a Author: Pierre-Loup A. Griffais Date: Fri Mar 27 11:39:10 2009 +0000 Don't mirror stuff when drawing the shadow maps and don't cast shadows on models for now. From-SVN: r1272 commit 225b3e26ba569041695478004db7c41615d84b77 Author: Pierre-Loup A. Griffais Date: Fri Mar 27 10:39:18 2009 +0000 Sprite and model shadows. Also fixes a bug with shadows and mirrors. From-SVN: r1271 commit dbbde1731716686d18ae51aa3ac0c3c916a134a6 Author: Pierre-Loup A. Griffais Date: Thu Mar 26 17:45:12 2009 +0000 Fix blinkiness. From-SVN: r1270 commit d3e83b98ba8079a89eaf6f4e442f81b94389a629 Author: Pierre-Loup A. Griffais Date: Thu Mar 26 16:41:06 2009 +0000 Shadow fix. From-SVN: r1269 commit b97dc2a9bd0d7de0ea47ffcc207199f33cbebb23 Author: Pierre-Loup A. Griffais Date: Thu Mar 26 16:32:00 2009 +0000 Shadows. From-SVN: r1268 commit 67e54795303f32d975d52d2a2066fd7995ca7503 Author: Pierre-Loup A. Griffais Date: Wed Mar 25 21:14:51 2009 +0000 Spotlight frustum caculation and culling. From-SVN: r1267 commit ff4f33b22f0fb0c4d27a4fc0a7a277ed0f5308f9 Author: Pierre-Loup A. Griffais Date: Wed Mar 25 19:48:27 2009 +0000 Spotlights. From-SVN: r1266 commit 6685c8aafeef41022e52d520c084ac59bcc8c7fa Author: Pierre-Loup A. Griffais Date: Wed Mar 25 13:23:35 2009 +0000 Optimize lighting model a bit. From-SVN: r1265 commit 42354a8ef003d7e64172c47e9f4ac8b0a6521404 Author: Pierre-Loup A. Griffais Date: Tue Mar 24 16:25:20 2009 +0000 Corrects E1L7 rotating lava bug and minor indentation quirk. From-SVN: r1264 commit 632b0f0d7364c524433cb23ffb8055724bb81425 Author: Pierre-Loup A. Griffais Date: Tue Mar 24 10:24:33 2009 +0000 Little multi-light optimization. From-SVN: r1263 commit e1d598d2fd07d763bb1ded007fb0961bd1c8ee2e Author: Pierre-Loup A. Griffais Date: Tue Mar 24 10:09:53 2009 +0000 Fixes a problem where mirrors and masked walls wouldn't display under certain circumstances. From-SVN: r1262 commit a54d8995631b9d4a7622033de217347ef3154eb6 Author: Pierre-Loup A. Griffais Date: Tue Mar 24 09:37:30 2009 +0000 Fixes a texture bug. From-SVN: r1261 commit d55b71ae85c04a3fe3680152747cf04f01f3506a Author: Philipp Kutin Date: Tue Mar 24 00:02:55 2009 +0000 mapster32: fix crash in commandline parsing From-SVN: r1260 commit b663928062a9022b0c69cd62d4db96f2525bb58b Author: Philipp Kutin Date: Mon Mar 23 23:39:37 2009 +0000 yet another fix for mapster32 sound From-SVN: r1259 commit 2c74b3c520458537f0f17baa58c7f6694c063f36 Author: Philipp Kutin Date: Mon Mar 23 19:38:29 2009 +0000 Mapster32 sound: fixes bug when sound definitions are located in more than one con file. From-SVN: r1258 commit 3300d9f2c55538acbb6f1d3c008c37292dbcc7da Author: Philipp Kutin Date: Mon Mar 23 16:31:08 2009 +0000 small fix in GenSearchSprite() From-SVN: r1257 commit 220d0de19891f3744193350e7b4be57477f619ec Author: Philipp Kutin Date: Mon Mar 23 15:36:59 2009 +0000 minor commandline arg additions/fixes From-SVN: r1256 commit 0eea2a50f72fc4fbf4f6aa51571c9b00ffe91c4b Author: Pierre-Loup A. Griffais Date: Mon Mar 23 14:18:20 2009 +0000 Render targets, FBO mirrors with normal displacement, fix for masked walls with animated walls, various cleanups. From-SVN: r1255 commit 5eb0bd86516ded1c719d41e42478beeeac829786 Author: Richard Gobeille Date: Mon Mar 23 05:17:20 2009 +0000 From-SVN: r1254 commit d1f2a8194df86d78da4d6a3e3638d1d94544a9d9 Author: Philipp Kutin Date: Wed Mar 18 21:05:26 2009 +0000 consistency for sound in 3d-mode mapster From-SVN: r1253 commit 8ae6a5d70b8827d5be7f53804f5e0c9eb1318837 Author: Pierre-Loup A. Griffais Date: Wed Mar 18 15:05:58 2009 +0000 Do a depth only pass before actual rendering and only occlusion check for map boundary sectors. From-SVN: r1252 commit 3cd63ef119a9d62c3ab7d39ec5b9c6470e1ad865 Author: Philipp Kutin Date: Tue Mar 17 21:57:30 2009 +0000 Ambience sound for 3d-mode mapster. Some consistency problems remain. From-SVN: r1251 commit 781094b3d501c7458b005ea28341b6c76444621b Author: Philipp Kutin Date: Mon Mar 16 23:14:37 2009 +0000 minor changes From-SVN: r1250 commit cf11d71534279a2c7e4e91e471fd9f491cc1e6a7 Author: Philipp Kutin Date: Mon Mar 16 22:58:47 2009 +0000 Sorting for the sound console in Mapster32 From-SVN: r1249 commit 95d3e7f4095d0c578b6c08d96e5cee4db2d425ab Author: Richard Gobeille Date: Mon Mar 16 15:18:01 2009 +0000 From-SVN: r1248 commit c715931c34e80c96ad83adfc7097bf4db094e1e9 Author: Philipp Kutin Date: Sun Mar 15 22:58:20 2009 +0000 sound support for mapster32. right now a sound console. From-SVN: r1247 commit 8e4bf0a8ecb76291db6f54bd6fc0e0645843afaf Author: Peter Veenstra Date: Sun Mar 15 16:02:57 2009 +0000 Fix crash when reseting to default values From-SVN: r1246 commit 8ee6c9809a8ff52bed41fc9ef84502b980afc965 Author: Richard Gobeille Date: Sat Mar 14 02:55:39 2009 +0000 From-SVN: r1245 commit de0a0848cb8e005d7dea02e54b8a7a502a6f517f Author: Pierre-Loup A. Griffais Date: Fri Mar 13 15:18:46 2009 +0000 Bump mapping (hardcoded to palette 100 for now, will do the defs glue later to make it more convenient to package the source for public releases). TODO: use the inverse TBN on a world-space light vector instead of transforming every fragment interpolated normal into eye-space with the TBN * the view matrix. From-SVN: r1244 commit 16df9079a302559ac4e462df5921f4709d44e341 Author: Pierre-Loup A. Griffais Date: Thu Mar 12 21:20:01 2009 +0000 Reorganize point light GPU program a bit. From-SVN: r1243 commit 2f94a95ddd562751df0cbed832918502dc45d935 Author: Pierre-Loup A. Griffais Date: Thu Mar 12 13:51:30 2009 +0000 Multi-pass shading and correct a light culling bug. From-SVN: r1242 commit 9249e6c44ef1bc5a189c8cbc09ca4de973011cee Author: Pierre-Loup A. Griffais Date: Wed Mar 11 13:23:05 2009 +0000 Calculate inverse TBN matrix for planes. From-SVN: r1241 commit deadd2ec931fea5a66a6ab3c481c296420941a81 Author: Pierre-Loup A. Griffais Date: Tue Mar 10 17:49:34 2009 +0000 Basic model bounding sphere light culling and corrected the bounding sphere calculation algorithm. Note that light still leaks to models/sprites on overlapping sectors, but not on the sectors themselves. From-SVN: r1240 commit 14d011d2efa74d2f328ffaf99b18804face56456 Author: Pierre-Loup A. Griffais Date: Tue Mar 10 14:30:34 2009 +0000 MD3 normals. From-SVN: r1239 commit fc26ef46a66e6f0683c58caa6de93ca0506b4d5a Author: Pierre-Loup A. Griffais Date: Tue Mar 10 12:08:33 2009 +0000 Repack model geometry as floats (preliminary work for model normals). From-SVN: r1238 commit 6eec476807ba28101a15fe7fc85116b9bdbcd130 Author: Pierre-Loup A. Griffais Date: Tue Mar 10 09:26:25 2009 +0000 Model bounding box and sphere computation. From-SVN: r1237 commit 70a8318268fcb07cb10d997f791287ede2636017 Author: Peter Veenstra Date: Mon Mar 9 15:53:19 2009 +0000 fastcall works only on i386. (not on 64 bit) From-SVN: r1236 commit 3037121fefb4f975951944509df2fe5438f749f2 Author: Pierre-Loup A. Griffais Date: Sun Mar 8 22:59:54 2009 +0000 Sprite lighting. From-SVN: r1235 commit 9538d8979acb69a2eae0b056db09e105c54a1c7b Author: Pierre-Loup A. Griffais Date: Sun Mar 8 21:07:40 2009 +0000 Work around a precision bug that would cause colinear wall vectors to only be "almost" colinear, causing the cross product to be wrongly validated and resulting in bogus normal vectors for some surfaces. From-SVN: r1234 commit d526970eea6339cb29e67d9d6aa4c0e25cea079e Author: Pierre-Loup A. Griffais Date: Sun Mar 8 20:38:51 2009 +0000 Light culling and proper diffuse material. From-SVN: r1233 commit d8512db614358d05556f8f48c525ff55150a1f3e Author: Pierre-Loup A. Griffais Date: Tue Mar 3 21:12:17 2009 +0000 Update TODO list to current state of things. From-SVN: r1232 commit 6e5fde6559aa1bfd0b41523827042fa2bb6cc2fa Author: Pierre-Loup A. Griffais Date: Tue Mar 3 14:01:14 2009 +0000 Remove unused array weighing an assload of bytes in the .bss segment. From-SVN: r1231 commit 008bab19425f229c45ea242ace5a6bf20c677bd6 Author: Richard Gobeille Date: Sat Feb 28 07:44:54 2009 +0000 nothing special From-SVN: r1230 commit cf94b8b352084f3dfd1fcd4d921bc655cac4a8d5 Author: Richard Gobeille Date: Thu Feb 19 16:47:54 2009 +0000 new version of astyle From-SVN: r1229 commit a4eaf72702d6c738fc3267f065314460839c88d6 Author: Richard Gobeille Date: Thu Feb 19 09:39:19 2009 +0000 From-SVN: r1228 commit 322c2714776530dd46080a7f8c3979b7b34f56c6 Author: Pierre-Loup A. Griffais Date: Sat Feb 14 14:31:58 2009 +0000 Glue code between internal light source management and the game. From-SVN: r1227 commit 9f2fb4966dbbbfc75688bb066f8097e0815dc66b Author: Pierre-Loup A. Griffais Date: Fri Feb 13 13:10:01 2009 +0000 Fixes a crash when disabling high-res texture replacements. From-SVN: r1226 commit 423f5cb1b1ff1f6ef5c6f92e400008c720b007d3 Author: Pierre-Loup A. Griffais Date: Fri Feb 13 13:05:56 2009 +0000 Proper hightile sprite calculation (fixes HRP explosion size). From-SVN: r1225 commit 7c6f45430f9b1e55532ae7b8133dc64c647804be Author: Pierre-Loup A. Griffais Date: Fri Feb 13 12:30:08 2009 +0000 Propagate build/polymost locals so that polymost_dorotatesprite can correctly draw HUD models on top of polymer. From-SVN: r1224 commit d86c3c561c5757aff7dc366319ece87ce474a33a Author: Pierre-Loup A. Griffais Date: Fri Feb 13 12:16:21 2009 +0000 Correct calculation of vertical aiming angle. From-SVN: r1223 commit 140372de08a939471fcdf610ac891aeac7f99bb6 Author: Pierre-Loup A. Griffais Date: Thu Feb 5 08:56:59 2009 +0000 Shader Model 3 "compatibility" for multilights. The light count will be arbitrarily limited and performance will be suboptimal, but it should work. From-SVN: r1222 commit f9b86398945288c2aef8714e766c508a46cbdd6d Author: Richard Gobeille Date: Mon Feb 2 01:49:14 2009 +0000 From-SVN: r1221 commit d4c81092f186f8bcae91120344e39993cfb6ccd5 Author: Richard Gobeille Date: Sat Jan 31 00:02:14 2009 +0000 clean out tree From-SVN: r1220 commit 2a47a3dd30cef74769770882d12968a406a14415 Author: Pierre-Loup A. Griffais Date: Fri Jan 23 10:59:18 2009 +0000 Very tentative attempt at backwards-compatible multi-lights. From-SVN: r1219 commit edec963b0ff36575fe790c994e7881bd2f1e0715 Author: Richard Gobeille Date: Wed Jan 21 22:43:44 2009 +0000 From-SVN: r1218 commit 05cc9f8251d81957d77d14f4bba1156323610753 Author: Richard Gobeille Date: Mon Jan 19 06:41:28 2009 +0000 From-SVN: r1217 commit e7322cd8c76241796be16ad777f38a1489f10d26 Author: Richard Gobeille Date: Mon Jan 19 00:58:39 2009 +0000 From-SVN: r1216 commit 4ffd0c180a8e21281a7033947998d52f593b5b0f Author: Richard Gobeille Date: Sun Jan 18 07:32:35 2009 +0000 From-SVN: r1215 commit d7fa1f9fa9c8eb0c7a17e9c253ff9964926fc9f2 Author: Richard Gobeille Date: Fri Jan 16 07:24:15 2009 +0000 From-SVN: r1214 commit 84155bb0de916c0758dfbbd3b741640887cb0c0f Author: Richard Gobeille Date: Fri Jan 16 06:11:25 2009 +0000 this isn't done yet From-SVN: r1213 commit 061202b5391de73c0cb9245df9761cccb4301d68 Author: Pierre-Loup A. Griffais Date: Fri Jan 16 05:03:12 2009 +0000 Multiple light sources and repair the indentation fuckup caused by the transition to normalized integer types. From-SVN: r1212 commit 1feb7a8f8af54aa683e853f6eb0258ff9bce76ed Author: Pierre-Loup A. Griffais Date: Wed Jan 14 14:13:51 2009 +0000 I'm about to change the core lighting code pretty deeply and I'll be happy to have this revision as a working backup after I screw everything up. From-SVN: r1211 commit bcf8f3a791ffc36f1fd3f11d2c8e3e3cf7e8b3ad Author: Richard Gobeille Date: Wed Jan 14 10:40:30 2009 +0000 From-SVN: r1210 commit 3b1c837ddb5c22930f7e4008312ed53ad0d9c0cd Author: Richard Gobeille Date: Wed Jan 14 00:49:26 2009 +0000 From-SVN: r1209 commit 9142a2e27a275730d0fd4a2033d2ebe146abd211 Author: Richard Gobeille Date: Tue Jan 13 12:23:18 2009 +0000 From-SVN: r1208 commit 77f3b9f7c9d6721ce8b2c52bd5c281adaed82db1 Author: Richard Gobeille Date: Tue Jan 13 04:40:56 2009 +0000 From-SVN: r1207 commit 4aa7b77c449aa08e7c4ba5ca5ea8b5778e1b29e9 Author: Richard Gobeille Date: Sat Jan 10 07:38:50 2009 +0000 From-SVN: r1206 commit b1356f6973f2d337a2f96a5cdfbc5bc304a2d935 Author: Richard Gobeille Date: Fri Jan 9 09:29:17 2009 +0000 ass rape From-SVN: r1205 commit d5ee344f0da5f0697a52d957792c6211d9d4ea14 Author: Richard Gobeille Date: Wed Jan 7 14:05:13 2009 +0000 From-SVN: r1204 commit fe6c327585e89361988c929fda90421e88ced866 Author: Richard Gobeille Date: Tue Jan 6 06:59:18 2009 +0000 From-SVN: r1203 commit d4e99b771bb06bb495d14b990815c805c8dd6d46 Author: Richard Gobeille Date: Tue Jan 6 00:00:11 2009 +0000 From-SVN: r1202 commit 73c5fad919a88917e92171f6e6d5b3ea7655c71d Author: Richard Gobeille Date: Mon Jan 5 14:43:12 2009 +0000 From-SVN: r1201 commit 4bb92c7b48d4ba9ded7e1c38ade164df8b3c4a87 Author: Richard Gobeille Date: Sun Jan 4 22:22:33 2009 +0000 I bet this breaks something From-SVN: r1200 commit f3dffda2c288431a98d8228b9149139559f6cc70 Author: Richard Gobeille Date: Sat Jan 3 22:47:16 2009 +0000 From-SVN: r1199 commit 3eed1696a86e71f9242cd774dd562f16a35ac290 Author: Richard Gobeille Date: Fri Jan 2 01:03:41 2009 +0000 From-SVN: r1198 commit d3912c607d19bdbd2deae4e7e4d4df93e8bdcf6d Author: Richard Gobeille Date: Wed Dec 31 09:07:49 2008 +0000 From-SVN: r1197 commit 7df3e92b924f2ce001ed1b430b71e92d94848926 Author: Richard Gobeille Date: Tue Dec 30 03:41:21 2008 +0000 From-SVN: r1196 commit dd19580fb0f1037eeca2cf8ea6220b90f9eac173 Author: Richard Gobeille Date: Sun Dec 28 23:27:24 2008 +0000 From-SVN: r1195 commit f7fc1a5323bccd324929a408ac9cf3dfe8cc4c23 Author: Richard Gobeille Date: Thu Dec 25 12:56:25 2008 +0000 From-SVN: r1194 commit 22375d377a3bb58211e71dae3e7ba277c6b7e2a9 Author: Richard Gobeille Date: Thu Dec 25 09:43:00 2008 +0000 From-SVN: r1193 commit 998c42632c1f04abf8ed354223b3b2ff045894bd Author: Richard Gobeille Date: Wed Dec 24 23:19:22 2008 +0000 From-SVN: r1192 commit d4703df1915a5c814cd0d7ce2694671cb3047ddc Author: Richard Gobeille Date: Wed Dec 24 09:56:35 2008 +0000 From-SVN: r1191 commit 08b7674accbaf3cabc64b3598b6780a48e1b17c5 Author: Richard Gobeille Date: Tue Dec 23 23:27:53 2008 +0000 From-SVN: r1190 commit 9bb16b6dde6ff88b56ccda7ce58c76890d0b77fd Author: Richard Gobeille Date: Sun Dec 21 22:46:55 2008 +0000 From-SVN: r1189 commit 2c88720b6354ecc6b7943e2b32d0c98899bd94c7 Author: Richard Gobeille Date: Fri Dec 19 00:53:54 2008 +0000 From-SVN: r1188 commit face9ce30114547bc3024c4afd25eb41f9e9b45e Author: Richard Gobeille Date: Wed Dec 17 01:59:36 2008 +0000 From-SVN: r1187 commit 6d6de3d63dd2330c71e28399c68ec32d82e797a5 Author: Richard Gobeille Date: Tue Dec 16 01:09:13 2008 +0000 From-SVN: r1186 commit c25a44042ac2fcc8c48f197c42aea5703ac95db0 Author: Richard Gobeille Date: Mon Dec 15 13:56:30 2008 +0000 Fix the shrinker problem for real this time From-SVN: r1185 commit 84b692276acb161d05c875e8bbdc0ee92d70d85f Author: Richard Gobeille Date: Mon Dec 15 10:29:42 2008 +0000 From-SVN: r1184 commit 97518c5ed4f9961ffea3eb826ddd436f6faa6852 Author: Richard Gobeille Date: Mon Dec 15 08:38:16 2008 +0000 From-SVN: r1183 commit 7a5df68661ee57301b0850974b37b151467328ce Author: Richard Gobeille Date: Sun Dec 14 22:11:07 2008 +0000 This fixes the bug with the shrinker in savegames From-SVN: r1182 commit d3238e32604ef06e5842c76c29fc270807067c10 Author: Richard Gobeille Date: Sat Dec 13 21:01:33 2008 +0000 From-SVN: r1181 commit 0d315ef43cc21dd1b25b3eb6fcb2658773c0ff9e Author: Richard Gobeille Date: Sat Dec 13 08:02:22 2008 +0000 From-SVN: r1180 commit 89571045b7a240c85bddd3c9238005070f48a93f Author: Richard Gobeille Date: Sat Dec 13 07:23:13 2008 +0000 From-SVN: r1179 commit 06b4237c7aebc4ac732e2af52406e16446bbf78a Author: Richard Gobeille Date: Wed Dec 10 11:36:53 2008 +0000 From-SVN: r1178 commit c06f096a7f42dadcbecbda40c0f2c9e6658abc65 Author: Richard Gobeille Date: Mon Dec 8 02:04:20 2008 +0000 From-SVN: r1177 commit 0020e1994f31509a04ec2e47504c16f93287e37e Author: Richard Gobeille Date: Thu Dec 4 00:31:16 2008 +0000 From-SVN: r1176 commit f7f5ff819c9d6ef5b3497affe2007c95b8b3fe7f Author: Peter Veenstra Date: Wed Dec 3 11:07:01 2008 +0000 Fix warnings and compilation (and possible crashes on 64 bit due to wrong protyping messing up the stack). From-SVN: r1175 commit 1dabd854000bdee90ac7de2330faf59d459fdbee Author: Peter Veenstra Date: Wed Dec 3 11:05:16 2008 +0000 Fix warning and correct line ends. From-SVN: r1174 commit 9a19aefdc8b2f0a0646adbfd682d19f41982f74e Author: Richard Gobeille Date: Tue Dec 2 10:44:39 2008 +0000 separate objects for polymost.c/mdsprite.c/hightile.c and friends From-SVN: r1173 commit 05f8b16a08c95e73ead099f8ea170bea20d1b1d2 Author: Richard Gobeille Date: Mon Dec 1 13:44:46 2008 +0000 From-SVN: r1172 commit 60c1fa374dbd27e0f2430dec141425bdc3fd1b1f Author: Richard Gobeille Date: Mon Dec 1 10:44:18 2008 +0000 From-SVN: r1171 commit 16607c02cad02500c2d08c02e3d6a6114c7b18a5 Author: Pierre-Loup A. Griffais Date: Sat Nov 29 20:16:19 2008 +0000 Light my fire. From-SVN: r1170 commit 54ac98698027aa4dc579d0a8fa9b01cf32cbe8ba Author: Pierre-Loup A. Griffais Date: Thu Nov 27 23:00:57 2008 +0000 Fullbright/glow material bit. From-SVN: r1169 commit 7d8351cafc8c683dda0a920b0e738c9b4db67efd Author: Pierre-Loup A. Griffais Date: Thu Nov 27 22:26:46 2008 +0000 Detail map material bit. From-SVN: r1168 commit 737cf7ff88bc30d79c1700ebf253dcada7bf7ba8 Author: Pierre-Loup A. Griffais Date: Thu Nov 27 16:19:24 2008 +0000 Added model animation interpolation in the material system. From-SVN: r1167 commit 961f6ff107f7dcd1e85f82996014a3dd7504ca31 Author: Richard Gobeille Date: Wed Nov 26 22:51:56 2008 +0000 From-SVN: r1166 commit 4e20d166d2cce029bfc762dc19025fd6a19eb74c Author: Pierre-Loup A. Griffais Date: Wed Nov 26 19:31:26 2008 +0000 Extends materials to mdsprites and also fixes a bug where mdsprites got the wrong pal. From-SVN: r1165 commit 21e7739390c0e5364d28ff6148c1ede9933109b8 Author: Pierre-Loup A. Griffais Date: Wed Nov 26 17:24:08 2008 +0000 Moved sprite flipping in the material code and implemented polymost texture scaling. From-SVN: r1164 commit 9698f58f4ae3377c15515760bd78478da477a323 Author: Pierre-Loup A. Griffais Date: Wed Nov 26 14:22:07 2008 +0000 Factor the material code that's all over the place. From-SVN: r1163 commit 08e2f8f917829a9a30403914598aa11b699368de Author: Pierre-Loup A. Griffais Date: Wed Nov 26 08:37:14 2008 +0000 Diffuse map bit and _prprograminfo for storing possible uniform and attributes locations. From-SVN: r1162 commit cdda3c32b68ae71aef7fc319469d1a6e2414a5a9 Author: Richard Gobeille Date: Wed Nov 26 08:14:23 2008 +0000 From-SVN: r1161 commit 12ddead287fae606ec0eebb764d4412ee8b5abc0 Author: Pierre-Loup A. Griffais Date: Wed Nov 26 07:48:24 2008 +0000 Remove C99-style initializers from the polymer program bits. From-SVN: r1160 commit be5ec910c539f0498443413a8b66dce51f282698 Author: Richard Gobeille Date: Wed Nov 26 02:43:47 2008 +0000 From-SVN: r1159 commit 54320efdfd2bce9a598bc337d25ee75f55eb5e6d Author: Richard Gobeille Date: Tue Nov 25 15:43:36 2008 +0000 From-SVN: r1158 commit 014c28efe514c060961a8a5da23da365080e0d50 Author: Richard Gobeille Date: Tue Nov 25 15:23:48 2008 +0000 From-SVN: r1157 commit 031eed2c76e3bca42ead222c14849cab1d1cff77 Author: Richard Gobeille Date: Tue Nov 25 14:35:33 2008 +0000 hashes for texcache From-SVN: r1156 commit 8da5295578398eac977ae14b943f12bc955b6a1b Author: Richard Gobeille Date: Tue Nov 25 13:06:36 2008 +0000 new texcache stuff From-SVN: r1155 commit 4eff98e69c27163a669eabd3c9583a1b5d9d8437 Author: Pierre-Loup A. Griffais Date: Tue Nov 25 11:32:49 2008 +0000 Material/program validation and diffuse modulation bit. From-SVN: r1154 commit c044d1ca34f7d210d04877c634e56825154368c7 Author: Pierre-Loup A. Griffais Date: Tue Nov 25 10:42:22 2008 +0000 In a material world... From-SVN: r1153 commit 187b22952343213aed59e6743e87c121553d6daa Author: Pierre-Loup A. Griffais Date: Tue Nov 25 09:07:38 2008 +0000 Polymer GPU program management stuff. From-SVN: r1152 commit 553f588842ec69ff8d1745a44ba9ddb6aa2ddeac Author: Richard Gobeille Date: Mon Nov 24 11:31:05 2008 +0000 From-SVN: r1151 commit 7aa0d234be8fc7fe6093f515b7c9fcbada98dc1a Author: Richard Gobeille Date: Mon Nov 24 09:22:07 2008 +0000 From-SVN: r1150 commit 40720e25014bceabf4743224a0313097298431aa Author: Richard Gobeille Date: Sun Nov 23 03:09:34 2008 +0000 From-SVN: r1149 commit a84baba489bfa843a46d1826c6da5dedc9d834a3 Author: Richard Gobeille Date: Sat Nov 22 11:42:22 2008 +0000 From-SVN: r1148 commit ff197aa771e56b0c7293272375a5a974cb80a1ec Author: Richard Gobeille Date: Sat Nov 22 06:53:45 2008 +0000 From-SVN: r1147 commit 907bcaca440482cf8ac838e491255a6093808870 Author: Richard Gobeille Date: Sat Nov 22 06:46:27 2008 +0000 From-SVN: r1146 commit a245ce0616e331b7ee5a851b9f7b279428d1ab6c Author: Richard Gobeille Date: Sat Nov 22 02:59:25 2008 +0000 From-SVN: r1145 commit 26b7e7111273b52e99b48a534dd44fa345e33d14 Author: Richard Gobeille Date: Fri Nov 21 12:14:05 2008 +0000 From-SVN: r1144 commit 44e48159500d0d08eea5c81412d7271f63b1a712 Author: Richard Gobeille Date: Thu Nov 20 14:06:36 2008 +0000 source code rape From-SVN: r1143 commit 6e46b53258a6b74e6fe46ee6d347edb5cc07742d Author: Richard Gobeille Date: Mon Nov 17 01:15:16 2008 +0000 From-SVN: r1142 commit 339cfcbe6ea75d560317be4e30c80794fb6f92b2 Author: Richard Gobeille Date: Mon Nov 17 00:38:26 2008 +0000 Some networking updates from the SW source From-SVN: r1141 commit d5f81cd6e0d9f1e413db946d106ab1ed295feb82 Author: Pierre-Loup A. Griffais Date: Sun Nov 16 22:56:55 2008 +0000 glbuild support for ARB_vertex_shader From-SVN: r1140 commit 606bfc478fa8bcfcbef69d391ae122ee6a47a25f Author: Pierre-Loup A. Griffais Date: Sun Nov 16 21:46:11 2008 +0000 Added glbuild support for ARB_shader_objects and fixed ARB_occlusion_query. From-SVN: r1139 commit aeda4c1cf4910e3772598e31e5d35b98adfa5084 Author: Richard Gobeille Date: Sun Nov 16 00:48:02 2008 +0000 From-SVN: r1138 commit 30d3b28a5ead142dd60aa09401a88c44bd3e62fa Author: Richard Gobeille Date: Sat Nov 15 05:18:07 2008 +0000 From-SVN: r1137 commit 9982f41641f26866b12fa2d742d83e6d1fe8c727 Author: Richard Gobeille Date: Fri Nov 14 19:55:48 2008 +0000 From-SVN: r1136 commit f07ac6499532c854b52184958b9206c867e6da9d Author: Richard Gobeille Date: Fri Nov 14 12:05:44 2008 +0000 From-SVN: r1135 commit 750520b562e260580b03188299920261e77bd957 Author: Richard Gobeille Date: Fri Nov 14 11:16:44 2008 +0000 From-SVN: r1134 commit 70f4d2451e12de6bf3fdc1de3628b618e59747dd Author: Richard Gobeille Date: Fri Nov 14 11:04:22 2008 +0000 From-SVN: r1133 commit cdddeca7497d2bc6fac390dc3da8a13484d4b35b Author: Richard Gobeille Date: Fri Nov 14 08:22:57 2008 +0000 Support for JFDuke style network play setup with the duke3d_w32 networking code From-SVN: r1132 commit 6214d52b68a10e97107cb418808526f6ca73b1fd Author: Richard Gobeille Date: Thu Nov 13 13:58:53 2008 +0000 From-SVN: r1131 commit a15df198b07f0283e4bcc131456dcba36950a46c Author: Richard Gobeille Date: Thu Nov 13 11:45:34 2008 +0000 Master/slave code From-SVN: r1130 commit b98bb21d4410c05e5c85e251194c31ab4551cac2 Author: Richard Gobeille Date: Wed Nov 12 22:28:02 2008 +0000 From-SVN: r1129 commit 56d59059e23d6e4c496135c1ed0590838c76bec5 Author: Richard Gobeille Date: Wed Nov 12 04:16:41 2008 +0000 From-SVN: r1128 commit ddfd6ceebc10248aff6bd78a99340353deac8b30 Author: Richard Gobeille Date: Tue Nov 11 14:58:02 2008 +0000 From-SVN: r1127 commit a8a0db0404e3ed560d1b1d83aa065ad087eddee1 Author: Richard Gobeille Date: Tue Nov 11 14:48:59 2008 +0000 From-SVN: r1126 commit ae2103a840b490da2d363b329471e2d551a9eb54 Author: Richard Gobeille Date: Tue Nov 11 13:45:12 2008 +0000 From-SVN: r1125 commit 1c0733a945d1be1f54e54b4b8fdb5d9e5210316b Author: Richard Gobeille Date: Tue Nov 11 13:24:05 2008 +0000 Enet networking patch from a random dude on IRC, with the addition of my own port of the "unstable" networking code from duke3d_w32 (which is what is actually used in Internet play) From-SVN: r1124 commit bb2355fed62f4298178b0603a026a367f55c09c5 Author: Philipp Kutin Date: Sun Nov 9 13:47:27 2008 +0000 Mapster32: don't ask for confirmation when joining a sector with itself From-SVN: r1123 commit 6e8fbd725eeb67dc9452a76d5cac13baa571c27e Author: Richard Gobeille Date: Sun Nov 9 11:09:42 2008 +0000 From-SVN: r1122 commit a23cc9f9e8bce86b818fcca47c3102323cf6da16 Author: Richard Gobeille Date: Wed Nov 5 11:49:13 2008 +0000 From-SVN: r1121 commit 8337f98fbf9b3282529402fbdc87dc816c6c2c52 Author: Richard Gobeille Date: Fri Oct 31 10:08:51 2008 +0000 From-SVN: r1120 commit 449104e9f3aced66771d2bec240d8d8b53b80f76 Author: Richard Gobeille Date: Mon Oct 27 10:36:13 2008 +0000 Added filename based loading of mids and oggs for user map music and fixed some memory corruption which occurred in the CON compiler when it couldn't find a definition From-SVN: r1119 commit 8cba29732886e93aba3c95bf33928ec604373d65 Author: Hunter_rus Date: Sat Oct 25 11:21:50 2008 +0000 Reduce warnings From-SVN: r1118 commit 6880b1f7f48b69b9d03dfb62e9f021a2c37d9788 Author: Richard Gobeille Date: Sat Oct 25 03:20:41 2008 +0000 From-SVN: r1117 commit 3f54ef6afa1e0d22aa0d1ef6d8324e83c8201621 Author: Richard Gobeille Date: Sat Oct 25 02:32:57 2008 +0000 From-SVN: r1116 commit e5793252f2bac26d6876da7fad50e3c5106ce004 Author: Richard Gobeille Date: Fri Oct 24 09:36:54 2008 +0000 From-SVN: r1115 commit 925357aebdefff2b966673b0225fe1a728224bfd Author: Richard Gobeille Date: Fri Oct 24 09:20:38 2008 +0000 From-SVN: r1114 commit c78ed51c198134418b0b318c950b60019ac059fd Author: Richard Gobeille Date: Fri Oct 24 01:33:53 2008 +0000 From-SVN: r1113 commit 354a342a92fb543407cb212b14d5e887bec20af9 Author: Hunter_rus Date: Thu Oct 23 20:19:30 2008 +0000 Sync console commands From-SVN: r1112 commit 8ef19aef1b024ef869ed41f9194bb03805ae7659 Author: Richard Gobeille Date: Wed Oct 22 07:30:06 2008 +0000 From-SVN: r1111 commit 5011743d3fa46788a2af108380b14539a96e0538 Author: Richard Gobeille Date: Wed Oct 22 04:14:30 2008 +0000 From-SVN: r1110 commit 252cb03624333dc9adb8d1ce449f4021e595bad1 Author: Richard Gobeille Date: Mon Oct 20 12:33:29 2008 +0000 SDL 1.3 support... install SDL 1.3 to /usr/local or edit Makefile and build/Makefile.shared to point to your copy of sdl-config From-SVN: r1109 commit c54a5850b740084a2778e14a7d059079314a9a2e Author: Richard Gobeille Date: Mon Oct 20 04:35:57 2008 +0000 From-SVN: r1108 commit 7e402fbda7699a756fc6b2c7c84769a1d965175f Author: Richard Gobeille Date: Mon Oct 20 04:00:00 2008 +0000 From-SVN: r1107 commit dbf79a7e5c8231c1042ef83dffb8f4cfad4c367e Author: Richard Gobeille Date: Mon Oct 20 03:39:35 2008 +0000 From-SVN: r1106 commit 831a0eba07bdb0508f5de852ca87c4efff21084e Author: Richard Gobeille Date: Mon Oct 20 03:09:19 2008 +0000 Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake From-SVN: r1105 commit 3e0f36cd38ad5b7f4a5ae32f10807d3aec750411 Author: Philipp Kutin Date: Sun Oct 19 15:27:12 2008 +0000 just another updatenumsprites() fix From-SVN: r1104 commit 2f702167da95cf7e4019b2ce720cc39f39d78364 Author: Richard Gobeille Date: Sun Oct 19 12:14:04 2008 +0000 From-SVN: r1103 commit 351d45ff306562e2c073b2b4951baac29b2d4a0b Author: Richard Gobeille Date: Sat Oct 18 13:25:23 2008 +0000 From-SVN: r1102 commit bfaf0f3a4995877db9e060763a94c18ab615e440 Author: Richard Gobeille Date: Sat Oct 18 12:37:26 2008 +0000 Misc shit From-SVN: r1101 commit 60de4c22e4b6834be2da08a76e056b0dd4a4f693 Author: Richard Gobeille Date: Tue Oct 14 08:40:59 2008 +0000 From-SVN: r1100 commit cc11db293207ac92bfa3b041df7671af1f4a2e00 Author: Richard Gobeille Date: Mon Oct 13 01:16:40 2008 +0000 Some mouse changes... previous effect of the "mouse smoothing" menu option is now mandatory (since turning it off just means you'll lose input from tiny movements), new "mouse smoothing" effect is a more traditional average of the last 2 times the mouse input was read From-SVN: r1099 commit dfa6dd917a0574dc725124496d56e9c862c4aa6f Author: Philipp Kutin Date: Sun Oct 12 19:16:09 2008 +0000 Mapster32: fix in text tool; show unknown SE tags in 2d mode From-SVN: r1098 commit 4d66a8ec7a08739e66258b03aa699764ad68a840 Author: Richard Gobeille Date: Sat Oct 11 11:50:02 2008 +0000 From-SVN: r1097 commit 20e19e118447f0e262abaac18fbade3b2a35a2ed Author: Richard Gobeille Date: Sat Oct 11 09:48:09 2008 +0000 From-SVN: r1096 commit 2c1befb68bd071bb3e6e9e62eef0affb7644ba1f Author: Richard Gobeille Date: Sat Oct 11 09:20:04 2008 +0000 EDuke32: now with multiplayer text scaling hacks and nastiness From-SVN: r1095 commit ad181aa53a7e9b684de522cd3cc44c1563ee53e2 Author: Philipp Kutin Date: Thu Oct 9 21:09:16 2008 +0000 Mapster32: showheightindicators cvar, text tool improvements, drag selected sprites first after duplicating From-SVN: r1094 commit d6cd696f3d321aa162a47f3cef0d5f1b1f5cbd5b Author: Richard Gobeille Date: Wed Oct 8 18:49:51 2008 +0000 From-SVN: r1093 commit e0032028869e0dc2dc70fc08fcc7515c6afcc4c9 Author: Richard Gobeille Date: Wed Oct 8 03:16:34 2008 +0000 From-SVN: r1092 commit 27509350b9862786e464faee106172da27b601c1 Author: Richard Gobeille Date: Mon Oct 6 08:14:26 2008 +0000 From-SVN: r1091 commit ac4537356c560fdb6443ac00afcfa845cdafc7c6 Author: Richard Gobeille Date: Sun Oct 5 11:51:59 2008 +0000 Weapon sprite scaling, still needs a rotatespritescaled CON command From-SVN: r1090 commit 2047f562d8570a46a3d2d7aae2a77d7e94552bf7 Author: Richard Gobeille Date: Sun Oct 5 09:23:55 2008 +0000 From-SVN: r1089 commit 2e057760279e7c6eea7bd1bd95323b37cc13f48f Author: Richard Gobeille Date: Fri Oct 3 10:28:17 2008 +0000 From-SVN: r1088 commit 9bda3dd78ca8953a47aa64af6e91cfd1721b8b10 Author: Richard Gobeille Date: Thu Oct 2 17:45:44 2008 +0000 From-SVN: r1087 commit b6fd8046ca3a8513e48affa5ee9cedadad13a038 Author: Richard Gobeille Date: Wed Oct 1 04:38:14 2008 +0000 Adds r_maxfps and some better error messages for cases where the user didn't even copy a grp into their EDuke32 dir From-SVN: r1086 commit d241678281f3246c86b79b3caf6e7bc6f64d106e Author: Richard Gobeille Date: Tue Sep 30 17:27:23 2008 +0000 From-SVN: r1085 commit 97c905c8c82c581b1f99078f25ce32975e78a4de Author: Philipp Kutin Date: Tue Sep 30 13:08:57 2008 +0000 Reverted sprite interpolation for SE31; minor additions to game.c From-SVN: r1084 commit 8f7765eb416c09bd3a93d8d6955306a1ab81c39e Author: Richard Gobeille Date: Mon Sep 29 07:38:12 2008 +0000 From-SVN: r1083 commit 6a1b6ef3a18d0b5587ab75a1b8edac840c839c20 Author: Richard Gobeille Date: Mon Sep 29 02:12:53 2008 +0000 Fixes From-SVN: r1082 commit 43b1fc841d9e040efb1b3d105b50649c97f376f6 Author: Philipp Kutin Date: Sun Sep 28 21:48:31 2008 +0000 Game: fix sprite jittering for SE31. Editor: copy relevant commandline switches to testplay_addparam on startup. From-SVN: r1081 commit 0e113d8fb5c38511ee07e63978a04c1e0a33325c Author: Richard Gobeille Date: Sun Sep 28 11:00:59 2008 +0000 From-SVN: r1080 commit 482aa41f06ab7956179a50ff087a7f0b5316ec72 Author: Richard Gobeille Date: Fri Sep 26 17:20:10 2008 +0000 Fix building with gcc older than 4.3.2, other minor fixes From-SVN: r1079 commit b41521e25343727c4da7613f3cd2442c330242d2 Author: Philipp Kutin Date: Fri Sep 26 09:48:35 2008 +0000 Fixes a bug where wall or floor sprites in elevator sectors would jitter vertically after the elevator had stopped. From-SVN: r1078 commit ab400b3dc927002ac26763fe7819b2852ab0c31e Author: Richard Gobeille Date: Fri Sep 26 04:45:36 2008 +0000 From-SVN: r1077 commit 59cda77a42d65414d66024d060284c668ea19d58 Author: Richard Gobeille Date: Fri Sep 26 04:20:08 2008 +0000 From-SVN: r1076 commit 1272b703c54893ab803f59d9ad3c5bba0804e052 Author: Philipp Kutin Date: Thu Sep 25 11:01:37 2008 +0000 Merged alpha.cfg with tiles.cfg parsing From-SVN: r1075 commit dbdd7ef11251f156f455ca2b55f104c60dfafef4 Author: Richard Gobeille Date: Wed Sep 24 10:20:18 2008 +0000 From-SVN: r1074 commit 79eae75a15ded9d68fe938383a82080c479007d4 Author: Philipp Kutin Date: Tue Sep 23 11:14:08 2008 +0000 Fixes infinite loops after having watched MP demo, this time correctly From-SVN: r1073 commit cf4698400d29c792149ab0360afcdfe309726bd4 Author: Richard Gobeille Date: Mon Sep 22 07:53:59 2008 +0000 From-SVN: r1072 commit 326175129d42263eeb824248d3fdcebb940d5171 Author: Philipp Kutin Date: Fri Sep 19 20:09:43 2008 +0000 Added more generic sprite search From-SVN: r1071 commit c2284e4c78ba717cf8d47520d37fea22689f362d Author: Richard Gobeille Date: Wed Sep 17 22:58:25 2008 +0000 From-SVN: r1070 commit ce7de8191920c68318b7ee708515d1e1306257be Author: Philipp Kutin Date: Tue Sep 16 15:32:59 2008 +0000 Quickplay: +Alt starts the map with real start positions From-SVN: r1069 commit 7485e022b4e76f33e62245d04d08802985e551a5 Author: Richard Gobeille Date: Mon Sep 15 02:47:02 2008 +0000 Cleaning uncommitted changes out of tree From-SVN: r1068 commit 40a2d0ff850be7e1374c91cd852eaee0bc8fb9c7 Author: Philipp Kutin Date: Sun Sep 14 21:25:23 2008 +0000 Game: write numbered demo files, fix infinite loop after finished demo playback From-SVN: r1067 commit b00f9a861c8c9bf82a887f852feda345a351d5c4 Author: Philipp Kutin Date: Sun Sep 14 14:47:32 2008 +0000 Text renderer: letters are now saved on a stack, misc. fixes. Quickplay: Added timeout so that user cannot create many eduke32 instances in a short time From-SVN: r1066 commit e1c80e82f734bb8a3b62502e0dc1136a2df26f0e Author: Philipp Kutin Date: Fri Sep 12 13:41:18 2008 +0000 Added quick map testing functionality (Windows only) From-SVN: r1065 commit 5d7b707eb10fb060e89c3306033a026580824652 Author: Richard Gobeille Date: Fri Sep 12 02:07:44 2008 +0000 Use bit packing for the bytecode pointer map From-SVN: r1064 commit bf4a57b94ce51715c8e443be4b8772183943c397 Author: Philipp Kutin Date: Thu Sep 11 21:22:58 2008 +0000 Text renderer: added parsing of alphabet definitions From-SVN: r1063 commit 15d9f71541092e8ad289570c1a59b75d59bf7a23 Author: Richard Gobeille Date: Thu Sep 11 09:24:45 2008 +0000 From-SVN: r1062 commit bdd54934da51267cacd2192983b95d29dd77175d Author: Philipp Kutin Date: Mon Sep 8 14:04:54 2008 +0000 Text renderer: letter tweaks; offset control From-SVN: r1061 commit 7531dedc95adf2f1bdf3c29bc809582ab37c12b4 Author: Hunter_rus Date: Sun Sep 7 12:36:20 2008 +0000 Adds logic CON commands: ifvaror | ifvarxor ^ ifvareither || (rename?) From-SVN: r1060 commit 4fc0f302fe49316af6bb01c804318d2b824b7ec1 Author: Hunter_rus Date: Sat Sep 6 09:11:35 2008 +0000 Fixed possible crash From-SVN: r1059 commit 37ab158412e4d1c8bd0baaa019c9906e9304b601 Author: Richard Gobeille Date: Sat Sep 6 06:22:31 2008 +0000 Fixes some stuff From-SVN: r1058 commit 89fa8551164e8fd488096f474b1072f5aa75e25e Author: Philipp Kutin Date: Fri Sep 5 23:23:26 2008 +0000 Text renderer: removed unneccessary function bt2idx(). From-SVN: r1057 commit 02497169e2d469569cb3fbbec796cb860bd49d85 Author: Philipp Kutin Date: Fri Sep 5 23:09:43 2008 +0000 Added text-made-of-sprites renderer for 3d mode From-SVN: r1056 commit 2a4c69415cc002085df614c5b209b6c58795111b Author: Richard Gobeille Date: Thu Sep 4 23:11:48 2008 +0000 From-SVN: r1055 commit 1dc31ece9c6d8e0fb8013f62405b4d5446095163 Author: Hunter_rus Date: Wed Sep 3 18:56:19 2008 +0000 Line numbers for gamevar error messages From-SVN: r1054 commit b6d7bc14cf3367d52ceb4683bedd1c6f1c06ddba Author: Richard Gobeille Date: Wed Sep 3 17:55:11 2008 +0000 From-SVN: r1053 commit 2c9ea3658b7d03f680f1b10c6f08d135fc5032cd Author: Richard Gobeille Date: Wed Sep 3 14:02:42 2008 +0000 From-SVN: r1052 commit 5877ddfaeaadc0d7dc0548893f3b90659322a628 Author: Richard Gobeille Date: Wed Sep 3 13:23:34 2008 +0000 From-SVN: r1051 commit 73cfc066266ae46408643257c6b96db06ce357c8 Author: Richard Gobeille Date: Wed Sep 3 11:59:54 2008 +0000 Adds getnumberptr256() which lets us update the map in real time based on the number typed in This is good for stuff like palettes, shades, sector visibility, et cetera where the user might want to see the results of a change before committing to it From-SVN: r1050 commit d99969874a57fe95c864531a5d093864c526eeef Author: Richard Gobeille Date: Wed Sep 3 10:47:19 2008 +0000 Show sector/sectoreffector type in tag input fields From-SVN: r1049 commit 7aa96e1df3419cf291836bd117d88e036adeeb37 Author: Richard Gobeille Date: Wed Sep 3 04:20:46 2008 +0000 Misc tweaks, patch from HelixHorned, half of gameexec.c moved to gamestructures.c From-SVN: r1048 commit c9c6521d8fb068fc7d9fd9bf1046082daca7a6a5 Author: Richard Gobeille Date: Tue Sep 2 02:45:06 2008 +0000 Show lengths in Mapster for walls being drawn or moved From-SVN: r1047 commit 9f4dff1c3ac0541996f3ab7af7c1baf6cae69239 Author: Richard Gobeille Date: Mon Sep 1 21:59:53 2008 +0000 From-SVN: r1046 commit 0aeda3551058a11c6696405d4e72f71465ad9dde Author: Richard Gobeille Date: Mon Sep 1 08:31:48 2008 +0000 From-SVN: r1045 commit 3a11814e31de86795e4c79eba947e132a4fafd38 Author: Richard Gobeille Date: Mon Sep 1 07:15:16 2008 +0000 A bunch of random shit From-SVN: r1044 commit db8741b22607c5392b0304ab7a2b861282185fb1 Author: Richard Gobeille Date: Thu Aug 28 23:15:11 2008 +0000 From-SVN: r1043 commit e6924ea86e6f1520c2aa616376988071f2c5d542 Author: Richard Gobeille Date: Thu Aug 28 15:04:16 2008 +0000 From-SVN: r1042 commit 758fd56aa17ccfcd70cb7d95d3bbfe84d63cf872 Author: Richard Gobeille Date: Thu Aug 28 11:52:28 2008 +0000 From-SVN: r1041 commit 9fec1e810dc15424fff6895d89ce7b95a39f2bad Author: Richard Gobeille Date: Thu Aug 28 11:35:35 2008 +0000 From-SVN: r1040 commit 5d87a5ce339d257b7799d8e7a6a8039abcc1270e Author: Richard Gobeille Date: Thu Aug 28 07:22:10 2008 +0000 Case insensitivity for structure members in CONs because they weren't case sensitive before for some reason From-SVN: r1039 commit b717ddf6f9a765bf41480de9048e9cdb07786b14 Author: Richard Gobeille Date: Thu Aug 28 06:56:26 2008 +0000 From-SVN: r1038 commit 118fa6a49072568258bfc8b3cae62c381803e32c Author: Richard Gobeille Date: Thu Aug 28 05:57:46 2008 +0000 From-SVN: r1037 commit f52e075c66a84aa55f3a5c7703913306cc488a8d Author: Richard Gobeille Date: Tue Aug 26 19:50:34 2008 +0000 Better handling of bad GL drivers From-SVN: r1036 commit ced22915a4376ad606f980134651b14eab976df3 Author: Richard Gobeille Date: Tue Aug 26 09:05:32 2008 +0000 From-SVN: r1035 commit d5c138af4c9127be0cbc876f754597269a3817ff Author: Richard Gobeille Date: Tue Aug 26 08:39:45 2008 +0000 From-SVN: r1034 commit d9c92c9692b22e67eb5cef0d0532105a8100e72b Author: Richard Gobeille Date: Tue Aug 26 04:00:42 2008 +0000 From-SVN: r1033 commit 76553f551f58258ec2d0080bb8dfb98825c772bf Author: Richard Gobeille Date: Mon Aug 25 23:48:00 2008 +0000 From-SVN: r1032 commit 7bcf673f54ba51e9c2f1dda2716401d0b5d231a5 Author: Hunter_rus Date: Mon Aug 25 20:25:49 2008 +0000 1. Small corrections to hash code. 2. Use hash for dynnames. 3. On crash EDuke32 throws info about CON code. From-SVN: r1031 commit e4ab662e45902a4d50848e5f6af3e2b85a4a604d Author: Richard Gobeille Date: Mon Aug 25 10:43:24 2008 +0000 From-SVN: r1030 commit 0b7f7cd7a3ebc5d5f3a1e0104eef9907c27ad43f Author: Richard Gobeille Date: Mon Aug 25 10:27:18 2008 +0000 From-SVN: r1029 commit 1838e838721a4ef740626718ff26eaf23823576c Author: Richard Gobeille Date: Mon Aug 25 04:28:17 2008 +0000 Put texcache under mod_dir From-SVN: r1028 commit 717153f5454acdb453fd9d403368b6ed02b08208 Author: Richard Gobeille Date: Mon Aug 25 02:35:15 2008 +0000 From-SVN: r1027 commit 2faf8ee6c59b54264dd9156be24a81ccd90db27c Author: Richard Gobeille Date: Mon Aug 25 02:33:25 2008 +0000 From-SVN: r1026 commit 326d89e90cfaf6ed5b27a99d8abbcdae813e479c Author: Richard Gobeille Date: Mon Aug 25 02:12:02 2008 +0000 Move hash table code into engine and use hash table for OSD symbol lookup From-SVN: r1025 commit 6203c6db8b993193eba8725cd47a5abb5cc03e54 Author: Richard Gobeille Date: Mon Aug 25 00:49:12 2008 +0000 Patch from hunter_rus to use hash tables for CON compiling This was sent to me broken, but after some investigation it looks like the only problem was in CON_STATE. This should speed up CON compilation speed about 500%or so. From-SVN: r1024 commit 9e297b09519c436ce19aecf26f2476bc6931193c Author: Richard Gobeille Date: Sun Aug 24 23:24:14 2008 +0000 From-SVN: r1023 commit 2817c0b4117ba80d2b3c6e2f0ab86e33638d2adb Author: Richard Gobeille Date: Sun Aug 24 22:44:37 2008 +0000 From-SVN: r1022 commit 58ed74813dc089621d8fa1d48be2d7fad48f7253 Author: Richard Gobeille Date: Sun Aug 24 19:09:17 2008 +0000 From-SVN: r1021 commit b73ed38ac5b9f4480c2d202f18f16b8c93f8192a Author: Richard Gobeille Date: Sun Aug 24 10:19:37 2008 +0000 From-SVN: r1020 commit 99a206ff242a3ac3dca4accd787dcbc15e9b0be2 Author: Richard Gobeille Date: Sun Aug 24 09:29:03 2008 +0000 From-SVN: r1019 commit dd2d53335b51fe7ed7a8756be11d5467755e07bb Author: Richard Gobeille Date: Sun Aug 24 09:01:17 2008 +0000 From-SVN: r1018 commit 0d64382740f7c517f55d997ea59c3069c10fa31c Author: Richard Gobeille Date: Sun Aug 24 06:17:09 2008 +0000 From-SVN: r1017 commit d38598e2a9ccc7378360e1ddea83d9779da99c7e Author: Richard Gobeille Date: Sun Aug 24 06:06:04 2008 +0000 From-SVN: r1016 commit c6f02f1802466894ef8a69f51bea1ba1f8b6cf90 Author: Richard Gobeille Date: Sun Aug 24 05:39:28 2008 +0000 From-SVN: r1015 commit c485cd954ad15cdf0086228f150c7451add0b674 Author: Richard Gobeille Date: Sun Aug 24 04:55:57 2008 +0000 Believe it or not, this actually consistently gave me a few fps in my test scenario From-SVN: r1014 commit 8e9a2458d34c012937e8010167ccebbee8ac09fa Author: Richard Gobeille Date: Sun Aug 24 04:35:35 2008 +0000 From-SVN: r1013 commit 6cc2004e768a351a5e158e39def92b5cd5c0718c Author: Richard Gobeille Date: Sun Aug 24 03:19:40 2008 +0000 From-SVN: r1012 commit 84a6672169c346583a648da4b27557ab78350615 Author: Richard Gobeille Date: Sun Aug 24 00:22:36 2008 +0000 This breaks members with LABEL_HASPARM2 on them so it's reverted From-SVN: r1011 commit 483d23a673e631675af42aff253768a8af3b56a9 Author: Richard Gobeille Date: Sat Aug 23 23:37:01 2008 +0000 From-SVN: r1010 commit dcc68aa63469bfbe7a14dae25b05cb4d8f8e6308 Author: Hunter_rus Date: Sat Aug 23 18:59:49 2008 +0000 http://forums.3drealms.com/vb/showpost.php?p=746876&postcount=26 Since EDuke32 can't display properly Chinese and Russian fonts, it will try to use English key names when possible. From-SVN: r1009 commit e4ba38d362dfc16100c790d9a57abbae92d5091e Author: Hunter_rus Date: Sat Aug 23 17:02:52 2008 +0000 Fixed OpenAL From-SVN: r1008 commit d414c52c3ba3f1f22b1afe20d69020e1e76c4e7d Author: Hunter_rus Date: Sat Aug 23 15:37:30 2008 +0000 1. EDuke32 didn't load ART files from the mod_dir. Fixed via the "root" string in "game.c". 2. Saving mod_dir to CFG is a bad idea IMHO so I commented it out. When I tried to load the standard game, EDuke32 would use the last used mod_dir. 3. Fixed tsprites. 4. EDSuke32 doesn't throw errors after 4096-th error. Resets the counter in ResetGameVars. 5. Restored 999 revision. Member names are changed. Extra members can be commented out. 6. Added an option(-sloppycmd) to allow execting of bad commands. This option should be renamed to something else. From-SVN: r1007 commit 20df050475f8b6f16440a84675eac8caf69d7dc5 Author: Richard Gobeille Date: Sat Aug 23 10:34:59 2008 +0000 From-SVN: r1006 commit 7168b09cec574ad63102f595c9bed2a76f0908fc Author: Richard Gobeille Date: Sat Aug 23 09:38:07 2008 +0000 From-SVN: r1005 commit 0154fb62c0451bd54baf07288c6c08001cc2bd1d Author: Richard Gobeille Date: Sat Aug 23 07:32:15 2008 +0000 New errors for when someone tries to use "define" to give something the same name as a gamevar Some constantly used loops in the compiler have also been flipped around for faster execution. Seems to speed up CON compilation a little bit. From-SVN: r1004 commit eb4e9218451b88f52b25e5d643126528653b8548 Author: Richard Gobeille Date: Sat Aug 23 03:12:23 2008 +0000 Mapster32 user_profiles_enabled fix From-SVN: r1003 commit cedc53f60e0ed362c02ceb43bc7e2aaa4130dba1 Author: Richard Gobeille Date: Sat Aug 23 01:21:17 2008 +0000 Revert commit 999 by hnt_ts Access to the tspr's owner in EVENT_ANIMATESPRITES is through the THISACTOR variable. The extra members of the sprite struct aren't represented in the tsprite CON implementation because they aren't referenced when rendering the sprite. From-SVN: r1002 commit aea9c7d28e3819ee3db6f888c639cf37decce9c6 Author: Richard Gobeille Date: Sat Aug 23 00:42:16 2008 +0000 Fixes (?) the issue with the player dying when falling into water sometimes. I don't know what the significance of this check is -- it looks like a typo. From-SVN: r1001 commit e0731ae3c6fe140ff53ebc77d694a82cd3208a27 Author: Richard Gobeille Date: Fri Aug 22 23:10:54 2008 +0000 Fix sound system restart crash with high res music pack From-SVN: r1000 commit 3e95bd14e13050ae634c199c6e807d83a3a624e2 Author: Hunter_rus Date: Fri Aug 22 16:31:03 2008 +0000 1. Improved access to tsprites. It even didn't have access to the owner member that points at the real sprite. 2. I don't know why the filler member(of the sprite/sector structure) was renamed in CONs but now it can be addressed by his real name as well. From-SVN: r999 commit d0e97e0be532090a239ee174fe1730c194afcd15 Author: Richard Gobeille Date: Fri Aug 22 05:39:13 2008 +0000 Mac fixes From-SVN: r998 commit af7ee9f439658216f18210e8481fba0ad7260cc6 Author: Richard Gobeille Date: Fri Aug 22 04:26:26 2008 +0000 From-SVN: r997 commit 45aed6cc110896bbad5a12766ba8756be86953f4 Author: Richard Gobeille Date: Wed Aug 20 22:58:09 2008 +0000 Patch from Marcus Herbert to add OSX support From-SVN: r996 commit fce04a87305869502eb12125ee69ed0eacdc5726 Author: Richard Gobeille Date: Wed Aug 20 09:38:36 2008 +0000 Oops From-SVN: r995 commit 0a69a38b34b2079f4aa21af5fd9cc27b027036b1 Author: Richard Gobeille Date: Wed Aug 20 09:27:17 2008 +0000 Use mod_dir for savegames From-SVN: r994 commit fe1a597cf860d571977d5450add5848d57096b0d Author: Richard Gobeille Date: Wed Aug 20 09:17:23 2008 +0000 From-SVN: r993 commit b7aa5b96a86bdfa8bf4de6e4db240ff971b98e0f Author: Richard Gobeille Date: Wed Aug 20 08:39:07 2008 +0000 Force startup window to be displayed if the cfg wasn't saved with an EDuke32 build of matching BYTEVERSION_JF, and use a wrapper around kopen4load to access files from mod_dir first. From-SVN: r992 commit 5d5ebd500059aedea8891ddd5d3e1c7558d3a1d2 Author: Richard Gobeille Date: Tue Aug 19 13:26:56 2008 +0000 Combine game and configuration tabs in the startup window into one. Still needs porting to startgtk.game.c. From-SVN: r991 commit c591b9ca662c1a762e43998a655bf14f587a72aa Author: Richard Gobeille Date: Tue Aug 19 11:05:21 2008 +0000 Ignore r_downsize for textures with nocompress and some other minor crap From-SVN: r990 commit 470e187b28a6bcdee8da3cb8b2063b78effd7c12 Author: Richard Gobeille Date: Mon Aug 18 07:20:36 2008 +0000 minor changes From-SVN: r989 commit 5f6673f91bc6c8f13fb6c34ced3dfd380c22c1c4 Author: Richard Gobeille Date: Sun Aug 17 11:40:27 2008 +0000 ignore texcache dir in startup window mod list From-SVN: r988 commit d94bc640ad49e45f6b3f6386718eb9d0502e8810 Author: Richard Gobeille Date: Sun Aug 17 11:07:28 2008 +0000 Rename definegamename to setgamename and alter the "map" console command to show a listing of all available maps if no map name is given From-SVN: r987 commit a97eb5528f18c58e2c0cfe6933358a359a39a3a1 Author: Richard Gobeille Date: Sun Aug 17 09:57:36 2008 +0000 CON_SETCFGNAME: sets the name of the cfg during CON compile if a cfg wasn't specified on the command line From-SVN: r986 commit 3e4b766e7ab4c3d9acc8118c948e77380bf97120 Author: Richard Gobeille Date: Sun Aug 17 09:25:52 2008 +0000 From-SVN: r985 commit 6afa7f51af17d6768e9ae1d2bbac2cbb86e2b189 Author: Richard Gobeille Date: Sun Aug 17 09:01:31 2008 +0000 Beginnings of support for selecting mods in the startup window... win32 only for now From-SVN: r984 commit 5e5c3c8d01f24ab41f94fb1fcfa08d5e8570314a Author: Hunter_rus Date: Sat Aug 16 22:15:46 2008 +0000 1. Reverted the savegame change. Changed to use the bitptr. 2. Updated --help. AS IS. From-SVN: r983 commit 91b8fda7b12f9377af64b2e7f710c2a9a522a712 Author: Richard Gobeille Date: Sat Aug 16 21:42:42 2008 +0000 From-SVN: r982 commit d1565825637461ad8ea3e73f80f8e62043466da4 Author: Richard Gobeille Date: Sat Aug 16 11:30:43 2008 +0000 From-SVN: r981 commit ef614da3483df4ed7f0aba774a10684c9df5dad4 Author: Hunter_rus Date: Sat Aug 16 11:20:08 2008 +0000 Added a new CON command: setgamepalette From-SVN: r980 commit dde34106104f8f98a6c7937ec954263c31eb1205 Author: Richard Gobeille Date: Sat Aug 16 11:04:51 2008 +0000 From-SVN: r979 commit 75bf86b75aa5b3c468c6352723f5333f73b48f0f Author: Richard Gobeille Date: Sat Aug 16 10:54:10 2008 +0000 From-SVN: r978 commit 754e8a49d4152d6360a5d6c10cd89ee12ad9092f Author: Richard Gobeille Date: Sat Aug 16 09:07:41 2008 +0000 From-SVN: r977 commit 337e49b30f46828329bb124d232638e3c91e8ce5 Author: Richard Gobeille Date: Sat Aug 16 07:53:29 2008 +0000 Line numbering stuff... this still needs work From-SVN: r976 commit 985d64c5f2964eed4701602c4df060474869da7a Author: Hunter_rus Date: Thu Aug 14 17:18:16 2008 +0000 Implemented another approach of storing of line numbers. Good news: one can load old savegame. Bad news: the code takes twice the space then before. I had change it to this way because: 1.Opcodes could be interpreted as pointers. 2.Some CON command aren’t compiled in the code and cause problems too. 3.Ideal method would be converting pointers to offsets related to the script(as TerminX suggested). But it’s quite difficult to do and the next snapshot might be unstable(crashy). From-SVN: r975 commit 663448d5f950a1bf81645567d445160618d78ea1 Author: Richard Gobeille Date: Tue Aug 12 23:34:55 2008 +0000 I need to stop changing shit when I'm tired From-SVN: r974 commit 3327db39af5cc4c963869583091167d22c796540 Author: Richard Gobeille Date: Tue Aug 12 22:38:50 2008 +0000 From-SVN: r973 commit 36dfe98cec119de0bc53aac5ab38d834cd4f1577 Author: Richard Gobeille Date: Tue Aug 12 12:50:20 2008 +0000 Enhancements to -cfg: now offers the option to import existing config settings from duke3d.cfg, and binds.cfg is now cfgname_binds.cfg so individual configs can have their own. This is good for mods that change some of the function names (like Duke Plus) because otherwise running EDuke32 on the same cfg without the mod activated will blow away the controls for functions that don't exist. From-SVN: r972 commit 64359f05890819a34efaffae9b0c6a44502f3760 Author: Pierre-Loup A. Griffais Date: Tue Aug 12 06:13:10 2008 +0000 This hopefully corrects the bug where animation smoothing sometimes substitutes models with bags of shit. From-SVN: r971 commit 80379fd1ca14e9e2d91b507363fe608f55ec0169 Author: Richard Gobeille Date: Mon Aug 11 23:33:53 2008 +0000 From-SVN: r970 commit ec375256986e6b9233b1c26f3f8a291b4237ff1d Author: Richard Gobeille Date: Mon Aug 11 23:22:29 2008 +0000 From-SVN: r969 commit 4948852c54d7b59f491978cb38ee7a4f927da30e Author: Richard Gobeille Date: Mon Aug 11 10:38:46 2008 +0000 These changes got lost somehow From-SVN: r968 commit f7d268e844c8c41d4d68f3092aab2b16a6da8dfa Author: Richard Gobeille Date: Mon Aug 11 10:17:18 2008 +0000 Use keyword names for CON error messages From-SVN: r967 commit 75723031a415b73fac68dc427e2ed26f178dd17a Author: Hunter_rus Date: Mon Aug 11 09:31:49 2008 +0000 Added a new orientation bit for precise coordinates. This is simmilar to the rotatesprite16 but it works for other drawing commands now. From-SVN: r966 commit 1e02c8810183e19176e16730375aa2402733907e Author: Richard Gobeille Date: Mon Aug 11 09:10:52 2008 +0000 From-SVN: r965 commit 856f1c5f3c190657de1473f8fbef9377ea04ef73 Author: Hunter_rus Date: Sun Aug 10 16:28:25 2008 +0000 Added an new CON command: activatecheat From-SVN: r964 commit 59cf2d0852e23d6b7b54219c76c5e9c0d8057d66 Author: Hunter_rus Date: Sun Aug 10 13:39:11 2008 +0000 Corrected some error checks: MAXSECTORS -> numsectors From-SVN: r963 commit 84d80ae7ce15f4040eeac8b4027c7a3adfd2efbc Author: Richard Gobeille Date: Sun Aug 10 13:13:24 2008 +0000 From-SVN: r962 commit f960ef5cd82df4bebb2b22b93671aaf5aec69d43 Author: Richard Gobeille Date: Sun Aug 10 13:07:07 2008 +0000 From-SVN: r961 commit 026faec9ee60fbba8f1886c4b3e2d597c54ee1c3 Author: Richard Gobeille Date: Sun Aug 10 10:53:55 2008 +0000 More fixes From-SVN: r960 commit 495ced5e93cc5d09e1ff7d079e31af66d4fb2c9b Author: Richard Gobeille Date: Sun Aug 10 10:05:30 2008 +0000 Fixes for dividing by the result of ldist without checking for 0 first From-SVN: r959 commit 07abd3b52324c2bb400b351c73a86ab98fdb338f Author: Hunter_rus Date: Sun Aug 10 08:58:34 2008 +0000 Renamed a CON command: getdate->gettimedate From-SVN: r958 commit d51806fbd04e21520727c2eeae6b1aa4b0b379ad Author: Richard Gobeille Date: Sun Aug 10 07:23:42 2008 +0000 From-SVN: r957 commit b31ae1cd26233759ad74e0056fee99adfa994f67 Author: Richard Gobeille Date: Sat Aug 9 22:02:57 2008 +0000 From-SVN: r956 commit cab5ec6442014b5e2e16c7c7ec91faf41705ddd1 Author: Hunter_rus Date: Sat Aug 9 19:59:41 2008 +0000 Added a CON command: getdate sec seconds after the minute min minutes after the hour hour hours since midnight mday day of the month mon months since January year years since 1900 wday days since Sunday yday days since January From-SVN: r955 commit 0492a3756e99ef703adb2326f70dbae3c48ee2ac Author: Richard Gobeille Date: Sat Aug 9 12:42:02 2008 +0000 From-SVN: r954 commit bce5513f730f320e754b876648d334bf45958aed Author: Richard Gobeille Date: Sat Aug 9 12:29:23 2008 +0000 From-SVN: r953 commit f2ac0a4678fd0260b9ea4642b2f2da7b83eb0e11 Author: Richard Gobeille Date: Sat Aug 9 11:19:27 2008 +0000 Althud health and ammo numbers flash when value is low... I don't know if I like this yet or not can be disabled with "hud_flashing 0" From-SVN: r952 commit 2c63ebde6141b5fb548593f133a411479ac7a317 Author: Hunter_rus Date: Sat Aug 9 10:43:27 2008 +0000 More CON error messages From-SVN: r951 commit a3865fd688621affed1e53d8adcd0bf015432d92 Author: Richard Gobeille Date: Sat Aug 9 10:42:16 2008 +0000 From-SVN: r950 commit b885d5156053b5c333fa0ebea4061e19552deafc Author: Richard Gobeille Date: Sat Aug 9 10:16:18 2008 +0000 From-SVN: r949 commit 6cdd4422a9e2a12849ddb142c490a690f288690c Author: Richard Gobeille Date: Sat Aug 9 07:41:09 2008 +0000 CON_ADDLOG and CON_ADDLOGVAR don't need to explicitly store the line number anymore From-SVN: r948 commit de1f3f7303b88d847697275ebe5dec2e00daada6 Author: Richard Gobeille Date: Sat Aug 9 06:08:24 2008 +0000 From-SVN: r947 commit d0d9182935d604ce09637d5a3930bd2d7dbeff37 Author: Richard Gobeille Date: Sat Aug 9 05:24:40 2008 +0000 I have no idea how this happened :p From-SVN: r946 commit c339c356521831e33727949431fca89a9f9433a4 Author: Richard Gobeille Date: Sat Aug 9 05:13:13 2008 +0000 From-SVN: r945 commit c9a5a4e75d3cc6225f9c2518cbb86ea06369dbc2 Author: Richard Gobeille Date: Fri Aug 8 23:04:05 2008 +0000 From-SVN: r944 commit 48ed0c8d4e2094778b240f4673adf74e64b800b6 Author: Richard Gobeille Date: Fri Aug 8 05:56:20 2008 +0000 Apply crosshair RGB values to 8-bit crosshair tile instead of nearest color in the palette if we're using Polymost From-SVN: r943 commit 892c37165871f73003022d47e1eb1930c6760ffa Author: Richard Gobeille Date: Fri Aug 8 05:03:56 2008 +0000 From-SVN: r942 commit 9c92673fc08890abdc7bbdb170c512e74e88d167 Author: Richard Gobeille Date: Fri Aug 8 01:54:43 2008 +0000 From-SVN: r941 commit ece51bbf7b607a05f328d0c62e8163a1ccebe688 Author: Richard Gobeille Date: Fri Aug 8 00:32:16 2008 +0000 From-SVN: r940 commit b3f5a0a0660574568a360e705fe307e4337d9c6a Author: Richard Gobeille Date: Thu Aug 7 23:32:18 2008 +0000 CON access to hittype[].flags, better crosshair coloring code From-SVN: r939 commit bb7d8ed6314881988a74138f8b7bb6b4f5e00faa Author: Richard Gobeille Date: Thu Aug 7 13:23:08 2008 +0000 Crosshair color support... not done yet From-SVN: r938 commit 28dde5cb1ae56cb24dc704a40ddfdbf3b0220c0b Author: Richard Gobeille Date: Thu Aug 7 11:45:28 2008 +0000 From-SVN: r937 commit b0ff476eb142f89ee488c3ede75649c4af637abf Author: Richard Gobeille Date: Thu Aug 7 11:08:08 2008 +0000 From-SVN: r936 commit 56ea7f92649a60ae335d706bdd0b3cc8996620f5 Author: Richard Gobeille Date: Thu Aug 7 10:48:21 2008 +0000 From-SVN: r935 commit 3e5aa8104f4e4e3d3097935819774c1d0c759e3b Author: Richard Gobeille Date: Thu Aug 7 07:52:36 2008 +0000 New alternate mini-hud From-SVN: r934 commit 3ee6e5ec45da86edebb635dcc3caf64ad1e67cf3 Author: Richard Gobeille Date: Wed Aug 6 11:50:34 2008 +0000 From-SVN: r933 commit 47a5c20986cbdd7c71d0b77f59cfd33c352d5ade Author: Richard Gobeille Date: Mon Aug 4 03:48:46 2008 +0000 fixes for a couple of issues From-SVN: r932 commit 6f3fc1f0f8c242502c6ff51225e40070799c98d6 Author: Richard Gobeille Date: Sun Aug 3 12:49:25 2008 +0000 From-SVN: r931 commit a124d88aff03b0dc2873bb50b62e6cb2ca205eaf Author: Richard Gobeille Date: Sun Aug 3 12:14:30 2008 +0000 fix sync error From-SVN: r930 commit 0076484e9b91d83c20886e7ac3669ccb563b1a42 Author: Richard Gobeille Date: Sun Aug 3 11:45:15 2008 +0000 From-SVN: r929 commit bd7d8c855695a2b363422f001e864a4cfbb14f3b Author: Hunter_rus Date: Sat Aug 2 13:00:41 2008 +0000 Added a DEF command: animtilerange . Note: it must be used with dummytiles. From-SVN: r928 commit fdc6a433792aae045a6fc9a843852b801cd715dc Author: Richard Gobeille Date: Fri Aug 1 12:34:18 2008 +0000 From-SVN: r927 commit 2f18571ff5bb45210c28ea256ce7e7a045da4cdc Author: Richard Gobeille Date: Thu Jul 31 10:35:23 2008 +0000 useless shit changes that aren't even worth looking at From-SVN: r926 commit c022e37eea1866f7e0964815df76d3c52e0247f8 Author: Richard Gobeille Date: Wed Jul 30 11:01:39 2008 +0000 I think this speeds up software occlusion checking a bit From-SVN: r925 commit 1f346b72ba93bde92dba408680040e57397d7bb4 Author: Richard Gobeille Date: Wed Jul 30 06:49:44 2008 +0000 From-SVN: r924 commit 28357da4f1453581ca3a0bcfe24b3e23619d3dc4 Author: Richard Gobeille Date: Wed Jul 30 06:43:23 2008 +0000 From-SVN: r923 commit 7111826d674115e194ac158225aca5b409de633a Author: Richard Gobeille Date: Wed Jul 30 05:41:03 2008 +0000 From-SVN: r922 commit ea1e3ea4166832856a69474b1d385723156279dd Author: Richard Gobeille Date: Wed Jul 30 02:51:32 2008 +0000 From-SVN: r921 commit db10ce96e03aa868aed08dafd8e2b56acf45cbd9 Author: Richard Gobeille Date: Wed Jul 30 01:00:40 2008 +0000 From-SVN: r920 commit e1c984766cefc53028c57d5b82e6b17be242ed8b Author: Richard Gobeille Date: Tue Jul 29 09:57:09 2008 +0000 More fixes From-SVN: r919 commit bade713ed6dfee84fe6ef78b9a06d0af872c3999 Author: Richard Gobeille Date: Tue Jul 29 07:14:54 2008 +0000 Fix a bunch of noclip memory errors From-SVN: r918 commit fdda08b5669a29bc8c073694945eb09543302b90 Author: Richard Gobeille Date: Tue Jul 29 06:34:29 2008 +0000 From-SVN: r917 commit bf22020e1e8722dd29be26fc01be59ac6591c639 Author: Richard Gobeille Date: Tue Jul 29 05:43:47 2008 +0000 Texture quality slider in video setup From-SVN: r916 commit c4a4153161cc32ca6c4650f650bb7e2e2c11f80a Author: Richard Gobeille Date: Mon Jul 28 21:23:10 2008 +0000 New sound setup menu plus some other crap From-SVN: r915 commit d6f60c047a761cc456508b317933ded65ead9e9a Author: Richard Gobeille Date: Mon Jul 28 06:59:08 2008 +0000 From-SVN: r914 commit cb74b0c7c67a262dc4cbf7da989807666aa5176c Author: Richard Gobeille Date: Mon Jul 28 02:40:23 2008 +0000 Cheap hack to replace "space" in quote 13 with "use" From-SVN: r913 commit c3e31eeaa972773c79811b5f62b8910cfa0f9379 Author: Richard Gobeille Date: Sun Jul 27 21:41:23 2008 +0000 oops From-SVN: r912 commit 00889a4099d69b3ed9d1e10f4ff3e94f2dd5ca3c Author: Richard Gobeille Date: Sun Jul 27 21:33:28 2008 +0000 Menu slider for map ambient light level From-SVN: r911 commit ac7c69f532fec9147c6ac39828c9e37d8d36550d Author: Richard Gobeille Date: Sun Jul 27 11:35:41 2008 +0000 From-SVN: r910 commit 3ea5a3952704814085931b549ce5aad2fd72d063 Author: Richard Gobeille Date: Sun Jul 27 01:22:17 2008 +0000 From-SVN: r909 commit f34f7f1652534634321692e8a4d9384978c41a42 Author: Richard Gobeille Date: Sat Jul 26 07:20:57 2008 +0000 r_cullobstructedmodels 2: only cull if model texture has alpha From-SVN: r908 commit bff2f2f8201e2918de556dd82db39bb43a992a37 Author: Richard Gobeille Date: Sat Jul 26 04:16:19 2008 +0000 Disallow setting rendmode 2... software polymost is so broken that there's not even a point to allowing it anymore From-SVN: r907 commit 3bee09296ca95ece5caecaf905385d9839ff6472 Author: Richard Gobeille Date: Sat Jul 26 02:15:13 2008 +0000 From-SVN: r906 commit ddf258e75a65ae8cc05a80689aac5dba84b25618 Author: Richard Gobeille Date: Sat Jul 26 02:12:44 2008 +0000 Make the devistator behavior closer to the original Duke code From-SVN: r905 commit 2f54d796c0b2edba0814eed334136eb9a6b912c8 Author: Richard Gobeille Date: Fri Jul 25 23:39:41 2008 +0000 From-SVN: r904 commit b683a5499b1b2a91c3d63118e79ac158b74adad5 Author: Hunter_rus Date: Fri Jul 25 18:10:33 2008 +0000 1. Added CON command: cmenu 2. Added gamevar: current_menu(READONLY) // Example: remove the episode selet screen gamevar prev_menu 0 0 onevent EVENT_DISPLAYMENU ifvare current_menu 100 // Episode select { ifvare prev_menu 110 // Skill select cmenu 0 // Main menu else cmenu 110 // Skill select } setvarvar prev_menu current_menu // addlogvar current_menu endevent From-SVN: r903 commit 01162abea3337c947adf643d29c08bb80f7d6529 Author: Richard Gobeille Date: Fri Jul 25 13:42:37 2008 +0000 This fixes the cocksucker palette corruption bug that happened when switching video modes back and forth between software and polymost in fullscreen This has been pissing me off for about 4 years. From-SVN: r902 commit 07aad0621d6ff51354d7ea1fb57e62afa4a97757 Author: Richard Gobeille Date: Fri Jul 25 04:33:33 2008 +0000 Add r_osdhightile in case anyone really wants ugly blurry console text Will not be given a menu option. From-SVN: r901 commit 8b73708ef95eec12dd99eccb6f6ccf7b9ab7a480 Author: Richard Gobeille Date: Fri Jul 25 01:09:39 2008 +0000 Ran everything through astyle again and disabled hightile when drawing console text because the HRP font looks like shit when scaled down to that size From-SVN: r900 commit 5a2b01ccf1a77076b172b5a66d8fc076687fe363 Author: Hunter_rus Date: Thu Jul 24 21:48:12 2008 +0000 Opps From-SVN: r899 commit 2bf219e36c5ece64a07237ea5dfc2bb6b575cf59 Author: Hunter_rus Date: Thu Jul 24 21:08:25 2008 +0000 1. Added forgotten "break". 2. Added more CON error messages. From-SVN: r898 commit 85f81bbda4924c5e1f6777d01f305345f8a5d203 Author: Hunter_rus Date: Thu Jul 24 19:16:30 2008 +0000 1. Added more CON errors. 2. Killed compiler warnings. 3. Fixed the NUMSECTORS and NUMWALLS. Somehow they didn't make problems in Windows. From-SVN: r897 commit b8aa15b88149e9a93b71719b8b509d0afb596049 Author: Richard Gobeille Date: Thu Jul 24 14:08:56 2008 +0000 Menu fluff From-SVN: r896 commit c688646c5fc0a71b7a2ae319edd5f31b7e30781a Author: Richard Gobeille Date: Thu Jul 24 11:16:20 2008 +0000 Fix building with USE_OPENGL=0 and POLYMOST=0 and replace all instances in the game code in which the bpp or rendmode vars are checked directly with calls to getrendermode() From-SVN: r895 commit 604bd549a5ea3d78646bd6e5822e29b99f9d22cc Author: Richard Gobeille Date: Thu Jul 24 04:54:40 2008 +0000 From-SVN: r894 commit b2d72ad58668f932282b6238baa696bb3dfaa5c1 Author: Richard Gobeille Date: Thu Jul 24 02:07:22 2008 +0000 Color adjustment bugfixes From-SVN: r893 commit e4b745dcb8cd6014cf0fdc983e46da9156d4a69d Author: Hunter_rus Date: Wed Jul 23 20:09:22 2008 +0000 1. Added a console command: addlogvar. 2. Colorized console in Linux. The font is different now(harder to read). This change can be reverted you like. 3. Added some CON error messages. If the compact form of {} isn't allowed, say so and I won't do in this style anymore. From-SVN: r892 commit 2f819faaa55cd5f221e52f2c89a416df04416c39 Author: Richard Gobeille Date: Wed Jul 23 03:56:50 2008 +0000 From-SVN: r891 commit acf9bf6c9e0d6c98e2c559986f4a4ed88cb855bb Author: Richard Gobeille Date: Tue Jul 22 21:56:28 2008 +0000 From-SVN: r890 commit 42cffeafc6312afeb31b614233deaa1603a9c691 Author: Richard Gobeille Date: Tue Jul 22 21:03:09 2008 +0000 Support for turning vsync on and off From-SVN: r889 commit 54f22bb92b5a0f99d3a09c603dd49acf3ac565fa Author: Richard Gobeille Date: Tue Jul 22 12:17:05 2008 +0000 From-SVN: r888 commit 82be0604ccb25fc9ca6dbb33d20e9e08f4a04637 Author: Richard Gobeille Date: Tue Jul 22 10:56:22 2008 +0000 Compact spacing for gametext() when used in menus... this lets me fit a few more characters into the option names From-SVN: r887 commit fb73c5107f978d62ba2d4b785ea083aa176379f7 Author: Richard Gobeille Date: Tue Jul 22 09:05:34 2008 +0000 Game name in window title and some other shit From-SVN: r886 commit e9d7ad66ced2b2449279c6a4588fd72c21f6c8d7 Author: Richard Gobeille Date: Tue Jul 22 05:13:20 2008 +0000 From-SVN: r885 commit db3b97ed3ee92a62ca4059827dbece6db16de955 Author: Richard Gobeille Date: Mon Jul 21 13:59:10 2008 +0000 From-SVN: r884 commit 6f9a31ac239c64ea8edb536b5cba074d2a590683 Author: Richard Gobeille Date: Mon Jul 21 13:39:23 2008 +0000 From-SVN: r883 commit 4e167f9a965aee3fefcd339618472be43eb849fc Author: Richard Gobeille Date: Mon Jul 21 10:20:41 2008 +0000 From-SVN: r882 commit fe9e4b17297a4c45c146de382b0de81fe1837207 Author: Richard Gobeille Date: Mon Jul 21 09:05:53 2008 +0000 From-SVN: r881 commit 979ec8499e5259fe18973b7110696ce14236fdaf Author: Richard Gobeille Date: Mon Jul 21 03:24:06 2008 +0000 From-SVN: r880 commit 64b447b069dc9f4f8df32d9ece28b1bbf851e267 Author: Richard Gobeille Date: Mon Jul 21 03:06:34 2008 +0000 From-SVN: r879 commit ae4e91fc130723450f1ee1fee4f8f63df6467fe2 Author: Richard Gobeille Date: Sun Jul 20 11:18:42 2008 +0000 From-SVN: r878 commit 01db286eda1c983bcaec911da9d218bb9eee3dc8 Author: Richard Gobeille Date: Sun Jul 20 11:03:57 2008 +0000 Crappy temporary brightness adjustment menu and some misc fixes From-SVN: r877 commit e02f9dffecc4e7f75c50489b4158cd409a528cf3 Author: Richard Gobeille Date: Sun Jul 20 05:31:23 2008 +0000 From-SVN: r876 commit 890f4bfc85700192c3793b733b8556c1d93b52f2 Author: Richard Gobeille Date: Sun Jul 20 04:12:52 2008 +0000 From-SVN: r875 commit a4c6022d1c8e1d12f37d0c1f2b0736125406c4cf Author: Richard Gobeille Date: Sun Jul 20 03:29:00 2008 +0000 CON_SCRIPTSIZE, lets mod authors manually increase the script size to whatever the mod needs, decreasing startup time due to not having to constantly reallocate memory. From-SVN: r874 commit ff7ac7cb291ef9041f894af36361035f25be09d0 Author: Richard Gobeille Date: Sun Jul 20 02:34:29 2008 +0000 From-SVN: r873 commit 1cdba2a33d559c048f9b6fcd584b75dafdad988d Author: Richard Gobeille Date: Sun Jul 20 00:39:06 2008 +0000 From-SVN: r872 commit 9c3c61897c436d30049e399ca0506f17670fdc9c Author: Hunter_rus Date: Sat Jul 19 19:06:21 2008 +0000 1. Runtime CON errors display the line numbers of CON now. It doesn't increase the size of compiled code because the line number assigned to each command of a CON file. The lower 12 bits are used for the ID of command(up to 4096 IDs). The rest 20 bits are used to store the line number(up to about 1 000 000 lines). Perhabs variable errors need this too. 2. Fixed 2 crashes. From-SVN: r871 commit 5d5134bb258fa513486d4bb6c2b313fb42acf97b Author: Richard Gobeille Date: Sat Jul 19 13:12:20 2008 +0000 Better gamma ramp adjustment, uses vid_gamma, vid_brightness and vid_contrast cvars Will be added to menu during upcoming menu redesign From-SVN: r870 commit fc0208b50a64865cd80ada28568259138eb5f42e Author: Richard Gobeille Date: Sat Jul 19 07:39:51 2008 +0000 From-SVN: r869 commit 1c23fd2de4c726e4981f01a9ae7df063752c51a1 Author: Richard Gobeille Date: Sat Jul 19 04:13:53 2008 +0000 From-SVN: r868 commit 5f83e4b431de048425e43f0073fc15f171695314 Author: Richard Gobeille Date: Sat Jul 19 00:50:20 2008 +0000 Better line wrapping for multiplayer chat messages From-SVN: r867 commit f1bac2f3512380fccad3a61102f6c9f130414811 Author: Richard Gobeille Date: Fri Jul 18 23:29:20 2008 +0000 From-SVN: r866 commit a6dce3adb2e6d92dc3177e57b8c20676c84195c5 Author: Richard Gobeille Date: Fri Jul 18 13:18:12 2008 +0000 Support for changing shade of console characters by using the 3 high bits of osdfmt to represent a shade value (0-7) Lower 5 bits are used for palette From-SVN: r865 commit fcb799cef77f678d7f347b63b29888ed4aef5022 Author: Richard Gobeille Date: Fri Jul 18 09:50:44 2008 +0000 colorized OSD text... wastes 32kB memory but in 2008 I don't think anyone really gives half a shit From-SVN: r864 commit 698809403fdc3752dc15f41cc4dfd5e3ef157711 Author: Richard Gobeille Date: Fri Jul 18 03:22:20 2008 +0000 Fix health when loading map state From-SVN: r863 commit 3a1fb630099defff7a86625fe9b4bb50e841a7d8 Author: Richard Gobeille Date: Fri Jul 18 02:46:24 2008 +0000 Gamevars in savestates (in savegames) Still needs debugging From-SVN: r862 commit e991bc7cc1e9f34a24d9cd1a20be4d258fe25b9f Author: Richard Gobeille Date: Thu Jul 17 23:14:32 2008 +0000 From-SVN: r861 commit f94a7f5ec94d96de45fcc9c2714225e8a0fc6e45 Author: Richard Gobeille Date: Wed Jul 16 21:21:18 2008 +0000 From-SVN: r860 commit e0ee1aa6d6aa3444a5d8fe9394ae3a6a14568b3a Author: Richard Gobeille Date: Wed Jul 16 09:27:08 2008 +0000 Prototype stuff for hub maps/persistent level states/non-linear level progression From-SVN: r859 commit 530be151dfa7225e06778a9ee8ce0a9aee17323c Author: Richard Gobeille Date: Mon Jul 14 01:48:20 2008 +0000 Patch from Bdragon, makes tiles.cfg and its groups determine which sprites are considered effectors, actors, items et cetera for the purposes of 2D mode displayand fixes some bugs in the tile selector From-SVN: r858 commit 58d57c4472d5d4352a0ff5aa252d7225eb2bfb2b Author: Richard Gobeille Date: Sun Jul 13 08:35:36 2008 +0000 From-SVN: r857 commit e57c4ff75283def0a32d06c0d01ddac47866acd6 Author: Richard Gobeille Date: Sun Jul 13 07:10:47 2008 +0000 Make the tsprite CON stuff into its own commands From-SVN: r856 commit c211f4564d2feffda88814a3c6587a189530690c Author: Richard Gobeille Date: Sat Jul 12 23:44:07 2008 +0000 From-SVN: r855 commit 9998435164e9f86e9f268e955738755475d59869 Author: Hunter_rus Date: Sat Jul 12 14:09:52 2008 +0000 1. Removed unneeded the svn:executable proprties. These files aren't actually executable. 2. Added the svn:ignore properties to clean up the output of "svn update" so that it doesn't show some unversioned files anymore sush as compiled binaries and object files(*.a). 3. Converted the end-of-line charapter sequences from Windows(CR LF) to Unix format(LF). It used to be a mixture of both styles that often confuse some programs. If some files have to be in Windows format, you should add the svn:eol-style on them(svn propset svn:eol-style native polymer/eduke32/source/thefile.c). From-SVN: r854 commit 5b50372af5c8520eab41fdad07a3bb50fe479580 Author: Richard Gobeille Date: Sat Jul 12 10:57:52 2008 +0000 CON access to tsprite From-SVN: r853 commit c08ede36c68565af18ee8790215dc0881222fb3e Author: Richard Gobeille Date: Thu Jul 10 05:55:22 2008 +0000 Oops From-SVN: r852 commit f370bf4b344ad9a2a7c1386745a3297f9c2172db Author: Richard Gobeille Date: Thu Jul 10 05:37:36 2008 +0000 Keep the startup window open when CON compilation fails so people can copy CON errors out of it directly without looking at eduke32.log From-SVN: r851 commit 576b16fa90fb4ab1e0dae9376aabf739da9d864c Author: Richard Gobeille Date: Thu Jul 10 04:37:41 2008 +0000 From-SVN: r850 commit 144e50c4b19d91d4e341beff2ebff6ddd97696a6 Author: Richard Gobeille Date: Thu Jul 10 02:45:24 2008 +0000 From-SVN: r849 commit f58e908abf21960875f58c4438bd70dff03f7220 Author: Richard Gobeille Date: Wed Jul 9 23:25:38 2008 +0000 Comment out and refactor some unnecessary (IMO) console startup messages... seems to improve win32 startup times, possibly due to less scrolling of the startup window text buffer. From-SVN: r848 commit df21b97d2bbc8927e88ac9fc0da226cfe25425fd Author: Richard Gobeille Date: Wed Jul 9 09:34:12 2008 +0000 From-SVN: r847 commit 236b6a446c5d41806c83293617cdca7b1c8e0634 Author: Richard Gobeille Date: Wed Jul 9 08:54:54 2008 +0000 Fix a bug that showed up in valgrind From-SVN: r846 commit 188e684b0773bd1d42cc17e5f12e8256e7015ce4 Author: Richard Gobeille Date: Tue Jul 8 04:52:39 2008 +0000 From-SVN: r845 commit 2d03ab54096af9ccf2fb91248e87ca2caaa1939a Author: Richard Gobeille Date: Mon Jul 7 22:03:11 2008 +0000 Oops Fatigue is the mortal enemy of working code and the best friend of oversights, apparently :p From-SVN: r844 commit 5454a2689a020c8f24d24b2bcd84b7a1162ee258 Author: Richard Gobeille Date: Mon Jul 7 12:35:21 2008 +0000 From-SVN: r843 commit b5095586ea16dbf901fe0c03ba40fde353b4c490 Author: Richard Gobeille Date: Mon Jul 7 12:17:27 2008 +0000 OSD history command plus some important fixes From-SVN: r842 commit 19219b122bb14f1d9187d26c0ef4b608805b7de0 Author: Richard Gobeille Date: Mon Jul 7 08:04:12 2008 +0000 Some days, I just add shit for the hell of it From-SVN: r841 commit 681f0d524c5fa74d1d204aeb2c4711e3f58a20c0 Author: Richard Gobeille Date: Mon Jul 7 06:44:41 2008 +0000 From-SVN: r840 commit e3bcaf99af9944310a8d4fde31afa5d9c2d2402b Author: Peter Veenstra Date: Sat Jul 5 09:12:36 2008 +0000 Fix naming error. From-SVN: r839 commit cde5c91d17964847db4511fd51ef350ced1ca9ec Author: Richard Gobeille Date: Fri Jul 4 02:13:48 2008 +0000 From-SVN: r838 commit 1cde53a2a0d11967b6db85a07b33c97f6402362e Author: Richard Gobeille Date: Fri Jul 4 01:43:45 2008 +0000 From-SVN: r837 commit db7f3be214ae748f55b05345d32bc69607207a7e Author: Richard Gobeille Date: Fri Jul 4 01:15:32 2008 +0000 Much improved MapKey function From-SVN: r836 commit 01268b21946da612b6cc38cd283bb81ec52d3ac1 Author: Richard Gobeille Date: Thu Jul 3 07:53:19 2008 +0000 From-SVN: r835 commit dac57e4d7cf21e0c6c6054ecb3378dcdc0e1274d Author: Richard Gobeille Date: Thu Jul 3 07:37:41 2008 +0000 More bind shit From-SVN: r834 commit e8ebfa12bbb6de7938d8a5104f68a9c00afdf197 Author: Richard Gobeille Date: Wed Jul 2 22:45:04 2008 +0000 Renamed some more cvars, removed osdcompletionstyle and merged the two methods into one From-SVN: r833 commit b2064d48db7ad32e05aab71285cf94a145f96f58 Author: Richard Gobeille Date: Wed Jul 2 04:56:42 2008 +0000 Rename some console commands to be more consistent with each other From-SVN: r832 commit c6a96eba7f864a25dfe3a34ba2d4a3b1690c5606 Author: Richard Gobeille Date: Wed Jul 2 01:32:53 2008 +0000 Stupid win32 console keyboard input bug fix From-SVN: r831 commit aaad1fef5c254f1c684016ebc46719fa4727fff6 Author: Richard Gobeille Date: Tue Jul 1 11:14:18 2008 +0000 From-SVN: r830 commit 6f3008620be24c47dc6056b8c2a9e420a92bc5a4 Author: Richard Gobeille Date: Tue Jul 1 10:33:13 2008 +0000 From-SVN: r829 commit 5a26f92cd8f85ca1ed2eeb226b7aea4ef6b069e1 Author: Richard Gobeille Date: Tue Jul 1 10:31:03 2008 +0000 Adds "osdcompletionstyle" to the console to switch between bash-style tab completion (completes only the longest common prefix) and the previous behavior of cycling through the list with tab From-SVN: r828 commit 6761c83c302e8a4fc218ff3163dd10707252246e Author: Richard Gobeille Date: Tue Jul 1 02:36:53 2008 +0000 From-SVN: r827 commit 9fe84034fe5356a4290ac7d27df9ffcea9356dde Author: Richard Gobeille Date: Mon Jun 30 19:06:05 2008 +0000 mouse binds From-SVN: r826 commit d49da96dc4795b7ed39fc03b12083ca59d97323a Author: Richard Gobeille Date: Mon Jun 30 18:33:04 2008 +0000 From-SVN: r825 commit 8f7b1652a8e8de28ed760f20099a80f5fd2fc5b6 Author: Richard Gobeille Date: Mon Jun 30 11:01:58 2008 +0000 From-SVN: r824 commit aaad173b95e2944a2e50701df94a82f88724c228 Author: Richard Gobeille Date: Mon Jun 30 09:25:06 2008 +0000 From-SVN: r823 commit ceec8cd0b3e59e4ac8a7c002d5f9d6757940c746 Author: Richard Gobeille Date: Mon Jun 30 09:00:33 2008 +0000 Keyboard configuration menu <-> binds From-SVN: r822 commit a5521df6b155d6136a3c409d236ebc4f178e073e Author: Richard Gobeille Date: Mon Jun 30 07:30:48 2008 +0000 From-SVN: r821 commit f6bd0a2f64295ecfe7200124c99926d990b58b97 Author: Richard Gobeille Date: Mon Jun 30 01:03:51 2008 +0000 added support for removing aliases From-SVN: r820 commit 0692e540bee07972b2a4d0ca8d51b3c68ee48792 Author: Richard Gobeille Date: Mon Jun 30 00:32:05 2008 +0000 From-SVN: r819 commit 40ffe38281edf1f4946d09e20c63eae9d0217975 Author: Richard Gobeille Date: Mon Jun 30 00:18:59 2008 +0000 More alias shit From-SVN: r818 commit 2b3a164c4ddda3f34b041bd01613504cc21c45b1 Author: Richard Gobeille Date: Sun Jun 29 22:37:30 2008 +0000 Support for console aliases From-SVN: r817 commit 459cf7f19bf609651a89655426bbcc362b8d8ed6 Author: Richard Gobeille Date: Sun Jun 29 21:01:07 2008 +0000 From-SVN: r816 commit 30ba4bf50b744a81c16417c35f7cf1a8935ea9f2 Author: Richard Gobeille Date: Sun Jun 29 13:35:52 2008 +0000 Convert cfg file entries to binds on cfg load From-SVN: r815 commit ca847c2e72b56e1ee834a5058462994f49a747bf Author: Richard Gobeille Date: Sun Jun 29 12:53:18 2008 +0000 From-SVN: r814 commit 569047eea2469d1bef081aab9293b9cbd601906d Author: Richard Gobeille Date: Sun Jun 29 12:29:42 2008 +0000 read/write binds to/from binds.cfg From-SVN: r813 commit b933281e99cc4ac7c3b0dcf0cf40a92fced26839 Author: Richard Gobeille Date: Sun Jun 29 12:13:10 2008 +0000 make repeating binds the default and added "bind norepeat" binds which call console commands should use norepeat From-SVN: r812 commit 327698a6e0081a4ec5ce4e9a5c8847d3c0979693 Author: Richard Gobeille Date: Sun Jun 29 11:59:43 2008 +0000 From-SVN: r811 commit 938c261e91e6bc89994fbfc4d15a9a8beb639d2e Author: Richard Gobeille Date: Sun Jun 29 11:33:51 2008 +0000 osdcmd_unbind() From-SVN: r810 commit 2a2e9524f779350fe03038149d3d55c4251075b9 Author: Richard Gobeille Date: Sun Jun 29 10:41:01 2008 +0000 Formatting changes to jmact From-SVN: r809 commit 77381537366c44d9e2575a5b2d9115cf2e5d046e Author: Richard Gobeille Date: Sun Jun 29 10:40:37 2008 +0000 Better keybinding... still needs some work but seems to be functional Example: bind w repeat gamefunc_move_forward bind s repeat gamefunc_move_backward bind a repeat gamefunc_strafe_left bind d repeat gamefunc_strafe_right bind space gamefunc_jump bind leftcontrol repeat gamefunc_crouch bind f12 quit From-SVN: r808 commit 5bd245ce6ed73dbd9e9d5361391deaca86f02974 Author: Hunter_rus Date: Mon Jun 23 22:01:24 2008 +0000 Fixed CON error with the "readgamevar". http://forums.3drealms.com/vb/showpost.php?p=717842&postcount=742 From-SVN: r807 commit 303bc996d1ee750abbd54f10b5935ee266b8a261 Author: Peter Veenstra Date: Fri Jun 20 13:29:45 2008 +0000 Clear memory before using it. (the buffer is read to get the old value before adding a voice to it and clipping it) From-SVN: r806 commit e63fc3a53a40551456ebcf78172799bdf7577bfb Author: Hunter_rus Date: Wed Jun 18 08:46:20 2008 +0000 Fixed crash that happened with WW2GI. Thanks to supergoofy for helping me to find the problem. The problem was there(GAME.CON) // loading screen onevent EVENT_GETLOADTILE { sound AAVE // uses spritesound and crashes } endevent Note: the sound was supposed to be played once but with my approach it plays several sounds simultaneously and that's bad. I have chosen not to limit the sound command usage for WW2GI compatibility. I doubt whether I should commit this and decided that it's better to do after all. If you have a better approach, you're welcome. From-SVN: r805 commit 95a8d2630059704b61ad564e0d2adaacf4c82cba Author: Richard Gobeille Date: Sat Jun 14 09:25:22 2008 +0000 From-SVN: r804 commit 4acefe469ca5a2a10886ec7b7d785f68faffaab9 Author: Peter Veenstra Date: Fri Jun 13 15:16:14 2008 +0000 negative array acces. ny00123 From-SVN: r803 commit b5c433ecbb0f65a85385cd86c74dfa9f870697ce Author: Peter Veenstra Date: Fri Jun 13 14:40:28 2008 +0000 doesn't work that :) From-SVN: r802 commit d1713bd5dbac25ba9f7af3df8eb56d06a80e7705 Author: Peter Veenstra Date: Fri Jun 13 08:03:30 2008 +0000 fix memleak due to new md2-md3 conversion code. From-SVN: r801 commit 91a9f939f7357a04896e5da536d357ba73bfdaa8 Author: Peter Veenstra Date: Fri Jun 13 08:00:34 2008 +0000 mem leakie in helpsystem. From-SVN: r800 commit d6e09255cf9348fa33f13f5b466d9df51f288867 Author: Richard Gobeille Date: Wed Jun 11 18:52:39 2008 +0000 suppress video mode switch messages when alt-tabbing out of fullscreen From-SVN: r799 commit 911d2e60e1b178b87e80e8a3ee2d9034171ac3b8 Author: Richard Gobeille Date: Wed Jun 11 09:25:58 2008 +0000 winlayer fullscreen polymost alt-tab mouse cursor fix From-SVN: r798 commit 4e804ffd2cfb4ec806233db79a9d2a1ef181d225 Author: Hunter_rus Date: Wed Jun 11 07:35:30 2008 +0000 Added a new CON command: getticks It's isn't synced and should be using for animation and profiling(=speed measure). Using it for gameplay will desync multiplayer game. From-SVN: r797 commit 3f63de20d3b414f975d8847ad7350497c2e43331 Author: Hunter_rus Date: Wed Jun 11 07:06:10 2008 +0000 Improved formating of the help. Known problem: due to using color markers(^14, ^O) the max length of the line is reduced by 3 symbols per marker. I think the keyboard commands should be sorted. I mean they should be split into smaller groups. There is no need anymore to keep the order which was in the source code. From-SVN: r796 commit acb42f7ea98b2731ed0173e5e9015bbdcd2496b0 Author: Richard Gobeille Date: Wed Jun 11 02:33:23 2008 +0000 Fix building on MinGW by using PRIdPTR instead of %td and add a MSVC compatible inttypes.h/stdint.h for compatibility From-SVN: r795 commit 52eec8942b141d880045d5e7bc3c78683f7c6335 Author: Peter Veenstra Date: Tue Jun 10 19:32:14 2008 +0000 64 bit fixes for weaponstuff, gamevars, vars readable from con, warnings From-SVN: r794 commit 5343f5302b75132f478603edc3f3a521ac04b4b5 Author: Peter Veenstra Date: Tue Jun 10 19:29:57 2008 +0000 Fix warnings From-SVN: r793 commit 53b3f4d5920581d8f26e72f1e69164a59667a36d Author: Peter Veenstra Date: Tue Jun 10 19:28:56 2008 +0000 Fix 64 bit game saving and loading. From-SVN: r792 commit ff45e6325b73537e67f668fae42f52ee28c82cd0 Author: Peter Veenstra Date: Tue Jun 10 19:27:39 2008 +0000 Fix a 64 bit warning. Possibly a crash. From-SVN: r791 commit 4cf10b9c94495c0076929227e73e172690473073 Author: Peter Veenstra Date: Tue Jun 10 19:23:55 2008 +0000 argh forgot one From-SVN: r790 commit 9525ba34f3212e64d8a363c5f2f930ca26b73efa Author: Peter Veenstra Date: Tue Jun 10 19:23:13 2008 +0000 General warning fixes and regular fixes. (64 bit only) From-SVN: r789 commit 9c523f54c1dc9f06f751f076bf1be6613df5ff74 Author: Peter Veenstra Date: Tue Jun 10 19:21:16 2008 +0000 When doing pointer math use intptr_t From-SVN: r788 commit 9169dd9bfd8fce7e6ef958f918a4956f047b6c49 Author: Peter Veenstra Date: Tue Jun 10 19:19:30 2008 +0000 leng is now int again. remove some warnings. From-SVN: r787 commit ceae7e96704c7ffca171356bc4de5a7355684042 Author: Peter Veenstra Date: Tue Jun 10 19:18:45 2008 +0000 polymost 64 bit zbuffer modifications. From-SVN: r786 commit fc0f7333bcbb9a5f8adfb0b0b3cccc9743fb0116 Author: Richard Gobeille Date: Tue Jun 10 05:56:34 2008 +0000 Help file... needs a lot of work From-SVN: r785 commit 9ffb2fcf37c876bc268fc55ece8a87252413a439 Author: Richard Gobeille Date: Tue Jun 10 02:40:06 2008 +0000 use ^P instead of blank lines to designate a new page in help files From-SVN: r784 commit 60391bebf1d5f423fd878a99158299a427e53be0 Author: Richard Gobeille Date: Tue Jun 10 02:29:58 2008 +0000 From-SVN: r783 commit cfd0d4ea44d63d2a214b718e13f34e7d4c49f361 Author: Richard Gobeille Date: Mon Jun 9 23:41:54 2008 +0000 From-SVN: r782 commit 2ca27a56052b50eab7d0bf8a0f303a3617f551eb Author: Hunter_rus Date: Mon Jun 9 10:39:32 2008 +0000 Added the "qgetsysstr" command that copies game strings to quotes so they can be displayed. qgetsysstr can be: STR_MAPNAME STR_MAPFILENAME STR_PLAYERNAME STR_VERSION The list of strings may need some additions and renaming. onevent EVENT_DISPLAYMENU qgetsysstr 2 STR_MAPNAME minitext 10 10 2 0 0 qgetsysstr 2 STR_MAPFILENAME minitext 10 20 2 0 0 qgetsysstr 2 STR_PLAYERNAME // it shouldn't work in this event, though minitext 10 30 2 0 0 qgetsysstr 2 STR_VERSION minitext 10 40 2 0 0 endevent From-SVN: r781 commit c05026c4de46912f42990aa8d79357c1f34b74ca Author: Pierre-Loup A. Griffais Date: Mon Jun 9 09:43:12 2008 +0000 Skybox VBOs. From-SVN: r780 commit 7f93a1f39eb50cc6382d51780a9f3e70d24fd483 Author: Pierre-Loup A. Griffais Date: Mon Jun 9 09:25:47 2008 +0000 Skyboxes. From-SVN: r779 commit ca9d0773a4cfd820c8ba6011d3e24c4dd23a8e9c Author: Pierre-Loup A. Griffais Date: Mon Jun 9 02:36:45 2008 +0000 Changed plotpixels to use DrawPixels() instead of GL_POINTS primitives. From-SVN: r778 commit 12ec9b1f6108b2918ba045087bb954a848e85ea2 Author: Richard Gobeille Date: Fri Jun 6 23:03:22 2008 +0000 From-SVN: r777 commit 82e34f6ddc473025420226c71167f32774cb0e51 Author: Hunter_rus Date: Fri Jun 6 17:18:07 2008 +0000 Fixed name conflict with mods From-SVN: r776 commit 0d0afe0596c123422663e24cc7495a1faffaaa76 Author: Pierre-Loup A. Griffais Date: Fri Jun 6 14:00:12 2008 +0000 Model animation interpolation. From-SVN: r775 commit fd7b43fc199f63fd368e58a959957c834a9edc7c Author: Pierre-Loup A. Griffais Date: Fri Jun 6 11:35:24 2008 +0000 Model flipping, centering, floor-alignment, color, maphacks. Next is CON model rotation. From-SVN: r774 commit 76bed5d75de1b20c503642c1f38944b2ff6ec24c Author: Peter Veenstra Date: Fri Jun 6 10:43:16 2008 +0000 Silence a warning From-SVN: r773 commit b122e3bbf405c1d22a07709c5f41281b73882370 Author: Hunter_rus Date: Fri Jun 6 08:01:30 2008 +0000 Fixed a bug which was introduced in the revision #759. Mapster32 would delete many sprites on saving maps. The latest released snapshot is affected by this bug. This is a critical bug and a new snapshot should be released as soon as possible and users should be asked to not use the corrupted snapshot. The bug was reported by DeeperThought and Gambini. P.S. Actually it's the second time this bug has been introduced. See http://forums.3drealms.com/vb/showthread.php?t=29413 From-SVN: r772 commit c336a6303f7e9fb17cd58620333ed32ee7b6b902 Author: Richard Gobeille Date: Fri Jun 6 01:06:43 2008 +0000 From-SVN: r771 commit 1f807c260147e24398a87ddd98e4062cfbe5fb58 Author: Hunter_rus Date: Thu Jun 5 20:07:34 2008 +0000 Added new variable for CONs: numwalls numsectors There is a sufficient need for these variables because user may access uninitialized data if he/she uses MAXWALLS/MAXSECTOR. The numsprites is absent since the sprite array has gaps as the result of continual birth/dying/suiciding of sprites. From-SVN: r770 commit dd202335545c7aa4ee31abb6bb026dbadbf305dc Author: Hunter_rus Date: Thu Jun 5 19:10:34 2008 +0000 Fixed a recently introduced memory leak with the helppage. From-SVN: r769 commit 734aa2449e39b60722b95fd2162c9bb7285a3bc6 Author: Peter Veenstra Date: Thu Jun 5 14:39:13 2008 +0000 Remove unneeded (and thus confusing) casts. From-SVN: r768 commit 376d6fd9c1f898280c0d13d5ffe49425e08b8723 Author: Peter Veenstra Date: Thu Jun 5 14:10:18 2008 +0000 64 bit fix for caching sounds. Maybe nyXXXX will be happy now. From-SVN: r767 commit 39338c015453845592430bf97a6c03b4c326727d Author: Peter Veenstra Date: Thu Jun 5 14:04:49 2008 +0000 actor 64 bit fixes. From-SVN: r766 commit bd99b7be7330e3ec09e68e6e711a1d212435e1f9 Author: Richard Gobeille Date: Thu Jun 5 10:10:26 2008 +0000 colorized printext16() From-SVN: r765 commit 83715bd7ea86eabc53e2af755d50aec73a82ebb9 Author: Richard Gobeille Date: Thu Jun 5 02:51:58 2008 +0000 Help file reader patch from Philipp Kutin From-SVN: r764 commit b013aeab13f70d8a044ac6e2062ad8904ce74246 Author: Richard Gobeille Date: Thu Jun 5 02:29:18 2008 +0000 Formatting + beginnings of editor enhanced map preview mode. Currently supports light switch sector effectors From-SVN: r763 commit 805fb7a0ed450ac2f29dd6526e642f59b8d29256 Author: Hunter_rus Date: Wed Jun 4 21:08:47 2008 +0000 New events: EVENT_DISPLAYBONUSSCREEN EVENT_DISPLAYMENU EVENT_DISPLAYMENUREST EVENT_DISPLAYLOADINGSCREEN From-SVN: r762 commit 79c220d411988f1a5542d3b9f09f3f4c0263fa7f Author: Hunter_rus Date: Wed Jun 4 13:36:37 2008 +0000 1. Fixed this crash (http://forums.3drealms.com/vb/showpost.php?p=706802&postcount=533) 2. Optimized the setactorvar,setplayervar,getactorvar,getplayervar commands. They may be compiled as the setvarvar command. From-SVN: r761 commit 74a662ca5c23122bfe153c1cebd5de921cd0aff9 Author: Richard Gobeille Date: Wed Jun 4 08:58:02 2008 +0000 win32 gcc 4.3.0 fixes From-SVN: r760 commit cda96ee9b4892e58dfe4860fbb8ec2d702a64dd6 Author: Richard Gobeille Date: Wed Jun 4 07:38:11 2008 +0000 fixes From-SVN: r759 commit 98caff56e21de5fff57cb5387b362c9b21ebab7a Author: Richard Gobeille Date: Tue Jun 3 07:54:20 2008 +0000 mousewheel control for circle points insertion From-SVN: r758 commit d93844d89fbeff752fd4ea71aae40c2f5599563b Author: Richard Gobeille Date: Mon Jun 2 21:35:51 2008 +0000 From-SVN: r757 commit dd0a314d7de5dde5b3136a87c1dfd0e3cccd4e9a Author: Hunter_rus Date: Sun Jun 1 10:20:39 2008 +0000 Fix for the autosave From-SVN: r756 commit b483d15dd4b809dee5da8391f143082afe496171 Author: Pierre-Loup A. Griffais Date: Sun Jun 1 09:41:56 2008 +0000 Interim MD2 support for polymer. Interim because it relies on a change in the model conversion code that breaks the HRP oozfilter model. It can be reverted pretty easily, see comment in mdsprite.c. From-SVN: r755 commit 03b951855143db2d35c05941a5ef3ca456020ff1 Author: Pierre-Loup A. Griffais Date: Sun Jun 1 08:58:06 2008 +0000 Models in VBOs. From-SVN: r754 commit 189ff8a193c425ab3d9990fd4154f3da53f62735 Author: Richard Gobeille Date: Sun Jun 1 01:57:01 2008 +0000 From-SVN: r753 commit 878d86850a95bade0cc8dc6b837a17bc24fda608 Author: Hunter_rus Date: Sat May 31 13:18:02 2008 +0000 Fixed this problem: http://duke3d.bur.st/forum/index.php?topic=8.msg1938#msg1938. Also it was impossible to assign "no action" to the left mouse button. From-SVN: r752 commit a04f37032612d5d2bcaa45f2698994bcc1ee605d Author: Pierre-Loup A. Griffais Date: Sat May 31 08:29:40 2008 +0000 From-SVN: r751 commit a64c894d954199dc4b70f2b32d38cca5e48f5c69 Author: Pierre-Loup A. Griffais Date: Sat May 31 07:27:43 2008 +0000 TRUE isn't defined in sdlayer. From-SVN: r750 commit 69b717661cbb0dca748bf51968efd281b0107170 Author: Richard Gobeille Date: Sat May 31 04:19:39 2008 +0000 update list of contributors From-SVN: r749 commit f5e0aac133b723b9fb62d741791bda364e061f52 Author: Richard Gobeille Date: Sat May 31 03:53:53 2008 +0000 From-SVN: r748 commit 776e0763aded5290f9412f015260a9712fca5629 Author: Richard Gobeille Date: Sat May 31 01:57:14 2008 +0000 From-SVN: r747 commit c77a58c1522957f7ee87096021efe000b19c44ad Author: Hunter_rus Date: Fri May 30 22:45:43 2008 +0000 The ifpdistl and ifpdistg commands are fixed now. From-SVN: r746 commit fafadc21958191ee6308b6fd7194a4b4943aba61 Author: Hunter_rus Date: Fri May 30 17:48:28 2008 +0000 Oops. Minute have 60 seconds not 3. From-SVN: r745 commit 7be9efaf1ba5aef7f150dfe58e774bcf22c1329a Author: Hunter_rus Date: Fri May 30 09:07:50 2008 +0000 1. Mapster32 saves autosave variable in the cfg. 2. Autosaving interval is configurable. 3. Sprite noclip is on by default(CTRL+N to toggle). 4. Fixed the devastator crash. Thanks to Nukey for helping me to track it down. Notes about the devastator crash. The yvel of projectile may point to an already removed sprite(its sectnum is MAXSECT). If some code tries to access the sector of the removed sprite, the crash might happen. How to reproduce crashes. True story: Nukey recorded a demo(*.dmo) and send me his demo and map so that I could easily reproduce it and eventually fix the crash. From-SVN: r744 commit 85ba35d6b5f73e486c48220b5433cd31030ee5fa Author: Peter Veenstra Date: Tue May 27 15:47:24 2008 +0000 Fix a bug where stuff was trying to read rotated sprite tspr owners From-SVN: r743 commit ea6cd4c293b829c91d391e9052295bca2a5bba42 Author: Peter Veenstra Date: Sun May 25 08:23:53 2008 +0000 Update lzf to 3.2 fixes texturecache on 64 bit. From-SVN: r742 commit ff2293e3522b26f6df2865f80e5d221e1e3bc40f Author: Pierre-Loup A. Griffais Date: Sat May 24 09:37:09 2008 +0000 Map VBOs. pr_vbos to enable them. From-SVN: r741 commit 072c1d262a821a83bfd546aeef7403ab796dc5b1 Author: Pierre-Loup A. Griffais Date: Sat May 24 08:21:53 2008 +0000 Second oops. From-SVN: r740 commit 8b9397e121945512519e652fde5421150db03893 Author: Pierre-Loup A. Griffais Date: Sat May 24 07:58:21 2008 +0000 Oops. With that, MD3 models should display correctly on 64-bit. The compressed texcache appears to be broken, though. From-SVN: r739 commit 4152c14dcbfb5127b00b5d28b3331be0f7035312 Author: Pierre-Loup A. Griffais Date: Sat May 24 06:53:56 2008 +0000 64-bit compatible MD3 loading. From-SVN: r738 commit a71509aedb57adefa0de2e3524b2372db66c4a37 Author: Peter Veenstra Date: Fri May 23 10:00:43 2008 +0000 Most functions in kplib.c now use a intptr_t for (da)frameplace kzopen and kzipopen now retrun a intptr_t as this actually a FILE* General 64 bit fixss to cache1d.c. Some cast correction for polymost hrp works now in 64 bit if you make md3load return NULL. From-SVN: r737 commit 70529dfa1ae99fcbe12af53fe588e2e70f116ec6 Author: Richard Gobeille Date: Thu May 22 10:08:17 2008 +0000 From-SVN: r736 commit 3c87dd853e1171090b5ba35a42f79b8d644273eb Author: Richard Gobeille Date: Sun May 18 22:40:33 2008 +0000 From-SVN: r735 commit 77da3604d51888fc553a44b601064d154eaa7717 Author: Richard Gobeille Date: Sun May 18 21:09:30 2008 +0000 From-SVN: r734 commit 52c2c6d5331e3f71e52b404eb48cd21c48c75988 Author: Pierre-Loup A. Griffais Date: Sun May 18 07:35:35 2008 +0000 Reorganize polymer data. Fill sector VBOs. From-SVN: r733 commit 43482a36c13c4f1a71025fad0394bd7dbffbeb45 Author: Richard Gobeille Date: Sat May 17 21:44:49 2008 +0000 Fixes todo: add option to swap CTRL modifier behavior in tile selector add cfg option for how many rows to scroll per wheel click in tile selector add cfg options for pk_turnaccel, pk_turndecel and pk_uedaccel From-SVN: r732 commit c161850b3df37372c182383b5838fb4a1ebfbb74 Author: Richard Gobeille Date: Sat May 17 01:37:17 2008 +0000 From-SVN: r731 commit 672d243cf3b14243364e83c369499376b7ddbd34 Author: Richard Gobeille Date: Fri May 16 20:27:52 2008 +0000 From-SVN: r730 commit 5a56f628cf8e47932f4965627a485c549b5abfe1 Author: Richard Gobeille Date: Fri May 16 20:15:43 2008 +0000 From-SVN: r729 commit e1d2ff6699bcbd579253b43ff06154cddb78fe86 Author: Richard Gobeille Date: Fri May 16 19:51:38 2008 +0000 Huge, awesome patch from Hunter_rus From-SVN: r728 commit 585374c021978a57a42d802996be5805bdd680a9 Author: Richard Gobeille Date: Fri May 16 00:23:33 2008 +0000 Cleanup patch from Hunter_rus From-SVN: r727 commit 991f35e7ca709bcd20d31dc4a18fbf0c330ca918 Author: Richard Gobeille Date: Thu May 15 03:16:38 2008 +0000 Part of a patch from Philipp Kutin (Helixhorned) plus MSVC build fix From-SVN: r726 commit 5b453c0d468b5114c7bcfc220637839ead88cadb Author: Peter Veenstra Date: Sun May 11 07:33:16 2008 +0000 Some 64 bit correction. From-SVN: r725 commit ab549318a661fbfcf30f507b7540e079ff1a51ac Author: Pierre-Loup A. Griffais Date: Sat May 10 04:28:24 2008 +0000 Correct MD3 scales. No zoff, flipping or floor alignment yet. From-SVN: r724 commit 4ff962296f4c063dd896ad6f3258f17bba8c4d31 Author: Richard Gobeille Date: Sat May 10 01:29:37 2008 +0000 Patch from hunter_rus From-SVN: r723 commit 1b4fd52b6642c4ad806a742b97d9a480586a8916 Author: Pierre-Loup A. Griffais Date: Mon May 5 09:05:07 2008 +0000 Models. I think the scale may still be a bit off on certain models, but that may also be just me. From-SVN: r722 commit 310a76d8696cc3b8baddb82492c8e3261c6eb742 Author: Richard Gobeille Date: Fri May 2 07:52:13 2008 +0000 From-SVN: r721 commit b16fadb6ffa4afbb50872b3e7f1179beeb99d8e1 Author: Pierre-Loup A. Griffais Date: Tue Apr 29 04:46:06 2008 +0000 Fixes palette/shade for swapped underwalls (toxic waterfall in The Abyss). From-SVN: r720 commit 067e3809b70136d1dd9122c6f2c6fbdcf62051cd Author: Pierre-Loup A. Griffais Date: Mon Apr 28 08:29:40 2008 +0000 Correct relative floor texture alignment (with slopes too). Also avoids a crash with mirrors in the editor. From-SVN: r719 commit a1daef6e4f37099a1a3c855070a4abc0ba1dd061 Author: Pierre-Loup A. Griffais Date: Sun Apr 27 22:48:18 2008 +0000 Fuck. From-SVN: r718 commit 3c7b6b4635960048c4cd79c0a937c13a25a179cc Author: Pierre-Loup A. Griffais Date: Sun Apr 27 22:47:47 2008 +0000 Polymer external view when above and below sectors. Noclip in the editor also works for vertical movement now. (Hunter) From-SVN: r717 commit efec9bfeea64345b364bc47eced0cad98ddbb59a Author: Richard Gobeille Date: Sun Apr 27 06:55:17 2008 +0000 win32 build fix From-SVN: r716 commit 68936b3d354e3c4f05c15db80e0af4ea280a7e13 Author: Richard Gobeille Date: Sun Apr 27 06:54:28 2008 +0000 Negative gamearray access From-SVN: r715 commit adf63fdac58d0dfa8627dfa4029b4e0a00839493 Author: Peter Veenstra Date: Fri Apr 25 11:21:08 2008 +0000 8-bit classic renderer works on my system now in 64 bit. (at least no crashes) From-SVN: r714 commit 278ab8bcae8349b6f6b1d70db441caa3e77bd935 Author: Peter Veenstra Date: Fri Apr 25 10:22:22 2008 +0000 Fix door opening From-SVN: r713 commit f363a145868b7780cd4acfeb6c37c4299b80e0a2 Author: Peter Veenstra Date: Fri Apr 25 08:14:08 2008 +0000 Fix timing. Added comment to reverse changes incase we ever go to offsets. From-SVN: r712 commit 3f36696998075214b7dc6226f8bbef5a8f51be33 Author: Richard Gobeille Date: Fri Apr 25 07:28:51 2008 +0000 Oops From-SVN: r711 commit b1cb436ace73d9d0130e074e96ef7a935ab7a458 Author: Richard Gobeille Date: Fri Apr 25 01:46:19 2008 +0000 SDL and GTK+ version check patches from Ozkan Sezer From-SVN: r710 commit 653c747edba2424f677bb0f180f5930701327112 Author: Peter Veenstra Date: Thu Apr 24 09:53:16 2008 +0000 Minimal changes to get it compiling (and not crashing when ran under valgrind. Changes don't affect 32 bit mode). Changed aplWeaponClip and friends to int* ,but intptr_t* works as well for me. Final type will determined once the con code has been checked. From-SVN: r709 commit 9c7c06ffe71250208cb8ca5b657a8a803c7e3391 Author: Richard Gobeille Date: Tue Apr 15 01:08:04 2008 +0000 Hunter_rus patch From-SVN: r708 commit c4e9f37946fde9802bec170fa27c9aed73e1e7ae Author: Pierre-Loup A. Griffais Date: Sun Apr 13 00:46:31 2008 +0000 Correct sprite offsets. From-SVN: r707 commit f46c7894c4283fa85758675362309b18420efe9b Author: Pierre-Loup A. Griffais Date: Sun Apr 13 00:29:13 2008 +0000 Oops. From-SVN: r706 commit f9e4f5d2b34dbcee0e5d2ae511b0f4b065af66fa Author: Pierre-Loup A. Griffais Date: Sat Apr 12 08:27:09 2008 +0000 Leaking doors. From-SVN: r705 commit 49d9d0c4c6b7968d7f7d8929e0d90fc341cd20b3 Author: Pierre-Loup A. Griffais Date: Sat Apr 12 08:16:01 2008 +0000 Corrected parallax problems. (_zoo and e3l10). From-SVN: r704 commit a26b8b715620639ccd5ae7538b6351297895d37e Author: Pierre-Loup A. Griffais Date: Sat Apr 12 05:44:16 2008 +0000 ART offsets (with support for Hunter's definetile stuff) and correct sprite positions. From-SVN: r703 commit 5ff30a9df1439ce00400219dc1c7ad5f494b3c33 Author: Pierre-Loup A. Griffais Date: Thu Apr 10 08:39:05 2008 +0000 Lost, in a dream of mirrors, lost, in a paradox... From-SVN: r702 commit af62ace96550afe1367a6d697c4914559610a5aa Author: Pierre-Loup A. Griffais Date: Thu Apr 10 08:24:06 2008 +0000 The dream is true... From-SVN: r701 commit d94268dc5e4e6560eb19eca960b38b1dee057f0d Author: Pierre-Loup A. Griffais Date: Wed Apr 9 07:59:37 2008 +0000 BUT YOU DONT KNOW HOW.. ? From-SVN: r700 commit 26370f53005ac3c723c478d752d0f627844dd944 Author: Pierre-Loup A. Griffais Date: Wed Apr 9 07:27:17 2008 +0000 THE FUTURE IS THE PAST From-SVN: r699 commit 2dfdd5ce3f585df428333ee78fca2abbbdd82fcf Author: Richard Gobeille Date: Mon Apr 7 00:43:09 2008 +0000 Patch from hunter_rus From-SVN: r698 commit 61194974b131ce000ef3b650d734caa41f30be94 Author: Pierre-Loup A. Griffais Date: Sun Apr 6 23:35:48 2008 +0000 HAVE YOU EVER FELT From-SVN: r697 commit fdd771b2887d4f789621b874775d810cc6e3a024 Author: Pierre-Loup A. Griffais Date: Sun Apr 6 03:00:39 2008 +0000 Clean stuff for mirrors. From-SVN: r696 commit 2cefadb428c0dc1ced077f09932c665a03a32290 Author: Pierre-Loup A. Griffais Date: Sun Apr 6 00:05:40 2008 +0000 I can live with a broken build. Can you live with a broken kneecap? From-SVN: r695 commit 55e6cb7d29144a26b12b0c9fd186c253eec0b7fd Author: Richard Gobeille Date: Sat Apr 5 23:01:58 2008 +0000 Mouse input patch from hunter_rus From-SVN: r694 commit 9daacc0fcfcbe5694b8570f0c59904d3e9fb78fc Author: Richard Gobeille Date: Sat Apr 5 04:18:48 2008 +0000 From-SVN: r693 commit 98450a7bdd82c9bef8c20c4807f38765c3952cd2 Author: Pierre-Loup A. Griffais Date: Fri Apr 4 08:07:11 2008 +0000 Added pr_billboarding mode to control whether face sprites look like classic (and clip into walls) or if they look like polymost (and suck cock). From-SVN: r692 commit 3486bd08a2920eae977bb2c5a145ebc3f2f50774 Author: Pierre-Loup A. Griffais Date: Fri Apr 4 07:40:15 2008 +0000 One-sided sprites are now one-sided. From-SVN: r691 commit 301f70074835335f0773ca47b7e62870ce2176bd Author: Pierre-Loup A. Griffais Date: Fri Apr 4 07:33:59 2008 +0000 Wall sprites are now one-sided. From-SVN: r690 commit a317133777e70db605cbee27e79d3f0ac12534bb Author: Pierre-Loup A. Griffais Date: Fri Apr 4 07:28:25 2008 +0000 Correct masks. From-SVN: r689 commit 3268fd7b596c5e4a096299f06aa2f643c920fbed Author: Pierre-Loup A. Griffais Date: Thu Apr 3 07:25:56 2008 +0000 Fix animated sector textures. From-SVN: r688 commit 46882a79e40d79060e03dc9203e5e85c22f01ff4 Author: Pierre-Loup A. Griffais Date: Thu Apr 3 06:58:36 2008 +0000 One way walls and masks. Masks don't really have correct texture coordinates yet but they should be sorted like polymost is or so. From-SVN: r687 commit 683c991ddef73ed71214a9ea9f97ab08826a2304 Author: Pierre-Loup A. Griffais Date: Wed Apr 2 09:29:58 2008 +0000 Delay between occlusion queries for visible sectors (controlled by the value of pr_occlusionculling). From-SVN: r686 commit 8f1548efa5d4b6da18b8fbb44b4b5840a1af63fe Author: Pierre-Loup A. Griffais Date: Wed Apr 2 08:49:21 2008 +0000 (somewhat) smart wall updating. From-SVN: r685 commit be3f222b400303392a263e511fbe55f778108b1e Author: Pierre-Loup A. Griffais Date: Wed Apr 2 06:58:26 2008 +0000 Smarter sector updating. From-SVN: r684 commit 3fe3b0cd157f755c1ee3ed2ecff862aed8f62303 Author: Pierre-Loup A. Griffais Date: Wed Apr 2 06:01:12 2008 +0000 Better sprite code. From-SVN: r683 commit facade2fa3e7225e5af682b8d0eb7967c4a1f99e Author: Pierre-Loup A. Griffais Date: Wed Apr 2 04:40:07 2008 +0000 Fixes typo making moving stuff crap itself. From-SVN: r682 commit 49f229485e4d893a3cd791f60b15a42fba3d9c65 Author: Richard Gobeille Date: Tue Apr 1 22:28:42 2008 +0000 From-SVN: r681 commit c05d298835a16872ecfa44f8c437acc81e3a74eb Author: Richard Gobeille Date: Tue Apr 1 09:06:29 2008 +0000 From-SVN: r680 commit 8e3460663aafd7dc2dc9ef35c52d3acebd2b1132 Author: Richard Gobeille Date: Tue Apr 1 03:53:56 2008 +0000 From-SVN: r679 commit 6bf0bad0f5fa45a5f302433b2aa9d8abb9cfe6e1 Author: Richard Gobeille Date: Tue Apr 1 03:32:36 2008 +0000 Array support for addlogvar From-SVN: r678 commit afcec9e278ae1017c2b03b3c853d028a5a500b5d Author: Richard Gobeille Date: Tue Apr 1 03:04:12 2008 +0000 "Unfortunetly, 2560x1600 is not supported." From-SVN: r677 commit c7e87030cd8768682a04c8c8f0c32a92a9584c85 Author: Richard Gobeille Date: Tue Apr 1 02:50:44 2008 +0000 array support based on a patch from Peter Green (plugwash) From-SVN: r676 commit ca163400cd3db7dd80f13102ab1d9e335b33a3eb Author: Richard Gobeille Date: Mon Mar 31 23:08:32 2008 +0000 fixes From-SVN: r675 commit a843b24d7cd0220272693cd4521b3cbab58071e7 Author: Richard Gobeille Date: Mon Mar 31 02:55:50 2008 +0000 Con access to ud.levelstats From-SVN: r674 commit 2b41706036971dcd2e5be05ac9d1ee06e5e2fdd3 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 19:13:24 2008 +0000 Alternate way of updating stuff. Restores interpolation. From-SVN: r673 commit f02d1420de77000b3e39152c7d43ed3cfcec1a8c Author: Pierre-Loup A. Griffais Date: Sun Mar 30 16:08:18 2008 +0000 I like my sprites sorted thank you very much. From-SVN: r672 commit ac282d6b000fed7eabd949b802fac752b8fb0de1 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 15:39:22 2008 +0000 Fixes a crash when pressing Home/End/PgUp/PgDown in a user map directory with no maps. From-SVN: r671 commit f59765523486ca7e7f882e7e1ce126b30c63ecc0 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 14:22:03 2008 +0000 Even less flickering. From-SVN: r670 commit 2f1f1e42e71a9989f6f2f58d54ff8eb8f862a7c7 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 12:22:50 2008 +0000 Stop raping the Z-buffer. Less flickering that way for now. From-SVN: r669 commit 7b52e54b6bbacd3801665d9c0ba3588813deba32 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 11:43:24 2008 +0000 TODO lists: because speaking to oneself is awesome. From-SVN: r668 commit 80b36126b91e2350b1adf001d84313f7a40babd4 Author: Pierre-Loup A. Griffais Date: Sun Mar 30 11:16:21 2008 +0000 I have the fire... I have the force... I have the power to make my evil take its course (it's not like anyone will read this anyway). In other news, sprites are done. From-SVN: r667 commit 035d54dff4b874c860b32338af88b168dc54c10b Author: Pierre-Loup A. Griffais Date: Sun Mar 30 09:16:39 2008 +0000 Face sprites placeholders. From-SVN: r666 commit bbf5a3f1d90b218a4d6fef38bf9b3df26e2bf020 Author: Richard Gobeille Date: Thu Mar 27 21:32:23 2008 +0000 Patch from hunter_rus From-SVN: r665 commit 09100c4802ecca2e74129f9233cad535da7cb27b Author: Pierre-Loup A. Griffais Date: Wed Mar 26 12:04:00 2008 +0000 Fixes the crossed slopes problem, fixed stuff rendering behind parallaxed stuff. Tier Drops had those two problems. From-SVN: r664 commit fb48cfbaea0ed913b7e9f00ebdbbe30dff86fabb Author: Richard Gobeille Date: Wed Mar 26 09:28:21 2008 +0000 From-SVN: r663 commit 6d51ffffd0371281309f98dca5ed900a98b60bf8 Author: Pierre-Loup A. Griffais Date: Wed Mar 26 09:24:25 2008 +0000 Fast polymer. From-SVN: r662 commit 9a47fda8ccb420fc60ef6a3c4b4c244b86699b25 Author: Pierre-Loup A. Griffais Date: Wed Mar 26 04:11:26 2008 +0000 I guess those warnings stay. :| Fixed more warnings without DEBUGGINGAIDS. From-SVN: r661 commit 1d99ed9418d1b568a541b8e6fe0c0b149361103c Author: Pierre-Loup A. Griffais Date: Wed Mar 26 03:53:54 2008 +0000 Warnings and fix broken build (my fault). From-SVN: r660 commit 9d827cb5a128f6fc2b0020ea5ef8b9c7d3010abe Author: Pierre-Loup A. Griffais Date: Tue Mar 25 09:21:18 2008 +0000 Kill warnings. From-SVN: r659 commit 679cf63e05106ad8c86133b3e52042bb98f3d64f Author: Pierre-Loup A. Griffais Date: Tue Mar 25 09:07:10 2008 +0000 allows sdlmusic.c to build with SDL 1.2.11 From-SVN: r658 commit 616d9556bd4afe254d4c384b46082c179e4da97d Author: Richard Gobeille Date: Sun Mar 23 00:41:08 2008 +0000 From-SVN: r657 commit 9d834a2f1e45646461cea32a527ebb602b80cbf4 Author: Richard Gobeille Date: Sun Mar 23 00:14:22 2008 +0000 From-SVN: r656 commit ecf512dedfa2710fa8d27d1a1a9e746ecefc6cc0 Author: Richard Gobeille Date: Sun Mar 23 00:06:42 2008 +0000 Warnings From-SVN: r655 commit 29fa43ad92251ad9babdd17890e43cd4c5e0095c Author: Richard Gobeille Date: Sat Mar 22 10:23:57 2008 +0000 From-SVN: r654 commit 6afdbf199901c27f662016a151e3475cc648d09d Author: Richard Gobeille Date: Sat Mar 22 00:22:48 2008 +0000 From-SVN: r653 commit 8a16a1350d36c726f8a183ff3010e9d183141330 Author: Richard Gobeille Date: Fri Mar 21 23:55:36 2008 +0000 From-SVN: r652 commit 0bf9e21cd3fd4353886a6abc370147cccdbe21f5 Author: Richard Gobeille Date: Fri Mar 21 22:24:53 2008 +0000 From-SVN: r651 commit 1fe1e6de248d90f0ddf496f2d0ceb5c8d760823f Author: Richard Gobeille Date: Fri Mar 21 20:18:45 2008 +0000 Patch from hunter_rus From-SVN: r650 commit 96b4fa7a69c9a261cc7b7ba6af5d1d4e9fa3850a Author: Richard Gobeille Date: Fri Mar 21 04:01:38 2008 +0000 Remove -Wno-unused from Makefile From-SVN: r649 commit 7cfd1d029ac4650ea5d9befe2389546a399d1ce0 Author: Richard Gobeille Date: Tue Mar 18 11:07:36 2008 +0000 From-SVN: r648 commit 55b176f6fe4216dfa1888886ee8c0eb01af51603 Author: Richard Gobeille Date: Mon Mar 17 07:08:56 2008 +0000 From-SVN: r647 commit 3f83afab834667abd2d6f64899b0809b68ebdb3b Author: Richard Gobeille Date: Sun Mar 16 06:42:21 2008 +0000 From-SVN: r646 commit 35d4d4035d91f9ab97222ac8ef25507c2d9962c7 Author: Richard Gobeille Date: Sun Mar 16 06:37:47 2008 +0000 From-SVN: r645 commit 95efd9c147cafaf07ee7f22256d5204bd32a909b Author: Richard Gobeille Date: Sat Mar 15 21:04:35 2008 +0000 From-SVN: r644 commit f95b76c6ba09e40833d229842ec30ad4bf18e13d Author: Richard Gobeille Date: Fri Mar 14 21:05:30 2008 +0000 From-SVN: r643 commit 0a1309278cf731fcf2dae943268bab83b48d0164 Author: Richard Gobeille Date: Fri Mar 14 21:04:28 2008 +0000 Fixes From-SVN: r642 commit 0cba14fd3eabd931e650fe5e2630134288dbf401 Author: Pierre-Loup A. Griffais Date: Fri Mar 14 12:19:13 2008 +0000 More core stuff. There's a bug somewhere but I can't seem to find it at the moment. I'll debug it when it's not 5AM. From-SVN: r641 commit 6ca75a5296b863fa8fd750383508414285dc47bd Author: Richard Gobeille Date: Sun Mar 9 08:14:12 2008 +0000 From-SVN: r640 commit ada6ab1b79710dfbeb192c78a204916ab2623aab Author: Richard Gobeille Date: Sat Mar 8 19:45:48 2008 +0000 From-SVN: r639 commit c6462548d6cb2b3c50965f888cab3f0cd702ce45 Author: Richard Gobeille Date: Sat Mar 8 09:04:01 2008 +0000 From-SVN: r638 commit 5202726d1ffe3228907b6e47254ba3cc9813c0e4 Author: Richard Gobeille Date: Sat Mar 8 07:46:30 2008 +0000 From-SVN: r637 commit 30e4c65449499c6c0d1dfd539f4a38f184c55b61 Author: Richard Gobeille Date: Sat Mar 8 06:51:53 2008 +0000 Dynamic object loader for OpenAL From-SVN: r636 commit cffbeca40e888466426ba3a891c60171b5fdd815 Author: Richard Gobeille Date: Sat Mar 8 06:51:04 2008 +0000 Forgot these From-SVN: r635 commit d51a07bb6b76e28fa7142900e6be5d3642fb8cb4 Author: Richard Gobeille Date: Sat Mar 8 05:23:15 2008 +0000 OpenAL patch from Hunter_rus... haven't even tried to make this work with MSVC yet From-SVN: r634 commit 1e4c0ed479b7ec0bb55f04c148693e33bc788929 Author: Richard Gobeille Date: Fri Mar 7 22:33:07 2008 +0000 Added new warning for con_ifsound From-SVN: r633 commit ba976f53e132b4d5015e0159ebf95f15b3b539ff Author: Richard Gobeille Date: Fri Mar 7 21:59:10 2008 +0000 Possible win95 fix From-SVN: r632 commit c8a00ac0100e920a2db8451b936f03b63ad96636 Author: Richard Gobeille Date: Sun Mar 2 22:57:54 2008 +0000 From-SVN: r631 commit e00e28f16480520af142c8ab47c4845f3bb96da3 Author: Richard Gobeille Date: Fri Feb 29 04:37:37 2008 +0000 From-SVN: r630 commit 5ce3988aebf18c857960927074acaadb4002a43b Author: Richard Gobeille Date: Wed Feb 27 00:10:33 2008 +0000 User request From-SVN: r629 commit fe07caecd698c50e20fe3f7b43ea6f2f9c1c4b82 Author: Richard Gobeille Date: Mon Feb 25 07:31:39 2008 +0000 From-SVN: r628 commit 4960152a226d079e5005ecc00990001b5eefc618 Author: Richard Gobeille Date: Sun Feb 24 00:46:57 2008 +0000 From-SVN: r627 commit 2314d77f5545069ad9944af88872d1327ac16ce0 Author: Richard Gobeille Date: Thu Feb 21 05:11:41 2008 +0000 "noautoload" command for defs to disable autoload & makes the vidmode command work in Mapster32 2d mode From-SVN: r626 commit 1d36ec4fc27283462faa703acd4c025b389d084f Author: Richard Gobeille Date: Mon Feb 18 22:12:10 2008 +0000 From-SVN: r625 commit 915596e54f53297445c7a250a5bb03bf1b500938 Author: Pierre-Loup A. Griffais Date: Mon Feb 18 08:54:33 2008 +0000 Missed one. From-SVN: r624 commit 3016511e78d745c8984d02a700820b8404b0d3ab Author: Pierre-Loup A. Griffais Date: Mon Feb 18 08:46:42 2008 +0000 Adds r_parallaxskyclamping and r_parallaxskypanning. From-SVN: r623 commit 400b033f49b229bf60a9a88fd14e99d0002d3957 Author: Richard Gobeille Date: Mon Feb 18 08:10:54 2008 +0000 From-SVN: r622 commit e176d4d1ff6a5b3d7a0f643b860df6931ed5aa21 Author: Pierre-Loup A. Griffais Date: Mon Feb 18 07:55:08 2008 +0000 Corrects fog disabling when drawing fullbright shit. Fixes sky #93. From-SVN: r621 commit 99de748716735a76e86c787167051508d3991886 Author: Pierre-Loup A. Griffais Date: Mon Feb 18 07:09:18 2008 +0000 Disables the sky clamp hack for ART parallaxed skies in polymost. From-SVN: r620 commit 5bea2c0af3e0df8f49455b08b9f45ac9e14163e5 Author: Richard Gobeille Date: Sun Feb 17 05:08:18 2008 +0000 This looks like stuff that needs to be changed for proper 64-bit support From-SVN: r619 commit 8cb8f5dd62acc147dde71730840ab8dec2d50021 Author: Richard Gobeille Date: Sat Feb 16 22:27:08 2008 +0000 Part 1 of 64-bit patch from Stephen Anthony From-SVN: r618 commit cda448683af27a8d746c3564177a3409f52b079a Author: Richard Gobeille Date: Sat Feb 16 22:18:48 2008 +0000 From-SVN: r617 commit a3a65710023c4bd75dc9b5f181121285d27b918c Author: Richard Gobeille Date: Thu Feb 14 08:35:30 2008 +0000 From-SVN: r616 commit 3c8c32792d4d4588ac11abcebc3d86fdc2470545 Author: Richard Gobeille Date: Fri Feb 8 09:29:41 2008 +0000 From-SVN: r615 commit 848b308f6f5e855f5b0be3b5b9e4872c6de7ba45 Author: Richard Gobeille Date: Thu Feb 7 04:38:28 2008 +0000 From-SVN: r614 commit d8d3b2b5313cfe7f1c8879a3ad9341ae35df093e Author: Richard Gobeille Date: Thu Feb 7 02:56:46 2008 +0000 From-SVN: r613 commit 6392baadec55774ad5abea43c0d10a0f3dd713db Author: Richard Gobeille Date: Wed Feb 6 21:02:11 2008 +0000 From-SVN: r612 commit baf4c2f4a77d7e020b39ba142e3cfc8012f28087 Author: Richard Gobeille Date: Wed Feb 6 11:48:48 2008 +0000 From-SVN: r611 commit fec236d547b85cfbc85a00a5686fb6b4892c3446 Author: Richard Gobeille Date: Wed Feb 6 11:42:34 2008 +0000 From-SVN: r610 commit 911b99df58558a50ddd13009ebe2e87e6eeb0035 Author: Richard Gobeille Date: Wed Feb 6 08:23:09 2008 +0000 From-SVN: r609 commit e2a3f2e8d3a9ea26187e085ca70e29f843ad9cfe Author: Richard Gobeille Date: Wed Feb 6 03:49:35 2008 +0000 From-SVN: r608 commit c9997a2be51a637ae7963e4b3ec42086c8860f6b Author: Richard Gobeille Date: Mon Feb 4 02:51:51 2008 +0000 From-SVN: r607 commit 52b4454c58820dfb534ee6ec11bbcdbe91fe0129 Author: Richard Gobeille Date: Sat Feb 2 16:38:30 2008 +0000 Patch from hunter_rus From-SVN: r606 commit 42f5eb9507a160ccdc86cbceaaa4caec33d18543 Author: Richard Gobeille Date: Fri Feb 1 03:36:54 2008 +0000 Patch from hunter_rus, untested From-SVN: r605 commit 6ac4e530034a42ac9d466f78c7487dc3d343d508 Author: Richard Gobeille Date: Mon Jan 28 01:13:10 2008 +0000 Restrict editor 2d video modes in the startup window to modes >= 640x480 since that's all it'll really let you use anyway From-SVN: r604 commit c052cba29f6023c9d1031a58a8a2ce0283691b70 Author: Richard Gobeille Date: Sun Jan 27 23:28:45 2008 +0000 From-SVN: r603 commit 0f291d725b5d69d6aedb1a2a7ea0cce9c82505aa Author: Richard Gobeille Date: Sun Jan 27 22:50:29 2008 +0000 From-SVN: r602 commit b11b27c72675391a480722b96e11e9325884e426 Author: Richard Gobeille Date: Sat Jan 26 08:35:31 2008 +0000 From-SVN: r601 commit 0e8ffc425f88ec4a5ff3e4fec5a1f05073807278 Author: Richard Gobeille Date: Sat Jan 26 03:59:34 2008 +0000 From-SVN: r600 commit e22618a20bf1134d4ec134c222a2b76db06c19ac Author: Richard Gobeille Date: Tue Jan 15 20:51:18 2008 +0000 From-SVN: r599 commit 885c8bc6fc2abe57048eae07405d5cf00a33d869 Author: Pierre-Loup A. Griffais Date: Sun Jan 6 21:51:32 2008 +0000 Adds LCTRL as a modifier for sector deletion (was RCTRL only). (hunter_rus) From-SVN: r598 commit 122945ed7d2c99d5e96578a5298ee727cf5f5c81 Author: Pierre-Loup A. Griffais Date: Sun Jan 6 21:41:47 2008 +0000 Fixes multiple models per sprite in colourized sectors (it was using tspr palette instead of the actual sprite palette). (hunter_rus) From-SVN: r597 commit d5531fccb1a5ccd995d9d307f94f83d0a2c1be2f Author: Pierre-Loup A. Griffais Date: Sun Jan 6 04:07:21 2008 +0000 Restores pathsearchmode after not finding a file. Fixes user map menu not working with broken DEFs. (hunter_rus) From-SVN: r596 commit d000dcd7a32529a3d6ffefc101d9be202fd11cf9 Author: Pierre-Loup A. Griffais Date: Sat Jan 5 08:58:15 2008 +0000 More Polymer portal stuff. Renders most stuff correctly and somewhat fast. - pr_scissors to toggle scissors testing. This should reduce GPU load and prevent normally invisible stuff from being drawn. - pr_showportals to show visportals and scissors if they are enabled. Debugging feature. Issues: - screen may flicker on the edge of some sectors. Probably an accuracy issue somewhere. - some maps make the algorithm loop too much (slow) or indefinitely (hang) for some reason. From-SVN: r595 commit 60f49acef6f5b2862b09f252f72f4cf0f887d9f9 Author: Pierre-Loup A. Griffais Date: Fri Jan 4 18:46:58 2008 +0000 Removes the user prompt on duplicate case in switch statement. From-SVN: r594 commit 60c1f558bb669fad4ba8ad43011bb5a5664566ec Author: Pierre-Loup A. Griffais Date: Fri Jan 4 04:41:13 2008 +0000 Changes screenpeek from short to int. From-SVN: r593 commit 01178a0d8e951e8a1b9e6a7a4147e8b6e232f624 Author: Pierre-Loup A. Griffais Date: Fri Jan 4 02:07:25 2008 +0000 strcmpi = bad From-SVN: r592 commit 2640b2b4b1ebcbf2837d85e872cafff315544395 Author: Pierre-Loup A. Griffais Date: Fri Jan 4 01:04:35 2008 +0000 Patch from hunter_rus. Adds: - maximal log line count and OSD variable "logcutoff" - ability to define different models for each palette - "bind" OSD command to bind keys so that they run command batch files From-SVN: r591 commit ae0f6e20927b84b08d55a872fe6d586042417ec5 Author: Pierre-Loup A. Griffais Date: Thu Jan 3 21:54:58 2008 +0000 Added xpanning and ypanning actor members to control the new sprite panning feature. From-SVN: r590 commit 870e2081c6958912cd8db901d6bc284f4a8915de Author: Pierre-Loup A. Griffais Date: Fri Dec 28 20:04:58 2007 +0000 Unbreaks hunter_rus patch on anal compilers From-SVN: r589 commit 0da75f87610c065c0b279272a571c9f53be7f8e1 Author: Richard Gobeille Date: Mon Dec 24 05:07:52 2007 +0000 patch from Stephen Anthony From-SVN: r588 commit 3ff1608ad08665d3a03844ef00419c2bd2203845 Author: Richard Gobeille Date: Thu Dec 20 19:14:38 2007 +0000 patch from hunter_rus From-SVN: r587 commit be8a9ca18f9b5fc45a9a197da52252e45a6db6b8 Author: Richard Gobeille Date: Thu Dec 13 17:38:46 2007 +0000 From-SVN: r586 commit 5d257a517c223cd7b8d3dca51b7b51581f9e041c Author: Richard Gobeille Date: Wed Dec 12 23:07:52 2007 +0000 sound patch from stephen anthony From-SVN: r585 commit d789c08d5781ecf1a88eb28dbf43c7a4f06d54ed Author: Richard Gobeille Date: Wed Dec 12 17:42:14 2007 +0000 From-SVN: r584 commit e16795523d0b93971bb2b9a999819446480d4af3 Author: Richard Gobeille Date: Wed Dec 12 15:27:34 2007 +0000 From-SVN: r583 commit bc78d10ccff52e3e8829c23065061dad2b74d65d Author: Richard Gobeille Date: Wed Oct 24 07:12:50 2007 +0000 From-SVN: r582 commit 6681cf1f839fe2115632813cd3471846b41e7c11 Author: Richard Gobeille Date: Wed Oct 24 06:48:13 2007 +0000 From-SVN: r581 commit 16b65fcf519cd1da3590d1b916f0cc231244f42e Author: Richard Gobeille Date: Tue Sep 11 05:26:38 2007 +0000 From-SVN: r580 commit dbdb973040cacb2ed5f9d8b05c2f2eeac7812b80 Author: Richard Gobeille Date: Tue Sep 11 02:23:08 2007 +0000 From-SVN: r579 commit fdd125442ad1a64a2d98819193ec32a23ce08278 Author: Pierre-Loup A. Griffais Date: Tue Sep 11 00:52:38 2007 +0000 MANIFESTS MOTHERFUCKER DO YOU EMBED THEM? From-SVN: r578 commit 71773dfd73d6d525ab305935bbc16af7a8c83e4f Author: Richard Gobeille Date: Mon Sep 10 23:38:42 2007 +0000 From-SVN: r577 commit 7408bb52e0d79454c396e3abe95baecf789979a0 Author: Richard Gobeille Date: Fri Sep 7 01:12:43 2007 +0000 From-SVN: r576 commit b1385fddcbc684d9afdd2aa718cc976a6766d824 Author: Richard Gobeille Date: Thu Sep 6 21:11:18 2007 +0000 From-SVN: r575 commit 543ab942d70f906688eb6eaa09eaeadead09e63e Author: Richard Gobeille Date: Thu Sep 6 10:43:42 2007 +0000 From-SVN: r574 commit 0788a646aab15d800a0f77fb260e7fba51e5633a Author: Richard Gobeille Date: Wed Sep 5 21:56:58 2007 +0000 From-SVN: r573 commit 04d68560c7dbd5ff3968bed70c9fe19d103eac19 Author: Richard Gobeille Date: Mon Sep 3 01:12:05 2007 +0000 From-SVN: r572 commit 9ff0b99c16affd46aabe38a4f999a28d8795264b Author: Richard Gobeille Date: Mon Sep 3 00:37:13 2007 +0000 test From-SVN: r571 commit 9f7e01f8c76bae25f998077865d5a50dc1c03d3e Author: Richard Gobeille Date: Fri Aug 31 06:18:56 2007 +0000 From-SVN: r570 commit bd50cbdcd1628035d8d5ce7f7cd31af059b5fb8c Author: Richard Gobeille Date: Wed Aug 29 05:29:37 2007 +0000 From-SVN: r569 commit 6de1fa8f4a2a65cf7250ac34eafca1483a3c1389 Author: Richard Gobeille Date: Wed Aug 29 05:02:43 2007 +0000 From-SVN: r568 commit 9ad6ad647ecf654ef1ed5f37d7598262a638b8c8 Author: Richard Gobeille Date: Wed Aug 29 04:01:21 2007 +0000 dynamically allocated script buffers this is still broken From-SVN: r567 commit 35c4d667a0a36145e78722f2a80f2f7c335f6dea Author: Richard Gobeille Date: Mon Aug 27 23:11:49 2007 +0000 per-player max values for health, armor and ammo From-SVN: r566 commit 715144b8b81535edfb23a8d28952ecc1c2c0375f Author: Richard Gobeille Date: Mon Aug 27 20:36:36 2007 +0000 From-SVN: r565 commit df3d200b4ccf986e838a2afe7d73b8f3115ed211 Author: Richard Gobeille Date: Mon Aug 27 06:46:31 2007 +0000 dynamically allocated player structs From-SVN: r564 commit 25f319f31835b6fcc586eec3f4b4e89a03632355 Author: Richard Gobeille Date: Mon Aug 27 00:20:15 2007 +0000 Wanna buy some crack? From-SVN: r563 commit f502c89f0d5a9058a0a28388b1dcd8057ee9a95c Author: Richard Gobeille Date: Sun Aug 26 11:28:32 2007 +0000 From-SVN: r562 commit f1293f8a8d673c2c6f300cac6c858db17e518419 Author: Richard Gobeille Date: Sun Aug 26 10:35:52 2007 +0000 config file global variable rape From-SVN: r561 commit 14a3322a5349a38e267dd3a7e90197086ec54319 Author: Richard Gobeille Date: Sat Aug 25 22:02:40 2007 +0000 From-SVN: r560 commit 9cee18c9a786c5eb617ca0a4c6637c5f1f804c74 Author: Richard Gobeille Date: Sat Aug 25 01:05:00 2007 +0000 From-SVN: r559 commit 78c35d6913132118e86701c1d863a29eb1eccf90 Author: Richard Gobeille Date: Sun Aug 19 00:15:30 2007 +0000 From-SVN: r558 commit 56d401db35ef840c97962d2a35b6d39e4bcf6193 Author: Richard Gobeille Date: Fri Aug 17 19:32:56 2007 +0000 From-SVN: r557 commit e8cad76a1c737495d0c7083a49cf4d361c4cf828 Author: Richard Gobeille Date: Fri Aug 17 03:16:46 2007 +0000 From-SVN: r556 commit b85c81450427700f2d30ed0469c9b68194180438 Author: Richard Gobeille Date: Thu Aug 16 23:25:24 2007 +0000 From-SVN: r555 commit 99b96de3c452cb336bfc086a360b02604406d301 Author: Richard Gobeille Date: Wed Aug 15 03:05:14 2007 +0000 Better sound fix From-SVN: r554 commit 71c4f5a492d45d4ac8f7ba993c821099b500975e Author: Richard Gobeille Date: Tue Aug 14 21:29:44 2007 +0000 Sound fix From-SVN: r553 commit 7036b6cbb752af74182350a10b0aebc5573289b8 Author: Richard Gobeille Date: Wed Jul 4 09:15:08 2007 +0000 grp shit From-SVN: r552 commit 01d5ee29e20b934f489a29ca2ca98bb0c77714a7 Author: Pierre-Loup A. Griffais Date: Sun Jul 1 06:32:03 2007 +0000 Rewrote half of polymer.c, HSR still needs a bit of work but I believe the end is near. From-SVN: r551 commit 180c1dbba07623129bdd2aeb00234887a10c9aca Author: Richard Gobeille Date: Tue Jun 12 19:53:18 2007 +0000 From-SVN: r550 commit e06893ef4d39c9f2813116126b1db5cb1e925662 Author: Richard Gobeille Date: Tue Jun 12 19:47:34 2007 +0000 Misc fixes From-SVN: r549 commit 215a9089421898047853ef6c5fc0cd2e0bcea701 Author: Richard Gobeille Date: Sat Jun 2 23:31:43 2007 +0000 From-SVN: r548 commit 1dd1bb26c99f3f1ff2807827915c1841585c9402 Author: Richard Gobeille Date: Sat Jun 2 04:14:10 2007 +0000 From-SVN: r547 commit bc36fba6f4d90a9d63759a30612b23bda3350ab6 Author: Richard Gobeille Date: Thu May 17 19:31:14 2007 +0000 From-SVN: r546 commit 144aa92a708d82ff5ca891edfc21a660605b420a Author: Richard Gobeille Date: Tue May 1 04:37:08 2007 +0000 From-SVN: r545 commit ed391f311a8a5917dd9ad6fe938f76d7a4c67de2 Author: Richard Gobeille Date: Tue May 1 04:35:27 2007 +0000 bleh From-SVN: r544 commit f657dddf336c56791e17aaf4a1ca82b953e280b0 Author: Richard Gobeille Date: Mon Apr 30 19:41:19 2007 +0000 Speed up HRP loading From-SVN: r543 commit 71ec13856f005a3445ac237c4c217e482d743091 Author: Richard Gobeille Date: Sat Apr 28 21:24:36 2007 +0000 Crash fix From-SVN: r542 commit 1741749a166b455c009c2fe8ffeeee4eff1316f4 Author: Richard Gobeille Date: Mon Apr 23 23:36:21 2007 +0000 From-SVN: r541 commit 7c3e103bf2ff794ba9bd3ea15e71fa6a787c2a5e Author: Richard Gobeille Date: Sun Apr 22 03:44:54 2007 +0000 Window position memory for win32 From-SVN: r540 commit 8c194481b83977664085db75ecc891ce3770ae9f Author: Richard Gobeille Date: Sat Apr 21 23:59:56 2007 +0000 From-SVN: r539 commit a141dc2b32f479243aed015f3198e977a8383e2a Author: Richard Gobeille Date: Sat Apr 21 21:07:18 2007 +0000 Example tiles.cfg From-SVN: r538 commit 74258661e167c54382211a4ae8441912b3d76048 Author: Richard Gobeille Date: Sat Apr 21 21:01:07 2007 +0000 Rawr From-SVN: r537 commit 1a5362c568cfeaad39c0f19e5ad0975353c92800 Author: Richard Gobeille Date: Sat Apr 21 20:25:07 2007 +0000 Prototype for user-defined tile groups From-SVN: r536 commit a2fe4336f354e4ca5d6ccceced5961072294f71c Author: Richard Gobeille Date: Tue Apr 17 07:47:21 2007 +0000 Scale tiles in polymost tile viewer to bigger sizes From-SVN: r535 commit 5112481bf32d3156197e6b0e2e4c2c2af422e12e Author: Richard Gobeille Date: Tue Apr 17 05:54:12 2007 +0000 Newer tile selector from Mapfun and some other stuff From-SVN: r534 commit 965b1b83a592aaaed72fc19e8382a087e7125bc9 Author: Pierre-Loup A. Griffais Date: Mon Apr 16 02:15:43 2007 +0000 The Abyss crash fix. From-SVN: r533 commit 46472d46c807f0087a348aabf617bc28f6fccf03 Author: Richard Gobeille Date: Sun Apr 15 20:04:52 2007 +0000 From-SVN: r532 commit 90d40ab6b0398843aad5d7abb2b757b7612da61b Author: Pierre-Loup A. Griffais Date: Thu Apr 12 03:09:41 2007 +0000 smoothduration def token for model frame definitions (defaults at 0) From-SVN: r531 commit b141200141a401338ee3c6320dc70bf17b51166a Author: Pierre-Loup A. Griffais Date: Fri Mar 30 18:02:00 2007 +0000 Working commit for animation smoothing. Pretty much breaks everything that relied on fixed-frame transitions (muzzledlashes) but makes stuff look good otherwise. Needs a DEF-hook to control which frames should be smoothed. From-SVN: r530 commit 3f6b64b1cde5288379687f8e667ca489ddf2fd3f Author: Richard Gobeille Date: Sat Mar 24 23:17:56 2007 +0000 From-SVN: r529 commit f4e63a3179d1c2eaf6ae30a18d2439a063f4ff41 Author: Richard Gobeille Date: Thu Mar 22 20:58:13 2007 +0000 From-SVN: r528 commit 803fad4e85f38bf503edc54b67952c98407fc6fc Author: Pierre-Loup A. Griffais Date: Thu Mar 22 18:40:26 2007 +0000 Blah. From-SVN: r527 commit ba6be3860cefab21927099c73fa9672ee138b0a1 Author: Pierre-Loup A. Griffais Date: Thu Mar 22 18:36:23 2007 +0000 Fix. From-SVN: r526 commit 592032b41048a959a184c24cc9e22ceba50c54e9 Author: Pierre-Loup A. Griffais Date: Thu Mar 22 18:28:41 2007 +0000 Game angle interpolation (cl_angleinterpolation) and engine model animation smoothing (r_animsmoothing). From-SVN: r525 commit e3daa2a4191aa9cfbcee3d1b8496add5989ef5b8 Author: Richard Gobeille Date: Wed Mar 21 20:37:24 2007 +0000 Extra grp file autoloading for grp files included via the command line or the def files From-SVN: r524 commit 664e49ca0bb5f5efa304690ba308cecde3915db6 Author: Richard Gobeille Date: Tue Mar 13 18:37:46 2007 +0000 From-SVN: r523 commit 5dfcd8ac743a9ef876147359487b4546c655bb44 Author: Richard Gobeille Date: Sun Mar 11 00:47:32 2007 +0000 Whitespace From-SVN: r522 commit 0cec7f13639c6d9823f8af471dea4654b0ae895f Author: Richard Gobeille Date: Sun Mar 11 00:20:32 2007 +0000 Showview command updates and a couple of other things From-SVN: r521 commit f234b2004583436f0efbecd50d2e1d4591230900 Author: Richard Gobeille Date: Thu Mar 8 21:07:10 2007 +0000 From-SVN: r520 commit 97d7eb56985df81715ed4333df1ee1656cc6ac2d Author: Pierre-Loup A. Griffais Date: Thu Mar 8 03:07:10 2007 +0000 Support for Vertex Buffer Objects (r_vbos, r_vbocount). From-SVN: r519 commit e7b029bed957717c99a1e1d8c6900bb308e1fada Author: Richard Gobeille Date: Thu Mar 8 01:01:55 2007 +0000 From-SVN: r518 commit ebb59b76b0c83213037db32b4f1e2aaa46315cab Author: Richard Gobeille Date: Thu Mar 8 00:30:48 2007 +0000 From-SVN: r517 commit 5f3af1abbbc03711117916b9d4d1fb1678c90304 Author: Richard Gobeille Date: Thu Mar 8 00:09:20 2007 +0000 From-SVN: r516 commit 672c16a9712fdfe53264b02ae72a088919932bcf Author: Richard Gobeille Date: Wed Mar 7 20:18:48 2007 +0000 From-SVN: r515 commit d23d1976a44239dc6a6e86445c3cd09d89808ef3 Author: Richard Gobeille Date: Sun Mar 4 19:52:57 2007 +0000 Small things From-SVN: r514 commit 8ef4f23fa5f5020c4aa8ab129056bcb57b3f88f2 Author: Pierre-Loup A. Griffais Date: Sat Mar 3 23:09:40 2007 +0000 Corrected issues with detailmaps scaling, improved general model drawing performance and added support for using vertex arrays when drawing models (r_vertexarrays) From-SVN: r513 commit 5812da3c024d945f5f89dec77c3f0d93ef39f7dc Author: Pierre-Loup A. Griffais Date: Thu Mar 1 18:19:11 2007 +0000 Detail map scaling. From-SVN: r512 commit 42e372ab4cec91b83fe0b76e1540108dc77abc7f Author: Richard Gobeille Date: Thu Mar 1 00:50:59 2007 +0000 From-SVN: r511 commit 549e44605e3ad5599dc650e918df72a302d5a73c Author: Richard Gobeille Date: Wed Feb 28 09:39:37 2007 +0000 A few more minor things From-SVN: r510 commit d0def91e44278ec0cf559d9ec0ef6e4077f03ef4 Author: Richard Gobeille Date: Wed Feb 28 09:12:41 2007 +0000 This adds a menu option for network packet rate, and more conversion of passing things as char or short to passing things as int From-SVN: r509 commit aedaddec8c72003a0bfe08f072d2f03b79336b08 Author: Richard Gobeille Date: Mon Feb 26 01:46:38 2007 +0000 Bug fixes From-SVN: r508 commit bc63166b708f5814dbfe1afc1950ea6648666887 Author: Richard Gobeille Date: Sun Feb 25 21:11:59 2007 +0000 Support for automatically loading all grp/zip/pk3 files in a directory. Files go into the "autoload" directory if they're to be loaded by all main grp files that are supported, or into autoload/grpname to be loaded only if a specific grp is used. For example, autoload/duke3d.grp/hrp.zip would only be loaded if duke3d.grp was specified as the main group file (and not nam.grp, et cetera). From-SVN: r507 commit a459c498eb2962157ff0edc5797247a994c0fef5 Author: Richard Gobeille Date: Fri Feb 23 22:27:22 2007 +0000 Fixes the skybox problem, the problem with the default keyboard configuration, and adds cl_viewbob and cl_weaponsway From-SVN: r506 commit fae89e92acae1cf1a22baf00475ab1551378c061 Author: Richard Gobeille Date: Sun Feb 18 22:16:01 2007 +0000 From-SVN: r505 commit 439ae70f257782124195e71917c98a17811126e2 Author: Pierre-Loup A. Griffais Date: Sat Feb 17 02:23:50 2007 +0000 Added xscale and yscale DEF tokens to texture blocks to control the size ratio with the ART. From-SVN: r504 commit 4538f0ebc2e95b3855baa0f9127b98c0091e1744 Author: Pierre-Loup A. Griffais Date: Fri Feb 16 17:44:59 2007 +0000 HUD detail and glow maps. From-SVN: r503 commit 9adde70ecb494a46be36d75f4beeffa5fbd547d8 Author: Richard Gobeille Date: Fri Feb 16 06:59:05 2007 +0000 This rips all of the camera control shit out of userdefs and re-implements it as a bunch of pointer gamevars. This required adding in support for vars which are pointers to chars and short ints. It appears to work properly, without overwriting anything that happens to be adjacent (in memory) to the values being set. We'll see. From-SVN: r502 commit fd146d721b114f092d178e81dd2d66d9d3a969a7 Author: Pierre-Loup A. Griffais Date: Fri Feb 16 01:34:41 2007 +0000 Various fixes and detail texturing on models. From-SVN: r501 commit 0e7b7d4c7dfa94c3263b7b8d53da2de89ea3d8c9 Author: Richard Gobeille Date: Fri Feb 16 00:11:25 2007 +0000 Some crap I didn't commit before From-SVN: r500 commit 73ad342d2eb4d0a22ab7ccbc640837f386dfb894 Author: Pierre-Loup A. Griffais Date: Thu Feb 15 22:26:50 2007 +0000 Avoid loading textures two times. From-SVN: r499 commit 6ce5901a133ef3ca67a27c5d06738f3f7b23c10d Author: Richard Gobeille Date: Thu Feb 15 01:45:38 2007 +0000 From-SVN: r498 commit 4b4499a938cf31e96ace5e1834131703ace3924b Author: Pierre-Loup A. Griffais Date: Thu Feb 15 01:35:34 2007 +0000 Glow mapping ! From-SVN: r497 commit 57532e88401dd924dbfd9ac1166aa2f172bf632d Author: Richard Gobeille Date: Wed Feb 14 00:22:12 2007 +0000 This adds a menu option to reset the key layout to what the game shipped with From-SVN: r496 commit 13fa20504a13f588143de41c8147bb96f61ad46b Author: Richard Gobeille Date: Tue Feb 13 09:50:58 2007 +0000 This adds a menu option to reset the keys to the default configuration From-SVN: r495 commit fa6b5e2b4bdb9c3d03558fc836823d5a3061e0d6 Author: Richard Gobeille Date: Tue Feb 13 03:00:25 2007 +0000 OOPS. From-SVN: r494 commit 9ef522a7dc0a21a100943633be7edcdfc3e16a2e Author: Richard Gobeille Date: Tue Feb 13 02:56:10 2007 +0000 This removes the bullet spread from the pistol if the player is aiming directly at something aim() would target, allowing the special enhanced auto-aim for the pistol to be mimicked when auto-aim is disabled. From-SVN: r493 commit f24b3740d13393d02a6fcc018190ded952270086 Author: Richard Gobeille Date: Tue Feb 13 02:22:17 2007 +0000 Added EVENT_DISPLAYSTATUSBAR and moved the "detail" option out of game options and into the video setup menu (but only while classic mode is enabled). From-SVN: r492 commit a00e758183e08aaf11719b0cf3ad1e4d9e092315 Author: Richard Gobeille Date: Tue Feb 13 01:28:50 2007 +0000 Status bar stuff... this adds new hotkeys for scaling the status bar (hold shift while pressing the shrink or enlarge screen buttons) and also adds support for a left-justified version of the full status bar From-SVN: r491 commit c3462d79c468120d23bd9086307ae9141e3ecfb3 Author: Richard Gobeille Date: Mon Feb 12 21:52:23 2007 +0000 This fixes the fog issue described here: http://forums.3drealms.com/vb/showpost.php?p=492096 From-SVN: r490 commit cc08042979eafa4b19f88e4011e21034afb043f1 Author: Richard Gobeille Date: Mon Feb 12 21:17:52 2007 +0000 Clean up the new camera control stuff a little bit From-SVN: r489 commit 835c410f084541bf4738af5c2b7e512697999de4 Author: Richard Gobeille Date: Mon Feb 12 21:08:31 2007 +0000 Tag the .mid file in /tmp with the username and current pid, and remove it when the sound system is shut down. From-SVN: r488 commit b7426ae76818f57e3e4754d9b84c46d5637a42f9 Author: Richard Gobeille Date: Mon Feb 12 07:58:03 2007 +0000 Camera control From-SVN: r487 commit ac7425e0e75c89c988108238d1ce943b01613be4 Author: Richard Gobeille Date: Sun Feb 11 22:05:50 2007 +0000 This fixes a defect which could cause the game to crash when a duke3d_w32 network configuration file without explicitly defined ports is used. From-SVN: r486 commit 0e6f6d75ac227648c92d98a8e9f93717e2410b8c Author: Richard Gobeille Date: Sun Feb 11 00:49:03 2007 +0000 This changes the pistol's autoaim back to how it was in the DOS version of Duke3D. I suspect this behavior was changed during NAM or WW2GI development and just never noticed until now. From-SVN: r485 commit bbfda8fabd8213c86d53b5e5a1f0021f73027472 Author: Richard Gobeille Date: Thu Feb 8 04:19:39 2007 +0000 Update the headers of all source files, add CON_SHOWVIEW based on a patch from CONAN, other minor fixes From-SVN: r484 commit c622b33e774a1d8ded707276590abbec1e1a02d7 Author: Richard Gobeille Date: Wed Feb 7 00:13:47 2007 +0000 Remove JFAud until it works right From-SVN: r483 commit 93939db43c0f3b40ff091b34a051182cc64543a0 Author: Richard Gobeille Date: Mon Feb 5 01:33:08 2007 +0000 From-SVN: r482 commit c618432b4e9cc9668998eadb99503e76677e558d Author: Richard Gobeille Date: Tue Jan 30 09:03:51 2007 +0000 Allow use of grp files which exist outside of the game directory From-SVN: r481 commit 2aa535c6e2094e509a308c39ebb3f628ef4989fa Author: Richard Gobeille Date: Tue Jan 30 02:04:14 2007 +0000 Minor fixes From-SVN: r480 commit 2473003e09eb372bf563130a5b60e9f7031b7d3f Author: Richard Gobeille Date: Mon Jan 29 23:01:28 2007 +0000 This fixes the issue with running in 16-bit color, and it doesn't look like it breaks depth peeling... From-SVN: r479 commit 004d9b36063d77bce8837685c045c2734d0951de Author: Richard Gobeille Date: Mon Jan 29 03:21:12 2007 +0000 The mouse wheel was backwards on Win32... I think this fixes that. From-SVN: r478 commit 654bdf7f4c19625035a16bbe4322fc06d472750c Author: Richard Gobeille Date: Mon Jan 29 01:19:49 2007 +0000 Fixes for http://forums.3drealms.com/vb/showpost.php?p=481243 and possibly http://forums.3drealms.com/vb/showpost.php?p=480994 From-SVN: r477 commit a7e5f8e7823bbdffdfef3bff667bee6cb743968b Author: Richard Gobeille Date: Mon Jan 29 01:18:16 2007 +0000 dos2unix on the engine headers From-SVN: r476 commit 3875d19c53682f93cdc72ef883ff16254453db3b Author: Pierre-Loup A. Griffais Date: Fri Jan 26 22:37:48 2007 +0000 Winlayer keyboard input fix for OSD buffer issues and removed blending in drawrooms. From-SVN: r475 commit e29def33694e4c4c5f6a224840ec2d813186e261 Author: Richard Gobeille Date: Fri Jan 26 21:12:05 2007 +0000 Minor crap From-SVN: r474 commit 4c0c0a6573952a02b2d93f35e6aef4a54d4c024b Author: Pierre-Loup A. Griffais Date: Fri Jan 26 20:29:36 2007 +0000 Fixes blending in drawrooms and dynamic GLU not compiling in Win32. From-SVN: r473 commit a2d54a7a7afcd789a868c1d5606e167c0607342f Author: Richard Gobeille Date: Fri Jan 26 05:16:10 2007 +0000 Move screenshot code to getpackets() to allow screenshots in the menu and in cutscenes and add some snd_ cvars and a restartsound console command. From-SVN: r472 commit fa4c36097a6881968adb3f410cefe10a6e917639 Author: Richard Gobeille Date: Fri Jan 26 00:28:44 2007 +0000 Re-done player setup menu, support for 4 teams in multiplayer, and separate menu options for weapon switch on pickup and weapon switch when empty. The string with __DATE__ and __TIME__ in it (which is used in the first line of the log file) was moved to global.c so that we're no longer forcing game.c to be recompiled every time something else is changed. From-SVN: r471 commit fe4721481b0a1a3f91db5edd55116f1064571d28 Author: Richard Gobeille Date: Wed Jan 24 21:24:35 2007 +0000 Packet rate control From-SVN: r470 commit 13e69656d2502ad5d96c41f4abb0bff28152c934 Author: Richard Gobeille Date: Wed Jan 24 03:42:54 2007 +0000 Misc. fixes From-SVN: r469 commit ab29136ea6b2cc8fcca01677578589ba319dc48c Author: Richard Gobeille Date: Mon Jan 22 05:00:57 2007 +0000 From-SVN: r468 commit 5faa8b81e6065da420a891ffad65020819291384 Author: Richard Gobeille Date: Mon Jan 22 03:10:09 2007 +0000 This adds -game_dir for Mapster, too. From-SVN: r467 commit b95850b3b704bd629c960396fd0db51065296821 Author: Richard Gobeille Date: Mon Jan 22 02:49:58 2007 +0000 This fixes using .cfg files that are outside of the game directory. From-SVN: r466 commit ddec5cd82ecb91610f6d180991a955801c332870 Author: Richard Gobeille Date: Mon Jan 22 02:35:54 2007 +0000 Support for -game_dir similar to Duke3d_w32 From-SVN: r465 commit d9dd290e30f1b1d1a001f00b95be745488dc7d0a Author: Richard Gobeille Date: Sun Jan 21 23:49:07 2007 +0000 Support for -ww2gi, -nam, -cfg, -usecwd, -h, and -j in Mapster32. Because I am lazy, this is all code from game.c. From-SVN: r464 commit 7a8317f086a1c7f48e0c1c6595a9223208487a4d Author: Richard Gobeille Date: Sat Jan 20 03:10:32 2007 +0000 Misc minor things From-SVN: r463 commit 56a1cffe2249ff92ceba079ecbbd9345d73df4fc Author: Richard Gobeille Date: Tue Jan 16 03:19:04 2007 +0000 Dynamically loaded GLU From-SVN: r462 commit 1d587c4d3b27ac7cf992244c60b9dddf6ae5f47e Author: Pierre-Loup A. Griffais Date: Mon Jan 15 12:17:01 2007 +0000 GL State leak correction : no more diffuse map disappearance. From-SVN: r461 commit bee64b0793089016379983e44d464e529dc1839d Author: Pierre-Loup A. Griffais Date: Mon Jan 15 09:22:13 2007 +0000 Asking the end-user to have sexual intercourse with his family is not that cool. From-SVN: r460 commit e95b96fabbf14de87cb63d014a459763e83719c3 Author: Pierre-Loup A. Griffais Date: Mon Jan 15 09:08:57 2007 +0000 Detail mapping : r_detailmapping. From-SVN: r459 commit 3f0d5d482c5a53e0695bcf729a100a8352451da1 Author: Richard Gobeille Date: Mon Jan 15 05:46:49 2007 +0000 MAXSPRITESONSCREEN = 4096 and a few other things From-SVN: r458 commit 1fb4e028b91e58361a41b519c89bf899de73468c Author: Richard Gobeille Date: Mon Jan 15 00:59:49 2007 +0000 This changes the map scaling feature to operate on sectors selected in the editor rather than the whole map From-SVN: r457 commit 3c100c7216fe98a842ff1e4a44e4ae8d6d999d59 Author: Richard Gobeille Date: Mon Jan 15 00:38:21 2007 +0000 This makes Mapster32 go into 3D mode at startup only if the map's start position is inside of a sector. This means that you won't end up in 3D mode on a blank map anymore if you have an empty newboard.map in your directory. From-SVN: r456 commit e902e4eec7e5d49fc29cb4d690d441295c0b9e55 Author: Pierre-Loup A. Griffais Date: Sun Jan 14 07:11:47 2007 +0000 Forgot to add the new MSVC project files. From-SVN: r455 commit 1660d7add420dd6767555da8f301ff85d868980d Author: Pierre-Loup A. Griffais Date: Sun Jan 14 07:00:29 2007 +0000 Restored fullbrights, improved depth peeling, tweaked MSVC support for JFAud. From-SVN: r454 commit 1792b7f4d662813e9baf708ebab03bb3750fee2a Author: Richard Gobeille Date: Fri Jan 12 23:24:13 2007 +0000 Compile From-SVN: r453 commit b785c131370856a2d082f6df8a2e7f5dfdffbfda Author: Richard Gobeille Date: Fri Jan 12 22:42:19 2007 +0000 JFAud From-SVN: r452 commit 8d6e38d1560b08f944ab4b1dde55d7b477fef620 Author: Richard Gobeille Date: Fri Jan 12 05:49:09 2007 +0000 It looks like handleevents() returns true when the window loses focus, so the processor was maxing out again if Mapster was running but wasn't the active window. This fixes that. From-SVN: r451 commit ef32f238c93aff922dc1ffa7e0013c423c82303a Author: Richard Gobeille Date: Fri Jan 12 05:05:19 2007 +0000 From-SVN: r450 commit 87d28fec602aef4de120033b071156a2cf4023ba Author: Richard Gobeille Date: Sat Jan 6 09:50:02 2007 +0000 More consistent console scroll speed (especially with a low framerate) This still seems to screw up sometimes. From-SVN: r449 commit 3dfc01cb03765f45142b212758b184871dcf8642 Author: Richard Gobeille Date: Sat Jan 6 06:02:45 2007 +0000 From-SVN: r448 commit 68229e6d22133c369ae35e3e109ac699b4ffe31e Author: Pierre-Loup A. Griffais Date: Sat Jan 6 05:11:14 2007 +0000 Minor fixes. From-SVN: r447 commit 8472c45c447d858481b4d5586e251af19e193c06 Author: Pierre-Loup A. Griffais Date: Sat Jan 6 01:29:45 2007 +0000 Second draft of depth peeling code. It should be in a usable state, although still slow as hell. From-SVN: r446 commit 2c35e8790f74669565a57d572c95a91ba2537b05 Author: Richard Gobeille Date: Fri Jan 5 23:40:37 2007 +0000 From-SVN: r445 commit aaa9b22348a2b92aff984f4f8207dd186dd67de2 Author: Richard Gobeille Date: Fri Jan 5 22:30:35 2007 +0000 CON command for earthquakes From-SVN: r444 commit 055d026002f6f5ae7a8858966acea4b700623dbe Author: Richard Gobeille Date: Thu Jan 4 07:15:17 2007 +0000 Fix/add some of the stuff in http://forums.3drealms.com/vb/showpost.php?p=468104 From-SVN: r443 commit e469b60d09f31cf344075745c2818ef5134dede9 Author: Richard Gobeille Date: Tue Jan 2 02:27:57 2007 +0000 Control over the cache1d size... From-SVN: r442 commit b9f48aff340f347f87486008d171846aa6083f15 Author: Richard Gobeille Date: Tue Jan 2 02:27:31 2007 +0000 Mouse sensitivity stuff From-SVN: r441 commit e774fe07245a13df47bdea61aad12d47e2a1cff6 Author: Pierre-Loup A. Griffais Date: Sun Dec 31 06:41:57 2006 +0000 Sorting is back. From-SVN: r440 commit 40bd47f08afc1cb52c8b57a9d0def9ead6e9f5f1 Author: Pierre-Loup A. Griffais Date: Sun Dec 31 06:32:04 2006 +0000 Broken depth peeling. From-SVN: r439 commit 7e6ce310c1b7c388a5c78bd759d0780d965bbfc6 Author: Richard Gobeille Date: Thu Dec 28 20:36:38 2006 +0000 From-SVN: r438 commit f33d4879ecb8760e50a55ce5b38cc9ef99272b34 Author: Richard Gobeille Date: Sat Dec 23 02:38:47 2006 +0000 From-SVN: r437 commit c8bd085d82c08ccae9d619e5794467d4f5ffdc14 Author: Pierre-Loup A. Griffais Date: Fri Dec 22 15:04:49 2006 +0000 More MSVC goodness. From-SVN: r436 commit b42d8d84fb37481f53595cfa643be8eafeb42800 Author: Pierre-Loup A. Griffais Date: Thu Dec 21 15:18:50 2006 +0000 MD2 rotation issues should be fixed now (untested). From-SVN: r435 commit 0156a37d1cb6040be8e10215bafc42f0555b7639 Author: Pierre-Loup A. Griffais Date: Thu Dec 21 12:53:11 2006 +0000 EDuke32 now compiles okay with the Microsoft compiler using NMake. From-SVN: r434 commit af0ec02b6d62e3a6ca3b352b0e05eb74a3b2b5b3 Author: Richard Gobeille Date: Thu Dec 21 09:33:26 2006 +0000 More tiny optimizations I guess From-SVN: r433 commit 30e957091d62b295fcbf89cad3c5e0bc91ad91ee Author: Richard Gobeille Date: Wed Dec 20 03:27:25 2006 +0000 Prefer passing things between functions as int rather than short or char to avoid the overhead of converting back and forth between formats From-SVN: r432 commit 53dac347623c47b65bf5d6d4fe510c726db72c8e Author: Richard Gobeille Date: Tue Dec 19 20:31:40 2006 +0000 Minor things such as un-breaking setvarvar :) From-SVN: r431 commit c962b3b62176224550a9ad0cfc4965f112e699fc Author: Richard Gobeille Date: Mon Dec 18 21:29:55 2006 +0000 Death to local variables From-SVN: r430 commit 90bb7cec89453eb6cd041f6146830ad4e4261936 Author: Richard Gobeille Date: Mon Dec 18 09:32:17 2006 +0000 Quite a few more optimizations From-SVN: r429 commit 5721ef338d46ed6d1d6cfe09c7c099954bd4aced Author: Richard Gobeille Date: Mon Dec 18 08:37:12 2006 +0000 Optimize some of the frequently used CON commands that have nasty overhead From-SVN: r428 commit d91c700a523fad2232e22305de2adcc9d6bf43bb Author: Richard Gobeille Date: Mon Dec 18 04:18:46 2006 +0000 This probably fixes something with projectiles From-SVN: r427 commit 66afcad32475afd3ad3b05eb6fb4cc141d238277 Author: Richard Gobeille Date: Mon Dec 18 04:18:29 2006 +0000 Oops, I forgot to leave a space for the terminating character for the string here From-SVN: r426 commit cde7961ec5800fdc42735389e0598bfc03cf3e14 Author: Richard Gobeille Date: Mon Dec 18 04:16:41 2006 +0000 Removed orderweaponnum() From-SVN: r425 commit 54ddd95e16b4f7ad19ffb3d2c5c76fa5b0131b53 Author: Richard Gobeille Date: Sun Dec 17 21:48:21 2006 +0000 Heh, oops, that was totally backwards :) From-SVN: r424 commit 5b63f092547b8da3339711356d58cc1ebac13f6a Author: Richard Gobeille Date: Sun Dec 17 21:20:35 2006 +0000 Stuff, and things. From-SVN: r423 commit f441fc35c7e349430a2b42867403962c37aac898 Author: Richard Gobeille Date: Sun Dec 17 03:21:55 2006 +0000 This should allow map progression via nukebutton to work up to the 32 level limit, for all episodes. From-SVN: r422 commit 5bdfd207272459f75641240cd4d1ce488c362234 Author: Richard Gobeille Date: Sun Dec 17 01:08:39 2006 +0000 From-SVN: r421 commit b7ae8752395195099797fa514334f846496b6cdc Author: Pierre-Loup A. Griffais Date: Sat Dec 16 23:18:11 2006 +0000 Fixed memory leaks issues with converted MD3s. From-SVN: r420 commit d8f5f7925a775e6a120ff44a4393f1e9741973cc Author: Richard Gobeille Date: Fri Dec 15 01:09:25 2006 +0000 Minor fixes and a couple of improvements to the fake AI players From-SVN: r419 commit c9cc5a913c263e06b6b9b7d402e95f802cb6b4fa Author: Richard Gobeille Date: Thu Dec 14 08:50:18 2006 +0000 Faster movement in Mapster32. From-SVN: r418 commit 4f7f0dd5a0db07c81515df4ba0a3ff2f8d6d93c7 Author: Richard Gobeille Date: Thu Dec 14 04:13:19 2006 +0000 I wonder how this feature is going to come back to bite me in the ass later From-SVN: r417 commit 3667168b2e88fc4b197f508ea031483b691d82e7 Author: Richard Gobeille Date: Thu Dec 14 03:34:55 2006 +0000 Update checking for win32... From-SVN: r416 commit e00923bce29a775ce3f100e6ae76d3db74a159fa Author: Richard Gobeille Date: Tue Dec 12 09:28:37 2006 +0000 Add an extra noapply flag to setbrightness() so we can invalidate just the 8 bit textures. From-SVN: r415 commit 60b15d8147080963688a122d550738327a5cddb7 Author: Richard Gobeille Date: Tue Dec 12 08:46:32 2006 +0000 Function for changing map in multiplayer From-SVN: r414 commit ecefb1edfc04266e8327e221b5218a6619ceaf23 Author: Richard Gobeille Date: Tue Dec 12 08:33:11 2006 +0000 Multiplayer code for "map" and "changelevel" From-SVN: r413 commit 44adc41918777b1cafaa729a25ce0d6d912bb431 Author: Richard Gobeille Date: Tue Dec 12 07:25:01 2006 +0000 Make sure map filenames always get slashes prepended to them, to make sure getlevelfromfilename() doesn't fail From-SVN: r412 commit b73df51925ff9464b24bdb3b48b2f65e51225179 Author: Richard Gobeille Date: Tue Dec 12 06:41:47 2006 +0000 *yawn* From-SVN: r411 commit 809fc8d06d0be794f23286abd1c258df39a19995 Author: Richard Gobeille Date: Tue Dec 12 05:59:47 2006 +0000 More menu stuff From-SVN: r410 commit d40cee48eb545031e3e10441dd5d1a7fd5ee2759 Author: Richard Gobeille Date: Tue Dec 12 04:31:51 2006 +0000 Allow the startup screens to be skipped via mouse and allow the help and credits screens to be navigated via mouse as well From-SVN: r409 commit 7c3ba129445f1ca7c8172673b07f7bc69cbd4c0b Author: Richard Gobeille Date: Tue Dec 12 00:03:24 2006 +0000 Mouse wheel support for the game menus From-SVN: r408 commit 23885c4557d0f136135179863876e96003440a1e Author: Richard Gobeille Date: Mon Dec 11 22:23:56 2006 +0000 Oops, I accidentally made 3D mode teh slows. From-SVN: r407 commit 816ceb09ff3f3bf96dab1388f77c43c7ff821d5f Author: Richard Gobeille Date: Mon Dec 11 21:56:00 2006 +0000 This makes the editor quite a bit friendlier in terms of CPU usage. After checking for input, we wait for 1 ms if none was reported. From-SVN: r406 commit a8c2b8a609413bb0704d219e2aa56353cfcbb86d Author: Richard Gobeille Date: Mon Dec 11 21:21:41 2006 +0000 This makes the console work in Mapster32 2D mode when Polymost is selected From-SVN: r405 commit 41e0618b67d9443710d9881654cd699164867ce2 Author: Richard Gobeille Date: Mon Dec 11 21:18:21 2006 +0000 Fixes From-SVN: r404 commit 911589868aa21bd88f8e2ac6796adbeb9c922252 Author: Richard Gobeille Date: Mon Dec 11 04:38:10 2006 +0000 Support for a version string to stick in the lower right hand corner of the OSD From-SVN: r403 commit 122cbee851742f668ac89be2ff26aa699181b0e3 Author: Richard Gobeille Date: Mon Dec 11 03:32:43 2006 +0000 Separate input capturing from OSD drawing so that we don't have to wait for the OSD to scroll off the screen to un-grab everything From-SVN: r402 commit f4e2d2dd2270e131e1fae891a39e152f1815f6ff Author: Richard Gobeille Date: Mon Dec 11 03:06:49 2006 +0000 This makes the console slide on and off of the screen and also print out a list of everything that matches when auto-completing something From-SVN: r401 commit 6d6fb353ebfa936c585b95ade34adf0b8c063105 Author: Richard Gobeille Date: Sun Dec 10 21:53:33 2006 +0000 Blah blah blah From-SVN: r400 commit 035a2d79e72a8c54935ec490e4cd46c08a301f60 Author: Richard Gobeille Date: Sun Dec 10 19:32:44 2006 +0000 Oops From-SVN: r399 commit 46895fbb5c1ee62424f09282a705a5b55e91d9cd Author: Richard Gobeille Date: Sun Dec 10 06:49:01 2006 +0000 Give most of the gamevar stuff its own object From-SVN: r398 commit 34fdba1505a951bcde0d6e3a8c4f16f378ef6959 Author: Richard Gobeille Date: Sun Dec 10 04:17:26 2006 +0000 More optimizations From-SVN: r397 commit a837f416206f739d6e1a2f74f85c9f9e19a20156 Author: Richard Gobeille Date: Sun Dec 10 03:35:45 2006 +0000 More of an optimization From-SVN: r396 commit 7178a73eeaa9a8d699a5580ef4c5010c42883a42 Author: Richard Gobeille Date: Sun Dec 10 03:15:56 2006 +0000 Uhh.. yeah From-SVN: r395 commit c1f2b3deb7f0052919a33380c641f7de5338a4bd Author: Richard Gobeille Date: Sun Dec 10 01:52:35 2006 +0000 I guess this is an optimization as well From-SVN: r394 commit 36a51c9694ee2f45d0f99d05d343197dc8a580d8 Author: Richard Gobeille Date: Sun Dec 10 01:21:30 2006 +0000 I guess this is some kind of an optimization :o From-SVN: r393 commit 6082c08441e08189d7afb63791062ccf2a933134 Author: Richard Gobeille Date: Sat Dec 9 23:41:43 2006 +0000 Check to see if the user map filename matches a defined level name and warp to that level instead of opening it as a user map From-SVN: r392 commit d2d3265b232cb16a3b1ba8f7519a6a8f6ca00399 Author: Richard Gobeille Date: Fri Dec 8 16:45:12 2006 +0000 Better alt-tab support for fullscreen OpenGL on win32 From-SVN: r391 commit d838a60af6ac317c34007837abd94aff9ba27301 Author: Richard Gobeille Date: Thu Dec 7 23:56:35 2006 +0000 Pitch and roll control for maphacks From-SVN: r390 commit b1fcc9bcaeb15d1bec3925745a64c78b3c8f3f36 Author: Richard Gobeille Date: Wed Dec 6 23:14:49 2006 +0000 Null pointer checks for music filenames From-SVN: r389 commit 797a2197671a6c2f08a4d1cea514afd600a4db80 Author: Richard Gobeille Date: Wed Dec 6 06:27:07 2006 +0000 From-SVN: r388 commit 4d9591b4d02c09df4c8ed7b6bacd2a186d950c91 Author: Richard Gobeille Date: Tue Dec 5 23:14:14 2006 +0000 ATI fog fix From-SVN: r387 commit 7ec48b729608081cd24f9ecd6856d88378d892f8 Author: Richard Gobeille Date: Tue Dec 5 21:51:24 2006 +0000 This seems like a good idea... From-SVN: r386 commit cdfb2c3ae58c03b137a0a4907f5ee42cb655fd6e Author: Richard Gobeille Date: Tue Dec 5 21:22:19 2006 +0000 Happy fun memory usage optimization From-SVN: r385 commit e9eb373ad304aa722a91212ada0dc05b27df52e2 Author: Richard Gobeille Date: Tue Dec 5 20:39:29 2006 +0000 Palette stuff... hijack hictinting[MAXPALOOKUPS-1] for use as a tint control on all hightile assets. This way, NVG and underwater tinting in Polymost doesn't interfere with the ps[].pals tinting that palfrom sets in the CONs. From-SVN: r384 commit a5cc0cc3fb0732d900a8722d95d9cc38e944ca26 Author: Richard Gobeille Date: Tue Dec 5 00:16:33 2006 +0000 Allow access to map12-map32 in multiplayer, and skip the ones that aren't defined From-SVN: r383 commit e8f4d59501e5146ea8d46109567d883093b70a40 Author: Richard Gobeille Date: Mon Dec 4 22:22:07 2006 +0000 I suppose it's probably a good idea not to crash when someone tries telling the game to warp to an undefined map From-SVN: r382 commit 7768248dd4371e470901712ecfe564808ec6801c Author: Richard Gobeille Date: Mon Dec 4 22:05:30 2006 +0000 This raises the max number of levels per episode to 32 and alters the game to use dynamically allocated memory for level and music names and filenames. No null pointer checks yet. From-SVN: r381 commit e35342bf5c4f435dc50e266a059a100bcdc73f1e Author: Richard Gobeille Date: Mon Dec 4 04:12:14 2006 +0000 La la la From-SVN: r380 commit b34c4cff1dc804d0683125e520950e3320023306 Author: Richard Gobeille Date: Mon Dec 4 04:08:14 2006 +0000 From-SVN: r379 commit 5ffeb20b01b29ec89badf5bfcecb02e214520b2d Author: Richard Gobeille Date: Mon Dec 4 02:10:18 2006 +0000 This makes -map bypass the menu in multiplayer From-SVN: r378 commit c7a92be0f28760dc75c0918b2219e78dce7bb1ce Author: Richard Gobeille Date: Sun Dec 3 00:27:43 2006 +0000 Blar. From-SVN: r377 commit d86921ed4645a158ea0d2ecebb483517ae52dcc8 Author: Richard Gobeille Date: Sat Dec 2 06:00:49 2006 +0000 updatesectorz() -> updatesector() I now have a clue about updatesectorz() breaking things. :o From-SVN: r376 commit c58433224be226d772909146b654b517d7bc47da Author: Richard Gobeille Date: Fri Dec 1 22:34:32 2006 +0000 This should fix a bug with ifgotweaponce where the game had a rare chance of crashing and burning in cooperative From-SVN: r375 commit fe742b3d29f9e699cc2a685328774f00750c4635 Author: Richard Gobeille Date: Fri Dec 1 04:22:16 2006 +0000 Save the GRP file selected in the startup window to the cfg From-SVN: r374 commit 969395ad35c70b4391ff801f2afc5fde5fb6fd6b Author: Richard Gobeille Date: Fri Dec 1 01:20:59 2006 +0000 I guess these checks are necessary, because if we don't have them, rmnet segfaults when it tries to strtok things that don't exist. From-SVN: r373 commit d1638fbf1b34db56d930213d63b03a1b5e0ed2f5 Author: Richard Gobeille Date: Thu Nov 30 23:53:44 2006 +0000 updatesector() -> updatesectorz() I have no clue if this breaks anything. From-SVN: r372 commit 1baffc0677d10e422523e902b1732455056c0416 Author: Richard Gobeille Date: Thu Nov 30 23:37:47 2006 +0000 Rename some functions and separate the player's weapon choice back out into its own packet, because we don't need to send it with player updates from the menu. From-SVN: r371 commit ed6ffd2536d5bb84b9f8418155135e77383e942c Author: Richard Gobeille Date: Thu Nov 30 09:22:54 2006 +0000 One less hack :o From-SVN: r370 commit 28e1b3f952f0bb2bf89f16cdc8a718e567474672 Author: Richard Gobeille Date: Thu Nov 30 06:54:01 2006 +0000 From-SVN: r369 commit 63bbeb46ca701fa1901f259c7bb214838c3d604f Author: Richard Gobeille Date: Thu Nov 30 04:36:20 2006 +0000 Lag meter and a couple of MP fixes From-SVN: r368 commit c639cc99ad18b06f5aac3d2b365a34fa9118b0cc Author: Richard Gobeille Date: Thu Nov 30 02:09:51 2006 +0000 Multiplayer fixes. This solves the crash on map change issue. From-SVN: r367 commit 09a74848f6ae3803354584ca524a610d6812859e Author: Richard Gobeille Date: Wed Nov 29 21:49:44 2006 +0000 Okay, so that was a bad idea. From-SVN: r366 commit ebf5b5eb1693a03cf487f6f0a7c4ad92a542e2e4 Author: Richard Gobeille Date: Wed Nov 29 10:30:25 2006 +0000 Hmm.. From-SVN: r365 commit f2051adcc7935dde2aeb7aabe497c26058e1a5cf Author: Richard Gobeille Date: Tue Nov 28 22:53:11 2006 +0000 Makefile switch for which networking code to use From-SVN: r364 commit 720a81de48ec1e8eadbb0b21598b59e8fe43dbca Author: Richard Gobeille Date: Tue Nov 28 16:23:37 2006 +0000 I wish I knew why this doesn't work From-SVN: r363 commit 4a76f9076f40e19e11b89320b4be0405233f4687 Author: Richard Gobeille Date: Tue Nov 28 04:16:20 2006 +0000 Duke3d_w32 netcode... this compiles but doesn't work yet From-SVN: r362 commit 1c21fca15242657d053d0be2480cef77726f7a69 Author: Richard Gobeille Date: Sun Nov 26 21:15:20 2006 +0000 From-SVN: r361 commit a59b9fb5a75495183daafa2716fc355a3eb88581 Author: Richard Gobeille Date: Fri Nov 24 04:25:13 2006 +0000 Support for using a different cfg file via command line From-SVN: r360 commit 0d4410b856b4d69a3b816cdc2a51c8655bbe379e Author: Richard Gobeille Date: Wed Nov 22 01:25:35 2006 +0000 Fixes From-SVN: r359 commit 970c3a6dfc4ef73ec04d2130e31a4ced97b9b96f Author: Richard Gobeille Date: Tue Nov 21 15:54:13 2006 +0000 Hm, I think this actually works correctly now From-SVN: r358 commit 0222411fc531eb5c3e258331623303a09094e541 Author: Richard Gobeille Date: Tue Nov 21 06:59:59 2006 +0000 From-SVN: r357 commit 8b7d704fa9ea6b00dfc03c749ea391a247af7650 Author: Richard Gobeille Date: Tue Nov 21 05:38:22 2006 +0000 GL_EXP2 fog/shading re-adjustment... haha, whiners are going to crucify me. From-SVN: r356 commit 550ee5c7d5662c699852de7eaeb8efa6e4fa5d1b Author: Richard Gobeille Date: Mon Nov 20 04:56:22 2006 +0000 From-SVN: r355 commit 0c1d6378b367cfcb37bacb420428fd45b0f32a34 Author: Richard Gobeille Date: Mon Nov 20 04:55:37 2006 +0000 From-SVN: r354 commit 01a9134bb3e5a54191a104f5d7dc251c2e3c41d0 Author: Richard Gobeille Date: Sun Nov 19 08:43:27 2006 +0000 From-SVN: r353 commit 32b0db5548cd28b6ac3e6688ee9ebbe811def7a2 Author: Richard Gobeille Date: Sun Nov 19 08:24:46 2006 +0000 Fix "array subscript has type 'char'" warnings From-SVN: r352 commit d5355a59913bb94eb0cdcaa064ec8d57284b5731 Author: Richard Gobeille Date: Sun Nov 19 07:31:03 2006 +0000 Kill gamma in Mapster32 2D mode From-SVN: r351 commit df3d092b3c4c148a05a71a1d086bceb46e52b7aa Author: Richard Gobeille Date: Sun Nov 19 07:09:43 2006 +0000 From-SVN: r350 commit 987f5a96049c024908fa155b1c7971071c82f2a3 Author: Richard Gobeille Date: Sun Nov 19 03:02:36 2006 +0000 More warning fixes From-SVN: r349 commit 80dedc9e42e5c0fbf9efc07f304f5a92b0a1eff1 Author: Richard Gobeille Date: Sun Nov 19 02:17:47 2006 +0000 Fix some warnings gcc 4.x threw in winlayer From-SVN: r348 commit 654c56f222802d5f9541234517c2fc4f2c30243f Author: Richard Gobeille Date: Sun Nov 19 01:28:51 2006 +0000 More warning fixes From-SVN: r347 commit 2b063f7e620c5be0a0ab237af80b78443ff4eb58 Author: Richard Gobeille Date: Sat Nov 18 08:46:58 2006 +0000 This probably fixes building with SDL on Windows From-SVN: r346 commit 2f9c7858d562a5c9628f763c8551698d85adc9b6 Author: Richard Gobeille Date: Sat Nov 18 08:18:11 2006 +0000 Oops, I guess this would help... ;) From-SVN: r345 commit 04c79f754a2f87849a33cde877bdfb5c96f531d9 Author: Richard Gobeille Date: Sat Nov 18 08:13:33 2006 +0000 Fix some gcc4 warnings From-SVN: r344 commit b909d7651a91cff61468e69e4888155389408aef Author: Richard Gobeille Date: Fri Nov 17 08:22:52 2006 +0000 Blar From-SVN: r343 commit 6d9e5c9029f21469fb25e6ccabf4a9f63a40e3c4 Author: Richard Gobeille Date: Fri Nov 17 05:05:16 2006 +0000 A couple of SDL-related fixes From-SVN: r342 commit d8aad170934a46d092cba230b78bc8163b8bf55b Author: Richard Gobeille Date: Thu Nov 16 23:06:16 2006 +0000 WW2GI "support" From-SVN: r341 commit ae4ab5492e11f8abee8e9f64305d74c49096f7bb Author: Richard Gobeille Date: Thu Nov 16 08:57:13 2006 +0000 Remove more redundancy From-SVN: r340 commit 472abb1d2c5e5ce3b7ae1215e20747f4b7601dde Author: Richard Gobeille Date: Thu Nov 16 08:51:07 2006 +0000 Shitcan unixvoc.c and make multivoc.c work under *nix From-SVN: r339 commit b4a07ca9b55cfee49b917594d55b62e04ea6b047 Author: Richard Gobeille Date: Thu Nov 16 03:25:32 2006 +0000 Fixes From-SVN: r338 commit 001113a422185ab3e910ec8eb658b51df0f557ca Author: Richard Gobeille Date: Thu Nov 16 03:02:42 2006 +0000 Hopefully the last of the formatting changes + sound support for Linux. Previous commit also fixes the mouse cursor grab issue. From-SVN: r337 commit 53f847cc941cbd5dea100ef73a0868043cc70ab6 Author: Richard Gobeille Date: Thu Nov 16 03:00:03 2006 +0000 Rip out the Build test game From-SVN: r336 commit 153afb976eb56316396f1b557e7169cf4d8d4365 Author: Richard Gobeille Date: Wed Nov 15 01:16:55 2006 +0000 An additional crapload of formatting changes From-SVN: r335 commit 7c0a446554f699260d9bfe6c7d5a4c524a88bda6 Author: Richard Gobeille Date: Wed Nov 15 01:14:27 2006 +0000 Crappy support for pausing model animations From-SVN: r334 commit 8cadaa5a5f2a5455876d8f591ca3bfaa90436361 Author: Richard Gobeille Date: Tue Nov 14 21:35:50 2006 +0000 More formatting changes From-SVN: r333 commit a6943f2cd27ad3e1b0234d882593b0abc37c2003 Author: Richard Gobeille Date: Tue Nov 14 19:58:59 2006 +0000 Dump debug.con and debug.map on insertsprite() failure From-SVN: r332 commit dfeac01215bd3d42ce25eaca9bf67a7d849e619e Author: Richard Gobeille Date: Mon Nov 13 23:12:47 2006 +0000 Formatting change From-SVN: r331 commit 22b183bd8c6531050b0de20a22dbd9bfa630de60 Author: Richard Gobeille Date: Tue Nov 7 22:08:57 2006 +0000 dummytile fixes From-SVN: r330 commit 5bf585d2014d5b6176ba2e7b13cb323df6dd4bca Author: Richard Gobeille Date: Mon Nov 6 22:14:27 2006 +0000 CON access to getincangle(), and usage of myconnectindex for EVENT_GETMENUTILE and EVENT_GETLOADTILE. This lets us force menu options to certain values while the player is in the menu via setuserdef. From-SVN: r329 commit 26d9313d50583b6fe0fe2de5afeb5053b6abd6c8 Author: Richard Gobeille Date: Sun Nov 5 06:54:22 2006 +0000 Fix http://forums.3drealms.com/vb/showpost.php?p=439437 and bump demo/savegame version number due to a change in the size of the spriteext struct From-SVN: r328 commit ffc1a2712603c00c004f44602327f58cada5a1eb Author: Richard Gobeille Date: Wed Nov 1 23:40:15 2006 +0000 Oops From-SVN: r327 commit c4c31752f7aa0648fc559787a5e29481d3ba82b6 Author: Richard Gobeille Date: Tue Oct 31 18:32:29 2006 +0000 Check file availability before calling the hightile substitution functions From-SVN: r326 commit aa108407265c51ce45faa13fc7b2a8feb9785d70 Author: Richard Gobeille Date: Mon Oct 30 01:50:52 2006 +0000 spritecol From-SVN: r325 commit c83fc00d526cd7cd40b677596d4e9dbcd0a00693 Author: Richard Gobeille Date: Sun Oct 29 20:18:04 2006 +0000 Fix building without GL and Polymost From-SVN: r324 commit 6dc80f7d60ae487799017eb062554a26ee18aa7e Author: Richard Gobeille Date: Tue Oct 24 03:13:45 2006 +0000 Boredom From-SVN: r323 commit 28b1f843ffb9121ee2e9ec79c30d5f64d49f510b Author: Richard Gobeille Date: Mon Oct 23 21:47:28 2006 +0000 Best map par time tracking from JonoF From-SVN: r322 commit 6179ca874d337b22d7aab0c457be53e7c1425465 Author: Richard Gobeille Date: Fri Oct 20 01:17:32 2006 +0000 From-SVN: r321 commit c36274bdd43ff3f7ff4161e0304f52065355f66c Author: Pierre-Loup A. Griffais Date: Thu Oct 19 23:51:44 2006 +0000 Take a look at your last sky, guessing you won't have the time to fullbright. (wtf) From-SVN: r320 commit 8720747ef504e091b6c199b5059dcf432726e76b Author: Richard Gobeille Date: Thu Oct 19 17:16:35 2006 +0000 Move the window title setting code to the beginning of enterlevel(), so that it updates before the loading screen is displayed rather than after From-SVN: r319 commit 7ec2779aa29e529c2315d1c71b986987055bedc2 Author: Richard Gobeille Date: Thu Oct 19 07:26:33 2006 +0000 From-SVN: r318 commit fb1f5ac0b941f4d5027a5be83fa6ad5dafbe2e14 Author: Richard Gobeille Date: Thu Oct 19 00:45:36 2006 +0000 Nothing important From-SVN: r317 commit 848c867b92f021e9e46b127fa754895a5a85a41f Author: Pierre-Loup A. Griffais Date: Wed Oct 18 03:59:28 2006 +0000 Iron fingers stab the desert SKIES ! From-SVN: r316 commit aac174009add086465c751a1ddb50914528029da Author: Pierre-Loup A. Griffais Date: Tue Oct 17 01:14:20 2006 +0000 Fixed bottom walls switch and improved texture coordinate generation. From-SVN: r315 commit 582f3f886eb2185f75aaf358396bff14b3ebdd00 Author: Richard Gobeille Date: Tue Oct 17 01:12:31 2006 +0000 Added a quote message for DNMONSTERS, fixed a MSVC compile error From-SVN: r314 commit 2aca51130635ae5fa678147e4c7467a32aa07870 Author: Pierre-Loup A. Griffais Date: Mon Oct 16 22:07:15 2006 +0000 Animation, interpolation, fixed cliplanes, fixed map switching. From-SVN: r313 commit 6d316283b97db2196c78e10363b4b37f0df9c84a Author: Richard Gobeille Date: Sun Oct 15 18:59:45 2006 +0000 From-SVN: r312 commit 12f7ad208fc8637c000b04ad1237383a4a3bd3cf Author: Pierre-Loup A. Griffais Date: Sun Oct 15 18:51:41 2006 +0000 Frustum clipping and cliplanes for map limits. Performance should be alright now. From-SVN: r311 commit 9ba55dc5b59cdcd83d32b87a8e8b903e7660ec95 Author: Pierre-Loup A. Griffais Date: Sat Oct 14 23:33:10 2006 +0000 Polymer cliplanes and FOV. From-SVN: r310 commit 78034766b9cedf596593b944a71276f003fe116f Author: Richard Gobeille Date: Tue Oct 10 23:04:38 2006 +0000 From-SVN: r309 commit 03c3f431b3d056abff834f8256a44600f8da863b Author: Richard Gobeille Date: Thu Oct 5 07:39:37 2006 +0000 From-SVN: r308 commit 3426dc53e419e89aef747075986535096de43c24 Author: Pierre-Loup A. Griffais Date: Wed Oct 4 09:54:25 2006 +0000 VC project From-SVN: r307 commit 666d033eb3b64460308cf4c9f2dec875382e3d9b Author: Richard Gobeille Date: Tue Oct 3 01:17:01 2006 +0000 This fixes a problem with using 'ifp' from within actors other than APLAYER. From-SVN: r306 commit 195d372b3378300f90bdf15309af0bb62c24df51 Author: Richard Gobeille Date: Sat Sep 30 06:51:48 2006 +0000 qstrlen From-SVN: r305 commit d9e7629a4a69412e70b23ce4555f84ca70c86f48 Author: Pierre-Loup A. Griffais Date: Fri Sep 29 21:36:12 2006 +0000 Polymer texturing and shading. From-SVN: r304 commit 4c35c8af8d4721acc43922c3ac28f42544dc5afe Author: Richard Gobeille Date: Fri Sep 29 05:01:33 2006 +0000 Whitespace From-SVN: r303 commit 66c85890ca40a2c6367e30ec76d59e4c05bc45fd Author: Richard Gobeille Date: Thu Sep 28 00:32:22 2006 +0000 Swap the qstrcpy parameters and fix the issue with frozen players From-SVN: r302 commit 373cdc90dac2edcdb6f8cb6d46945ff25ca43c83 Author: Pierre-Loup A. Griffais Date: Wed Sep 27 17:55:49 2006 +0000 Blood and sand. From-SVN: r301 commit 6e958566b0d351ffeb9fc1ad89d1789da2e1abcf Author: Pierre-Loup A. Griffais Date: Wed Sep 27 02:23:27 2006 +0000 Polymer development. From-SVN: r300 commit d6ce3813bea0a19c33c83d528883037443e6bc77 Author: Richard Gobeille Date: Sun Sep 24 04:44:54 2006 +0000 Blah blah blah From-SVN: r299 commit f6ed59d02648653493771c7aae952e99d1ab154c Author: Richard Gobeille Date: Thu Sep 21 20:10:51 2006 +0000 From-SVN: r298 commit ecb4ee87a7bfec7bca198dfb0e111f19b4b60d92 Author: Richard Gobeille Date: Wed Sep 20 07:23:25 2006 +0000 Minor fixes... From-SVN: r297 commit 60defa9050a2014551fbacec54a1e7d16b5bb0be Author: Richard Gobeille Date: Tue Sep 19 23:02:33 2006 +0000 New event/userdef CON extensions to allow fiddling with the movement interpolation in multiplayer. From-SVN: r296 commit d75c3d2db300f37ff6018a54ea266d4f78e9b7cb Author: Richard Gobeille Date: Sun Sep 17 22:25:46 2006 +0000 Remove md2draw() and friends From-SVN: r295 commit 0a1b1e5238afa3478a760ea44932a5386db493cf Author: Pierre-Loup A. Griffais Date: Sun Sep 17 20:16:20 2006 +0000 MD2. BMW. From-SVN: r294 commit fd4aee71dfa45a0d98f38f9670e15e9e2489715e Author: Richard Gobeille Date: Tue Sep 12 00:51:50 2006 +0000 From-SVN: r293 commit 7661c50cc3ba8a3cebfda9f640390eb453e143b1 Author: Richard Gobeille Date: Sun Sep 10 17:40:34 2006 +0000 From-SVN: r292 commit d1599e9ca6c2313748dae06d37e0c45dcd1b53e7 Author: Richard Gobeille Date: Thu Sep 7 17:46:00 2006 +0000 From-SVN: r291 commit 6ad1af75034584c247cc9c9af1801ab671349d44 Author: Richard Gobeille Date: Wed Sep 6 04:18:28 2006 +0000 Replaced the 'dynquote' primitive with 'qsprintf' and fixed a parsing bug with some of the level and sound name definition stuff. From-SVN: r290 commit 33e5d36ba94db0eab1468646f52eca7add2fb9e7 Author: Richard Gobeille Date: Sat Sep 2 02:34:29 2006 +0000 Fix from JonoF for using a joystick in combination with SDLayer. From-SVN: r289 commit 7c0e7be60f63bf674c92a1570cc637bfd4a6c2eb Author: Richard Gobeille Date: Sat Sep 2 01:40:20 2006 +0000 Add a missing header, fix a config file bug and switch "exponentially" for "dramatically" in the texture caching dialog. From-SVN: r288 commit da63a3b658d4195639377321295405ca1a36ac8a Author: Richard Gobeille Date: Thu Aug 31 19:05:23 2006 +0000 Fix an OOS problem with TDM. I want to punch whoever came up with sync based networking in the balls. :D From-SVN: r287 commit ca07abd0a3b5b4a33fd1c4faa703de87b03c297b Author: Richard Gobeille Date: Thu Aug 31 01:56:43 2006 +0000 Whitespace cleanup From-SVN: r286 commit b429eae857ed1f755a1d91361ea3215abe7c083a Author: Richard Gobeille Date: Thu Aug 31 01:54:23 2006 +0000 Makefile shite From-SVN: r285 commit 594a9faf341e276fddc9b811f97d4302470acb29 Author: Pierre-Loup A. Griffais Date: Thu Aug 31 00:22:24 2006 +0000 From-SVN: r284 commit 332ca0abe79454a84836fca59454de1cd28fb402 Author: Pierre-Loup A. Griffais Date: Wed Aug 30 23:32:39 2006 +0000 More Polymer (for win32 platform, still test code), added polymost.h for external access to some structs and funcs. From-SVN: r283 commit 9369edb46dbd83953c2c5812f129ee516f5a2adb Author: Richard Gobeille Date: Tue Aug 29 20:26:55 2006 +0000 Oops. From-SVN: r282 commit a151a7b8311af30a09fd1917fe20a124476bdf96 Author: Richard Gobeille Date: Tue Aug 29 19:22:41 2006 +0000 This makes the faster weapon switching work a bit better in my opinion. From-SVN: r281 commit d8e4d7c612a0ec221a5809687dd276a65683a3e3 Author: Richard Gobeille Date: Tue Aug 29 08:07:06 2006 +0000 Added a hack to offset the shadows of sprites a bit so there's no flickering at the base of the sprite. From-SVN: r280 commit a92a05dd784ba16b4549dae902caec56e8e636ef Author: Pierre-Loup A. Griffais Date: Tue Aug 29 02:02:28 2006 +0000 Forgot to add the header. From-SVN: r279 commit bd7edc71b45a9f1a18766e5e42972e0c71ff21e0 Author: Pierre-Loup A. Griffais Date: Tue Aug 29 01:58:59 2006 +0000 Another go at sorting, along with some polymer stuff. From-SVN: r278 commit 7f169db950aff28a2c33a8f9532d7ad6a08b0050 Author: Richard Gobeille Date: Mon Aug 28 19:18:05 2006 +0000 Added some commands for getting the current compiled CON ptr and jumping to another location From-SVN: r277 commit 5acdc7b6c71ca3e19a7c20e6368f83780d5b33f3 Author: Richard Gobeille Date: Tue Aug 22 21:02:06 2006 +0000 Somebody needed an 'ezshootvar'. These commands are getting ridiculous. From-SVN: r276 commit 07c5f9cb6673c22d5fd075799377b309767db64d Author: Richard Gobeille Date: Tue Aug 22 05:38:59 2006 +0000 The bits2 member of the input struct has been renamed to extbits, and a proper fix for the strange OOS issues has been implemented. From-SVN: r275 commit 963733d94121f8a9914be9a2a2eef9377ccada7b Author: Richard Gobeille Date: Mon Aug 21 21:00:54 2006 +0000 Fix for a crash when using rancidmeat network config files, fix for the "vote succeeded" message that's supposed to display when a multiplayer map vote passes, and a fix for an issue with the new game menu that I noticed when I accidentally used 1.4/1.5 CON files with the shareware GRP. From-SVN: r274 commit f172b36c27c2f8ee5a25ee08e5f7bdadbced542d Author: Richard Gobeille Date: Mon Aug 21 07:43:45 2006 +0000 Fix for a problem with the automatic color selection setting for player color and add some additional informational text to the screen when someone has called a vote. From-SVN: r273 commit d25397bb14520fb6a505b43459e3f97c30f75c9a Author: Richard Gobeille Date: Mon Aug 21 06:57:39 2006 +0000 I guess I'll use palette 21 for the red team instead of palette 10, though palette 10 does look better with the original sprites. From-SVN: r272 commit 1931b364997586803eda5d4a95bc21904bbe6438 Author: Richard Gobeille Date: Sun Aug 20 22:17:12 2006 +0000 More TDM stuff and a potential fix for a networking problem. From-SVN: r271 commit f15ef5c27daaaabaede118e64a4b4021488b4a9e Author: Richard Gobeille Date: Sat Aug 19 01:30:40 2006 +0000 A couple more TDM things, including making the built in bots not attack players on the same team. However, this can leave them in a rather hilarious state in which they twitch in place in the middle of a room. It's almost as funny as watching them spin around kicking the walls. From-SVN: r270 commit b334a63a6e7096adcdd7071d772cc51fd6436de4 Author: Richard Gobeille Date: Sat Aug 19 01:28:59 2006 +0000 Fix for HUD model shading oddities From-SVN: r269 commit 12fae4915ae8631407facf88ed7a48988f7e3d9e Author: Richard Gobeille Date: Fri Aug 18 23:52:26 2006 +0000 Team DukeMatch support From-SVN: r268 commit 338a1728fcfa038fb5ba6a05e9fdff108e1f6bd7 Author: Richard Gobeille Date: Thu Aug 17 23:07:43 2006 +0000 'useractor' protection for newbies. :/ From-SVN: r267 commit 5dde69b36e97ac74f8e57bf255353bf95ef872f5 Author: Richard Gobeille Date: Tue Aug 15 17:15:23 2006 +0000 Text color fixes From-SVN: r266 commit 95794ef135f65efc978a79f08d00aa5685915ea3 Author: Richard Gobeille Date: Tue Aug 15 03:32:34 2006 +0000 Fix for crash with MD2s that only have an internal skin filename instead of something set in the defs From-SVN: r265 commit 51208bbe678d454672576ce6e1ff7c4f8dc22992 Author: Richard Gobeille Date: Mon Aug 14 20:50:43 2006 +0000 Fix building with MinGW gcc 3.4.2 From-SVN: r264 commit b56a142811b2ad5a43572d6bd54c3767fce2e247 Author: Richard Gobeille Date: Mon Aug 14 20:36:30 2006 +0000 Add 'buildlic.txt' to source and binary distributions. From-SVN: r263 commit bc26d2a87edf4ad873141a09042b185a5116044d Author: Pierre-Loup A. Griffais Date: Sat Aug 12 07:47:02 2006 +0000 Turned MD2 support into a loading-time MD2 to MD3 converter to avoid duplicate drawing code. From-SVN: r262 commit de2f62337c29cc1711b8f00734981dbdcf7c7b6f Author: Richard Gobeille Date: Thu Aug 10 02:10:24 2006 +0000 This makes the dialog that asks you on first startup whether or not you want to enable the on-disk texture caching work again. From-SVN: r261 commit 7e7ae15ad57913a726d89a72e838cc932c9c566b Author: Richard Gobeille Date: Mon Aug 7 20:08:59 2006 +0000 Fix building with USE_OPENGL = 0 and POLYMOST = 1, because some people in the world are retarded and we don't want to give them a hard time. From-SVN: r260 commit f220b5f392a3c28a6229ac92ca9499ca4c35c9af Author: Richard Gobeille Date: Mon Aug 7 19:57:53 2006 +0000 Fix building with USE_OPENGL = 0 and POLYMOST = 0 From-SVN: r259 commit fff2ce326cdeb8b529cae20dffcf64c48dbf1315 Author: Richard Gobeille Date: Mon Aug 7 06:18:57 2006 +0000 CON fix from JFDuke that I missed somewhere along the line + SDL mousewheel fix from Mephisto From-SVN: r258 commit abd9dd1326e208c1fbee03eee3201c47dcc6c0b0 Author: Richard Gobeille Date: Fri Aug 4 04:01:17 2006 +0000 dummytile updates From-SVN: r257 commit fe8a6f3d5dbf10f2cef1341d9f81e9f9659d8d25 Author: Richard Gobeille Date: Fri Aug 4 01:13:31 2006 +0000 Fix for a bug with multiplayer demos causing the game to remain in a multiplayer mode after loading a single player savegame From-SVN: r256 commit 020908db7ee0b0ebe8544ede432555e6b22583b8 Author: Richard Gobeille Date: Fri Aug 4 00:57:27 2006 +0000 I guess this needs to throw warnings instead of errors, or else NAM and some other mods with problems will break. From-SVN: r255 commit efce9fcf80b2a974be6f03149c88998790b49b83 Author: Richard Gobeille Date: Thu Aug 3 03:14:43 2006 +0000 This is better. From-SVN: r254 commit f1910d3e183229dce7686b7abe3bada59548631a Author: Richard Gobeille Date: Wed Aug 2 20:51:50 2006 +0000 Added detection for stupid mistakes people make with the 'move' command and doubled the CACHE1D size when not using JFAud. From-SVN: r253 commit 14f2704b2fe58a49917c3df405cbdc3ab71981d5 Author: Richard Gobeille Date: Sun Jul 30 01:48:52 2006 +0000 Mapster32 crash fix and a couple of small projectile system changes From-SVN: r252 commit cfa05f28ce5c4fdc5a8e032bc0c7dea8f8604766 Author: Richard Gobeille Date: Sat Jul 29 00:17:46 2006 +0000 Remove 'txdist' keyword From-SVN: r251 commit 3b8a82adc1faf0281b67440cdda633a666a996d6 Author: Richard Gobeille Date: Thu Jul 27 01:51:06 2006 +0000 This commit is effectively nothing From-SVN: r250 commit 74171cc3faecd632d15640a11136eb49f8945e07 Author: Richard Gobeille Date: Wed Jul 26 01:10:33 2006 +0000 A few cleanups We're also no longer using upx -9 in MakeDistributions, because it breaks binaries From-SVN: r249 commit 821e05398a0e01ddde1cf1bfc5be1c864b077395 Author: Richard Gobeille Date: Mon Jul 24 02:47:47 2006 +0000 Formatting fixes for build.c, config.c, engine.c and polymost.c plus some warning fixes from JonoF and some cfg file reading changes for the game From-SVN: r248 commit 60333097a1df692c88892be8f96f384c6213a686 Author: Richard Gobeille Date: Sun Jul 23 21:12:46 2006 +0000 Minor fixes From-SVN: r247 commit 1ec2e9c54c8a4d83414f4fe2389b0fbf1d1a43f2 Author: Pierre-Loup A. Griffais Date: Sun Jul 23 16:03:43 2006 +0000 Alpha linear-filtered artifacts removed. Ditched the clean two-textures assembling process to just overwriting the fullbright texels (walls were in GL_ALWAYS and sprites are in LEQUAL). If any z-accuracy issues happen on fullbright pixels on sprites, I'll put it back. From-SVN: r246 commit cf31249a16e52ae3a4565e22244e5c26ea60f3fc Author: Richard Gobeille Date: Sat Jul 22 23:02:08 2006 +0000 Disable parental lock in NAM From-SVN: r245 commit bca9b16f9df737aaf553ac8808877f6cc1ad242c Author: Pierre-Loup A. Griffais Date: Sat Jul 22 22:52:24 2006 +0000 From-SVN: r244 commit 885ba0567b6ccbc73cd5a3e56630796b5df4c5e3 Author: Richard Gobeille Date: Sat Jul 22 06:13:16 2006 +0000 The part of "Fixes from JonoF" that I forgot to commit From-SVN: r243 commit d56b25f4621ba399d65e450a93a261be175724db Author: Richard Gobeille Date: Sat Jul 22 05:49:55 2006 +0000 We need to set ud.multimode before checkcommandline() or fake multiplayer mode doesn't work From-SVN: r242 commit 1efc63fe74c1c8123be0c81c2a3bf8791a82595d Author: Richard Gobeille Date: Sat Jul 22 05:20:25 2006 +0000 Fixes from JonoF From-SVN: r241 commit 0ff2daf305c7edb71f446d5efd949fd71882827a Author: Richard Gobeille Date: Sat Jul 22 04:33:33 2006 +0000 From-SVN: r240 commit d16365a4caee1a224d9baa466a7ae0a919ea3a8a Author: Richard Gobeille Date: Sat Jul 22 03:11:31 2006 +0000 Warning fix From-SVN: r239 commit 0c975a48dc475b48016cbfb8cfce0dc73cf58937 Author: Richard Gobeille Date: Sat Jul 22 03:08:46 2006 +0000 Change default texture filtering mode to GL_NEAREST and add a cfg file option for it to build From-SVN: r238 commit c8d58873fb5301b900a64cc555a09895b351bf36 Author: Pierre-Loup A. Griffais Date: Sat Jul 22 02:54:22 2006 +0000 Fixing last (hopefully) problems with fullbrights. E2 looks awesome now :) From-SVN: r237 commit c8540e43ff21c23e57286e743e7f350a9ac335f8 Author: Richard Gobeille Date: Sat Jul 22 02:54:07 2006 +0000 GRP loading fixes From-SVN: r236 commit c35c4e9b704b89afd2f85283966d9a46ae19b0fe Author: Pierre-Loup A. Griffais Date: Sat Jul 22 02:32:03 2006 +0000 From-SVN: r235 commit ba890b652b6d7e77f5771352edea3f8e73985936 Author: Richard Gobeille Date: Sat Jul 22 00:53:20 2006 +0000 NAM support From-SVN: r234 commit b131eb7bc22023930756dcfc193127d23e3f8193 Author: Richard Gobeille Date: Sat Jul 22 00:06:57 2006 +0000 Oops From-SVN: r233 commit 31e2e868afc6ffad5a2d623c7c9978dc996f90f1 Author: Richard Gobeille Date: Fri Jul 21 22:25:05 2006 +0000 Misc cleanups From-SVN: r232 commit 588c0c81931adc8c836e055343f02f2faeb95f6f Author: Pierre-Loup A. Griffais Date: Fri Jul 21 22:06:08 2006 +0000 From-SVN: r231 commit b18f809769b82f9b48f3391ae77ac78c085482ea Author: Richard Gobeille Date: Fri Jul 21 21:55:44 2006 +0000 From-SVN: r230 commit aa83076df03f617fc8ad27d7965c0f723c51d533 Author: Richard Gobeille Date: Fri Jul 21 21:55:23 2006 +0000 From-SVN: r229 commit 208845de11096741698513063c72c0d3fd091b5b Author: Pierre-Loup A. Griffais Date: Fri Jul 21 21:53:31 2006 +0000 Fullbright art sprites and walls. Hurray for red eyes. From-SVN: r228 commit b79d79112b9c42b14c18f4e728b8ab3162b07b89 Author: Richard Gobeille Date: Thu Jul 20 20:52:18 2006 +0000 Add "aborted" messages for special function menu options From-SVN: r227 commit 950bf498453e1aef5dc7d06519990d3ddad87c48 Author: Richard Gobeille Date: Thu Jul 20 17:33:56 2006 +0000 More boredom From-SVN: r226 commit f1470732ebfcd99671a4bfdd142b4c9fcd31d64f Author: Richard Gobeille Date: Thu Jul 20 05:02:55 2006 +0000 Boredom. From-SVN: r225 commit 45a3917f521d9995cea501c64afca79ad3d5fb27 Author: Richard Gobeille Date: Thu Jul 20 01:50:56 2006 +0000 def file control over shading harshness From-SVN: r224 commit a30199f6c34706dafb3a0ba55b63eb87ee2f3a20 Author: Richard Gobeille Date: Wed Jul 19 17:35:11 2006 +0000 I hate this game From-SVN: r223 commit c60715b19b4424c868bddc3dc9f1d78688dd2826 Author: Richard Gobeille Date: Tue Jul 18 21:08:38 2006 +0000 Update repo to 1.4.0 beta 2 From-SVN: r222 commit e1efedf38c51ce8e6d4283a684a81a0a657d3a5f Author: Richard Gobeille Date: Sat Jul 15 00:18:36 2006 +0000 Fix randvar From-SVN: r221 commit 6f0aaf5d8f28c7ad74f9a160b214db7b41b8964a Author: Richard Gobeille Date: Fri Jul 14 07:28:32 2006 +0000 Boredom From-SVN: r220 commit 925064884babaccb0fbdf87bda1ec64523884552 Author: Richard Gobeille Date: Thu Jul 13 23:13:06 2006 +0000 From-SVN: r219 commit a58931b08b2c81e75bc692fd1a3a52c16a08b293 Author: Richard Gobeille Date: Thu Jul 13 03:16:51 2006 +0000 From-SVN: r218 commit cd27c9f4ba34dd608c2d253730240be8f433c043 Author: Richard Gobeille Date: Tue Jul 11 18:35:58 2006 +0000 Minor fixes From-SVN: r217 commit cdd40d6bddca8727fee40d08c13d7079deaff846 Author: Richard Gobeille Date: Sun Jul 9 19:51:09 2006 +0000 Fix squishing a shrunken enemy while changing weapon bug From-SVN: r216 commit 3ce9a1fd90e57e502faf769f4951f53ae67f2471 Author: Richard Gobeille Date: Sat Jul 8 01:31:35 2006 +0000 From-SVN: r215 commit 68cbb7b684b55ed8c146ca160206604c1e74f95d Author: Richard Gobeille Date: Fri Jul 7 18:41:05 2006 +0000 GRP selection from JonoF From-SVN: r214 commit 2e29a45053901b1e9d453c80fcca1f3bb8f552da Author: Richard Gobeille Date: Thu Jul 6 18:23:06 2006 +0000 Test cvars for shading stuff From-SVN: r213 commit 6d79b460210263ddb18d5fb6a527397933f7c9e9 Author: Richard Gobeille Date: Thu Jul 6 06:18:18 2006 +0000 Mostly stuff from JonoF From-SVN: r212 commit d3d4551e1a81b66a80f8b305949ddeb12a5e881e Author: Richard Gobeille Date: Wed Jul 5 02:05:39 2006 +0000 Remove HUD model correction and more Polymost shading tweaks From-SVN: r211 commit 6dd62c814b7421528fb69f17d65d31776bebc5c6 Author: Richard Gobeille Date: Tue Jul 4 19:58:10 2006 +0000 I noticed earlier that MSVC might not compile this without these extra braces From-SVN: r210 commit e84cfd3381faaeb97aba03cda9b7d1fb825515da Author: Richard Gobeille Date: Tue Jul 4 19:01:10 2006 +0000 From-SVN: r209 commit fa983a610fa8dc56374ea9742215b565c1b0395a Author: Richard Gobeille Date: Tue Jul 4 05:46:38 2006 +0000 From-SVN: r208 commit f691904f3c8c716f43de852575c057edb0ccfc8e Author: Richard Gobeille Date: Tue Jul 4 04:23:14 2006 +0000 Getting closer From-SVN: r207 commit 08a690b6869d2ca6ecfd836120c376b9c37e2107 Author: Richard Gobeille Date: Tue Jul 4 00:46:24 2006 +0000 More polymost shading stuff From-SVN: r206 commit 3a2667f10f830f85954397e66eaa1f2ee95a80d8 Author: Richard Gobeille Date: Mon Jul 3 06:40:17 2006 +0000 This is definitely getting very, very close From-SVN: r205 commit 5a39f7e7ae00a2681130f36d5c5d031c3dd4917c Author: Richard Gobeille Date: Sun Jul 2 21:25:33 2006 +0000 Allow disabling of the HOM correction hack From-SVN: r204 commit 3f00b2eda477d6dc89014a0f913bb978e58b2d66 Author: Richard Gobeille Date: Sun Jul 2 20:43:26 2006 +0000 From-SVN: r203 commit 24cfb4359286e17c0d3ca98c3d904306f69da4b8 Author: Richard Gobeille Date: Sun Jul 2 19:38:22 2006 +0000 Fullbright walls and sectors From-SVN: r202 commit 0cd97e0fee593c7f90ad48d045f09911d2345504 Author: Richard Gobeille Date: Sun Jul 2 17:33:49 2006 +0000 Fix building with Watcom and move the KenBuild test game stuff out of the engine source From-SVN: r201 commit 5517d5202abe85d5e1ddeae0ea6e95bc55bb0119 Author: Richard Gobeille Date: Sun Jul 2 04:01:28 2006 +0000 Attempt to make Polymost look closer to the classic renderer in terms of shading and fix a couple of minor things I noticed in the game and editor From-SVN: r200 commit 609e23a970e737f82a30a7df73447ce57e8de33b Author: Richard Gobeille Date: Sat Jul 1 21:15:47 2006 +0000 Add "ezshoot" and disable the sound device/midi device/cd drive dropdowns in the startup window From-SVN: r199 commit 74127703bedbf8c3d24145030758605ecaa3756c Author: Richard Gobeille Date: Sat Jul 1 12:10:29 2006 +0000 Fix an infinite loop on architectures with no sound support, but with sound configured in the cfg From-SVN: r198 commit 735a4f2402257dcf2c3673ddf82915ae10d454a5 Author: Richard Gobeille Date: Sat Jul 1 12:00:26 2006 +0000 More stuff from JonoF From-SVN: r197 commit c3b32c2c41c8ed0b386ca26507d8da3d5335f8c1 Author: Richard Gobeille Date: Sat Jul 1 07:14:56 2006 +0000 Startup window stuff From-SVN: r196 commit 611db350f441b4dfd29aaadb1c66f7bc427f2e3e Author: Richard Gobeille Date: Sat Jul 1 02:01:18 2006 +0000 Add support for XP visual styles From-SVN: r195 commit 41220ce3b2188f43198bd4432a003166847c3902 Author: Richard Gobeille Date: Sat Jul 1 01:40:18 2006 +0000 New startup window from JonoF + some other stuff This was not at all pleasant to merge, and problems should be expected. ;) From-SVN: r194 commit be1cfa8d3238c6f1687767a4f85eb737a5e5de95 Author: Richard Gobeille Date: Mon Jun 19 19:28:49 2006 +0000 Minor gamevar stuff From-SVN: r193 commit f27f41964f2bf18062328d119d725b6a4a59dad7 Author: Richard Gobeille Date: Thu Jun 15 00:39:33 2006 +0000 From-SVN: r192 commit dbee999c8e746803f99ab021bf817a80f32269bf Author: Richard Gobeille Date: Wed Jun 14 08:24:12 2006 +0000 From-SVN: r191 commit bb723edff22a54227d24e12b6d16f5ea32c3c8e9 Author: Richard Gobeille Date: Wed Jun 14 03:31:34 2006 +0000 Fix eventloadactor breakage by removing some obnoxious and unncessary safety checks I added without paying attention From-SVN: r190 commit 756b49e7a84763187a1757d6be70b1b07df84a52 Author: Richard Gobeille Date: Sat Jun 10 23:47:27 2006 +0000 Build crash fix From-SVN: r189 commit 7ab89d5e77a53c22f83cfcc3e7ad9696ecd181cf Author: Richard Gobeille Date: Fri Jun 9 01:28:39 2006 +0000 A few minor tweaks to the voting system and some more fixes for building without Polymost From-SVN: r188 commit d873c787950a468f83efc8b65446f87851d5d7c5 Author: Richard Gobeille Date: Wed Jun 7 01:29:17 2006 +0000 Support for /me in multiplayer text chat From-SVN: r187 commit 3124b9cfdfd9f2ad51f9bd79fdd563be9a515330 Author: Richard Gobeille Date: Wed Jun 7 00:07:39 2006 +0000 Misc crap From-SVN: r186 commit 16590887e529b1e98626b1bb4b46733b8ed0324e Author: Richard Gobeille Date: Tue May 30 06:14:25 2006 +0000 Cleaning out the tree From-SVN: r185 commit 0ba7af690ec9abadfc23973a38e5c91b8a8bf5bb Author: Richard Gobeille Date: Thu May 25 04:27:33 2006 +0000 La la la From-SVN: r184 commit 27ae57d2f1c5c6a510fbb3122201eff9e4f90eda Author: Richard Gobeille Date: Tue May 23 23:51:16 2006 +0000 From-SVN: r183 commit 70b82636ee426c1129184533cb4753516f062d00 Author: Richard Gobeille Date: Tue May 23 23:43:18 2006 +0000 NAT traversal patch from Adam Fazakerley From-SVN: r182 commit 3bdfda1cea3c2364d85661cd72bea96b1d0e425d Author: Richard Gobeille Date: Mon May 22 07:25:21 2006 +0000 Might as well make this a bit more proper From-SVN: r181 commit 2fd09d8fbe7abe93b5eedfd56f1fcc170a8b35bc Author: Richard Gobeille Date: Mon May 22 07:11:30 2006 +0000 Remove the ratio correction slider and replace it with a simple widescreen toggle From-SVN: r180 commit 81be287080cd14a5373c130516245b4ffee4edbb Author: Richard Gobeille Date: Mon May 22 01:05:56 2006 +0000 Fix skill sounds when using JAudiolib instead of JFAud From-SVN: r179 commit 04d899d0fa3d0cbd87c7eae1c9d880eb62819ca6 Author: Richard Gobeille Date: Sun May 21 01:57:32 2006 +0000 I just keep fucking with this This seems to be the most accurate, even though I'm using the screen res instead of the viewing area res to calculate the ratio From-SVN: r178 commit 5fdb3a8b01c1f9919230462c4d8f51c68a949a11 Author: Richard Gobeille Date: Sun May 21 01:36:28 2006 +0000 This seems more consistent. From-SVN: r177 commit 7edae26e39ebb8975618b7ccc5d93f3e4d11bb87 Author: Richard Gobeille Date: Sun May 21 00:28:59 2006 +0000 From-SVN: r176 commit d3d82d33b89ca7f7000c3984893d48f337117950 Author: Richard Gobeille Date: Sun May 21 00:05:50 2006 +0000 I guess this is right From-SVN: r175 commit 62bcdaaa1ee81552d09cbc9c729afc838259ee30 Author: Richard Gobeille Date: Sat May 20 20:57:09 2006 +0000 HUD model correction stuff From-SVN: r174 commit ee6f4f2ecafe2565e929457845fba1e6080e7e7f Author: Richard Gobeille Date: Sat May 20 20:17:27 2006 +0000 From-SVN: r173 commit 09d4535c772e013fb0d06c99708ed1d744b99660 Author: Richard Gobeille Date: Sat May 20 14:31:24 2006 +0000 Change ratio correction to always assume a ratio of 1.2. I like this better than how it worked before. Plagman, what say you? From-SVN: r172 commit 6e33ec5f4d43fc211524d86a0671d123dbb6b929 Author: Richard Gobeille Date: Wed May 17 03:13:39 2006 +0000 Input changes from JonoF From-SVN: r171 commit 65b4e33ae542f4fd5dfd3db36128e03d18a28fd4 Author: Richard Gobeille Date: Tue May 16 02:37:37 2006 +0000 More weapon system changes From-SVN: r170 commit c926bd33c3cd32b60001adde249667787f08807b Author: Richard Gobeille Date: Tue May 16 01:48:33 2006 +0000 Rework findnearactor3d/findnearsprite3d/findnearactor3dvar/findnearsprite3dvar and add a findnearactorz/findnearspritez/findnearactorzvar/findnearspritezvar. This breaks the previous syntax of all of the "3d" variants. From-SVN: r169 commit caedc581155d0e731219e449489e0aef169af020 Author: Richard Gobeille Date: Sun May 14 21:15:55 2006 +0000 More weapon changes + don't apply ratio correction to HUD models (because people are whiners) From-SVN: r168 commit c7731d56a62ab44d5e2c9f35be8baf5adf5f92d8 Author: Richard Gobeille Date: Sun May 14 09:28:18 2006 +0000 my tree of souls is melting From-SVN: r167 commit fb2416db11e216b6e4f894f7def783336e7db857 Author: Richard Gobeille Date: Sun May 14 09:16:25 2006 +0000 Weapon system changes... added an extra flag to the weapons and reworked portions of the system in order to more correctly emulate Duke 1.5 From-SVN: r166 commit 60369cdbf9f3043d24175205399ec18f8115370d Author: Richard Gobeille Date: Sat May 13 01:07:06 2006 +0000 Detect the gamevar THISACTOR in a couple of commands that take player numbers instead of sprite numbers From-SVN: r165 commit 4e059697b83ff3cf5c6a23f9222f810935f8d079 Author: Richard Gobeille Date: Sat May 13 00:53:49 2006 +0000 Mouses fixes for the editor From-SVN: r164 commit 966d9078e37ec5a6175f30a70ee1a8131884bdba Author: Richard Gobeille Date: Fri May 12 21:55:05 2006 +0000 Fix building without OpenGL support and rip out the DYNAMIC_OPENGL toggle From-SVN: r163 commit fa5767b2a9c29f4ad93667528b004a843755d231 Author: Richard Gobeille Date: Thu May 11 20:35:40 2006 +0000 Replace the JFDuke3D release notes with a HTML version of the ChangeLog because we don't really need to ship JonoF's notes anymore, and some minor changes to the NSIS installer script From-SVN: r162 commit 798ae03a5bd220c37779a1646ae8365005aa7494 Author: Richard Gobeille Date: Thu May 11 18:10:55 2006 +0000 Remove a duplicate line that popped up as a result of a fucked diff From-SVN: r161 commit 44bdc8521eeb3e3f0fdc41eebfdae9bca20600b1 Author: Richard Gobeille Date: Thu May 11 07:17:40 2006 +0000 Change version to 1.4.0 beta 1, add draft of new ChangeLog and the nsi script used for creating the installer From-SVN: r160 commit 0ec7899e47ed299b0458f74864249ceee4f1078c Author: Richard Gobeille Date: Wed May 10 21:00:56 2006 +0000 Some sound fixes and a cl_smoothinput cvar to allow people to disable the lastinfo.dyaw and lastinfo.dz stuff in getinput() From-SVN: r159 commit da6f505670408617ff8d6c4ad9281a25474fe238 Author: Richard Gobeille Date: Tue May 9 23:55:42 2006 +0000 Blar From-SVN: r158 commit 3e4deef618c70cb4d2ddd18877a2f23a8a797373 Author: Richard Gobeille Date: Tue May 9 04:24:44 2006 +0000 Mouse input filtering and some player name length fixes From-SVN: r157 commit 95b8254820895c20612199f0900645e4ba94e95e Author: Richard Gobeille Date: Sun May 7 06:35:35 2006 +0000 Death message revisions and a dirty hack to make the player name display work with the HoloDuke From-SVN: r156 commit b69e2a85d57c27de434d303e33b19fd3c4e4ad9c Author: Richard Gobeille Date: Sun May 7 05:12:59 2006 +0000 Limit the player ID distance to 12288 and stop the selection sounds of weapons that you scroll past From-SVN: r155 commit fd6a95a9ef47cb4b91382bae40e4f77913992115 Author: Richard Gobeille Date: Sun May 7 03:27:41 2006 +0000 Remove the "brightskins" option because it kind of sucked. From-SVN: r154 commit 5844aa017a4fce629c01a03809394f3e239d3841 Author: Richard Gobeille Date: Sat May 6 05:28:28 2006 +0000 From-SVN: r153 commit 4b5f7ee96a6ae19493ef50861f6fe65351b1b089 Author: Richard Gobeille Date: Fri May 5 22:39:34 2006 +0000 Add a display for the name of the player you're aiming at and make the death messages into quotes so they can be redefined in the CONs From-SVN: r152 commit f8cc9e4fae5ab03f98aa13dc02910d09fa9c4fc5 Author: Richard Gobeille Date: Fri May 5 07:10:36 2006 +0000 Add support for color codes to gametext_() and in various places in supporting code and increase quote length to 128 From-SVN: r151 commit 97169d5a1ffa162c4f7b55a3b978644c35db893a Author: Richard Gobeille Date: Fri May 5 01:20:19 2006 +0000 Add an option to automatically send messages to all players instead of prompting; shift bypasses this behavior. I've also added a few more cvars and whatnot. From-SVN: r150 commit c957a6558d8dfb414ddb6adc6cf1d00865df94b3 Author: Richard Gobeille Date: Thu May 4 23:51:11 2006 +0000 More death messages. Apparently, I think I'm funny. :p From-SVN: r149 commit e335004ad97dee9143211c814dbfae0c50b292d6 Author: Richard Gobeille Date: Thu May 4 04:18:55 2006 +0000 Autovote option for the menu From-SVN: r148 commit 74e889e4cdd733a20ec39d99816743feb7b7ee80 Author: Richard Gobeille Date: Thu May 4 03:14:49 2006 +0000 Per-weapon player death messages, an option to disable the exit button in maps, and voting on map changes From-SVN: r147 commit f81f35b1421a820f84b7b24286f6ef14a4b957bc Author: Richard Gobeille Date: Wed May 3 04:49:54 2006 +0000 Add a message into the chat buffer whenever a player is killed, as well as define some dummy names for the fake AI players From-SVN: r146 commit 371b924cacb9bd1b052644f1f0bf2affe0bb4d63 Author: Richard Gobeille Date: Wed May 3 04:16:08 2006 +0000 Add dummy options for some Rancidmeat parameters we want to ignore, as well as add detection of APIPA addresses From-SVN: r145 commit 34fe1780682b8f2ea365fa44c1f99897d5fd7bac Author: Richard Gobeille Date: Wed May 3 01:42:37 2006 +0000 Player color selection fix From-SVN: r144 commit 2ea9e8102d4b59544012d5345a240246652a4bee Author: Richard Gobeille Date: Wed May 3 01:02:51 2006 +0000 Fix a couple of video mode switching bugs From-SVN: r143 commit 805891e6878b1924c08ee9de017bf34ad849a8e9 Author: Richard Gobeille Date: Tue May 2 21:36:09 2006 +0000 Increase vertical aiming precision From-SVN: r142 commit 5b6d6ed673f9b61de6fa9146c9d3f4206a11c3b2 Author: Richard Gobeille Date: Tue May 2 08:12:15 2006 +0000 Add -keepaddr command line option to disable external address lookup as well as a couple of potential fixes for a multiplayer issue From-SVN: r141 commit 870d801909ca8f62f1bb3ce6a53da01810e8e7ec Author: Richard Gobeille Date: Tue May 2 05:20:36 2006 +0000 Fix a couple of things From-SVN: r140 commit d821c7c1dc017ecef885b9a503a9e49b05072885 Author: Richard Gobeille Date: Tue May 2 03:51:06 2006 +0000 Whitespace From-SVN: r139 commit 4634248113fdf7e917d30f152f68593408ac9a98 Author: Richard Gobeille Date: Tue May 2 03:36:19 2006 +0000 Yeah, it might help to do this crap in the right order, heh. From-SVN: r138 commit 882a9382568d8ab772981fa5c9e4fa163e1c1400 Author: Richard Gobeille Date: Tue May 2 03:12:44 2006 +0000 Only get the external IP if no peers have internal IPs and the IP we're using is a LAN IP From-SVN: r137 commit 65ec85415bbfb870c77487ea37cb8c3a0c814f15 Author: Richard Gobeille Date: Tue May 2 02:57:11 2006 +0000 Get the interface's external IP when using Rancidmeat configuration files if none of the peers have a LAN IP From-SVN: r136 commit f315bddb6d1807af12d9779bd4407ed884efea42 Author: Richard Gobeille Date: Mon May 1 22:49:09 2006 +0000 Fixes From-SVN: r135 commit ab78cca6e20239b5e64933e416d77ecb24cf5a97 Author: Richard Gobeille Date: Mon May 1 17:33:40 2006 +0000 Use the port specified on the interface line in the Rancidmeat configuration text as the local port From-SVN: r134 commit 2c7f1b7f55604a67249cf2c55aef55edd5ec183e Author: Richard Gobeille Date: Mon May 1 07:38:13 2006 +0000 From-SVN: r133 commit 51db52d05129653c8ca4c65833bc762be0bcb6ff Author: Richard Gobeille Date: Mon May 1 06:52:06 2006 +0000 From-SVN: r132 commit 53d78ef4acfbcddfc98861b0da7e03395347c180 Author: Richard Gobeille Date: Mon May 1 06:30:33 2006 +0000 This pretty much works now. From-SVN: r131 commit 8b6bae0aec2b9365748404265483642c405f6841 Author: Richard Gobeille Date: Mon May 1 05:03:44 2006 +0000 Revert some of the aim changes as well as add the start of support for loading Duke3d_w32 network configuration files. The wrapper application reformats a Duke3d_w32 command line sent from Dukester X into something EDuke32 can work with. Still left to be done: sort IPs (they aren't in the same order on all machines in Rancidmeat config files) and construct a proper string of network parameters for Ken's netcode. From-SVN: r130 commit 76de3b27ec6b44fbf3deecadcc67f9b9d108e359 Author: Richard Gobeille Date: Sun Apr 30 21:14:12 2006 +0000 Peer-to-peer multiplayer with > 2 players now works, some other minor changes From-SVN: r129 commit b7c3362e1998758d5bc709d088877f4269c3a46b Author: Richard Gobeille Date: Sun Apr 30 01:39:58 2006 +0000 Mouse smoothing changes to winlayer that I forgot to commit earlier & a little optional status bar hack for 16 and 32 bit modes that someone requested From-SVN: r128 commit 5ec67e0225b16bd4a3ee229a2b60f1954d65c5c5 Author: Richard Gobeille Date: Sun Apr 30 00:40:41 2006 +0000 Better mouse movement From-SVN: r127 commit 44e2d12a0fe19211005f526e87ff19be48abd511 Author: Richard Gobeille Date: Sun Apr 30 00:06:17 2006 +0000 Savegame corruption fix From-SVN: r126 commit 6375ee9b243310ef0ab68bd5fe7bdd95d9acece8 Author: Richard Gobeille Date: Sat Apr 29 12:54:25 2006 +0000 From-SVN: r125 commit 4b00dcbf4163852d7ec8598a3b0fd0530876ec56 Author: Richard Gobeille Date: Sat Apr 29 06:45:46 2006 +0000 Don't perform a switch back to the last full weapon when switching to an empty weapon if the player happened to pick up ammo for the weapon during the time it took to ready it. From-SVN: r124 commit 6375634ccb9b880254001269443d61af4dbefaff Author: Richard Gobeille Date: Sat Apr 29 06:06:30 2006 +0000 Mouse aim fixes From-SVN: r123 commit 8aabccac9212b3639ba9209c378b64220681ded9 Author: Richard Gobeille Date: Sat Apr 29 02:23:07 2006 +0000 Fix a few issues reported by aaBlueDragon From-SVN: r122 commit 104d988c635c29dfc083c5620daaf022114b59af Author: Richard Gobeille Date: Fri Apr 28 04:14:45 2006 +0000 Remove CON_PROJECTILE From-SVN: r121 commit 7c06411bdbd739bebaae98f4a19402be67857360 Author: Richard Gobeille Date: Fri Apr 28 00:46:09 2006 +0000 Improved error checking for savegames From-SVN: r120 commit 1b614909c328357b78ffb5e9017120ac42a5b0b6 Author: Richard Gobeille Date: Thu Apr 27 21:19:54 2006 +0000 Allow disabling level load text from within EVENT_GETLOADTILE From-SVN: r119 commit 7f59302e3746434dfd228cc56c33ed872fdbebf8 Author: Richard Gobeille Date: Wed Apr 26 19:32:18 2006 +0000 Couple of things from JonoF. Incidentally, they are commented out. This commit sucks. :D From-SVN: r118 commit 86f2f1922adea9e2b318b4db603b0329b3ec0f3c Author: Richard Gobeille Date: Wed Apr 26 17:48:43 2006 +0000 *yawn* From-SVN: r117 commit 738788634fa8d5952ccbbe93a923e11b632f8bd1 Author: Richard Gobeille Date: Wed Apr 26 01:25:18 2006 +0000 Adds dummy tile support for the def files so that placeholders for hightile textures are no longer needed in the art files From-SVN: r116 commit ec7c6dd815008696a595b4069a1e37ec95380ff5 Author: Richard Gobeille Date: Wed Apr 26 00:31:37 2006 +0000 Make aspect ratio correction back into a ratio changing option rather than a FOV changing option, and default the correction level to maximum. From-SVN: r115 commit 28e67cc7178cbbf1d55a41a4f9d52088ab5582a9 Author: Richard Gobeille Date: Tue Apr 25 22:50:57 2006 +0000 Improved alt+enter and a few other things From-SVN: r114 commit 00bfc19326230597ec4316996178b437d105c7c1 Author: Richard Gobeille Date: Tue Apr 25 05:01:27 2006 +0000 Some more config file fixes From-SVN: r113 commit 0c2091807d215f73cbb0a6ce867d8a0868896615 Author: Richard Gobeille Date: Tue Apr 25 04:35:39 2006 +0000 Config file fixes from JonoF From-SVN: r112 commit fa07ef9730aa358737fea000397a40473c4e5eb1 Author: Richard Gobeille Date: Tue Apr 25 02:33:21 2006 +0000 Yep From-SVN: r111 commit b9c9ace42ea5e46fb18d913c5956c7626d18ffa3 Author: Richard Gobeille Date: Tue Apr 25 01:56:24 2006 +0000 Added CON_DEFINEGAMEFUNCNAME to allow the end user to redefine the strings used on the keyboard setup screen and in the cfg, several small fixes, and a modernization of the default controls. From-SVN: r110 commit 8d86efe1862da4d70779c2f97a0a4212a778fe5d Author: Richard Gobeille Date: Mon Apr 24 19:04:22 2006 +0000 Whitespace From-SVN: r109 commit 4c6825a2d4c3023035f9ab9d75682c15b2ef723e Author: Richard Gobeille Date: Mon Apr 24 18:52:29 2006 +0000 Fix a couple of tiny leaks and a couple of minor issues I noticed last night in multiplayer From-SVN: r108 commit 26bffe7f43e5f357f5671c37c66dc523de6b2a09 Author: Richard Gobeille Date: Mon Apr 24 06:00:20 2006 +0000 Minor improvements to CON_DEFINESOUND & fixes to prevent getlabel() from picking up tabs and other related characters From-SVN: r107 commit 142b6b233eb32b65d971652548093284f734bcb6 Author: Richard Gobeille Date: Mon Apr 24 05:42:29 2006 +0000 CON_CANSEESPR, whitespace From-SVN: r106 commit e7b5350f9bed9811aaec0246d6e1fa915b44d8d5 Author: Richard Gobeille Date: Mon Apr 24 04:57:04 2006 +0000 Save extra sprite flags, sprite cache settings, and all quotes to savegames From-SVN: r105 commit 6d4b681da4f5498a8e7ca092a485696177aefa09 Author: Richard Gobeille Date: Mon Apr 24 02:58:15 2006 +0000 Mo' betta From-SVN: r104 commit 3e7958f7cdb5218634b4d68725f1971ddd0f3e79 Author: Richard Gobeille Date: Mon Apr 24 01:54:58 2006 +0000 Clear quote memory after allocation From-SVN: r103 commit 1e51ebcf78ac61aa34c6581205bb7ad7e9ddcdd3 Author: Richard Gobeille Date: Mon Apr 24 00:49:44 2006 +0000 Dynamically allocate gamevar label space & add null pointer checks for quotes and gamevar labels From-SVN: r102 commit bf06631ce8799769a7784bc1aeae6d5b6f354a77 Author: Richard Gobeille Date: Sun Apr 23 08:23:40 2006 +0000 Fixes From-SVN: r101 commit f73b771701c5d57dacac2eab9aa20655d556da09 Author: Richard Gobeille Date: Sun Apr 23 07:16:16 2006 +0000 Crosshair toggle quote fix, JFAud cache changes from JonoF and some JFAud changes from me as well From-SVN: r100 commit cca0043ffb95416c28b83129000f8bb80c791d44 Author: Richard Gobeille Date: Sun Apr 23 06:44:19 2006 +0000 Changes from JonoF & dos2unix on all build src From-SVN: r99 commit 0565e49a5be2947757fd2c6d6a6ded2320a871ad Author: Richard Gobeille Date: Sun Apr 23 06:15:47 2006 +0000 Now with 100% less fuckery From-SVN: r98 commit 42e8aa6272d5fd06807468b47abef2e420b1c03a Author: Richard Gobeille Date: Sun Apr 23 06:00:08 2006 +0000 CON_CANSEE From-SVN: r97 commit 1fd482211856c3f62d5f90c1817d3016146778b3 Author: Richard Gobeille Date: Sun Apr 23 04:50:08 2006 +0000 Fixes From-SVN: r96 commit 8d19ecc77e5fd3f13aaa71f70df5dec47a96d197 Author: Richard Gobeille Date: Sun Apr 23 04:49:52 2006 +0000 Using 100% CPU while effectively doing nothing is bad, mmkay? From-SVN: r95 commit 94ea794afc02bbf062ff0b0a443d0b22dcd79494 Author: Richard Gobeille Date: Sun Apr 23 03:14:44 2006 +0000 From-SVN: r94 commit 7a444499e88ee40fb275b2ae9ea4f38823578140 Author: Richard Gobeille Date: Sun Apr 23 02:30:33 2006 +0000 Define a MAXQUOTELEN as 64 and use that instead of specific limits From-SVN: r93 commit f6e3fe675a4865a31e76cde1723e61f39f73ccb0 Author: Richard Gobeille Date: Sun Apr 23 02:20:42 2006 +0000 Made fta_quotes dynamically allocated at compile time From-SVN: r92 commit 0ef3a242d79e6d78152b4104917c28a202563e68 Author: Richard Gobeille Date: Sat Apr 22 22:33:52 2006 +0000 Cleanups From-SVN: r91 commit 1aabd50af13e54bb2c1291582f91d7891c7081e7 Author: Richard Gobeille Date: Sat Apr 22 08:22:07 2006 +0000 From-SVN: r90 commit 61d8dc4721b3731b2f17f9fa5d235da620a9254a Author: Richard Gobeille Date: Sat Apr 22 07:00:31 2006 +0000 Extension to the get/setuserdef CON commands to support ud.msgdisptime, and support for setting the crosshair's size to either 25% or 50% of the regular size by setting the crosshair value to something greater than 1. From-SVN: r89 commit 8a9157bdc4c03f44d6fabc0729b210fccb460995 Author: Richard Gobeille Date: Sat Apr 22 06:10:28 2006 +0000 More multiplayer text chat tweaks, a new cfg option to control the length of time (in tics) that the chat messages are displayed, a new macro configuration menu, and some cvar renaming From-SVN: r88 commit 4beae1396b8382d94fd1e1529585a1f77ad53739 Author: Richard Gobeille Date: Sat Apr 22 02:33:36 2006 +0000 I think this is pretty much done now. Translation: expect to see more changes because I am a masochist. ;) From-SVN: r87 commit c61157bcf6493de70c05f9f3fe0dbe977aab0e83 Author: Richard Gobeille Date: Sat Apr 22 01:12:48 2006 +0000 This looks right. From-SVN: r86 commit 17c7fb8c49271781fcb55dc99316b828547f5fbc Author: Richard Gobeille Date: Sat Apr 22 00:17:55 2006 +0000 Redid the MP text buffer changes such as to make them not suck From-SVN: r85 commit 939aee430b5e4ae6f3a84114b8c51ce15221c03d Author: Pierre-Loup A. Griffais Date: Fri Apr 21 17:10:30 2006 +0000 Shitty commit. Half-broken, just to pass a tiny bit of code from work to home. From-SVN: r84 commit 718bd662a013e894b673f816fc0d6ade80e9ced4 Author: Richard Gobeille Date: Fri Apr 21 14:09:14 2006 +0000 Fixes a couple of mistakes I made as well as an annoying bug that already existed From-SVN: r83 commit 0b6c0d3ac17653e4e9e4a2e89dc206fed6fedf5d Author: Richard Gobeille Date: Fri Apr 21 07:50:04 2006 +0000 A few more tweaks to the text buffer drawing From-SVN: r82 commit 694fb5ffc83ce46c6901169895b1ec8393554cc6 Author: Richard Gobeille Date: Fri Apr 21 07:34:05 2006 +0000 Improved the text input buffer changes; this works reasonably well now. From-SVN: r81 commit 35b9624d6a4449c1e30b5c5479d4e346fc9942f4 Author: Richard Gobeille Date: Fri Apr 21 05:58:24 2006 +0000 A couple more fixes. Still have no idea if the clean dropping of clients when a game isn't running is anywhere near correct. From-SVN: r80 commit 6e685ab7d48bf97980fd979d9157763f4907685d Author: Richard Gobeille Date: Fri Apr 21 05:19:26 2006 +0000 This is a bit better From-SVN: r79 commit 93095cf969852e45acbcba77279044a3b4bdce9c Author: Richard Gobeille Date: Fri Apr 21 05:11:57 2006 +0000 Increased multiplayer text input buffer. This is a hack. From-SVN: r78 commit 5d5288bcab55f3b0bd39c052a2ca20401abcf5e8 Author: Richard Gobeille Date: Thu Apr 20 22:18:56 2006 +0000 Handle players quitting from the menu gracefully. I'm not sure that this is right. From-SVN: r77 commit a9939ec343af464e6f03cc181b255fea404e9784 Author: Richard Gobeille Date: Thu Apr 20 19:21:40 2006 +0000 Add support for changing to a new user map in a multiplayer game. If a client doesn't have the map, a second map change packet is sent back to the server to unset the user map. From-SVN: r76 commit 56eb6bdde1f57cafd6e79804343f8300507e3da0 Author: Richard Gobeille Date: Thu Apr 20 09:03:44 2006 +0000 A bunch more menu changes.. comments? From-SVN: r75 commit aca6b50c6f91cbe94f4d8547ff04169342f582f4 Author: Richard Gobeille Date: Thu Apr 20 03:17:01 2006 +0000 Allow toggling fullscreen via pressing Alt + Enter From-SVN: r74 commit 2b3e24c989524e1bd2f8a8839806e3ecedc1d83a Author: Richard Gobeille Date: Wed Apr 19 23:48:43 2006 +0000 Fixes for a couple of map mode issues that pop up when you pause the game with the map showing as well as a couple more menu tweaks From-SVN: r73 commit bbb890a7c7bca31b7dfc73700c6e99fdf7c4517a Author: Richard Gobeille Date: Wed Apr 19 21:00:41 2006 +0000 Fixed a couple of bugs and made the show opponent weapon option a bit less hard coded for modders From-SVN: r72 commit 108f37745432a7c7e0acf5675bdc1510568c6d8c Author: Richard Gobeille Date: Wed Apr 19 20:32:23 2006 +0000 More menu fixes and an added option to toggle opponent weapon display from the menu. Modified opponent weapon display to be effected by the brightskins option. From-SVN: r71 commit dae009290e930f7dd15b5da255068f526fe08ca6 Author: Richard Gobeille Date: Wed Apr 19 08:32:15 2006 +0000 More menu changes From-SVN: r70 commit 6d66959b2c43165d7bb3c7da3189ee438b3f0a3a Author: Richard Gobeille Date: Wed Apr 19 08:00:09 2006 +0000 Moved invert mouse aim and mouse aiming toggle to the mouse setup menu and moved mouse aiming type to the player setup menu From-SVN: r69 commit 9d08429c82d8391fbb1f5a07abf4e69e5f222859 Author: Richard Gobeille Date: Wed Apr 19 06:23:19 2006 +0000 Disable the player setup menu when recording a demo, and disable the updates from the player menu when playing a demo back. From-SVN: r68 commit 0180ae7c55519f1c838a07e3a99de94ed71a8e72 Author: Richard Gobeille Date: Wed Apr 19 05:48:44 2006 +0000 Made pause key behavior mimic Duke 1.5 and fixed a problem with FRAMEEFFECT1 From-SVN: r67 commit b14cbb2976d1c70b4cf9f51d75974412f7feac63 Author: Richard Gobeille Date: Wed Apr 19 04:24:06 2006 +0000 A couple of fixes and a small change to enable fast weapon switching (one wheel click = one weapon switch, no delay before being allowed to switch again) From-SVN: r66 commit 34eb5d572f16d23a5811b5d6d6560b19207d8acf Author: Richard Gobeille Date: Wed Apr 19 01:27:34 2006 +0000 Tiny little fix to weapon switching behavior From-SVN: r65 commit 65932f79cf0f82fa0f8b2f0a21af659f87e477d7 Author: Richard Gobeille Date: Wed Apr 19 01:27:07 2006 +0000 A packet rate of 26 seems to work better for me than 40 From-SVN: r64 commit 711e208ce592d3da9385012e58e54806d9d65f58 Author: Richard Gobeille Date: Tue Apr 18 22:59:54 2006 +0000 Removed some duplicated code; on a side note, the current state of DM was tested for around an hour today, including using the new player setup menu both pre and mid-game. Not a single problem! From-SVN: r63 commit 9f9012fea8c3ad84cf18195cbe04198935982002 Author: Richard Gobeille Date: Tue Apr 18 21:18:30 2006 +0000 CON_SIZETO fix and more player setup menu changes From-SVN: r62 commit eb5b5bcaa9676fd7ca6fbb2c6a9ee96ff5c8eecb Author: Richard Gobeille Date: Tue Apr 18 21:17:45 2006 +0000 Fix for textured 2d map palette issue in Polymost From-SVN: r61 commit 62dddcda094c2a80725fe449928d4570b5e012bf Author: Richard Gobeille Date: Tue Apr 18 19:47:45 2006 +0000 Name change bugfix and cvar system tweaks From-SVN: r60 commit 6574cf033744c86c81119f2788d3613e095e3cb2 Author: Richard Gobeille Date: Tue Apr 18 19:23:53 2006 +0000 This is better From-SVN: r59 commit e1b1454ebf94e97d995283244785db78637f3662 Author: Richard Gobeille Date: Tue Apr 18 17:34:47 2006 +0000 Mommy, am I going to hell for using goto? :( From-SVN: r58 commit 482ff3929f2ca64b69dae6874987cbfa6a8913b3 Author: Richard Gobeille Date: Tue Apr 18 16:47:29 2006 +0000 Yay for me From-SVN: r57 commit a98e3df5ae5a7403bca84f1411ae9aea8439782e Author: Richard Gobeille Date: Tue Apr 18 16:30:15 2006 +0000 More player setup stuff; the "map" color was changed to "auto" and the mechanism which determines player colors on map load was modified to avoid choosing colors that other players have manually specified From-SVN: r56 commit 60dab4fd272600fe985f280da72a5d779d2b5a51 Author: Richard Gobeille Date: Tue Apr 18 08:51:52 2006 +0000 Default player color to map defined, fix multiplayer map restart issue From-SVN: r55 commit 9c1b7fd309b16b97065a9fb718dff6384c8623e0 Author: Richard Gobeille Date: Tue Apr 18 08:40:09 2006 +0000 Further work on "player setup" menu; it's shaping up very nicely. From-SVN: r54 commit 857129ae54751aabf22f0b7f47b53bec51b042bc Author: Richard Gobeille Date: Tue Apr 18 06:01:16 2006 +0000 Player color customization & mid-game name/color updates for multi From-SVN: r53 commit a4d5d7f1b7f79bf964f8ca27c1291f6f3c47b157 Author: Richard Gobeille Date: Tue Apr 18 06:00:45 2006 +0000 Slight math simplification for 2D editor sprite display From-SVN: r52 commit 7920090a8bd1c0beb4564af0d15b37ec87bb8113 Author: Richard Gobeille Date: Tue Apr 18 03:11:38 2006 +0000 Loads more whitespace changes From-SVN: r51 commit 6cb2ff8fd5de1fa4d69dfc3ccd0c6dd033fd9e77 Author: Richard Gobeille Date: Tue Apr 18 02:02:52 2006 +0000 More whitespace... I really need to remember to run "astyle" /before/ committing From-SVN: r50 commit 5ad320c94d8871b27c193a423da147dbd13f4782 Author: Richard Gobeille Date: Tue Apr 18 02:01:48 2006 +0000 Whitespace From-SVN: r49 commit 89d0ed48c1d839b9cb1c2e3d3710345fa6e2ec3c Author: Richard Gobeille Date: Tue Apr 18 01:15:02 2006 +0000 Fix for inventory icons being drawn over the weapon icon with the small HUD enabled; need to fix the level stat text as well From-SVN: r48 commit 269a35c9124c46ddb5b92bae4efc53a807c467fe Author: Richard Gobeille Date: Tue Apr 18 00:43:32 2006 +0000 Weapon changes broke demo sync, so removing version 160 compatibility From-SVN: r47 commit 8337893c8bc11fc7e634ecb76b3eb5b2dc5fb7aa Author: Richard Gobeille Date: Tue Apr 18 00:24:24 2006 +0000 Tweaked the weapon system to act a bit more like vanilla Duke for great gameplay accuracy and not caring if your mod breaks ;) From-SVN: r46 commit 87eeaf88e0c4f192ba904b5e73841457f6628bb2 Author: Richard Gobeille Date: Mon Apr 17 23:36:02 2006 +0000 Fixed a long-standing animation bug with quick kick that was pissing me off and removed a bunch of debugging crap/comments that haven't been used in 5 years and were only obfuscating the code From-SVN: r45 commit b18c19c36caab4d702aa819a7c0d92bd9369eda5 Author: Richard Gobeille Date: Mon Apr 17 22:02:10 2006 +0000 Fixed a problem in CON_FINDNEARACTOR3D and optimized findnearactor3d/findnearactor3dvar/findnearsprite3d/findnearsprite3dvar From-SVN: r44 commit 6f059d8e7883b560bcb5af4380f6b007e8e43815 Author: Richard Gobeille Date: Mon Apr 17 20:51:00 2006 +0000 Increased BYTEVERSION, removed 1.3D demo versions from opendemoread() and added version 160 (Atomic Edition demos from the previous version of EDuke32) support From-SVN: r43 commit fea015560b3e249fe4d4bc7b5c30b6c3d65e358b Author: Richard Gobeille Date: Mon Apr 17 19:26:37 2006 +0000 Fixes one of those CON commands nobody ever tried to use until now From-SVN: r42 commit 7c0d1647b85f760c15ca80b8c997fefff41bf77d Author: Richard Gobeille Date: Mon Apr 17 16:46:43 2006 +0000 Small jfaud_sounds.cpp update from JonoF From-SVN: r41 commit a4b23b10834181f4052a8a6848a14e07dee27572 Author: Pierre-Loup A. Griffais Date: Mon Apr 17 09:40:55 2006 +0000 From-SVN: r40 commit 5de5ab8e397f59ba2addbdd99da9c2146a4b0b79 Author: Richard Gobeille Date: Mon Apr 17 07:53:31 2006 +0000 From-SVN: r39 commit 925cd8fa8b82ac82d1199454afae2fbb787578eb Author: Richard Gobeille Date: Mon Apr 17 01:01:32 2006 +0000 Added toggle for demo cameras From-SVN: r38 commit 7b71cb05635efeb6999c28a75caf062befe7fba7 Author: Richard Gobeille Date: Mon Apr 17 00:37:22 2006 +0000 Renamed several menus to " setup" instead of " options" and " settings" for consistency and adjusted the placement of some menu items From-SVN: r37 commit 7e503490794392f4e2e7889b15d6e11d258eb95d Author: Richard Gobeille Date: Sun Apr 16 23:36:04 2006 +0000 More menu stuff From-SVN: r36 commit 7188a20a026a6a3e427ff4c178ac01c9dd611c51 Author: Richard Gobeille Date: Sun Apr 16 22:44:08 2006 +0000 Slight menu organization changes & bug fix From-SVN: r35 commit 9615a93fd4841a91c0299019796612f97d87cf44 Author: Richard Gobeille Date: Sun Apr 16 21:15:12 2006 +0000 Fix for weapon switch option issue with demo playback From-SVN: r34 commit 3c016d9248b893e4c58e9926187aa724805defac Author: Richard Gobeille Date: Sun Apr 16 18:55:51 2006 +0000 Fixed a small bug with the kick weapon, deleted a temporary file that was missed From-SVN: r33 commit da60d5bc6d90454a4aef26d922fe4c96e34dc666 Author: Richard Gobeille Date: Sun Apr 16 07:06:36 2006 +0000 Whitespace, again. From-SVN: r32 commit 09b20148a1446c2d7d8c95353c1af44235b53232 Author: Richard Gobeille Date: Sun Apr 16 06:47:58 2006 +0000 "Oops" round two. From-SVN: r31 commit b7e8d8e8cea428922d7447f70e4830158c5c7836 Author: Richard Gobeille Date: Sun Apr 16 06:25:14 2006 +0000 Minor cleanups to compiled CON bytecode interpreter From-SVN: r30 commit 842e6dd143bcbe8e5350e4c1c921a3e5b6d2bac3 Author: Richard Gobeille Date: Sun Apr 16 03:42:36 2006 +0000 Brightskins tweak, more whitespace From-SVN: r29 commit 04a6c0fde010cb8e08162a39e9372cfd8ffd0616 Author: Richard Gobeille Date: Sun Apr 16 00:39:49 2006 +0000 Brightskins support From-SVN: r28 commit 8d1ffda761d61dbc4fd3694c67191f983385a932 Author: Richard Gobeille Date: Sat Apr 15 23:30:19 2006 +0000 Oops. From-SVN: r27 commit 638453f7921986296d813b952c5cdc97de78fba1 Author: Richard Gobeille Date: Sat Apr 15 23:24:43 2006 +0000 Suppress cached skin/tex loading messages; fixes for compiler warnings From-SVN: r26 commit 2dff7e805d54e417020c2e9aebc5b4eda79eb442 Author: Richard Gobeille Date: Sat Apr 15 23:23:50 2006 +0000 More directory cleaning in MakeDistributions From-SVN: r25 commit 1da787dd15ca688985bd75b06aad4d59864a3733 Author: Richard Gobeille Date: Sat Apr 15 23:16:15 2006 +0000 Corrected the "drawweapon" cvar to be of type int rather than of type bool. Committing things, yay. From-SVN: r24 commit 5b7f7f8b7d24bb134084dfc59e5f6835b6021bb2 Author: Richard Gobeille Date: Sat Apr 15 22:56:06 2006 +0000 Altered level stats display to display player's frags instead of "0/0" for "Kills" in DM. From-SVN: r23 commit cf6fadaecdf6fd39be30b6523dfb70903a40ab91 Author: Richard Gobeille Date: Sat Apr 15 22:34:44 2006 +0000 Made the "Duke Talk" and "HUD weapon" menu options into 3 way toggles, Duke Talk now toggles between off, local player sounds and all player sounds, and HUD weapon display now toggles between full weapon drawing, weapon icon drawing and no weapon drawing. From-SVN: r22 commit 398d9e80164524509ca2b8b9bda5efb28fc1b61c Author: Richard Gobeille Date: Sat Apr 15 20:57:22 2006 +0000 Improved 3D mode mouselook From-SVN: r21 commit 6d7148536da48e95141d56a8810dc804e270f33c Author: Richard Gobeille Date: Sat Apr 15 18:57:40 2006 +0000 Moved hightile, model and texture caching options to the advanced video menu, disabled the advanced video menu when bpp = 8. From-SVN: r20 commit 4245710e38f2652d55672b9bc9ae3239fc97e529 Author: Richard Gobeille Date: Sat Apr 15 18:40:10 2006 +0000 Whitespace From-SVN: r19 commit d7837798da95a4fabb4dd3ff13e22d20320048c3 Author: Richard Gobeille Date: Sat Apr 15 08:05:02 2006 +0000 Modified shoot() to have an extra parameter for the projectile tilenum and added an option to disable autoaim on RPG type projectiles. Also added "advanced options" to the "video settings" menu. From-SVN: r18 commit 35bbe5b46d551bea72719b6273dee5bb87a3eef3 Author: Richard Gobeille Date: Sat Apr 15 04:45:39 2006 +0000 Changed ratio correction slider increment value to 8. From-SVN: r17 commit a442bf26b937c528790197baf3e5b1b5f75e82cd Author: Pierre-Loup A. Griffais Date: Sat Apr 15 04:32:51 2006 +0000 From-SVN: r16 commit 9c5b810c71f753a7d5052ebd22f4e00896382267 Author: Richard Gobeille Date: Sat Apr 15 04:25:15 2006 +0000 Changed ratio correction slider to operate in increments of 4 and added the corresponding config option. From-SVN: r15 commit 4bb4ab575a806417a094622d978b17246a9304f6 Author: Richard Gobeille Date: Sat Apr 15 04:06:50 2006 +0000 New menu (#230) for video settings From-SVN: r14 commit ae8dee420a07340a03aa836a660250462b801f11 Author: Richard Gobeille Date: Sat Apr 15 04:06:04 2006 +0000 Ratio correction variable changes From-SVN: r13 commit 66fcf1f2b20f643067652d7c00d6d5b1c17f04e5 Author: Pierre-Loup A. Griffais Date: Sat Apr 15 03:39:33 2006 +0000 somewhat final code for the ratio correction and fov part. still using a placeholder instead of actual user-controlled value From-SVN: r12 commit a069f793febb4cdf01ff3a3a843c3f05e748b47b Author: Richard Gobeille Date: Sat Apr 15 03:12:08 2006 +0000 Misc changes From-SVN: r11 commit 4cf8d1005dc07b1c6aff725f2eb9baaf3e985bdc Author: Pierre-Loup A. Griffais Date: Sat Apr 15 02:19:04 2006 +0000 no more shitty hardcoding, now the hardcoding is correct :p From-SVN: r10 commit d0b98ddbcba007648661be0536675c309b132cc9 Author: Pierre-Loup A. Griffais Date: Sat Apr 15 02:10:48 2006 +0000 From-SVN: r9 commit 25802e737633ef6cc3f5aa960c6f02692c051225 Author: Pierre-Loup A. Griffais Date: Sat Apr 15 01:50:19 2006 +0000 correcting hall of mirrors for great justice From-SVN: r8 commit 2961b44b058e3198d04386284d8a92fd7461741b Author: Pierre-Loup A. Griffais Date: Sat Apr 15 01:14:44 2006 +0000 From-SVN: r7 commit c7c24044eb8f44b3f08b0d60d0c5f2f74fd2a620 Author: Pierre-Loup A. Griffais Date: Thu Apr 13 20:47:06 2006 +0000 Importing source for great justice From-SVN: r5 commit 4108a301038a025349279e053210de0b0db09c15 Author: Pierre-Loup A. Griffais Date: Thu Apr 13 20:43:19 2006 +0000 Removed file/folder From-SVN: r3 commit ef24e8e97f36b4b0bf203292acd923a52041a0b9 Author: Pierre-Loup A. Griffais Date: Thu Apr 13 20:34:38 2006 +0000 From-SVN: r2