3883 Commits

Author SHA1 Message Date
avolkov 4c4a80c64b MSVC compilation fix for vsnprintf()
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3362 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 19:21:08 +00:00
Meep-Eep 1c6b9baa73 Make snprintf/vsnprintf more compatible with the C standard on MSVC.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3361 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 18:00:46 +00:00
Meep-Eep 441b7d9cdf Remove dependency on VGA index field in COLOR.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3360 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 16:36:40 +00:00
Meep-Eep c0481ea13c Remove another dependency on the VGA register field in a COLOR.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3359 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 16:23:36 +00:00
Meep-Eep e3862aefcd Get rid of one abuse of the vga palette index of a COLOR to store state.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3358 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 15:07:38 +00:00
Meep-Eep 74c013217e Cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3357 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 13:46:56 +00:00
Meep-Eep 2c63415b36 Cleanups; separate model from view in some functions.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3356 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 01:53:47 +00:00
avolkov 98dbf1431b Comm animations task retired; Talking Pet mind control strobe reworked into an ambient animation; potential buffer overflow and potential wrong summary context fixed (counts towards bug #576)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3355 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-26 17:10:02 +00:00
avolkov 0489a89e70 Fold two input-dependent comm functions into DoInput() paradigm
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3354 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 21:43:48 +00:00
avolkov 27e4e770cc Remove last pSolarSysState reference from generate functions
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3353 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 12:48:27 +00:00
avolkov b3c85f3c19 Restore tab indentation
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3352 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 12:08:01 +00:00
avolkov 7dde9add97 Use buffer size aware string func variants
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3351 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 11:55:19 +00:00
mcmartin 76abf75aaa Improved safemode; --safe option now ignores uqm.cfg entirely.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3350 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 03:40:49 +00:00
mcmartin 700305b994 Fix some format string warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3349 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-25 03:38:49 +00:00
Meep-Eep bd640f38dc Add a SOLARSYS_STATE parameter to initNpcs(), reinitNpcs(), and uninitNpcs().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3348 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-24 18:40:38 +00:00
avolkov f2c5cb505a Cleanup: unused hacky REPAIR_SCAN removed
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3347 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-23 11:12:00 +00:00
avolkov 4fa963e4e5 Oops fix for r3345: should not leak FRAMEs
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3346 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-23 11:08:44 +00:00
avolkov d4155e0ebe Standardized context frame save/restore; not yet used everywhere it should be
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3345 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-23 11:03:41 +00:00
avolkov b48fe236bd Correct Chmmr response for what_about_samatra question; bug #1073
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3344 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-23 09:50:33 +00:00
avolkov ff07a6b73e Cleanup of input wait functions and looped AnyButtonPress() uses
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3343 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 23:40:56 +00:00
Meep-Eep a44f12cfe7 Give more colors a name, and move them to colors.h
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3342 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 17:58:28 +00:00
avolkov c99241ca22 Cleanup: removal of pLanderInputState global
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3341 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 17:47:12 +00:00
avolkov 68579000ce Cleanup: ScanContext dispensed by scan.c
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3340 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 17:11:33 +00:00
Meep-Eep 8465e0ab19 Further cleanup (or start thereof).
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3339 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 14:59:06 +00:00
Meep-Eep 09ec2f57ab Cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3338 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 14:03:56 +00:00
Meep-Eep 8a7344c337 Cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3337 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 12:53:53 +00:00
Meep-Eep 3ed5978b79 One less dependency on pSolarSysState.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3336 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-22 11:12:37 +00:00
avolkov 9d1009ae96 Fixed MSVC project file for r3334
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3335 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-21 22:00:15 +00:00
Meep-Eep 76d4261313 Refactoring the universe generation code.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3334 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-21 21:04:45 +00:00
avolkov 7d3e5b3511 Header and name cleanup: moved stuff around to relevant headers; removed some irrelevant #includes; better names
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3333 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-21 01:15:21 +00:00
avolkov e40d9499b2 Remove some scan map 'repair' hacks. We redraw the entire scan map, instead of repairing, since 3DO
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3332 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-20 20:14:35 +00:00
avolkov d595d40186 Removal of redraw hacks obsoleted by revisions 390 (introduction of SOLARSYS_STATE.PauseRotate), 469 (save of screen state) and 1321 (abolishment of IPtask_func); dead PlayMusic() hacks also removed; also fixes bug #868
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3331 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-20 18:37:32 +00:00
avolkov 7b5395ae9c Oops, remove the hack that should have been removed in r3309
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3330 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-20 17:14:20 +00:00
avolkov 5be8df3e5f Bugfix: defer deactivation of ended animations until all animations have been processed for the frame; this makes BlockMask tests stable and prevents early activation of a conflicting animation
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3329 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-20 15:31:08 +00:00
avolkov fe137f036c Arilou animations fixes: set WAIT_TALKING flag for the correct anims; flag some mutually-exclusive anims; couple comments
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3328 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-19 13:49:36 +00:00
avolkov ee568fd1a2 Bugfix: off by 1 mouth parts animation position
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3327 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-19 13:15:51 +00:00
avolkov 3efb6a0ce4 Bugfix: soft landing independent of the visible surface height
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3326 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-19 00:42:29 +00:00
Meep-Eep 7b0531a55f Get rid of warning.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3325 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 20:27:18 +00:00
avolkov 68875aae86 Get rid of 75 MSVC type truncation warnings with a pair of ( )
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3324 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 18:55:22 +00:00
avolkov b3b12c4903 Fix compilation in release mode busted in r3320
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3323 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 18:33:41 +00:00
Meep-Eep 4d6bf78840 Fix warning (for qsort).
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3322 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 18:27:42 +00:00
avolkov 38d67e3dd4 Lander cleanup: former MENU_STATE fields sorted out; some pointless casts removed; some comments; other random changes
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3321 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 17:46:46 +00:00
avolkov be294b091b The utter destruction of pMenuState
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3320 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 13:27:48 +00:00
avolkov 4a7f6c22f8 Uncoupled planet location selection from pMenuState and MENU_STATE
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3319 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 12:55:10 +00:00
avolkov fcb537e47f Removed references to pMenuState from comm (required parameter carried forward); some header file cleanups; comments and minor cleanup of Starbase
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3318 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 05:39:40 +00:00
avolkov 2e14cd01f0 PlayingTrack() is now reliable enough that we do not need the extra hacky test
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3317 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 01:59:57 +00:00
avolkov 79d3083dfc PlayingTrack() is now reliable enough that we do not need the extra hacky test
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3316 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 01:57:06 +00:00
avolkov 963a6fb808 Bugfix: make RANDOM_ANIM end on a neutral frame
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3315 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 00:07:33 +00:00
avolkov c7873c49e0 Some animation comments
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3314 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-18 00:02:10 +00:00
avolkov 4754c6116d Stabilizing the lander rate caused some problems, and so it's back to unstable
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3313 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-17 21:54:05 +00:00