Johannes Schickel
39995e29ad
Added fixme regarding header 'new'.
...
svn-id: r31339
2008-03-30 18:59:24 +00:00
Torbjörn Andersson
a03547dc8e
Some minor whitespace changes, and the customary "end of namespace" comment.
...
svn-id: r31338
2008-03-30 18:53:16 +00:00
Johannes Schickel
bd85909ff9
Don't enter run loop when quit flag is set.
...
svn-id: r31337
2008-03-30 18:41:55 +00:00
Johannes Schickel
54d2e7128e
Implement quit flag handling in Kyra2 GUI code.
...
svn-id: r31336
2008-03-30 18:41:11 +00:00
Johannes Schickel
4a9891c006
Fixed bug which caused sometimes garbage text to be displayed.
...
svn-id: r31335
2008-03-30 18:37:27 +00:00
Max Horn
57ad73faee
Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)
...
svn-id: r31334
2008-03-30 18:37:09 +00:00
Johannes Schickel
351851971b
Committed salty-horse's documentation patch.
...
svn-id: r31333
2008-03-30 18:32:42 +00:00
Johannes Schickel
a9d256108d
Cleanup.
...
svn-id: r31332
2008-03-30 18:31:30 +00:00
Johannes Schickel
f4e6109b33
- fixed savegame description loading in kyra1
...
- added Kyra2 load menu, currently just accessable from startup menu though
svn-id: r31331
2008-03-30 18:27:46 +00:00
Bertrand Augereau
5f3529ce78
Whitespacing fixes
...
svn-id: r31330
2008-03-30 14:07:34 +00:00
Johannes Schickel
a51c2657b6
Added checks for implicit SharedPtr casting functionallity.
...
svn-id: r31329
2008-03-30 13:13:51 +00:00
Travis Howell
3fffcec59e
Add section about converting savedgames from original versions. Please add details for other games, where this is possible.
...
svn-id: r31328
2008-03-30 12:46:21 +00:00
Max Horn
7e1ba4732e
Dropped superfluous 'virtual' keyword (saves us a few bytes for each String)
...
svn-id: r31327
2008-03-30 12:44:05 +00:00
Bertrand Augereau
de5fca43e6
#include <cstring> => #include <string.h> (for size_t)
...
svn-id: r31325
2008-03-30 12:06:47 +00:00
Bertrand Augereau
7624cf28ab
std::max => utils.h MAX
...
Added GPL headers
svn-id: r31324
2008-03-30 11:56:32 +00:00
Bertrand Augereau
78419238f9
The "anchor" (root) of the linked list is now constructed inplace in the List instead of being newed (it has the same lifetime as the List itself anyway)
...
svn-id: r31323
2008-03-30 06:37:46 +00:00
Torbjörn Andersson
49e3efe55e
Fixed signed/unsigned warning.
...
svn-id: r31322
2008-03-30 06:12:16 +00:00
Bertrand Augereau
a84d1ea78b
The hashmap uses the memorypool for allocating/deallocating its Nodes
...
(It is faster and it saves approximately 70kB the DS or other small devices will appreciate having)
svn-id: r31321
2008-03-30 06:02:34 +00:00
Bertrand Augereau
411a588850
Introduction of a fixed size memory pool with a typical free list implementation
...
+ : amortized O(1) allocation, O(1) deallocation, less overhead per allocation
- : unused memory is not reclaimed until death or manual invocation of a function
svn-id: r31320
2008-03-30 05:42:39 +00:00
Johannes Schickel
dc813c1c20
Cleanup.
...
svn-id: r31319
2008-03-30 03:21:01 +00:00
Johannes Schickel
b7a3dfd9df
Always clip rect to copy in Screen::copyRegion now, like the original does.
...
This fixes bug #1537373 "KYRA1: Crash when meeting Zanthia".
svn-id: r31318
2008-03-30 03:18:16 +00:00
Florian Kagerer
91e30d8e50
- get rid of const_cast
...
svn-id: r31317
2008-03-30 02:43:22 +00:00
Johannes Schickel
ff5743ba8f
Cleanup.
...
svn-id: r31316
2008-03-30 02:43:18 +00:00
Johannes Schickel
06cf3d3c54
Add test for copying hashmaps.
...
svn-id: r31315
2008-03-30 02:39:21 +00:00
Johannes Schickel
dcc385f3de
Fixed hashmap code. (please make a better check next time when changing code in common/, this was a really bad one :-/)
...
svn-id: r31314
2008-03-30 02:36:23 +00:00
Johannes Schickel
a957b45d5c
Cleanup.
...
svn-id: r31313
2008-03-30 01:35:12 +00:00
Johannes Schickel
3db24addcd
- Added support for custom deletion operator (aka deleter) support for SharedPtr.
...
- Removed two failing comparison tests of SharedPtr in our test suite (those were not supported according to our documentation anyway)
svn-id: r31312
2008-03-30 01:26:51 +00:00
Johannes Schickel
08b54da75e
Readded friend statement required by standard conform compilers. Disabled for gcc 2.95 though.
...
svn-id: r31311
2008-03-30 01:09:05 +00:00
Johannes Schickel
b3f858af2b
Renamed some functions according to our coding guidelines.
...
svn-id: r31310
2008-03-30 01:01:12 +00:00
Johannes Schickel
30c513eb2d
- fixed formatting
...
- fixed const correctness (needed a const_cast though :-/)
svn-id: r31309
2008-03-30 00:55:16 +00:00
Johannes Schickel
6a5ae22368
Formatting.
...
svn-id: r31308
2008-03-30 00:54:46 +00:00
Max Horn
85f8d617b0
Let mass detector add all hits, instead of only the first one
...
svn-id: r31307
2008-03-29 23:20:53 +00:00
Florian Kagerer
25b9a8a1cb
New drawShape code for Kyra 1 and 2. Scaled sprites no longer appear mutilated. This also fixes bug #1582675 (KYRA1: Brandon standing IN the floor).
...
This still needs some testing (for both Kyra 1 and Kyra 2).
svn-id: r31306
2008-03-29 23:16:44 +00:00
Bertrand Augereau
7b295995dc
Centralized the way the hashmaps allocate and free nodes (in order to instrument and maybe use a pool allocator later)
...
svn-id: r31305
2008-03-29 23:04:10 +00:00
Max Horn
e93a1f0c32
Removing dead code
...
svn-id: r31304
2008-03-29 21:17:43 +00:00
Max Horn
dbe38029db
Changed FilesystemNode to use a SharedPtr instead of implementing its own ref counting
...
svn-id: r31303
2008-03-29 21:12:36 +00:00
Johannes Schickel
e411ccc01f
- allow SharedPtr objects with incomplete type
...
- updated documentation accordingly
- clarified documentation about comparison operators of SharedPtr
svn-id: r31301
2008-03-29 20:14:32 +00:00
Travis Howell
7a919a0f4f
Add patch #1928643 - Czech fan translation of Simon the Sorcerer 1.
...
svn-id: r31300
2008-03-29 13:27:25 +00:00
Max Horn
f93c076a7b
Document SharedPtr bool conversion operator; added test cases for it; also added two test cases for the comparision operators, which currently fail
...
svn-id: r31299
2008-03-29 00:08:56 +00:00
Max Horn
1092b87cd7
Removed unused friends statement (causes internal compiler error with GCC 2.95 on BeOS)
...
svn-id: r31298
2008-03-29 00:04:33 +00:00
Filippos Karapetis
1e58257791
Oops
...
svn-id: r31297
2008-03-28 17:46:18 +00:00
Filippos Karapetis
70e4503274
Fixed 2 off-by-one errors (thanks next_ghost for spotting them)
...
svn-id: r31296
2008-03-28 17:38:45 +00:00
Johannes Schickel
7605a9a517
Changed HoF GUI code to use common GUI code now.
...
svn-id: r31295
2008-03-28 16:15:00 +00:00
Johannes Schickel
4ac08aa32a
- fixed svn properties
...
- reenabled kyra1 layout calculation
svn-id: r31294
2008-03-28 15:29:39 +00:00
Filippos Karapetis
006f879dd8
Updated MSVC8 and MSVC9 ScummVM project files for commit #31287
...
svn-id: r31293
2008-03-28 12:45:26 +00:00
Filippos Karapetis
70ed8f51b4
Updated MSVC8 and MSVC9 kyra project files for commit #31290
...
svn-id: r31292
2008-03-28 12:36:53 +00:00
Max Horn
770bc64f21
Added FIXME comment regarding sorting of pred.dic; replaced weird binary search code with simple binary search code ;-)
...
svn-id: r31291
2008-03-28 09:17:13 +00:00
Johannes Schickel
b910d8d9bb
Refactored Kyrandia GUI code a bit.
...
svn-id: r31290
2008-03-28 09:00:30 +00:00
Max Horn
7f81de6794
cleanup
...
svn-id: r31289
2008-03-28 08:30:42 +00:00
Johannes Schickel
f2e53b9d22
Oops that shouldn't be committed yet.
...
svn-id: r31288
2008-03-28 06:06:11 +00:00