it used to divide by wait_delay, but in practice wait_delay + 1 is used.
Unfortunately, this means if you want integer numbers, you'd have to
multiply everything by gcd(5, 7, 9, 11), instead of gcd(4, 6, 8, 10).
This would be too big, so I had to use rounded numbers.
The number displayed now is the amount of energy gained per second.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1432 8092fc87-c524-0410-9efc-e669fe64eaf9
rerun './build.sh config' as build.vars.in has been modified.
Also fixed some small bugs in the redirection of text to /dev/null.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1413 8092fc87-c524-0410-9efc-e669fe64eaf9
Also, ~ and environment variables are interpreted in the supplied
content path now.
There's no longer a hardcoded fallback for CONTENTDIR in starcon2.c, as it
should always be defined in config.h.
Don't look for content in the default directories if an explicitely
supplied path failed. It would only confuse users.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1406 8092fc87-c524-0410-9efc-e669fe64eaf9
- renamed the DEBUG define for debugging specific code. In the top of
the relevant files there is an commented out define to activate
debugging for that file.
- removed entire DEBUG sections where it is no longer relevant
- compile with DEBUG defined when building a debugging binary
Code that produces general warnings is kept in DEBUG blocks.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1376 8092fc87-c524-0410-9efc-e669fe64eaf9
Beginning of the creation of somewhat general-purpose widgets for the
setup menu and related functionality.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1369 8092fc87-c524-0410-9efc-e669fe64eaf9
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
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
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
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
You *must* hold the GraphicsLock when calling SetFlashRect.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1265 8092fc87-c524-0410-9efc-e669fe64eaf9
This is a near-total reorganization. Full details will appear in
doc/devel/threads when that document is completed.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1257 8092fc87-c524-0410-9efc-e669fe64eaf9