Commit Graph

35 Commits

Author SHA1 Message Date
Paweł Kołodziejski
2ebdbbf5e0 fixes allow compile with emsvc4 again
svn-id: r20355
2006-02-03 07:30:29 +00:00
Eugene Sandulenko
4780ab9223 Patch #1417631: "gobliiins cleanup". Thanks, wjp.
svn-id: r20283
2006-01-29 02:27:10 +00:00
Eugene Sandulenko
e4a32c8251 Patch #1416983: "gobliiins 64bit fixes" to fix bug #1399873: "GOB1: 64-bit
crash at load screen". Thanks, wjp.

svn-id: r20255
2006-01-27 23:19:18 +00:00
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Sven Hesse
71af473b76 Moved Goblin::interFunc() to Inter_v1::o1_goblinFunc(), converting its switch() into an array of function pointers + lookup table
svn-id: r19969
2006-01-10 11:30:23 +00:00
Sven Hesse
a034922120 More variable underscoring, that should be all
svn-id: r19957
2006-01-09 16:10:22 +00:00
Sven Hesse
70dfe93ed7 Added a dummy table for which music to play in Gobliiins Mac; some code formating issues
svn-id: r19951
2006-01-08 20:03:20 +00:00
Sven Hesse
fdd5cfb635 Added initial support for ADL music files; continued underscoring of member variables
svn-id: r19937
2006-01-07 22:28:54 +00:00
Eugene Sandulenko
fbad775cf0 Last chunk of underscore maddness for today
svn-id: r19904
2006-01-04 01:48:15 +00:00
Eugene Sandulenko
71a386618a More work on renaming class variables with underscore prefix
svn-id: r19903
2006-01-04 01:23:20 +00:00
Eugene Sandulenko
fd8ac69fc4 Patch #1395615 "GobEngine code wrapped in classes". With some cosmetic changes.
svn-id: r19899
2006-01-03 23:14:39 +00:00
Max Horn
3b0d3defa7 Added kMapHeight and kMapWidth constants
svn-id: r19863
2005-12-30 18:39:01 +00:00
Torbjörn Andersson
d5e398dcff Minor simplification.
svn-id: r19804
2005-12-18 09:57:44 +00:00
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
Eugene Sandulenko
412693ac70 Patch from wjp #1325224 "Fix for Gobliiins 1 EGA crash on game-over"
which fixes bug #1324814 "GOB1 ega: lock up when game is over"

svn-id: r19056
2005-10-12 22:13:41 +00:00
Eugene Sandulenko
e6ae6d3520 Hide unnecessary debug output
svn-id: r19027
2005-10-12 00:02:47 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Torbjörn Andersson
c598bb78bb Cleanup.
svn-id: r18529
2005-07-10 13:37:03 +00:00
Torbjörn Andersson
43bc76a29c Added temporary variables for readability.
svn-id: r18421
2005-06-21 13:14:56 +00:00
Eugene Sandulenko
5c426e6908 Patch #1196638 'GOB: Simple "beeper"'. Thanks eriktorbjorn.
svn-id: r17935
2005-05-06 15:59:33 +00:00
Torbjörn Andersson
fd326b4ce2 Cleanup
svn-id: r17913
2005-05-05 11:11:49 +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
Eugene Sandulenko
a5993b2112 Support for Red Book audio in CD version of gob1.
svn-id: r17588
2005-04-13 18:27:29 +00:00
Joost Peters
f35ac50111 Some inter_variables cleanup.
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
2005-04-10 17:13:17 +00:00
Joost Peters
232860bc44 fix jumping goblin bug
svn-id: r17509
2005-04-10 13:07:02 +00:00
Joost Peters
e3fbf09035 fix another "x = y" type copy/paste bug, unfortunately this still doesn't fix the jumping goblin in the first scene
svn-id: r17507
2005-04-10 12:32:56 +00:00
Eugene Sandulenko
1ec5111b98 Fix jumping actor glitch. Thanks to joostp.
svn-id: r17492
2005-04-09 23:13:46 +00:00
Eugene Sandulenko
e7786320a6 Fix for put apple bug from wjp
svn-id: r17491
2005-04-09 21:16:34 +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
Max Horn
ebdb705ffd Remove useless casts
svn-id: r17400
2005-04-05 17:50:33 +00:00
Max Horn
1d14278fde Fixing lots of warnings
svn-id: r17399
2005-04-05 17:41:37 +00:00
Eugene Sandulenko
1758c5b211 Initial checking of Gob engine
svn-id: r17388
2005-04-05 15:07:40 +00:00