Age | Commit message (Collapse) | Author |
|
svn-id: r18604
|
|
svn-id: r18529
|
|
svn-id: r18421
|
|
svn-id: r17935
|
|
svn-id: r17913
|
|
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
|
|
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
|
|
svn-id: r17588
|
|
Now it should store all variables in the native endianness, instead of storing half in LE and the other half in the native endianness.
Addresses and assignments can be tracked by modifying the macros if necessary.
Also, meaningful constants can now be assigned to script variable numbers (if one were so inclined)
svn-id: r17523
|
|
svn-id: r17509
|
|
fix the jumping goblin in the first scene
svn-id: r17507
|
|
svn-id: r17492
|
|
svn-id: r17491
|
|
(open/write/close to access a log file? yuck)
svn-id: r17486
|
|
use full-word regex, to avoid problems like this
svn-id: r17485
|
|
svn-id: r17401
|
|
svn-id: r17400
|
|
svn-id: r17399
|
|
svn-id: r17388
|