Commit Graph
35 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Johannes Schickel 1d65a915ba TOON: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Strangerke 77ac07baf2 TOON: Fix CID 1002430, 1002431, 1002727 2013-10-30 00:56:36 +01:00
D G Turner 4aa0ec7fc4 TOON: Change Pathfinding weight buffers to uint16.
This should result in a significant saving in RAM usage.
Have added warning outputs if the weights exceed the maximum limit.
2012-06-14 17:23:01 +01:00
D G Turner fcfff28c5f TOON: Minor type fixes and cleanups in Pathfinding class. 2012-06-10 21:12:01 +01:00
D G Turner 1383258000 TOON: Migrate Pathfinding Path Buffers to Common::Point.
This removes the need for i32Point, which used int32, instead of the
int16 of Common::Point. Since the co-ordinates passed in are in int16,
this is safe. Tested with no regressions.

Also, removed return value from walkLine function as it always returned
true.
2012-06-10 20:45:37 +01:00
D G Turner 5458127d97 TOON: Migrate Pathfinding API x,y coordinates to int16.
This harmonises the usage with Common::Point.
2012-06-10 16:00:26 +01:00
D G Turner 2d0cedab1f TOON: Minor cleanups in Pathfinding class. No functional change. 2012-06-09 13:43:42 +01:00
D G Turner fae9f4d5ba TOON: Replace Pathfinding retPath static buffers with Common::Array. 2012-06-09 12:33:30 +01:00
D G Turner a693603e1e TOON: Replace Pathfinding _tempPath static buffers with Common::Array. 2012-06-09 11:58:26 +01:00
D G Turner 380d3f000a TOON: Further cleanup to Pathfinding Class.
Removal of some unused variables, logical reordering of functions and
minor changes to reduce minor duplication. No functional changes.
2012-06-07 14:41:04 +01:00
D G Turner 70f09e4ee3 TOON: Reduce unecessary linkages in Pathfinding class. 2012-06-07 13:50:24 +01:00
D G Turner 8deb8b3d42 TOON: Minor cleanup and formatting fixes to Pathfinding class. 2012-06-07 12:33:13 +01:00
D G Turner dd558510dc TOON: Move PathFindingHeap API to use int16 for x,y coordinates.
The internal x,y point representation was already changed to int16
anyway, so this just harmonises this with the external API (and with
Common::Point which uses int16).
2012-06-07 08:39:38 +01:00
D G Turner c619b8d981 TOON: Replace usage of 'goto'. 2011-12-08 03:10:17 +00:00
Marcus Comstedt a7e49f2945 TOON: Grow size of path finding heap dynamically 2011-07-21 15:00:04 +02:00
Marcus Comstedt e4427fd589 TOON: Fix off-by-one use of path heap array
The first element of the _data array in PathFindingHeap was never
used, fix that.
2011-07-21 13:09:18 +02:00
D G Turner d035bcae82 TOON: Cleanup and Memory Usage Reduction fixes in PathFinding Heap.
This halves the size of the pathifnding heap, but adds warnings if push()
is attempted on a full heap.
2011-07-20 23:05:24 +01:00
Julien 367605d774 TSAGE: Allocate resource decoding buffer on the heap 2011-06-23 15:11:37 +08: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
Bluddy 781e178df3 TOON: Reduced fragmentation by using a fixed value for pathfinding allocation
Toon makes some rather big allocations for pathfinding, alternating between 3MB and 6MB). In small devices, this creates really bad fragmentation which can cause crashes. I set the size at a fixed 6MB.
2011-04-28 18:02:07 +03:00
Ori Avtalion 9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
strangerke fae2be668f TOON: Cleanup 2011-03-10 01:32:03 +01:00
Sylvain Dupont 96f4cc4b8a TOON: Pathfinding & walking improvements
Use direct line path if possible
Smooth facing direction to avoid flickering (entering zanidu shuttle for example)
Fix possible lockups

svn-id: r55624
2011-01-29 20:12:27 +00:00
Sylvain Dupont 1b8678d5de TOON: Path finding bug fixes
Allows Flux to walk close to Drew if really needed to prevent total path block.
Prevents path finding if the character is out of the screen

svn-id: r55051
2010-12-27 21:56:52 +00:00
Sylvain Dupont 698f4c2b45 TOON: Walk animation improved
Smoothing direction changes. Still needs to be polished though.

svn-id: r54221
2010-11-13 01:15:37 +00:00
David Turner 5d30eeea95 TOON: Further corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a significant number still remain.

svn-id: r54136
2010-11-08 03:14:32 +00:00
David Turner 4acad22d6e TOON: Corrections to close some memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option.

svn-id: r54127
2010-11-07 21:08:46 +00:00
Lars Persson c0e2f1c6f8 TOON: Updated code to build properly for WINSCW and GCCE(symbian)
Added templates to MAX & MIN functions. Correct usage of OpcodeV2(instead of Opcode)
Match implementation with function definition. (int32 is not == int on all platforms)

svn-id: r53401
2010-10-13 07:14:38 +00:00
Torbjörn Andersson 54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Sylvain Dupont 95c0e6cc42 TOON: Fixed uninitialized var
svn-id: r53156
2010-10-11 23:14:32 +00:00
Johannes Schickel eef9f7b57b TOON: Ran astyle over the toon engine (+ some manual corrections).
svn-id: r53098
2010-10-09 11:11:26 +00:00
Eugene Sandulenko e11637c7bc TOON: Normalized include paths
svn-id: r53089
2010-10-08 22:45:28 +00:00
Eugene Sandulenko cf82bef02e TOON: Merged Toon engine to ScummVM trunk
svn-id: r53087
2010-10-08 22:30:39 +00:00