Filippos Karapetis
06f934dc9f
SAGA: Remove obsolete hack for the compact disk in Ellen's chapter
...
This has been added in commit 5624ba23d0 and is no longer needed.
The gem is shown correctly over the compact disk in that scene,
and the behavior is the same as the original
2017-08-20 17:10:32 +03:00
Johannes Schickel
c1be2aedbb
SAGA: Make GPL headers consistent in themselves.
2014-02-18 02:39:37 +01:00
Eugene Sandulenko
759dc8e978
SAGA: Fix potentially unitialized pointer. CID 1003186, CID 1003187, CID 1003188, CID 1003189
2013-04-28 23:59:20 +03:00
D G Turner
8e42ee4c98
SAGA: Fix Bug #3323722 ("IHNM: Crash to desktop in Ellen's Adventure")
...
Thanks to fuzzie for this fix.
IHNM and ITE should be retested.
2011-06-23 00:28:44 +01:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Filippos Karapetis
4a07ae6829
SAGA: Simplified loadActorResources() and removed the unused _disabled field
...
svn-id: r55687
2011-01-31 16:11:49 +00:00
Andrew Kurushin
67cc1b8a84
SAGA: replace Resource:loadResource malloc with ByteArray class
...
svn-id: r53779
2010-10-24 22:17:44 +00:00
Andrew Kurushin
e3ea3b5b7e
SAGA: replace Scene::_resourceList, Interface::_inventory malloc arrays with Common::Array
...
svn-id: r53773
2010-10-24 20:22:21 +00:00
Andrew Kurushin
fa7e8a8eb3
SAGA: replace Actor::_actors and _objs malloc base arrays with Common::Array
...
svn-id: r53766
2010-10-24 17:42:45 +00:00
Andrew Kurushin
b10cd22d51
SAGA: replace Events malloc base linked list with Common::List
...
svn-id: r53751
2010-10-23 23:07:10 +00:00
Andrew Kurushin
f24394b85f
SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation
...
add ByteArray type
fix debug Tile Hittest frame drawing
debug 0x%x => 0x%X
svn-id: r53719
2010-10-22 23:13:17 +00:00
Andrew Kurushin
6be5d2554d
SAGA: replace StringTable "::realloc" with Common::Array; reduce amount of memory for every string table
...
svn-id: r53651
2010-10-20 20:53:32 +00:00
Andrew Kurushin
e4029f6f0e
SAGA: SAGA: replace SpriteList "::realloc" with Common::Array
...
svn-id: r53628
2010-10-19 22:29:53 +00:00
Andrew Kurushin
bfb0986cd4
SAGA: replace Actors "::realloc" with Common::Array
...
svn-id: r53627
2010-10-19 21:40:24 +00:00
Andrew Kurushin
0e7abce271
SAGA: fix submit 53486 "Added sanity checks for realloc() calls - bug report #3087852 ". zero count realloc may return NULL as valid value
...
svn-id: r53614
2010-10-19 15:31:07 +00:00
Filippos Karapetis
c1e47e0e60
SAGA: Added sanity checks for realloc() calls - bug report #3087852
...
svn-id: r53486
2010-10-15 12:56:17 +00:00
Eugene Sandulenko
51c22b39c8
SAGA: Fix bug #2928923 .
...
Bug #2928923 : 'ITE: Graphic Glitches during racoon death "Cut Scene"'.
Disable actor drawing for these scenes. A long standing bug in
original.
svn-id: r49727
2010-06-15 10:26:10 +00:00
Andrew Kurushin
aa147a2f5a
refactor resource module:
...
- struct ResourceContext => class ResourceContext
- replace "*alloc","free" with array templates
- simplify createContexts routines
svn-id: r46254
2009-12-04 17:52:42 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Filippos Karapetis
b4f1960318
Reverted parts of revisions #44298 , #44299 and #44300 , to prevent warnings and issues in compilers which don't support NORETURN
...
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb
Fixed some more warnings about unreachable code
...
svn-id: r44300
2009-09-24 10:15:50 +00:00
Andrew Kurushin
52ccf2af94
SAGA: move Actor::_pathList into a Common::Array<Point>
...
svn-id: r40232
2009-05-01 15:32:15 +00:00
Andrew Kurushin
600a471122
SAGA: fix SAGA_DEBUG&ACTOR_DEBUG enabled compilation; move Actor::_debugPoints into a Common::Array<DebugPoint>
...
svn-id: r40227
2009-05-01 10:37:41 +00:00
Max Horn
a4cb413d70
SAGA: turned Actor::_pathNodeList into a Common::Array<PathNode>; likewise for Actor::_newPathNodeList which also turned from a member var into a function local var
...
svn-id: r40180
2009-04-28 12:33:59 +00:00
Max Horn
7cfa3bb6d9
SAGA: Moved some code from actor.h to actor.cpp; replaced Actor::_pathDirectionList and related members by a Common::Array<PathDirectionData> inside Actor::fillPathArray()
...
svn-id: r40179
2009-04-28 12:33:38 +00:00
Filippos Karapetis
65393be446
Removed unused (and wrong) code for IHNM
...
svn-id: r39931
2009-04-11 12:08:02 +00:00
Filippos Karapetis
7287457672
Got rid of SortedList
...
svn-id: r39928
2009-04-11 09:54:55 +00:00
Filippos Karapetis
02ca56eec8
Removed all but one of the functions of the SortedList, apart from the custom insert() operation. It's only used in one place now (in _drawOrderList)
...
svn-id: r39925
2009-04-11 09:23:40 +00:00
Max Horn
7412b0f8e8
SAGA: Stop needlessly using operator*() and operator->() (many of the resulting &* uses can be removed if references are used instead of pointers everywhere, which would be a good idea anyway)
...
svn-id: r39920
2009-04-11 00:29:12 +00:00
Filippos Karapetis
c65013faf2
Fixed a regression of commit #35473 . Fixes bug #2703595 - "ITE: Crash when clicking on items inside the hangar"
...
svn-id: r39664
2009-03-24 13:33:47 +00:00
Filippos Karapetis
d5b6996c45
- Split the IHNM script functions into a different file
...
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS)
svn-id: r35672
2009-01-02 16:52:38 +00:00
Filippos Karapetis
350943f291
Enumerated the different actor directions and fixed spelling
...
svn-id: r35496
2008-12-23 15:26:55 +00:00
Filippos Karapetis
9a57f42399
logicalWidth -> width
...
logicalHeight -> height
svn-id: r35488
2008-12-22 14:36:58 +00:00
Filippos Karapetis
437384a838
- Split the SAGA resource manager in 3 different ones, depending on the resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub
...
- Added detection for the voice file of FTA2
svn-id: r35484
2008-12-22 14:13:15 +00:00
Filippos Karapetis
f3db2bf1c3
Added some more stubs for FTA2
...
svn-id: r35475
2008-12-21 23:43:12 +00:00
Filippos Karapetis
2257db88d3
- Added some stubs for the SAGA2 games dino and fta2
...
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM)
- Removed getDisplayWidth() and getDisplayHeight()
svn-id: r35473
2008-12-21 22:52:44 +00:00
Filippos Karapetis
d0f4f97ea9
Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
...
svn-id: r35467
2008-12-21 15:59:05 +00:00
Filippos Karapetis
cfa939d151
- Stop passing the scene clip rectangle around for no reason
...
- More changes for dirty rectangle handling
- Stop adding dirty rectangles that cover the whole screen for no reason
- Dirty rectangle handling is still very buggy, so it's still disabled
svn-id: r35314
2008-12-12 14:23:02 +00:00
Filippos Karapetis
9c04b0c229
All the screen drawing functions draw to the back buffer, so there is no point in passing it everywhere
...
svn-id: r35260
2008-12-06 14:24:40 +00:00
Filippos Karapetis
f3a60a8c96
Cleanup
...
svn-id: r35259
2008-12-06 13:35:27 +00:00
Robin Watts
8f3b2e9b4d
Remove warnings from NDS build.
...
svn-id: r35172
2008-11-29 18:01:16 +00:00
Filippos Karapetis
966239fc52
Code cleanup:
...
- Removed sagaresnames.h
- Moved all special scenes to scene.h, and named them consistently (e.g. RID_ITE_OVERMAP_SCENE -> ITE_SCENE_OVERMAP)
- Moved all resources which were used by the ITE intro into ite_introproc.cpp
- Removed several defines which were only used once (e.g. the SFX names)
- Reordered the GameResourceDescription resources so that ITE and IHNM specific resources are placed in the end
- Updated the comment about the IHNM Mac music
- Changed the callocs in loadPalAnim to mallocs, like in the rest of the code
- Removed the MEM error
svn-id: r32282
2008-05-26 11:10:46 +00:00
Andrew Kurushin
040d8e10fe
fix bug 1900244 "ITE: Strange animation when returning to prison cell"
...
svn-id: r30924
2008-02-23 14:42:46 +00:00
Filippos Karapetis
3581257ceb
Fix for bug #1900220 - "ITE: Missing text outline"
...
svn-id: r30920
2008-02-23 13:54:58 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
6eb64102a4
Fix to remove a tab character from the GPL header
...
svn-id: r30238
2008-01-05 12:45:14 +00:00
Filippos Karapetis
335e9da41d
Removed clamp() and used the common CLIP template instead
...
svn-id: r29927
2007-12-20 19:00:10 +00:00
Filippos Karapetis
1e483cc857
Use CLIP template for clipping in the SAGA engine
...
svn-id: r29855
2007-12-13 20:10:13 +00:00
Filippos Karapetis
6e6a864c17
Don't draw objects with negative x/y values. Now, "ghost" objects are no longer created in the top left corner of the screen when picked up/used. The creation of such ghost objects is a script bug which exists in the original interpreter of IHNM as well. Also, removed a relevant workaround for the note in the first screen of Gorrister's chapter, as it's no longer needed
...
svn-id: r29477
2007-11-11 18:12:55 +00:00