2582 Commits

Author SHA1 Message Date
Meep-Eep dddfcdfd9f Fix compilation with netplay disabled.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2955 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-20 19:27:38 +00:00
Meep-Eep fb780f8b1c Fix informational message.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2954 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-15 22:32:39 +00:00
Meep-Eep 3689bdaaf7 Use the same definition of 'bool' as in uio.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2953 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-14 20:31:17 +00:00
Meep-Eep 76ba833da4 Added endian-aware integer read functions to uio
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2952 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-12 22:38:13 +00:00
Meep-Eep 2d15dc4501 Fix cyborg control in the full game.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2951 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-11 00:21:44 +00:00
Meep-Eep f9b0a5c680 Introduce the concept of an "InputContext".
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2949 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-08 23:00:57 +00:00
Meep-Eep 244eec1c77 Typo.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2948 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-08 21:12:16 +00:00
Meep-Eep 93731f2dd7 Correction.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2947 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-02 23:14:41 +00:00
Meep-Eep d3ca93c5f9 Banished alloca().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2946 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-02 20:52:36 +00:00
Meep-Eep 785c67bdf9 Cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2945 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 22:25:31 +00:00
Meep-Eep 7d84a332f9 Cleanup.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2944 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 22:15:18 +00:00
Meep-Eep a37c2dad7b Cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2943 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 22:08:47 +00:00
Meep-Eep 922b5f5f28 Even better description.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2942 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 21:57:13 +00:00
Meep-Eep 80b971bd51 "Battle groups", not "battle group"
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2941 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 21:46:05 +00:00
Meep-Eep d662b44e5f Replace PlayerOne/PlayerTwo by PlayerControls[0]/PlayerControls[1].
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2940 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 21:36:11 +00:00
Meep-Eep 2231724cf0 Replace PlayerOne/PlayerTwo by PlayerControls[0]/PlayerControls[1].
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2939 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 21:32:43 +00:00
Meep-Eep 5e13669045 Better comment.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2937 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 21:02:18 +00:00
Meep-Eep bcfb97dfff Whitespace
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2936 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 20:15:16 +00:00
Meep-Eep a014449dde Some comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2935 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 20:06:22 +00:00
Meep-Eep bdf7f57b49 whitespace
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2933 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 19:49:33 +00:00
Meep-Eep 6094bbcd75 typo
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2932 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 19:48:26 +00:00
Meep-Eep 516fd79832 update
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2931 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 19:48:12 +00:00
Meep-Eep 8fa8807cc5 Formatting, comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2929 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 19:40:53 +00:00
Meep-Eep 67035d8b33 Give the player some escort ships when the debug button is pressed.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2928 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-03-01 19:29:06 +00:00
mcmartin b3dcf06737 Communications resource information has been folded into starcon.ls2.
The comm/*.ls2 files have been retired.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2927 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-25 05:19:49 +00:00
mcmartin 9f577a4abe Repackaged all non-code ship and comm data.
Every resource that isn't of type CODE now has a resource ID that
will not conflict with any other resource, even without switchable
resource indices.

CODE-type resources currently rely on the ability to switch out
such values, and so have been left alone for now.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2926 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-25 00:44:49 +00:00
mcmartin 9d914998b9 Removed a bizarre, incorrect constant that should never have been
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2924 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-24 21:46:49 +00:00
Meep-Eep f82c0251f5 Fixed bug.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2920 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-07 09:06:56 +00:00
Meep-Eep de203d2f6c On MacOS X, search for the content in the application bundle, from Nic.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2919 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-07 00:01:07 +00:00
mcmartin 58b9361927 Final preparation for the replacement of integer-based resources.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2918 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-06 10:08:57 +00:00
mcmartin d0bd867fe7 Planetary .ct/.xlt files uniformly indexed
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2917 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-04 06:45:27 +00:00
mcmartin 4c3e4cf122 Properly handle cleanup of the Eta Vulpeculae II stringtable (Bug 1028)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2915 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-02-01 08:09:07 +00:00
mcmartin 7293c26b96 Removed the package preloading.
Anything that might have depended on this is long gone and the only 
possible result of it now is more memory leaks.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2910 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-21 00:43:02 +00:00
mcmartin ca7212d789 Shifted type information from .ls2 to .rmp files
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2909 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-17 18:58:31 +00:00
mcmartin 1cdd7012db Minor cleanups, reformatting to fit code style and removing dead code
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2907 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-14 15:46:57 +00:00
mcmartin 6c1d59fef6 Joystick threshold defaults to 10000, not 0
Fixes Bug #1046.  Ideally, one could configure the threshold, but in 
practice if 10000 doesn't work it's an SDL bug.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2906 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-14 15:24:48 +00:00
mcmartin 8187d2cf74 Fixed some misaligned function signatures.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2905 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-12 06:44:12 +00:00
mcmartin 4e90ff83e9 Fixed the multiple typedef of DRAWABLE_DESC.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2904 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-12 06:21:42 +00:00
mcmartin 456dcabfa0 Replaced the memlib with malloc and free.
The old behavior may be reinstated by defining LEGACY_HANDLE_ALLOCATOR.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2903 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-12 06:19:37 +00:00
mcmartin 1ed8351af1 Fixed a rare race condition triggered when a thread is dequeued while another is having its name checked
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2902 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-12 06:18:05 +00:00
mcmartin 4acc058c4f Finished memory refactoring.
MEM_HANDLE and friends are no longer visible to the main code at all, which now treats everything as pointers.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2901 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-12 05:21:49 +00:00
avolkov 8199596810 Fixed some trivial missing #includes
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2900 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-09 08:00:27 +00:00
mcmartin 40839c88ec Separated RESOURCEs from the resources they specify
in ship and comm structures.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2899 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-08 09:43:44 +00:00
mcmartin 720f1ddd76 starcon2.c should not include strintrn.h, even indirectly
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2897 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-07 21:40:25 +00:00
mcmartin b414fd7c76 gcc doesn't like multiple typedefs
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2896 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-07 12:36:40 +00:00
mcmartin 50891df161 Refactored STRING to operate more like FRAME.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2895 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-07 12:22:10 +00:00
Meep-Eep 98488b97e4 Prevent overflow for planet weight when scanning a planet.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2893 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-05 19:27:48 +00:00
Meep-Eep 7a82c28524 Don't set _POSIX_THREAD_SAFE_FUNCTIONS. It does not mean "I want thread-safe
functions", it is set by the system to mean "you've got thread-safe functions".



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2892 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-05 18:40:17 +00:00
mcmartin b66d240412 DRAWABLE and STRING_TABLE turned into flat memory references.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2891 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-01-02 22:54:33 +00:00
mcmartin 91e0374f9e First steps towards consistent use of HMalloc.
DRAWABLE, FONT, and a few others which mix memory handles with flags still remain; this patch catches the low-hanging fruit.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2890 8092fc87-c524-0410-9efc-e669fe64eaf9
2007-12-31 00:42:33 +00:00