Commit Graph

7602 Commits

Author SHA1 Message Date
Torbjörn Andersson
3d012651fd The script engine frequently needs to pass pointers to various structures
etc. to the different opcodes. Until now it has done so by casting the
pointer to an int32 (opcode parameters are represented as arrays of int32)
and then the opcode function casts it back to whatever pointer it needs.

At least in C there is no guarantee that a pointer can be represented as an
integer type (though apparently C99 may define such a type), so this has
struck me as unsafe ever since I first noticed it.

However, since all such pointers appear to point to the memory block owned
by the memory manager, we can easily convert them to integers by treating
them as offsets into the memory block. So that's what I have done. I hope I
caught all the occurences in the opcode functions, or we're going to have
some pretty interesting regressions on our hands...

svn-id: r11241
2003-11-10 07:52:15 +00:00
Torbjörn Andersson
439bc8364d Fix warning
svn-id: r11240
2003-11-10 07:41:21 +00:00
Max Horn
e34f2b8b33 cut down on unnecessary GameDetector references
svn-id: r11239
2003-11-10 01:04:12 +00:00
Jonathan Gray
63c6944492 mark zak256 as a depreciated target, zakTowns will be used in future to be more consistent with the other target names. Config magic to automatically set a gameid=zak256 in config files not yet implemented.
svn-id: r11238
2003-11-10 00:58:22 +00:00
Max Horn
03f50231d2 cleanup / some warnings (I'd like to know if and where those opcodes are used)
svn-id: r11237
2003-11-10 00:28:09 +00:00
Paweł Kołodziejski
2b509bc0b6 renamed opcode and added sobopcode comments
svn-id: r11236
2003-11-10 00:05:17 +00:00
Jonathan Gray
d330de5f28 comment out all the targets for newer humongous games until they start doing something useful
svn-id: r11235
2003-11-09 23:50:40 +00:00
Joost Peters
b264f836fb Enable intro again
svn-id: r11234
2003-11-09 23:49:39 +00:00
Joost Peters
69c4fd3595 update
svn-id: r11233
2003-11-09 22:22:56 +00:00
Paweł Kołodziejski
a657b8e7ba renamed some opcodes and added sobopcode comments
svn-id: r11232
2003-11-09 22:12:16 +00:00
Joost Peters
357cfb8aea fix small leak
svn-id: r11231
2003-11-09 21:55:19 +00:00
Joost Peters
b64c6fcbfc Added (quick-)Saving/Loading
svn-id: r11230
2003-11-09 21:31:18 +00:00
Gregory Montoir
1b6e9a9b00 forgot to update comment
svn-id: r11229
2003-11-09 21:24:23 +00:00
Gregory Montoir
a7aac36341 fix flipped faye issue in c3a.cut
svn-id: r11228
2003-11-09 21:10:42 +00:00
Gregory Montoir
c9feb712bc enable (some of) the original debug passwords
svn-id: r11227
2003-11-09 20:50:03 +00:00
David Eriksson
79f84425dd Moved _talkSelected to Logic.
svn-id: r11226
2003-11-09 14:16:46 +00:00
David Eriksson
1d3d581879 - Fix cutaway bug that made Joe end up in the wrong location when the
cutaway was cancelled.
- Fix cutaway bugs that made it very bad to cancel the cutaway where Joe
  looks out from the hotel window.

svn-id: r11225
2003-11-09 12:19:47 +00:00
Paweł Kołodziejski
8f130401a1 cleanup whitespaces
svn-id: r11224
2003-11-08 23:45:45 +00:00
Paweł Kołodziejski
14b7d027a2 cleanup whitespaces
svn-id: r11223
2003-11-08 23:22:16 +00:00
Gregory Montoir
e01e3ae463 fix bad animation string at amazon entrance room
svn-id: r11222
2003-11-08 23:20:23 +00:00
Paweł Kołodziejski
1f99fbe77c cleanup whitespaces
svn-id: r11221
2003-11-08 23:05:04 +00:00
Paweł Kołodziejski
13c7acee9d cleanup whitespaces
svn-id: r11220
2003-11-08 22:57:42 +00:00
Paweł Kołodziejski
b5a7ef0822 cleanup whitespaces
svn-id: r11219
2003-11-08 22:43:46 +00:00
Paweł Kołodziejski
bd972c97e5 cleanup whitespaces
svn-id: r11218
2003-11-08 22:05:58 +00:00
Paweł Kołodziejski
1f9e408e2f cleanup whitespaces
svn-id: r11217
2003-11-08 21:59:32 +00:00
David Eriksson
9e7402e14b Enable pinnacle room
svn-id: r11216
2003-11-08 21:02:25 +00:00
David Eriksson
0908b794ec Show mouse cursor in dialogue.
svn-id: r11215
2003-11-08 21:00:11 +00:00
Paweł Kołodziejski
7d6c5bc1da cleanup whitespaces
svn-id: r11214
2003-11-08 20:54:31 +00:00
Paweł Kołodziejski
b99af18bd5 cleanup whitespaces
svn-id: r11213
2003-11-08 20:27:27 +00:00
Paweł Kołodziejski
409108df82 cleanup whitespaces
svn-id: r11212
2003-11-08 19:47:20 +00:00
Paweł Kołodziejski
394c96b033 update
svn-id: r11211
2003-11-08 19:16:39 +00:00
Torbjörn Andersson
980ad7daba This one can go as well
svn-id: r11210
2003-11-08 18:41:44 +00:00
Torbjörn Andersson
9106229bef Removed some now redundant header files.
svn-id: r11209
2003-11-08 18:15:35 +00:00
Gregory Montoir
31b5146528 fix dufflebag problem
svn-id: r11208
2003-11-08 16:36:54 +00:00
Torbjörn Andersson
688c80b062 Moved more stuff into classes, changed some static allocation to dynamic,
and removed some of the references to global variables.

At this point I believe everything in the main game engine has been moved
into classes - not necessarily the correct ones, but still... However,
there is some stuff in the driver directory that need to be taken care of
as well.

svn-id: r11207
2003-11-08 15:47:51 +00:00
Gregory Montoir
b04ddef750 missing stuff for carbam scene
svn-id: r11206
2003-11-08 13:57:52 +00:00
David Eriksson
f243b50215 Start/stop scenes - fixes missing panel.
svn-id: r11205
2003-11-08 11:32:32 +00:00
Joost Peters
6e2b51233f Use spaces instead of TABs
svn-id: r11204
2003-11-08 11:10:40 +00:00
Joost Peters
90eff8a31d Added David and Gregory to the README
svn-id: r11203
2003-11-08 11:07:02 +00:00
Joost Peters
aa655b95e4 Apparantly, this cast is not needed for it to work properly
svn-id: r11202
2003-11-08 11:00:36 +00:00
Travis Howell
27bb10900e Add missing opcode needed for Spanish version (And maybe others?) of Full Throttle, patch #838309
svn-id: r11201
2003-11-08 03:33:21 +00:00
Gregory Montoir
cec821630b fix palette glitches occuring when Joe switches from his clothes to the dress
svn-id: r11200
2003-11-07 17:56:23 +00:00
Max Horn
5c4e374d73 fixed ConfigManager getInt/getBool
svn-id: r11199
2003-11-07 16:54:58 +00:00
Gregory Montoir
e042901695 oops
svn-id: r11198
2003-11-07 16:47:07 +00:00
Gregory Montoir
f4dc977839 add bob parallax stuff for room 74 (carbam)
svn-id: r11197
2003-11-07 16:44:13 +00:00
Max Horn
a93c9f49ba added checkboxes to the 'Edit Game...' dialog which let the user determine whether to override global settings or not; besides other things, this fixes bug #837599 (Default volume is 0 for newly added games)
svn-id: r11196
2003-11-07 16:01:51 +00:00
Max Horn
ced5921ac0 change behaviour of ConfigManager::get once again -> now we *do* fall back to the registered defaults...
svn-id: r11195
2003-11-07 15:57:36 +00:00
David Eriksson
c0fe2a5da3 Implement some special actions
svn-id: r11194
2003-11-07 15:34:51 +00:00
Max Horn
fcf6d6613d enable StaticTextWidget by default; make CheckboxWidget::handleMouseUp send the checkbox state along with its command
svn-id: r11193
2003-11-07 15:05:14 +00:00
Max Horn
435fe749d7 draw StaticTextWidget differently if disabled
svn-id: r11192
2003-11-07 14:58:12 +00:00