Johannes Schickel
0fe2ba6a0d
Some more enforcement of our formatting conventions in KYRA too.
...
svn-id: r49069
2010-05-17 23:29:44 +00:00
Torbjörn Andersson
65585f6433
Silenced some harmless cppcheck warnings about unreachable code after a return.
...
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.
svn-id: r48218
2010-03-10 06:39:23 +00:00
Florian Kagerer
d4a0375f7e
LOL: fixed handling of invalid monster attack sfx in the Urbish mines (should fix bug no #2945950 )
...
svn-id: r47967
2010-02-07 16:12:31 +00:00
Johannes Schickel
595a2e16f1
Fix use of undefined behavior. (Thanks to syke for reporting)
...
svn-id: r47685
2010-01-29 22:43:23 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Florian Kagerer
c0fc64ecbf
LOL: - fixed transparency tables in PC-98 16 color version
...
- renamed some variables
svn-id: r45847
2009-11-11 23:05:19 +00:00
Florian Kagerer
8b993ce863
LOL: this should fix a valgrind warning
...
svn-id: r45221
2009-10-18 12:47:54 +00:00
Florian Kagerer
7c065c84cb
LOL/PC-98: implemented drawing code for teleporters
...
svn-id: r44883
2009-10-10 18:45:33 +00:00
Florian Kagerer
6f1c43a731
LOL/PC-98: fixed last commit
...
svn-id: r44849
2009-10-09 21:42:37 +00:00
Florian Kagerer
0d7d2b8371
LOL/PC-98: fixed monster drawing bug (some wrong pixels)
...
svn-id: r44847
2009-10-09 21:35:48 +00:00
Max Horn
f242266f6d
Change a couple places from 'end of namespace' to 'End of namespace', for consistency
...
svn-id: r44634
2009-10-04 21:26:33 +00:00
Florian Kagerer
4d9258d3e5
LOL/PC-98: start fixing color issues (still not working correctly though)
...
svn-id: r44223
2009-09-20 23:25:39 +00:00
Florian Kagerer
525c084456
LOL/Floppy: fixed size of menu boxes
...
svn-id: r44061
2009-09-13 14:44:37 +00:00
Florian Kagerer
ad5d918ad5
LOL: update kyra.dat with floppy version data (floppy version still doesn't work, though)
...
svn-id: r43904
2009-09-02 06:24:01 +00:00
Johannes Schickel
418fb485c9
Fix format arugments in LoL code. (triggered via -Wformat-security)
...
svn-id: r43444
2009-08-16 17:35:59 +00:00
Florian Kagerer
7f667c5289
LOL: some minor fixes
...
svn-id: r43269
2009-08-11 14:34:33 +00:00
Florian Kagerer
a212a9da7e
LOL: rename new function in last commit according to LordHoto's suggestion
...
svn-id: r42270
2009-07-08 20:32:34 +00:00
Florian Kagerer
2950bc28c4
LOL: fix long standing bugs in the battle system (hit chance, damage, etc) by adapting original style random number generator
...
svn-id: r42269
2009-07-08 20:19:23 +00:00
Johannes Schickel
6e299e4777
Strip trailing whitespaces and tabs.
...
svn-id: r41848
2009-06-25 01:30:12 +00:00
Johannes Schickel
2e27c7b492
Replaced "getRandomNumberSpecial" be RandomSource usage. (This is needed for proper event recording, also the probability for generated numbers is actually nearly the same)
...
svn-id: r41646
2009-06-18 21:47:10 +00:00
Florian Kagerer
09fe7b3152
LOL: implemented some missing monster animation code
...
svn-id: r41327
2009-06-07 10:34:01 +00:00
Johannes Schickel
a4292afcdc
Formatting and whitespaces again.
...
svn-id: r41120
2009-06-02 00:10:13 +00:00
Florian Kagerer
8b59d275ab
LOL: add workaround comment (at LordHoto's repeated insistence)
...
svn-id: r41105
2009-06-01 18:25:43 +00:00
Johannes Schickel
ede3dec88a
Add support for the Lands of Lore scrolling credits.
...
svn-id: r41081
2009-05-31 19:31:04 +00:00
Florian Kagerer
cc8cc6f452
LOL: implemented magic viper attack (used by wraiths in white tower level 3)
...
svn-id: r41074
2009-05-31 15:42:26 +00:00
Florian Kagerer
c938667d4b
LOL: - fix shape memory allocation/release issue
...
svn-id: r41055
2009-05-31 01:24:08 +00:00
Florian Kagerer
f2516e648e
LOL: fix some valgrind warnings
...
svn-id: r41052
2009-05-31 00:25:05 +00:00
Johannes Schickel
c7ee0a7ec8
More formatting.
...
svn-id: r40994
2009-05-29 13:09:26 +00:00
Florian Kagerer
69d054660a
LOL: - fix valgrind warning
...
- fix more input code issues
- add workround for another script bug (some invalid monster sound index in urbish mine level 2)
svn-id: r40974
2009-05-28 23:49:41 +00:00
Florian Kagerer
6bd5dea027
LOL: - implemented freeze spell
...
- fixed saveload code
- added some opcode for the swamp
svn-id: r40763
2009-05-21 16:46:40 +00:00
Johannes Schickel
e51481d69b
Remove trailing tabs/whitespaces.
...
svn-id: r40760
2009-05-21 13:13:09 +00:00
Johannes Schickel
da0a07b441
Formatting.
...
svn-id: r40670
2009-05-17 23:51:42 +00:00
Florian Kagerer
bee8be58e3
LOL: implemented pit drop animation
...
svn-id: r40592
2009-05-15 06:29:08 +00:00
Florian Kagerer
670eb3badf
LOL: - implemented rest party button
...
- made button processing code more accurate
svn-id: r40442
2009-05-10 23:08:32 +00:00
Florian Kagerer
dd84aaf648
LOL: - added some spell casting (spark, heal, swarm)
...
- fixed several bugs (not the one in the fighting system though)
- added several opcodes. there shouldn't be any real show stoppers in the draracle cave now.
- simplified wsa code (which required 4 lines of code for displaying a frame)
- added support for wsa animations that don't have a last frame (apparently kyra 2 and 3 don't have this type of wsa file)
svn-id: r40420
2009-05-10 13:40:28 +00:00
Florian Kagerer
6e566a9b1e
LOL: added some drawing code and fixed some bugs
...
svn-id: r40167
2009-04-27 19:38:28 +00:00
Filippos Karapetis
9af7d48a04
Changed the attacker parameter from 0 to 0xFFFF in inflictDamage() (which was probably the original intended value) and added a FIXME
...
svn-id: r40149
2009-04-25 23:57:26 +00:00
Filippos Karapetis
97f3277f8f
The "attacker" parameter is an unsigned integer, so we can't pass a negative number to it (hopefully this doesn't break anything)
...
svn-id: r40148
2009-04-25 23:42:47 +00:00
Florian Kagerer
ccb64ad81e
LOL: - Started implementing the fighting system. The damage inflicted is wrong, however (at least the damage inflicted by the monsters). I'm sowewhat clueless about that bug atm.
...
- added support for monsters with distance attacks (like those orcs in front of roland's house)
- lots of small bug fixes
- Some startup support for the pc-98 16 color version. The intro will run, but the font drawing/coloring is still wrong.
svn-id: r40144
2009-04-25 13:15:05 +00:00
Florian Kagerer
38737e9c07
LOL: fix monsters' strange sliding to the left (like that thug at the beginning)
...
svn-id: r39863
2009-04-05 13:15:33 +00:00
Florian Kagerer
9638c7ec4b
LOL: - added support for magic atlas
...
- fixed minor palette bug
svn-id: r39818
2009-04-03 21:32:50 +00:00
Florian Kagerer
7bfa1455bc
LOL: - implemented opcode required for operating the floor plates in the thugs' cave)
...
- fixed bug (only one of the two thugs in front of the cave was deleted when sneaking into the cave)
svn-id: r39721
2009-03-28 12:58:34 +00:00
Florian Kagerer
e9b4124f1d
LOL: - implemented lots of opcodes and fixed a few bugs
...
- it's now possible to leave the castle
svn-id: r39653
2009-03-24 07:18:16 +00:00
Florian Kagerer
0ce597db80
LOL: - added drawing code for certain gfx (blood and slime spots on the floor, teleporters, ice walls)
...
svn-id: r39599
2009-03-21 20:24:36 +00:00
Florian Kagerer
29ebafb5d5
LOL: implemented some missing drawing code for dead monsters
...
svn-id: r39589
2009-03-21 15:33:16 +00:00
Florian Kagerer
b55602180d
LOL: The guards will now attack you when you throw certain items at them. They can't do any damage though, since this isn't implemented yet.
...
svn-id: r39582
2009-03-21 14:30:25 +00:00
Florian Kagerer
769184c483
LOL: added some new drawing code required for some shapes and fixed a minor text displaying bug
...
svn-id: r39487
2009-03-17 18:27:56 +00:00
Florian Kagerer
52726344b7
LOL: - implemented item throwing
...
svn-id: r39455
2009-03-16 21:20:34 +00:00
Florian Kagerer
c826106e44
LOL: - implemented original style random number generator for moving around the monsters
...
svn-id: r39425
2009-03-15 18:21:33 +00:00
Florian Kagerer
dcf32be3f6
LOL: - added some missing animations for the shops
...
- added support for dropping/picking up items (no throwing yet)
svn-id: r39422
2009-03-15 16:48:20 +00:00