1
0
forked from 0ad/0ad
Commit Graph

12101 Commits

Author SHA1 Message Date
d252e245ef Optimise fixed multiplies on MSVC x86
On MSVC, casting i32 to i64 then multiplying gets compiled into a call
to __allmul, which is slow. Use the __emul intrinsic instead.

GCC 4.6+ appears optimise this case automatically and doesn't need any
special handling.

This reduces the cost of ComputeShortPath by about 50% (testing AI vs AI
on Oasis 01).

This was SVN commit r13873.
2013-09-20 20:17:54 +00:00
5a8cfb738b Commited experimental field for athenians (propped farm field)
This was SVN commit r13872.
2013-09-19 15:29:01 +00:00
4b7c1a915d Celtic corral upgraded. Added more playercolor to gaullic civic centre.
This was SVN commit r13871.
2013-09-19 13:58:48 +00:00
bfe0b79b91 Better fix of Grid memory leak, refs #1842
This was SVN commit r13869.
2013-09-18 01:21:36 +00:00
e10c4ebaae Amend 553875ea83: Forgot to include new hotkey in the config.
This was SVN commit r13868.
2013-09-17 00:31:18 +00:00
553875ea83 Allow the use of Enter in addition to the OK button in the Join Game dialog.
This was SVN commit r13867.
2013-09-17 00:30:11 +00:00
9f2a850a95 Fixes buggy operators and memory leak in Grid class, refs #1842
This was SVN commit r13866.
2013-09-17 00:28:22 +00:00
5d9b2b95b0 Ticket #2127 - Performance and style improvements in scriptinterface.
No real behavior changes, only code maintenance.

Fixed signed/unsigned mismatch in EntityMap.h

This was SVN commit r13865.
2013-09-16 19:10:06 +00:00
97912dd545 This was SVN commit r13864. 2013-09-16 16:56:26 +00:00
16b615db79 Celt walls upgraded
This was SVN commit r13863.
2013-09-16 12:25:03 +00:00
a770ad9467 small code style fixes
This was SVN commit r13862.
2013-09-16 09:14:16 +00:00
1b6a5fa802 This was SVN commit r13861. 2013-09-15 21:37:05 +00:00
2a5ec404d1 Further reverted RangeManager sorting to stable_sort, since possibly with different STL implementations, the order of entities might change and cause OOS.
Overflowing elements in SpatialQueryArray are now reported with
debug_warn, but can be ignored and the program will continue working,
but further entities will be truncated.

This was SVN commit r13860.
2013-09-15 21:11:20 +00:00
bb799bdd53 upgraded gaul defense towers and celtic storehouse
This was SVN commit r13859.
2013-09-15 21:11:14 +00:00
5fe43a0f21 removed non-used duplicated meshes
This was SVN commit r13858.
2013-09-15 19:56:13 +00:00
9eedd22b9a fix garrisoned units count for some special cases. Refs #2096. Patch by mimo
This was SVN commit r13857.
2013-09-15 16:47:40 +00:00
65bddb7fa5 Celtic docks, kennel, farmstead and temple upgrades
This was SVN commit r13856.
2013-09-15 16:09:23 +00:00
bdeb358c44 Upgraded britons market and added new gaul market
This was SVN commit r13855.
2013-09-15 14:09:25 +00:00
9694eec8b8 As per ticket #1707. Some minor improvements to spatial subdivision. Makes way for future changes in RangeManager.
Right now merely improves memory usage.

This was SVN commit r13854.
2013-09-15 14:03:53 +00:00
6644f224cd remove warn messages. Now really fixes #2102
This was SVN commit r13853.
2013-09-15 09:33:45 +00:00
b16b52492d change build distance restrictions to work with classes. Fixes #2012.
This was SVN commit r13852.
2013-09-15 09:29:16 +00:00
3016765766 All new techs for the blacksmith.
This was SVN commit r13851.
2013-09-15 08:55:28 +00:00
f213761912 let entities change entity limits. Fixes #2076
This was SVN commit r13850.
2013-09-15 08:19:50 +00:00
de68973191 Changed the phase up sound.
Added a new "tech complete" sound for ALL techs.

Added some new armor techs for infantry and spearmen.

This was SVN commit r13849.
2013-09-15 07:53:01 +00:00
466900b898 Minor template stuff.
This was SVN commit r13848.
2013-09-15 05:55:16 +00:00
db39fd059c Some tooltip tweaks.
Further attempts to balance archers. (ongoing)

This was SVN commit r13847.
2013-09-15 04:57:58 +00:00
08849ae6f6 Balance changes after playtesting with Alpha123.
This was SVN commit r13846.
2013-09-15 00:28:07 +00:00
4f138eaa12 Made the time icon slightly smaller.
Archers have less attack and cost slightly more.

Defense Towers now have a minimum build distance and are weaker.

This was SVN commit r13845.
2013-09-14 23:19:36 +00:00
729e744c2f Removes yucky hard-coded categories from BuildRestrictions
This was SVN commit r13844.
2013-09-14 22:31:41 +00:00
dd60c3a3e2 Restore textures.xml to make grid_subdiv terrain less ugly
This was SVN commit r13843.
2013-09-14 18:36:40 +00:00
a9cb79b108 celtic fortresses actor and barracks actor errors fixing reported by Sanderd
This was SVN commit r13842.
2013-09-14 13:59:43 +00:00
126e550d68 Delete bogus file
This was SVN commit r13841.
2013-09-14 12:19:22 +00:00
ea75cda095 Special case getEntityNamesFormatted to avoid messing with getEntityNames
This was SVN commit r13838.
2013-09-14 00:32:50 +00:00
e7fa9a58de Remove the Costs: prefix from tooltips entirely.
This was SVN commit r13837.
2013-09-14 00:07:08 +00:00
e646cf19bf Fix bug due to some technologies not having separate generic/specific names.
This was SVN commit r13836.
2013-09-14 00:00:47 +00:00
c28151c1c1 Put tooltips on a diet.
This was SVN commit r13835.
2013-09-13 23:49:46 +00:00
04b4e6af4b gaul fortress fix
This was SVN commit r13834.
2013-09-13 21:44:49 +00:00
014acac9ed Upgraded britons and gaullic fortresses.
This was SVN commit r13833.
2013-09-13 21:41:24 +00:00
532c9dce3e brit_civic_centre, celt_barracks and brit_crannog upgrade
added non-transparency with AO material and non-transparency-parallax-ao
material

This was SVN commit r13832.
2013-09-13 18:46:33 +00:00
5023ff449e Gaul_civic_centre updated.
This was SVN commit r13831.
2013-09-13 14:18:27 +00:00
8b9a0e3919 Added gaul houses, fixed brit houses and added a new variation. New effects applied.
Added Ludo's new stonehenge model.

This was SVN commit r13830.
2013-09-13 13:50:19 +00:00
77ca745637 Updated the logo.
Updated some Roman words.

This was SVN commit r13829.
2013-09-13 12:07:39 +00:00
82fb0ce6be Improve game setup GUI performance by switching from main menu instead of pushing the page on top of the stsck
This was SVN commit r13828.
2013-09-12 15:12:08 +00:00
176cc55547 Fixing some Roman names. Thanks Robbob (on the forum).
Added Organic "preferredClass" to Fortresses, Wall Towers, and Defense
Towers, so that they prefer to shoot at enemy units rather than enemy
structures.

This was SVN commit r13827.
2013-09-12 13:53:00 +00:00
5304bc9d6a Changes GameView to expose global functions to scripts instead of using CJSObject.
Fixes #2126
Refs #1886

This was SVN commit r13826.
2013-09-12 12:40:05 +00:00
05422ad545 Avoid slightly-expensive QueryInterface() calls
Add CEntityHandle which wraps an entity_id_t and also has a pointer to a
per-entity array of IComponents. QueryInterface/CmpPtr on a handle just
involve a couple of pointer dereferences instead of a map lookup.

This requires sizeof(void*) per registered interface type per entity,
which is currently ~0.5KB per entity, which shouldn't be a problem.

This was SVN commit r13825.
2013-09-11 20:41:53 +00:00
87753bf3fd forgot to commit extra change for 508cc0d4c7
This was SVN commit r13824.
2013-09-11 18:59:51 +00:00
508cc0d4c7 Add preferred classes to BuildingAI. Patch by jammus. Fixes #1985
This was SVN commit r13823.
2013-09-11 17:50:49 +00:00
43df87e56f This was SVN commit r13822. 2013-09-10 22:05:12 +00:00
b1bd61938e add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development
This was SVN commit r13821.
2013-09-10 14:17:04 +00:00