Commit Graph
14 Commits
Author SHA1 Message Date
Eugene Sandulenko b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson c598bb78bb Cleanup.
svn-id: r18529
2005-07-10 13:37:03 +00:00
Lars Persson 9fc959e63d Changed from char to int8 in a number of places. This makes not assume the typ of char regardless of any compiler flags. Now looks very nice on the Symbian platfor.
svn-id: r18435
2005-06-22 19:32:10 +00:00
Torbjörn Andersson d6fb5517ed This should fix the negative frequency bug that caused some sound effects
to not be played, and probably fixes wrong frequency on some that were
played. It's all guesswork, though. I don't know if this is what the
original did.

svn-id: r17882
2005-05-01 10:15:30 +00:00
Torbjörn Andersson 589b65945a This should fix a crash which could happen when placing several objects too
close to each other on the ground. (Happened to me on the first level after
destroying the voodoo doll, where I'd drop the banana, the soap and the
false nose close to each other on the ground after using them.)

Reasoning behind the change:

From what I understand, map_itemsMap[] contains information for each "cell"
of the map about which objects are there. Each cell can contain two objects
which are stored in the upper and lower byte of a 16-bit word.

When dropping an object, it is written into map_itemsMap[], but not just to
the indicated cell but also to a few of the surrounding ones. Presumably to
make it easier to pick it up afterwards.

When writing an object to a cell, we check if one of the bytes is already
occupied. If it is, write to the other byte. Otherwise, write to that byte.
(If both bytes are occupied, one will be overwritten.)

The old code assumed that if one byte was free at position (x,y) the same
byte would automatically be the free one in the surrounding cells. This
could cause bad values in the array, since the item was added to an
existing value, rather than replacing it.

This new code makes the check for each cell that is modified. (It also gets
rid of some code duplication.)

svn-id: r17851
2005-04-28 10:34:48 +00:00
Max Horn 17163ea7a5 no, we only check for the value being 0, so no endian conversion is needed ;-)
svn-id: r17554
2005-04-11 20:44:33 +00:00
Max Horn 40d7c623cc cleanup
svn-id: r17553
2005-04-11 20:41:00 +00:00
Max Horn 91c533ffae Endian fixes, getting past the 'Please wait...' loading screen now
svn-id: r17552
2005-04-11 20:38:17 +00:00
Max Horn fa80c6e8ba cleanup
svn-id: r17550
2005-04-11 20:04:14 +00:00
Max Horn 2ff681b1e9 Endian fixes
svn-id: r17549
2005-04-11 20:03:12 +00:00
Max Horn 2efa0d17f2 Get rid of debug.cpp/.h -- it wasn't used anyway, and contained bad code (open/write/close to access a log file? yuck)
svn-id: r17486
2005-04-09 19:32:29 +00:00
Max Horn 9aaff636aa Fix legal header. Be careful when doing global search and replace! Better use full-word regex, to avoid problems like this
svn-id: r17485
2005-04-09 19:19:54 +00:00
Max Horn 0ddbcc7845 Changed remaining file headers
svn-id: r17401
2005-04-05 18:08:02 +00:00
Eugene Sandulenko 1758c5b211 Initial checking of Gob engine
svn-id: r17388
2005-04-05 15:07:40 +00:00