4014 Commits

Author SHA1 Message Date
mcmartin 4fecf6381c Space Marines die if on board a self-destructing Scout, from Nic
(fixes bug #445)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1324 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-19 07:51:14 +00:00
mcmartin 8fe1920a51 Added -l option for logfiles (#560), from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1323 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-19 07:26:40 +00:00
mcmartin 2d5b681991 ZFP subtitles vertically aligned properly (#567), from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1322 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-19 07:11:34 +00:00
mcmartin ba1e64a6be Interplanetary code is folded into a single thread
All player input code is now brokered through DoInput


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1321 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-19 06:19:43 +00:00
mcmartin e082deb9f6 Added more complete .cvsignore files, from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1320 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-08 06:47:10 +00:00
mcmartin dac85fa62f Updated
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1319 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-05 08:32:21 +00:00
mcmartin 074e3032c6 Properly reset keyrepeat delays when cancelling starmap
In 0.3, if you go to the starmap, cancel, then go back to the menu, all
while in IP, you'll end up keeping the (very fast) starmap keyrepeat for
the menu itself.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1318 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-05 08:31:12 +00:00
mcmartin c2f4470cb2 Rely on UpdateInputState's keyrepeat
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1317 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-02-05 08:29:57 +00:00
gewlitys ca35d119fa Removed again some already deleted files which reappeared due to some
bizarre cvs glitch


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1316 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-27 19:24:30 +00:00
mcmartin 75ef6e0412 Input code refactoring, phase 2
PickMelee uses DoInput now, which also fixes some glitches involving
the keyrepeat when flight and menu keys are identical


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1315 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-25 06:00:53 +00:00
mcmartin 9df58b5f93 Input refactoring, phase 2
Eventural conversion of all input to use the DoInput regime.
This patch covers HyperSpace and ship-to-ship combat.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1314 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-21 21:51:07 +00:00
mcmartin 370d5a07b1 Input code refactoring, phase 1
Simplified the gameinp routines; "CurrentInputState" and
"PulsedInputState" allow for keyrepeat information to be available or
ignored for every input action in the game.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1313 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-15 09:09:05 +00:00
mcmartin 7b2d5a6427 Input refactoring, phase 1
Instead of two structs with many members, these structs are now an array
indexed by an enum.  This makes it easier to take actions on the entirety
of the input state.  The input core itself (input/ and gameinp.c) look a
lot messier at the moment; phase 2 will be to clean them up.  This phase is
mostly to get "typographical" changes across the code out of the way first
to minimize update disruption.

This refactoring has the eventual goal of eliminating the special purpose
input code scattered throught battles, SuperMelee's menus, and IP
exploration.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1312 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-15 07:52:45 +00:00
mcmartin 702455687a Thread creation and destruction is now handled by the main loop.
Some modifications to the initialization code were also necessary
to keep the system from deadlocking itself immediately; only subthreads
may now call CreateThread or AssignTask.

All threads are guaranteed to get a WaitThread () on them when they're
finished now, which hopefully will stop thread ID leaking (bug #561).


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1311 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-09 19:11:13 +00:00
gewlitys 248e1e4d6b Sound code refactoring: core api is now virtualized, MixSDL is divided to generic mixer and driver entities
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1310 8092fc87-c524-0410-9efc-e669fe64eaf9
2004-01-04 03:38:04 +00:00
gewlitys b729f3f1bc Optimized MixSDL mixing and resampling routines (mono sources are no longer converted to stereo; removed "clipping smoothing" as it's not really the correct way to handle that; resampling routines now use integer arithmetic for calculating position; + some misc changes). This might fix bug #435.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1309 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-31 20:03:17 +00:00
gewlitys 41140b0e29 Don't use mikmod's hqmixer on big endian machines (workaround for bug #166)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1308 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-31 19:51:34 +00:00
gewlitys 91815f5676 _WINDOWS is not needed after all
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1307 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-24 00:40:01 +00:00
gewlitys 3f8cbbacf4 Added some defines to avoid zlib linking problems in VC
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1306 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-24 00:23:23 +00:00
gewlitys 2eaee9af88 Better-looking slave shield (bug #32), from Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1305 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-17 15:06:02 +00:00
mcmartin 48e9ffceb4 NOT_LIKELY timings (bug #549), from chmmravatar
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1304 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-14 15:52:58 +00:00
mcmartin b7152e3ee5 Skipping bay door animations works properly now (bug #500), from chmmravatar
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1303 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-14 15:47:32 +00:00
mcmartin 214298e9b0 Removed a couple more warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1302 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-14 15:42:42 +00:00
mcmartin 50c7f587bc Use OpenGL types for OpenGL functions (from Nic)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1301 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-14 15:11:55 +00:00
gewlitys efe74ead59 Reports SDL version on startup (bug #520) - Mika,Nic
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1300 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-10 23:31:08 +00:00
gewlitys 22e435c1f5 Fixed a typo
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1299 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-10 23:27:22 +00:00
gewlitys 363f1e0e57 Fuel usage on planet landing is now reported correctly on all situations
(bug #556), from Nic


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1298 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-10 22:37:18 +00:00
mcmartin 2d799750ba Fixed boneheaded error introduced by previous commit (#555)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1297 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-08 05:04:29 +00:00
mcmartin d91cb3953d Added a discussion of the various data structures used by the DoInput()
regime, and by StarCon2Main.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1296 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-07 07:18:56 +00:00
mcmartin c4eca53dbc Fixed some glitches with crew modification (Bug #554)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1295 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-06 08:33:47 +00:00
mcmartin ecce133af3 Fine control on menu sounds (bug #449)
Smoothed out various warts in the interfaces that had to do with the
global sound resource going NULL on occasion.  Added sounds for page
up/down where appropriate.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1294 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-05 07:29:02 +00:00
gewlitys fbb8e3db38 Formatting changes to comply with 78 chars line width
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1293 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-04 14:04:04 +00:00
gewlitys 4e74536a12 Replaced __FUNCTION__ with hand written string because VC6 doesn't
support it


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1292 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-04 13:07:17 +00:00
gewlitys d8400d22de Added libs/uio/utils.* to VC project file; renamed sc2code/utils.c to
util.c to work around stupid conflict with VC6 (fixes bug #553)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1291 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-12-03 23:15:23 +00:00
mcmartin 0eb24a6903 Dialogue fix: "What" -> "Why"
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1290 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-11-29 00:58:34 +00:00
meep-eep 7b882e5025 Updating with recent uio changes.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1289 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-11-02 12:52:47 +00:00
meep-eep 6065182283 Support for stdio file access through temporary files.
Added relevant functions:
uio_StdioAccessHandle *uio_getStdioAccess(uio_DirHandle *dir,
        const char *path, int flags, uio_DirHandle *tempDir);
const char *uio_StdioAccessHandle_getPath(uio_StdioAccessHandle *handle);
void uio_releaseStdioAccess(uio_StdioAccessHandle *handle);
These are made available by including "uioutils.h" in addition to "uio.h".

An other function that's available through uioutils is
int uio_copyFile(uio_DirHandle *srcDir, const char *srcName,
        uio_DirHandle *dstDir, const char *newName);


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1288 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-11-02 00:55:18 +00:00
avolkov 07fb0bd04e Interface changes: no more KIND ints, all context.name strings now;
Initial version of Event system


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1287 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-27 05:01:10 +00:00
avolkov a6e4933338 Interface changes: no more KIND ints, all context.name strings now;
Initial version of Event system


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1286 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-27 04:50:06 +00:00
meep-eep a1656ce168 This file shouldn't have been committed in the first place.
It just contains some thoughts on uio for my own use.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1285 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-26 21:53:23 +00:00
meep-eep d3938135ae Added uio_getFileLocation() and uio_getMountFileSystemType() to uio.
Also some small improvements.

I did not add uio_getPhysicalAccess, as I erroneously logged for some other
files. That function is changed a bit, but it existed before.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1284 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-24 02:49:26 +00:00
meep-eep b45a4e4ffd Added uio_getPhysicalAccess(), uio_getMountFileSystemType() and
some small improvements.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1283 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-24 02:36:27 +00:00
avolkov c8ba5aed50 CDP module sample -- .abx audio decoder
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1282 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-19 17:51:25 +00:00
avolkov bedf97dead First CDP draft
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1281 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-19 17:48:37 +00:00
avolkov b28f8ef04d Decoder interface additions and changes
in preparation for the upcoming CDP architecture --
support for registering external decoders;
DukVid file IO changed from resX to uio


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1280 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-19 11:36:14 +00:00
avolkov c5071bbaae Decoder interface additions and changes
in preparation for the upcoming CDP architecture --
support for registering external decoders


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1279 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-19 11:33:31 +00:00
meep-eep c4fc899bcf Fixed fuel usage estimate to selected destination on the starmap.
Original bug, not reported.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1278 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-16 21:38:13 +00:00
mcmartin 250bd3e466 Task control normalized
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1277 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-16 08:12:11 +00:00
mcmartin 090123215e Typenames changed to avoid namespace conflicts (#481)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1276 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-16 08:10:54 +00:00
mcmartin cca8df2c74 Fix on player's lines (bug #515)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1275 8092fc87-c524-0410-9efc-e669fe64eaf9
2003-10-13 16:33:03 +00:00