2582 Commits

Author SHA1 Message Date
Meep-Eep bf0d86fcf3 Ships to buy didn't flash in the shipyard in PC menu mode.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3756 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 21:10:41 +00:00
Meep-Eep f74e575841 Fix for src\uqm\outfit.c(569) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3755 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 19:47:22 +00:00
Meep-Eep d6738ca687 Hibernate, not Sleep.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3754 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 19:30:52 +00:00
avolkov 18a399eea7 Fixes 3d planet lighting map calculations, bug #1151, from Louis Delacroix
Relative lighting factor in GenerateLightMap() should now be reexamined to determine what algorithm works best.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3753 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 19:08:30 +00:00
Meep-Eep 8abe057e2a Add/Remove fuel 10 at a time with PageUp/PageDown, from from Scott A. Colcord, Nic.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3752 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 19:02:33 +00:00
Meep-Eep 3a54081af8 Some cleanups and bug fixes.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3751 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-28 17:07:35 +00:00
Meep-Eep d8d201ee54 Annihigate flash thread.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3750 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-27 23:29:03 +00:00
Meep-Eep 20e2ea337f Switch SetFlashRect() to the new flash code, as the next step towards getting rid of threads. Also some small cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3749 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-23 20:14:45 +00:00
Meep-Eep e8cfeed54b No bitfields here.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3746 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-14 20:10:11 +00:00
avolkov 65f46689f3 Fix leaked TFB_Image.FilledImg
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3744 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-13 17:16:23 +00:00
mcmartin c16883fce4 Cleanup: purge the DCQ of the data it owns on the way out of the program.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3743 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-10 07:20:33 +00:00
Meep-Eep 3d32d8ad2c A few comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3742 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 14:15:05 +00:00
Meep-Eep 3da5e55c1c Fix flashing when pressing the 'spin ship' button on an empty slot
or the flag ship.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3741 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 13:49:39 +00:00
Meep-Eep a86e795d9e Locking fix. Also change the locking behaviour of DMS_SetMode, to avoid repeated locks/unlocks and make the code invoking this function a bit cleaner.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3740 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 12:58:38 +00:00
avolkov 06d61df3d3 Fix uninitialized img->dirty in TFB_DrawImage_New(), from Louis Delacroix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3739 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 04:04:51 +00:00
avolkov 779b955501 fix out of bounds (off by 1) access of vcontrol_parse_state::line
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3738 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 04:01:44 +00:00
Meep-Eep d62c5bfda3 More DoModifyShips() cleanups. That should be all for now.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3737 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-08 01:12:22 +00:00
avolkov 62e1200a05 Fix uninitialized RECT member as per Louis Delacroix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3736 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-04 04:35:29 +00:00
Meep-Eep 580d62c3a3 More cleanups. Among other things, MENU_STATE.flash_rect0 is no longer used.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3734 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 20:08:51 +00:00
Meep-Eep 7ad1112e61 More cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3733 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 19:02:27 +00:00
Meep-Eep dfd2cf0840 More cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3732 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 17:36:50 +00:00
Meep-Eep c65fc65f2b Fix for my earlier cleanup...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3731 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 16:47:49 +00:00
Meep-Eep 010f3507d0 More DoModifyShips() cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3730 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 16:41:38 +00:00
Meep-Eep 751427d909 More cleanups of DoModifyShips. We'll get to something comprehendible eventually.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3729 8092fc87-c524-0410-9efc-e669fe64eaf9
2012-01-01 01:59:12 +00:00
Meep-Eep deee6426a3 A few more comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3728 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-31 02:54:57 +00:00
Meep-Eep 3efe540ee4 Clean up DoModifyShips a bit more.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3727 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-31 02:40:15 +00:00
Meep-Eep fca250aaa1 Remove dead code; consistent use of 'extern'.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3726 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-31 01:58:11 +00:00
Meep-Eep 9815ef5737 Simplify.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3725 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-31 01:46:56 +00:00
Meep-Eep 85c3c334aa Some cleaning up of DoModifyShips(). More to come.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3724 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-31 01:39:02 +00:00
Meep-Eep 85b97fb673 Reverting. This one is not ready yet.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3723 8092fc87-c524-0410-9efc-e669fe64eaf9
2011-12-30 01:37:21 +00:00
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 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