Fixed display of recovery time.

The code would never display a recovery time of a single day. Fixed.
Fixed loading when battlescape AI has no state.

BattleUnit AI state is not always saved, so load should continue if it's not
found.
Fixed some compiler warnings.

Returning a const pointer (not a pointer to const) is not really useful, since
returns of scalar types are by value.

The warning was produced by g++ 4.7.2, using -Wignored-qualifiers.
Fixed memory leak in Game::loadLanguage().

We are now properly destroying the sidebar surface.
Merge pull request #210 from karvanit/fix-recovery-time-display

Fixed display of recovery time.
Merge pull request #216 from karvanit/fix-io-battleunit-ai

Fixed loading when battlescape AI has no state.
Bugfix for unconscious Cyberdiscs

will fix the exception at mission end if there is an unconsious cyber-disc.
might also fix the "respawning cyber-disc" bug (if this was indeed the cause)
Bugfix

Seems i have a bad habit of leaving empty contained statements lying around.
Graph Screen Grid Rendering

a relatively simple method to render the grid to display our data.
this is the most efficient method i could come up with.
also: it looks correct to the pixel.
Let's enable those other buttons

let's provide functionality for those 5 buttons, even if they won't do
anything yet.
Add Horizontal Scale to graphs

this commit is a bit like me really... raw, brutal, horrifically ugly but
dammit, it gets the job done.
if you don't like it, then YOU spend 3 hours trying to get this crap to line up.
Add Vertical Scale to graphs

oh god, this is a mess.
this class is starting to suffer some serious bloat issues,
but for the life of me, i can't figure out a better optimized method that
results in the text actually being where i want it.

if you can think of a better method... don't hesitate to send a PR.
Fixed bad formula - graph complete!

that didn't look right at all.
this looks a LOT better.

oh also, the graphs screen now has a working graph (background) that scales
properly according to the scores it's measuring, accurately displays month
and year information, and STUFF!
Bugfix for crash on debriefing

checking that we have a valid pointer doesn't work as a boolean expression.
so instead i used a boolean expression.
who would have guessed? that fixed it.
Merge branch 'master' of https://github.com/SupSuper/OpenXcom.git into ActivityScreens
Refactor: save more funding info

we now store the last 12 month's worth of month-ending funding levels.
because your savedgame is evil and needs to be punished.
more refactoring + code cleanup

and a few more coding buzz words.
moved some of the things we'll be doing a lot out into their own functions.
those buttons actually do something now, they change the vertical scale
units of the graph.
still no LINES drawn on it yet, but i'll need 7.4 billion buttons for that.
7.4 billion buttons added.

one for each country and region, and a total for both.
this is SO not gonna be modder friendly.
they'll have to add buttons by haxxoring code.
better graph scaling

now we have nice round numbers on the graphs screens
using these methods to get the results i wanted makes me sick to the stomach
if someone can come up with a formula that does the same thing PLEASE send a PR,
because this feels like the worst optimized piece of shitty code i've submitted.
i could substitute the series of else-ifs to a case statement, but that's just
a different way of dealing with the problem, not a solution.
Code Optimizations

aka: how i learned to stop worrying and love the array,
commonly known as "vectors! vectors! hooray for vectors!"

- refactored 7.4 billion buttons into 2 vectors who's size is a function
of the number of countries/regions defined in the ruleset.
- reduced overall file size considerably, while simultaneously adding modability support.