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
Freddie Witherden
5362cf2217
Fix compilation under GCC 4.5.
...
Previously, _WZ_ASSERT_ARRAY_EXPR_FUNCTION would return NULL
((void *) 0) for a function with a declared return type of char.
2010-12-30 20:45:35 +00:00
Cyp
ffe096fea4
Make zoom rate when scrolling framerate-independent.
2010-12-30 00:58:55 +01:00
Cyp
5c4b81fa63
Make C++ WZ_ASSERT_STATIC_STRING a compile-time check without using typeid, make C++ WZ_ASSERT_ARRAY_EXPR work.
2010-12-30 00:58:55 +01:00
Freddie Witherden
fca489ce42
Iniparser rewrite as per ticket #2012 .
...
This code completely replaces the old iniparser with a new,
cleaner API. All existing uses of the old code have been ported.
The Xcode and MSVC projects will require updating.
2010-12-29 21:17:12 +00:00
Per Inge Mathisen
7d1e719e13
Remove hard-coded limit for number of polygons in models. This limit is now only relevant for delivery point, oil resource and wall models.
2010-12-29 12:46:10 +01:00
Per Inge Mathisen
b72332ba42
Simplify shadow rendering for objects by removing unused/useless hacks for droid transport.
2010-12-29 12:44:18 +01:00
Per Inge Mathisen
086a0fd4bc
Add new PIE flag 0x00001000 that specifies that the PIE model should not be stretched to fit to terrain.
2010-12-29 10:57:38 +01:00
Per Inge Mathisen
4eed3bef79
Remove the now obsolete distinction between configurable FPS rates for MP and campaign. Up the maximum FPS to 500 from 200.
...
To change the max fps rate now change only the "framerate" line. Patch reviewed by Cyp.
2010-12-29 00:24:45 +01:00
Per Inge Mathisen
06ab993d26
Remove some dead code
2010-12-29 00:07:53 +01:00
Per Inge Mathisen
aafe14fbc2
Add separate shader for models rendered for buttons to remove lighting effects from those.
...
Add support for per-pixel lighting. Patch reviewed by SafetyOff.
2010-12-28 23:35:57 +01:00
Per Inge Mathisen
af59954767
Do not spend value resources shading the backsides of polygons or setting irrelevant GL states.
2010-12-27 16:53:13 +01:00
Per Inge Mathisen
f5ea79ed3c
Enable OpenGL lighting controlled through the vertex shader. Added two new script functions setSunPosition an setSunIntensity.
...
Added a new PIE file directive MATERIALS that sets material properties for a mesh level. Original patch reviewed by SafetyOff.
2010-12-26 22:12:53 +01:00
Freddie Witherden
72e5404db4
Improve formatting of cmdSelectSubDroids.
2010-12-26 16:29:53 +00:00
Cyp
e8b8abf4cb
Fix typo in last commit.
...
Places structures more gently, structures should no longer form craters in the ground when being placed down.
2010-12-26 16:17:03 +01:00
Cyp
2ee63abdc6
Remove strange asymmetric check in structure height calculation, remove float and add syncDebug for defense height.
...
Also, fix minor inconsistencies in structure map coverage calculations, which probably didn't change anything, since structures should always be aligned, anyway.
2010-12-26 15:51:26 +01:00
buginator
e2c7c49a21
Merge branch 'master' of github.com:Warzone2100/warzone2100
...
* 'master' of github.com:Warzone2100/warzone2100:
Apply patch — kill some more warnings, and fix a few issues that Buginator found.
2010-12-24 20:02:10 -05:00
buginator
e8d5913372
Apply patch — kill some more warnings, and fix a few issues that Buginator found.
2010-12-25 00:38:06 +01:00
buginator
aee2b97fce
Merge branch 'master' of github.com:Warzone2100/warzone2100
...
* 'master' of github.com:Warzone2100/warzone2100:
Try to make production interface behave less confusing.
Simplify production run code.
Italian translation update by Alpha93.
Turkish translation update by Ayhan Görgülü.
2010-12-24 01:00:58 -05:00
Cyp
9597a8f2f1
Try to make production interface behave less confusing.
...
Changelog: Production interface with looping production now shows how much will be built each loop iteration.
2010-12-24 01:17:38 +01:00
Cyp
e6cd8d8d64
Simplify production run code.
...
And fix production runs not being cleared when a structure is removed.
2010-12-24 01:17:38 +01:00
cybersphinx
3e9c0ef263
Italian translation update by Alpha93.
...
Closes #2408 .
2010-12-23 23:03:08 +01:00
cybersphinx
365dfe80d9
Turkish translation update by Ayhan Görgülü.
...
Closes #2418 .
2010-12-23 23:02:17 +01:00
buginator
c43e15a14b
Merge branch 'master' of github.com:Warzone2100/warzone2100
...
* 'master' of github.com:Warzone2100/warzone2100:
Kill idiotic "'BOOL' : forcing value to bool 'true' or 'false' (performance warning)." warning.
2010-12-23 15:53:36 -05:00
Cyp
6a6b23e13b
Kill idiotic "'BOOL' : forcing value to bool 'true' or 'false' (performance warning)." warning.
...
The compiler probably wasted more cpu cycles printing the warning than the conversion ever would.
Refs ticket:2431.
2010-12-23 21:38:18 +01:00
buginator
e1eb1a1889
Merge branch 'master' of github.com:Warzone2100/warzone2100
...
* 'master' of github.com:Warzone2100/warzone2100:
Fixes ticket:2430 without breaking the cross compile.
2010-12-23 13:38:53 -05:00
Cyp
16a1582aa5
Fixes ticket:2430 without breaking the cross compile.
...
Error 27 error C2664: 'BOOL (HANDLE,DWORD,PVOID,DWORD,PDWORD)' :
cannot convert parameter 1 from 'DWORD' to 'HANDLE'
Since it cannot convert (HANDLE)hProcess to a HANDLE, the obvious solution is to add a cast: (HANDLE)(HANDLE)hProcess.
Error 26 error C2664: 'BOOL (HANDLE,DWORD,PVOID,DWORD,PDWORD)' :
cannot convert parameter 2 from 'void *' to 'DWORD'
../../../../lib/exceptionhandler/exchndl.cpp: In function ‘BOOL IntelStackWalk(DWORD, void*, void*, _tagSTACKFRAME*, CONTEXT*, BOOL (*)(void*, const void*, void*, DWORD, DWORD*), void* (*)(void*, DWORD), DWORD (*)(void*, DWORD), DWORD (*)(void*, void*,
_tagADDRESS*))’:
../../../../lib/exceptionhandler/exchndl.cpp:599: error: invalid conversion from ‘long unsigned int’ to ‘const void*’
Since it needs a void *, no, I mean a DWORD, no, I mean a void *, the obvious solution is to add a cast: ...id *)(DWORD)(void *)(DWORD)(void *)StackFrame->AddrFrame.Offset
2010-12-23 13:06:13 +01:00
buginator
012029622d
Merge branch 'master' of github.com:Warzone2100/warzone2100
...
* 'master' of github.com:Warzone2100/warzone2100:
Try to fix the cross compile.
Fix releaseBranch script to handle netplay.cpp instead of netplay.c.
Simplify targetting projectiles.
Fix WZ_DECL_CONST -> WZ_DECL_PURE on src/vector.h.
Clean up some weird invalid PROJECTILE * -> BASE_OBJECT * casts.
Make structures rectangular instead of circular for the purposes of projectile collision detection.
Remove SPACETIME C wrapper around Spacetime.
Remove redundant memset()s in loadGame.
Use default constructors instead of memset for W_INIT (widget init) derivatives.
Fix game saving/loading.
Reset constructor upgrade between games.
Remove ORDER_LIST_MAX and the corresponding 10 order limit to droid order queues.
Use --debug=memory to see sizeof(...) for the various object types.
2010-12-22 22:47:40 -05:00
Cyp
76690bbc4b
Try to fix the cross compile.
2010-12-23 03:14:32 +01:00
Cyp
0f3974c3d3
Fix releaseBranch script to handle netplay.cpp instead of netplay.c.
2010-12-23 02:40:49 +01:00
Cyp
3d7939e525
Simplify targetting projectiles.
...
Also, made projectile misses be in random directions instead of picking one of 8 directions.
2010-12-23 01:42:18 +01:00
Cyp
c7e9e05d30
Fix WZ_DECL_CONST -> WZ_DECL_PURE on src/vector.h.
...
Think not allowed to use WZ_DECL_CONST on functions that take references to parameters. The compiler should be able to optimise inline functions properly even without any WZ_DECL_BLAH, anyway.
2010-12-23 01:42:18 +01:00
Cyp
c875c639b7
Clean up some weird invalid PROJECTILE * -> BASE_OBJECT * casts.
...
And make some functions take SIMPLE_OBJECT * instead of void *.
2010-12-23 01:42:18 +01:00
Cyp
85c08b05f9
Make structures rectangular instead of circular for the purposes of projectile collision detection.
...
Lasers hitting cyborg factories look less weird now.
Changelog: Structures are now rectangular for projectile collision detection, not round.
2010-12-23 01:40:30 +01:00
Cyp
93f4c3060b
Remove SPACETIME C wrapper around Spacetime.
2010-12-22 21:56:52 +01:00
Cyp
e1f3cdc7e7
Remove redundant memset()s in loadGame.
...
The same variables were memset()ted in loadStructureStats() and statsInitVars().
2010-12-22 21:08:16 +01:00