1
0
forked from mirrors/0ad

Commit Graph

  • c03abd1e92 UnitMotion cleanup - remove dead code, add a common path for MoveTo functions, rename BeginPathing, move functions around for better readability. wraitii 2019-07-28 10:51:12 +00:00
  • d9c6879450 Fix units ignoring range when attacking in one case, and fix targeting formations wraitii 2019-07-28 10:39:27 +00:00
  • 1e2f511a09 UnitMotion - reject paths that would not take the unit closer to the goal than it is now. wraitii 2019-07-28 10:29:28 +00:00
  • 103d89f026 GatherNearPositiion when the target remains invisible on our second try, instead of going idle. wraitii 2019-07-28 09:48:23 +00:00
  • ad4de3d3be Delete CInternalCGUIAccessorBase class from c2a71e41bf. elexis 2019-07-28 02:39:52 +00:00
  • 3e4d339b51 Add a missing undefined to booelan conversion for the diplomacy dialog in eec179a9a8, fixes #5542. elexis 2019-07-27 21:18:16 +00:00
  • 6b052bab08 Fix 415939b59b - clang-specific error at compilation time wraitii 2019-07-27 15:12:59 +00:00
  • b7d1ea671f Update Errors definition file following: elexis 2019-07-26 19:27:10 +00:00
  • 415939b59b Introduce CGUIColor type inheriting Color type and switch the GUI to exclusively use that. elexis 2019-07-26 18:57:28 +00:00
  • b9f3c8557b Move CClientArea ToJSVal / FromJSVal conversion from JSI_IGUIObject (since that should be agnostic of the conversion) to CClientArea (since that defines the properties). elexis 2019-07-26 14:47:27 +00:00
  • 0834d07462 Make JS changed horizontal / vertical actually take effect, finishing 156ff7cf56, refs f4b410ff82. elexis 2019-07-26 13:45:14 +00:00
  • 52d58d9845 Wipe MaybeGC/ForceGC declaration leftover from 9f0484e5ce / D1073. elexis 2019-07-26 12:41:22 +00:00
  • b9544a2eaa New Ptolemy IV (Hero) Texture wackyserious 2019-07-26 11:10:43 +00:00
  • 8d293db6eb Removes clipboard debug logging on X11, fixes #5535 historic_bruno 2019-07-25 05:34:04 +00:00
  • 1e9cc3d43e Fixes missing Engine.DisplayErrorDialog in hwdetect.js (lost in 4b1297b328). historic_bruno 2019-07-25 05:21:25 +00:00
  • 4ced2182b2 Fixes compiler warning about unused variable introduced in 09e129bce2. vladislavbelov 2019-07-24 23:25:45 +00:00
  • 50f70b7be3 Refactors Camera aspect ratio and calculation of plane points. vladislavbelov 2019-07-24 23:08:02 +00:00
  • 3532dd64ac Fix patrol order and make the relaxed range check into a constant. wraitii 2019-07-24 19:05:12 +00:00
  • 2cc071f306 Fix memory leak introduced by 3a839517ce in SparseGrid wraitii 2019-07-24 17:11:22 +00:00
  • ae7e43ff19 Alt+tab fix for ca9109be75 - call sound IdleTask in Atlas and swap buffers only once in Atlas. wraitii 2019-07-24 16:40:34 +00:00
  • a783f430d5 Update the gather LastPos alongside the combat LastPos when hunting to more efficiently hunt. wraitii 2019-07-24 15:55:07 +00:00
  • 7c2985bbe1 New Roman Units Texture wackyserious 2019-07-24 06:53:04 +00:00
  • 636c719110 Use FromJSVal ToJSVal for primitive types to remove the duplicate logic and make JSInterface_IGUIObject case handling more equal. elexis 2019-07-24 02:58:50 +00:00
  • 26ae9d430a CGUISeries and CGUIList specializations for ToJSVal / FromJSVal to make the JSI_IGUIObject case handling agnostic of implementation specifics, refs 4d367109c3, 977a5c7ca2, 2bae30c454. elexis 2019-07-24 01:40:30 +00:00
  • eec179a9a8 Use FromJSVal and ToJSVal for GUI boolean conversions. elexis 2019-07-23 21:46:32 +00:00
  • 62f83eb673 Use ToJSVal for JS_NewStringCopyZ to improve encapsulation and consistency and remove a snprintf call. elexis 2019-07-23 15:17:35 +00:00
  • cbcd1bbde0 There is nothing to see here following 9be8a560a9. elexis 2019-07-23 14:50:09 +00:00
  • 9be8a560a9 Delete JSClass JSI_GUIColor / GUIColor from af9c336b43, refs #5387, D1699. elexis 2019-07-23 14:22:27 +00:00
  • 7a823ca671 UnitMotion - Fix a rare pathfinding issues where units tried going straight through walls, and make sure a long path is computed even when the target is within short path or direct path range. wraitii 2019-07-23 06:18:07 +00:00
  • 8734efca94 Delete JSI_GUIMouse from af9c336b43 obsoleted by 64bd264fc0. elexis 2019-07-23 01:36:13 +00:00
  • 227957cd99 Delete unused broken JSI_IGUIObject::construct. elexis 2019-07-23 01:24:49 +00:00
  • b04a8d4793 Disable eslint curly rule, because none of its configurable enforcement reflects the curly brace convention of this repository, refs #5524. elexis 2019-07-22 19:55:52 +00:00
  • b4626359f5 Provide ScriptInterface CreateObject and CreateArray functions to replace Eval calls following 7c2e9027c2, 1c0536bf08 and later. elexis 2019-07-22 19:35:14 +00:00
  • 6643613b54 Easier introduction of new damage types. wraitii 2019-07-22 18:37:18 +00:00
  • 32e8ed51aa UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. wraitii 2019-07-22 18:07:24 +00:00
  • 09315fdc6b Update Britons blacksmith_armorstand_armor.xml to use new @wackyserious chainmail textures Alexandermb 2019-07-22 00:55:23 +00:00
  • 1a3ba39900 Trader linting, refs D2106. elexis 2019-07-21 20:19:39 +00:00
  • 51419d7092 Correct uncaught MapReader and MapGenerator throw statements following 2b138f47db and 2180862d40. elexis 2019-07-21 01:35:39 +00:00
  • 41ee485e68 Remove unused GUIManager SGUIPage members from 7c2e9027c2 and 4b1297b328. elexis 2019-07-21 01:29:08 +00:00
  • 13209c3183 Revert 09916ce6cb which broken jenkins build. wraitii 2019-07-20 13:10:53 +00:00
  • 09916ce6cb Fix incorrect use of setlocale() in cppformat CStr tests following 61db02790c wraitii 2019-07-20 12:57:03 +00:00
  • cca7627d88 Improvements to simulation hotloading before the SM upgrade, refs #4893. Itms 2019-07-19 21:58:58 +00:00
  • feb88a337a Pass arbitrary arguments to GUI events / SendEventToAll and remove loading screen progess workaround, refs D1716, 6d792365aa, bd3bd084c0, 4b1297b328, db5d4bb5f1. elexis 2019-07-19 21:15:04 +00:00
  • 498d58e24d Fix reported memory leaks in the glooxwrapper following 61261d14fc JoshuaJB 2019-07-19 19:46:48 +00:00
  • 6230bbea24 Update of the scripting tests. Test some modding features and update JS::Value integer limits. Itms 2019-07-19 15:41:27 +00:00
  • 6d332c0822 Fix for unsync siege weapons unpacked with horses idle animations Alexandermb 2019-07-19 15:30:49 +00:00
  • 3a839517ce Fix the -Wclass-memaccess compiler warning in the pathfinders Grid.h, refs #5294. elexis 2019-07-19 12:52:10 +00:00
  • e6f960bca6 Makes wxWidgets 3.0 dependency explicit in the game build. historic_bruno 2019-07-19 04:52:03 +00:00
  • 6fc2114b58 Unit Motion - Improve handling of obstructed paths. wraitii 2019-07-18 20:00:38 +00:00
  • b807c39e6a Restore previous formation behaviour of targeting nearby enemies when idle / aborting orders wraitii 2019-07-18 19:59:37 +00:00
  • bac777cb29 Correctly face towards target when repairing, gathering, guarding. wraitii 2019-07-18 19:56:09 +00:00
  • 114dcbf655 Clean Gaia's Selectable bb 2019-07-18 10:04:04 +00:00
  • 9f8fb83a89 Removes deprecated 'register' storage class from mongoose. Refs #3068 historic_bruno 2019-07-18 06:28:51 +00:00
  • fc32e28c0a Fixes some ambiguous calls of abs(). historic_bruno 2019-07-17 22:39:30 +00:00
  • 213c56e3e6 Improvements to the translators credits script. Itms 2019-07-17 21:32:11 +00:00
  • e381fa393a Standardize formation tooltips bb 2019-07-17 20:20:48 +00:00
  • 332e59bdbe Add skirmish templates for range, stable, wonder and workshop While at it clean some obstruction and footprint sizes in stables and workshops Add a specific name for some workshops bb 2019-07-17 19:40:50 +00:00
  • 81cd2f1cdf Fix walk-to-target and other movements with max-range "0" for target entities wraitii 2019-07-17 18:11:15 +00:00
  • dbebe0a39a Fix max-range approach when treating a target as a circle. wraitii 2019-07-17 18:08:47 +00:00
  • 7d73af990d Disables GnuTLS Native Language Support in build-osx-libs.sh, refs #5503 historic_bruno 2019-07-17 14:51:57 +00:00
  • 7f453a2bd0 Fixes silent download errors in build-osx-libs.sh. Fixes #5490. historic_bruno 2019-07-17 14:32:26 +00:00
  • 01fd8a3654 Cleans up build-osx-libs.sh whitespace. Fixes #5486. historic_bruno 2019-07-17 14:20:40 +00:00
  • ecae8469ba Move domestic wolf from templates/trigger/ to templates/gaia/, refs cd6c31e76e, 79fb493da3, D176. elexis 2019-07-17 14:14:53 +00:00
  • e8f4ae36a7 MapGenerator to delete its ScriptInterface directly after last use, refs 64efbfeae3, D2085. elexis 2019-07-17 00:07:10 +00:00
  • f41e4082d9 Fix missing return in previous (65b02395b3), use underscore as recommended by Vladislav. elexis 2019-07-17 00:00:05 +00:00
  • 65b02395b3 Remove Vector2D/Vector3D prototype workaround from EngineScriptConversions. elexis 2019-07-16 21:52:49 +00:00
  • 29a8852ea4 Rename "CauseSplashDamage" to the more generic "CauseDamageOverArea" bb 2019-07-16 15:14:49 +00:00
  • 7e2512a739 Fix undefined behaviour introduced in 5c642611c4 wraitii 2019-07-15 18:05:03 +00:00
  • a6f30c14d5 Provide microsecond precision in the RandomMapLogger too, refs 7a91d330d3. elexis 2019-07-15 14:44:53 +00:00
  • 3e8205d7bf Moar lineendings. elexis 2019-07-15 02:18:51 +00:00
  • e1bde4c337 Fix tests following 945d1ba2e6 wraitii 2019-07-14 14:57:38 +00:00
  • 4f62cc3ee7 Remove the unused variable proto from the ComponentManager in e9e05f4efc. elexis 2019-07-14 14:13:15 +00:00
  • 945d1ba2e6 Fix IDLE-related infinite loops by moving stateful calls to IDLE.timer. wraitii 2019-07-14 11:40:27 +00:00
  • b43904aae1 Unit Motion - optimisations to avoid recomputing paths too often wraitii 2019-07-14 11:08:15 +00:00
  • 5c642611c4 Vertex pathfinder - fixes to quadrant optimisation to ensure units don't take detours around obstructions. wraitii 2019-07-14 10:19:18 +00:00
  • d0e6111ea1 Enable eslint rule no-floating-decimal and remove all superfluous floating decimal points. elexis 2019-07-14 10:03:10 +00:00
  • e53fb0a8d7 Make sure hunting units don't forget about the initial herd position (fix for 8a38cfb7cf) wraitii 2019-07-14 09:38:17 +00:00
  • 69f7a48dd9 Fix UB following 57362f7fa3, which could cause a crash when serialising. wraitii 2019-07-14 09:24:37 +00:00
  • 5fe08f1471 Actually use variable added in 80d9a44ab5. Refs #5501. historic_bruno 2019-07-14 05:15:51 +00:00
  • 80d9a44ab5 Fixes #5501 null pointer exception in AtlasUI on Windows. historic_bruno 2019-07-14 05:02:43 +00:00
  • 7300dd186e Cleanup MapGenerator.cpp, use VfsPath, create RegisterScriptFunctions, add header comments, register TERRAIN_TILE_SIZE directly. elexis 2019-07-13 21:41:09 +00:00
  • e06285279a Vertex pathfinder: add the domain edges back to improve behaviour (reverts c42160ec10) wraitii 2019-07-13 16:01:10 +00:00
  • 055c848c1a Unit Motion - improve PathResult/Obstructed move handling wraitii 2019-07-13 15:53:21 +00:00
  • 3823023434 Sync trader_cart_idle Animation with the horse idle animation lenght in order to work properly. Alexandermb 2019-07-13 14:37:24 +00:00
  • ac5b7fdc34 Add periods and caps to the JSDOCs in Damage.js bb 2019-07-12 19:39:18 +00:00
  • 3c2f15ee8b Fix lineendings. elexis 2019-07-12 17:40:40 +00:00
  • d5a3437882 Unify the magic number indicating the number of impassable tiles at the map edge redundant in the Pathfinder, RangeManager and MapGenerator. elexis 2019-07-12 16:38:51 +00:00
  • dcf5bad7fd Unit motion - Check the return value of ComputeGoal and handle failure cases wraitii 2019-07-12 16:16:13 +00:00
  • a573460c65 Updates library LICENSE.txt for libsodium and macOS patches historic_bruno 2019-07-12 15:25:12 +00:00
  • 57362f7fa3 UnitMotion - remove m_PathState, which is redundant with other variables. wraitii 2019-07-12 14:49:32 +00:00
  • 1ecac53a38 Fixes GnuTLS build on macOS. historic_bruno 2019-07-11 21:48:50 +00:00
  • 1918fd11d4 fixing Build atlasUI inside xcode missing libpng, libjpeg trompetin17 2019-07-11 16:13:57 +00:00
  • e674da7e5e Unit Motion - Remove m_FinalGoal in favour of recomputing when necessary. wraitii 2019-07-10 18:57:53 +00:00
  • 54f7a09a54 Unit Motion - make sure units that die while moving don't keep their obstruction wraitii 2019-07-10 18:43:21 +00:00
  • bbc2e84160 Unit Motion - combine Goal computation logic from MoveToPoint and MoveToTarget wraitii 2019-07-10 18:41:17 +00:00
  • 7d610d3412 Remove redundant checks in HandleObstructedMove performed already by PathResult wraitii 2019-07-09 19:59:43 +00:00
  • 4ca448a686 Fix Formation walking / other orders with the new UnitMotion wraitii 2019-07-09 19:58:44 +00:00
  • a1dc9cadd8 UnitMotion / AI - remove the special 'move' animation, make UnitMotion inform the visual actor directly. wraitii 2019-07-09 19:56:28 +00:00
  • 09e129bce2 Adds an tool to pick water high by terrain click in Atlas. vladislavbelov 2019-07-09 18:16:55 +00:00
  • 8a32b0b3d4 Fix some gcc 8 and gcc 9 compiler warnings that were thrown 4500 times. elexis 2019-07-09 00:18:48 +00:00