Hans de Goede [Mon, 14 Feb 2011 11:22:07 +0000 (12:22 +0100)]
Fix -Wunused-result compiler warnings
Fedora uses -Wunused-result when building packages, combined with the -Werror
from the makefile, this causes compile errors in various places because
of not properly error checking various file io actions. This patch fixes this.
Guus Sliepen [Fri, 24 Dec 2010 12:34:56 +0000 (13:34 +0100)]
Add DFSG compliant music.
Big thanks to DJ Sjors, Ambick and SinQ, who have created the music that is now
used in Blobwars and have licensed it under the Creative Commons BY-SA 3.0 and
BY 3.0 licenses.
Remove bogus Exit LINEDEF in BioMech Communications.
This LINEDEF prevents the player from going into the small alcoves in the right
wall of the tank. However, it is buggy, and in some cases the LINEDEF can be
triggered in such a way that the player cannot back out of it anymore. After
removing, the bug is gone, and the player can enter the alcove a little bit,
but this is harmless.
Apply patch from Bas Wijnen preventing the player from getting the Jetpack too early.
From: Bas Wijnen <wijnen@debian.org>
Attached is a version of data/hub which implements the level order as I
consider it appropriate. I reorganized and reindented the file, because
it wasn't clearly readable to me. The actual changes aren't large
though. What I did:
- Set the requirement for "Ancient Tomb #4" from "BioMech Assimilator"
to "Stages 18"
- Set the requirement for "BioMech Assimilator" from "Stages 15" to
"Ancient Tomb #4".
I have tested this using cheat mode, pressing F3 to finish all levels,
and it works as expected.
According to callgrind, a lot of time was spent drawing the same text over and
over to a surface. A caching version of Graphics::drawString has been added,
that keeps the surface around when the text hasn't changed.
Do not fill in comboString when we are not using it.
According to callgrind, blobwars was spending 4% of its time in
enemyBulletCollisions(), calling snprintf() to fill in comboString. However,
this string was only used when an enemy was killed to check against objectives.
So now snprintf() has been moved to where it actually is being used, dropping
time spent in that function by 3.8%.
Show music credits during start of a level and when showing the map.
The title, album and artist are shown briefly in the lower right corner of the
screen 5 seconds after a level has been started, along with an icon
representing the license under which the level music is available. The same
information is also shown when the level map is viewed.