Meep-Eep
a6a7b843d0
Use an own 'UniChar' rather than 'wchar_t', which may not be large enough, depending on the platform.
...
Also split off UNICODE functionality from strlib.h into unicode.h.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3375 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-30 20:09:57 +00:00
Meep-Eep
5e4b5c3c5f
Clean up DeltaSISGauges a bit more.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3374 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-30 18:52:15 +00:00
Meep-Eep
1d07ed79a2
Little fix.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3373 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-30 17:44:59 +00:00
Meep-Eep
b5824cca45
Little fix.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3372 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-30 17:43:30 +00:00
avolkov
375909497e
Small MSVC compilation fix
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3371 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-30 14:58:10 +00:00
Meep-Eep
75c11e7822
Added 'COLOR' resource type.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3370 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-29 23:32:02 +00:00
Meep-Eep
85a10c006c
Drawing functions take their color as a Color argument, instead of as separate r, g, and b arguments.
...
This paves the way for using draw operations with an alpha channel.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3369 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-29 19:54:51 +00:00
Meep-Eep
b67323f0b4
Alpha value of 0xff is fully opaque
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3368 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-29 19:11:51 +00:00
Meep-Eep
e6b2bc9930
All graphics operations use 24-bits colors at the game level too now,
...
instead of 16 bits colors. Using a structure 'Color' instead of 'COLOR'
and 'TFB_Palette' now.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3367 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-29 15:29:38 +00:00
Meep-Eep
af41b0f118
Fix warning.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3366 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 22:06:18 +00:00
Meep-Eep
7405dbcf55
Remove another dependency on the VGA palette index in COLOR.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3365 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 20:43:08 +00:00
Meep-Eep
cf6a9378ef
Removed another dependency on the VGA register byte in COLOR.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3364 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 20:03:05 +00:00
Meep-Eep
ef66877a29
Move MSVC welfare (v)snprintf() functions to utils.c.
...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3363 8092fc87-c524-0410-9efc-e669fe64eaf9
2009-11-28 19:44:10 +00:00
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
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
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