3883 Commits

Author SHA1 Message Date
Meep-Eep 64ffdebd4c Changed SetFlashRect to use the new flash code.
This is an intermediate step towards getting rid of the flash thread altogether.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3722 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-29 23:38:38 +00:00
Meep-Eep 63b1e02620 More comment fixes.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3721 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-29 22:30:42 +00:00
Meep-Eep e577ef1ca0 Change 'if' chain to switch.
Now why didn't I use a switch in the first place?



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3720 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-29 21:29:16 +00:00
Meep-Eep 8a3315c87d Fix comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3719 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-29 21:18:08 +00:00
avolkov e87c43f0b8 Still no mid-block variable declaration in VC6. No matter how hard you try, VC6 just won't accept it! :P
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3718 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-29 15:00:32 +00:00
Meep-Eep af37314aaf Added Valgrind suppression file, from Louis Delacroix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3717 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 20:24:21 +00:00
Meep-Eep 3e8b8bf30e Cleanup, simplify, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3716 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 19:40:24 +00:00
Meep-Eep d7ae2bbc66 Reapply. Old SDL versions could return -1 (probably as a bug).
We might as well handle this case.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3715 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 18:43:45 +00:00
Meep-Eep 1d530a2ffb Revert; SDL_PollEvent() never returns -1.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3714 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 18:31:23 +00:00
Meep-Eep c64e15b9e5 SDL_PollEvent may return -1. Handle this.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3713 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 18:26:00 +00:00
Meep-Eep ef086c3fb4 Fix memory leak, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3712 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 18:00:11 +00:00
Meep-Eep dc1dfcba27 Fix a few memory leaks, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3711 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-28 17:51:58 +00:00
Meep-Eep 41680a3e99 Small step towards cleaning up this mess.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3710 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-26 01:35:07 +00:00
Meep-Eep 5fd7d584ce Fix memory leak, from louisdx.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3709 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-21 18:03:45 +00:00
Meep-Eep 706dbb3cd9 Fix for a few warnings.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3708 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-21 17:59:49 +00:00
Meep-Eep 6bdee53e70 Removed a few explicit casts which caused warnings. (From louisdx)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3707 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-21 17:58:57 +00:00
Meep-Eep d649de4199 Remove superfluous semicolons, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3706 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-21 17:43:44 +00:00
Meep-Eep d010a7d3f7 Fix comment.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3705 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-20 22:15:43 +00:00
Meep-Eep b57fa73233 Make some declarations forward declartions, to prevent dependency hell in
upcoming changes.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3704 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-20 21:55:41 +00:00
Meep-Eep 3d91a7cf07 Added a callback function for keys.
Also some more comments.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3703 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-20 20:16:17 +00:00
Meep-Eep 2fdbcc6f78 Annihigate ActivateStarShip().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3702 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-16 21:01:55 +00:00
Meep-Eep 38ee94f05e Removed obsolete RESPONSE_TO_REF.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3701 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-16 17:30:27 +00:00
Meep-Eep cc63dda758 Don't require the 'shadow' dir in addon packs, from Alex.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3700 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-10-01 15:55:13 +00:00
Meep-Eep f349ffad5e Some comments for easier counting.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3699 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-10-01 15:40:10 +00:00
Meep-Eep de41280e07 Update.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3698 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-10-01 15:30:21 +00:00
Meep-Eep e2c6926c7b Make use of GAME_STATE_FILE consistently.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3697 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-10-01 14:54:18 +00:00
Meep-Eep e37fd2c51f Fixed unconst() types.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3696 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-10-01 14:15:35 +00:00
avolkov 094c7d6e15 Refactor scan nodes generation funcs: get rid of PLANET_INFO.CurXXX fields and pass a struct to generation funcs to fill instead; makes SOLARSYS_STATE const for the funcs; gets rid of unconst casts; bug #50
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3695 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-09 21:36:34 +00:00
avolkov d2358e1e51 Planet/system generation code cleanup: isolate generation code with an own RandomContext; generation funcs do not return the random seed anymore; move and cleanup some calculation funcs; clarify deliberate Random() truncation; other random cleanups
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3694 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-09 01:59:12 +00:00
avolkov 128bfaa8d4 Eliminate the use of C++ keyword 'template'; bug #1131; from Scott A. Colcord
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3693 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-08 15:25:32 +00:00
avolkov 9f1fc6f6d1 Fix prototype warning in libs/file
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3692 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-07 18:07:26 +00:00
avolkov f7546d3b30 Fix strict warnings in screen scalers, bug #50; from Sze Howe Koh
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3691 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-07 18:03:10 +00:00
avolkov bb33e30b79 Update the scripts for cross-building on Cygwin to Mingw with gcc 4 (-mno-cygwin is now gone)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3690 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-07 06:17:23 +00:00
avolkov 6f6c5c0788 Add -O0 to strict debug build type to match others
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3689 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-07 01:01:12 +00:00
avolkov 36baefcfdd Various strict warnings cleanup, bug #50; from Scott A. Colcord
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3688 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-06 22:14:20 +00:00
avolkov b28d379c73 Added -Wdeclaration-after-statement to strict warnings build; removed -O1 not needed for gcc 4; from Scott A. Colcord
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3687 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-06 21:20:40 +00:00
avolkov 58866e1be5 Remove casts from DUCK video decoder which cause function cast warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3686 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-06 17:33:18 +00:00
avolkov 72e57be70d Remove casts from mixer resampling code which cause function cast warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3685 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-06 17:27:37 +00:00
avolkov 24251176b7 Sort out the inplib SDL includes
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3684 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-06 17:25:13 +00:00
avolkov 12add1f596 Fix transposed memset() parameters in aiff decoder
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3683 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-05 16:16:41 +00:00
avolkov 32bc325ff5 Dodge compiler warning in MikMod driver because MikMod_Init() does not take 'const char*'
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3682 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-05 16:10:56 +00:00
avolkov 103f9379a4 Removed retired function TFB_BlitSurface()
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3681 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-05 16:06:48 +00:00
avolkov db13af9444 Remove TotalElementMass from the strip ship random seed mix because the player can dump cargo and change the seed; bug #567
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3680 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-01 18:58:13 +00:00
avolkov cb289eee65 Account for slight movement in HyperSpace due to encounters in Melnorme strip ship random seed; bug #567
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3679 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-09-01 17:48:11 +00:00
avolkov d5d30cc08a Fix double free() of RandomContext in Melnorme comm
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3678 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-30 15:59:39 +00:00
Meep-Eep 3632e6a2b5 Update
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3677 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-28 20:22:44 +00:00
Meep-Eep 40b41b9ed8 Fix order of MountInfo. From fossil.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3676 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-28 20:15:45 +00:00
Meep-Eep dd5c1dfdb8 Increment correct ref counter. From fossil.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3675 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-28 19:55:08 +00:00
mcmartin ee3cf76487 update ChangeLog
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3674 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-27 21:00:49 +00:00
mcmartin f3928c731a Conversation logic refinements (#567, #756)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3673 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-08-27 20:55:32 +00:00