Commit Graph

8577 Commits (7232b97fc855a786fa2871f23d24a6fe19ae120b)

Author SHA1 Message Date
Cyp b72911f82f Remove NetPlay.maxPlayers, since it was just a sometimes-correct copy of game.maxPlayers. 2011-01-08 15:49:30 +01:00
Cyp 7dcfef76ee Don't let wall dragging affect where it's possible to build, unless bCheckBuildQueue is true.
Probably fixes a desynch.

Also, removed unused outlineTile, outlineOK and outlineNotOK variables.
2011-01-08 15:38:31 +01:00
Cyp f403e2c7aa Fix autogame AIs building on top left corner of map, if not running on host. 2011-01-08 01:31:35 +01:00
Cyp 4af4b82004 Use Vector2i in MOVE_CONTROL. 2011-01-08 01:30:57 +01:00
Cyp 0782edfce2 Fix desynch when assigning non-artillery to commanders.
Fixes ticket:2432 as a side effect.
2011-01-07 19:27:55 +01:00
Cyp 642bf5ffd0 Don't delete pathfinding jobs before execution, even if the result is not wanted.
Pathfinding can return different paths (of the same length), depending on the order of execution of path jobs, due to caching.

This, combined with paths being deleted before execution could cause occasional hard to reproduce desynchs.

Probably fixes ticket:2374.
2011-01-07 18:23:21 +01:00
Cyp d8b042cc45 Fix std::vector initialised with NULL.
From 9cdf0c4e31, gave a -Werror with gcc-4.5.*.
2011-01-06 09:42:49 +01:00
Per Inge Mathisen 7f5da6ad47 Use more of MAX_PLAYERS in the code rather than plain numbers. Define MAX_PLAYERS for scripts. From patch by Cyp. 2011-01-05 23:09:38 +01:00
Cyp 6a99f44265 Add some comments on the stats loading. 2011-01-04 23:47:43 +01:00
Cyp 1d100e6c70 Rewrite stats loading for DROID_TEMPLATE. 2011-01-04 23:13:53 +01:00
Cyp 9cdf0c4e31 Rewrite stats loading for STRUCTURE_STATS. 2011-01-04 23:13:53 +01:00
Cyp 7481694e9f Rewrite stats loading for FEATURE_STATS.
The same should be doable for all BASE_STATS.
2011-01-04 23:13:53 +01:00
Cyp 6f71d8925e Add missing minum32.pie, to match the .wrf files.
(Deleted one too many, before.)
2011-01-04 23:09:12 +01:00
Cyp 61ed2a1505 Bump max structure limits, now that UI supports them. 2011-01-04 22:40:35 +01:00
Cyp ee048302f8 Add more assembly point graphics. 2011-01-04 22:40:06 +01:00
Cyp 4a34b821ad Fix parts of UI that break if increasing MAX_FACTORY. 2011-01-04 22:32:52 +01:00
Per Inge Mathisen c4d4dcd73a The colour chooser is now a proper button. The double-click kick is now gone (use the button). Kick button moved to team chooser.
The kick button is removed for single player and AIs and non-hosts (made no sense). The position chooser now allows you to click
on any other player to switch places. Removed broken ping symbol. Removed broken ranking symbol. Make sure we flush the connection
with the kick message before we cut it. Fix reception of kick message so that we do not crash when we do receive them. ticket:2435
2011-01-04 18:51:15 +01:00
Per Inge Mathisen ccc5444545 Fix unused in-game kick message handling 2011-01-03 23:57:45 +01:00
dak180 a0dc6a08b7 Make the xcode project work with the changes made in fca489ce42, 1c0af54edf, 67e9635f9f & 178569f364. 2011-01-02 16:28:46 -05:00
Cyp 734d52984d Set bsocket = NULL when host drops, hopefully reduce the chance of crashing. 2011-01-01 23:24:25 +01:00
Cyp 738a1fc38c Strip "Class::" from "Class::myFunction" when compiling with MSVC, in syncDebug().
Other compilers don't add the "Class::".
2011-01-01 21:28:13 +01:00
buginator c10886b7b1 Change (HANDLE)(HANDLE)hProcess to (HANDLE)hProcess 2011-01-01 14:17:16 -05:00
buginator 4ececd8e49 Fix a plethora of issues for MSVC builds
Rename MERGECOPY to MERGECOPYSYNC to prevent clobbering of a windows function named that.
2011-01-01 13:46:12 -05:00
buginator 1169f20b91 Merge branch 'master' of github.com:Warzone2100/warzone2100
* 'master' of github.com:Warzone2100/warzone2100: (41 commits)
  Remove some unused legacy code from the old terrain renderer and TERRAIN_VERTEX.
  Die, ivis_common, die\!
  Remove some unnecessary oil resource hacks, including flattening to terrain. Please do not put oil resources on sloped ground. It looks stupid even when flattened.
  Fix misspelling of 'guard tower' in PIE file name to match similar rename in wzgm.
  Remove the unused specular parameter to pie_Draw3DShape. It was always WZCOL_BLACK.
  Remove pietoaster
  Define the default fog colour in the palette file instead of hard-coded.
  Remove the "AI experience" code, which has not been used by the last four AI scripters. Existing savegames may be broken by this.
  Inline pie_SetTranslucencyMode() and remove the entirely superfluous TRANSLUCENCY_MODE abstraction.
  Merge the ivis_common and ivis_opengl directories, only five years and two months after I originally split them apart.
  simplipie: Add warning when not all polygons in a mesh do not use the same number of frames for texture animation.
  Merge the two variants of piestate.cpp; it too confusing to keep two files with the same name doing almost the same thing.
  Slight optimization: Now we draw the entire model within the same glBegin .. glEnd pair.
  Remove support for non-triangle polygons in model files.
  simplipie: Fix error when fixing face culling and tessellation at the same time.
  Tessellate features, effects and other models.
  Tessellate components.
  Tessellate all structure models.
  simplipie: Fix missing space in frame animation directive print out.
  simplipie: Add support for triangle tessellation
  ...
2011-01-01 12:29:17 -05:00
Per Inge Mathisen 53242e1571 Remove some unused legacy code from the old terrain renderer and TERRAIN_VERTEX. 2011-01-01 16:29:49 +01:00
cybersphinx d2499aa9cc Die, ivis_common, die\! 2011-01-01 14:51:53 +01:00
Per Inge Mathisen e6c3408d75 Remove some unnecessary oil resource hacks, including flattening to terrain. Please do not put oil resources on sloped ground. It looks stupid even when flattened. 2011-01-01 13:20:56 +01:00
Per Inge Mathisen e29bb60fff Fix misspelling of 'guard tower' in PIE file name to match similar rename in wzgm. 2011-01-01 13:08:43 +01:00
Per Inge Mathisen 7bd5723715 Remove the unused specular parameter to pie_Draw3DShape. It was always WZCOL_BLACK. 2011-01-01 12:58:14 +01:00
Per Inge Mathisen 9b6e542bfa Remove pietoaster 2010-12-31 23:42:53 +01:00
Per Inge Mathisen 724cd69882 Define the default fog colour in the palette file instead of hard-coded. 2010-12-31 23:42:21 +01:00
Per Inge Mathisen 178569f364 Remove the "AI experience" code, which has not been used by the last four AI scripters. Existing savegames may be broken by this. 2010-12-31 23:19:28 +01:00
Per Inge Mathisen e27ac240be Inline pie_SetTranslucencyMode() and remove the entirely superfluous TRANSLUCENCY_MODE abstraction. 2010-12-31 23:02:20 +01:00
Per Inge Mathisen 67e9635f9f Merge the ivis_common and ivis_opengl directories, only five years and two months after I originally split them apart. 2010-12-31 22:37:14 +01:00
Per Inge Mathisen b15addfcf1 simplipie: Add warning when not all polygons in a mesh do not use the same number of frames for texture animation. 2010-12-31 22:26:45 +01:00
Per Inge Mathisen 1c0af54edf Merge the two variants of piestate.cpp; it too confusing to keep two files with the same name doing almost the same thing. 2010-12-31 22:18:45 +01:00
Per Inge Mathisen 2e6332ca8c Slight optimization: Now we draw the entire model within the same glBegin .. glEnd pair. 2010-12-31 18:59:41 +01:00
Per Inge Mathisen 88fe0bcb2e Remove support for non-triangle polygons in model files. 2010-12-31 18:22:22 +01:00
Per Inge Mathisen 3d7a7b397b simplipie: Fix error when fixing face culling and tessellation at the same time. 2010-12-31 18:20:51 +01:00
Per Inge Mathisen e5edaeabfd Tessellate features, effects and other models. 2010-12-31 17:46:08 +01:00
Per Inge Mathisen d73adb4a90 Tessellate components. 2010-12-31 17:36:14 +01:00
Per Inge Mathisen 961d38b6ab Tessellate all structure models. 2010-12-31 17:20:29 +01:00
Per Inge Mathisen 22bbd8dd51 simplipie: Fix missing space in frame animation directive print out. 2010-12-31 17:12:17 +01:00
Per Inge Mathisen 2133cd5ec6 simplipie: Add support for triangle tessellation 2010-12-31 16:53:05 +01:00
Per Inge Mathisen 612872a437 Remove unused variable, clean up some indentation. 2010-12-31 16:53:05 +01:00
cybersphinx 663b3e69ee Add semperfi to the nsis installer.
Untested.
2010-12-30 23:59:22 +01:00
cybersphinx e6324cd4c4 Update Windows cross-build dependencies.
freetype 2.4.4
libogg 1.2.2
libpng 1.4.5
2010-12-30 23:34:15 +01:00
cybersphinx ffaaf87c8b Unignore build_tools. 2010-12-30 23:34:15 +01:00
cybersphinx 00cf0767ba Get rid of force-linker.cpp.
Shouldn't be needed anymore since everything is C++ now.
2010-12-30 23:34:15 +01:00
Freddie Witherden 7b7b2b8e0e Fix a section-titling bug in the inifile code. 2010-12-30 21:17:18 +00:00