Kirben
818a33ea30
SWORD25: Remove ADGF_TESTING from Broken Sword 2.5
2016-02-28 11:13:55 +11:00
Eugene Sandulenko
59aede6228
SWORD25: Fix bug #6981 : High CPU usage on one core
...
The game loop is implemented in Lua, and there are no delays.
Now we wait 10ms on each event pulling, as we always do.
2016-02-21 22:53:26 +01:00
Eugene Sandulenko
12fadf713d
SWORD25: Fixing bug #7041 : SWORD25: Crash in final scene
...
The original was ignoring Lua errors in that scene and was
restoring the state with longjmp.
We are yet to see the platform compatibility, but Lua's code
is too tangled to make simple replacement with error() work.
Another possible alternative would be to rework the original
game scripts. We will do it if this commit is problematic.
2016-02-19 22:42:01 +01:00
Alexandre Detiste
6c298e964f
JANITORIAL: Typos detected with lintian & grep
2016-02-15 18:27:02 +01:00
Willem Jan Palenstijn
ad688f9d6f
SWORD25: Remove now unused function
2016-02-02 02:16:41 +01:00
Willem Jan Palenstijn
75f1d2e259
SWORD25: Use more appropriate function for growing the stack
...
The call to lua_growstack in unpersistThread would unconditionally at
least double the size of the stack. This caused memory usage to grow
exponentially (literally) with the number of serialized threads.
Bugs #6977 , #6999 .
2016-02-02 01:21:28 +01:00
Johannes Schickel
35244a8643
SWORD25: Make #include follow our conventions.
2015-12-14 05:23:16 +01:00
Johannes Schickel
6dabb5c414
SWORD25: Call requested pixel format by its correct name.
2015-12-14 05:16:12 +01:00
Johannes Schickel
40421f1854
SWORD25: Cleanup.
2015-12-14 05:08:05 +01:00
Johannes Schickel
cb8e611e33
SWORD25: Fix uninitialized variable usage.
...
When using the constructor of Panel which directly calls unpersist _color was
uninitialized. However, unpersit uses setColor which assumes _color is
initialized properly. Caused valgrind warnings when loading.
2015-12-14 05:08:05 +01:00
Johannes Schickel
184ae49302
SWORD25: Plug memory leak in RenderedImage.
2015-12-14 05:08:05 +01:00
Johannes Schickel
74321fcd22
SWORD25: Let ImgLoader write into Graphics::Surface.
2015-12-14 05:08:05 +01:00
Jakub Wilk
407a5a1f55
SWORD25: Fix typo
2015-12-09 23:02:01 +01:00
Strangerke
ade912da56
SWORD25: Build engine by default
2015-12-06 22:31:29 +01:00
Eugene Sandulenko
1779fba59b
SWORD25: Mark Sword 2.5 as testing
2015-12-04 11:53:07 +01:00
Eugene Sandulenko
3a574272b8
SWORD25: Remove unused class variable
2015-11-30 23:54:27 +01:00
Eugene Sandulenko
7449c09f4a
SWORD25: Init variables
2015-11-30 23:54:27 +01:00
Eugene Sandulenko
2d0b914301
SWORD25: Added Ultimate version detection
2015-11-19 00:52:20 +01:00
Eugene Sandulenko
efaf82c66e
SWORD25: Fix Hungarian version support
2015-11-19 00:51:44 +01:00
Eugene Sandulenko
dbb473752b
SWORD25: Fix tint color
2015-11-18 22:54:27 +01:00
Eugene Sandulenko
aa9b5e94b6
SWORD25: Implement missing SWF opcode
2015-11-18 00:13:18 +01:00
Eugene Sandulenko
aa74254f23
SWORD25: Translate comments
2015-11-17 23:28:57 +01:00
Eugene Sandulenko
4dc23ea289
SWORD25: Fix text rendering
2015-11-17 23:17:20 +01:00
Willem Jan Palenstijn
2b31096856
SWORD25: Fix comment translation
2015-11-13 10:51:29 +01:00
Eugene Sandulenko
1f1ef9b632
SWORD25: Fixing typo of typo. This time for real
2015-11-13 09:09:05 +01:00
Eugene Sandulenko
a47ab5e1d9
SWORD25: Fix typo
2015-11-13 08:21:51 +01:00
Eugene Sandulenko
ca4c10f424
SWORD25: Translate comments
2015-11-13 00:21:59 +01:00
Eugene Sandulenko
882989f5c3
SWORD25: Fix thumbnail generation and make it portable
2015-11-13 00:03:42 +01:00
Christian Krause
d39f93af68
SWORD25: Draw next movie frame only when an update is needed
...
This fixes the problem that the movies are played too fast
and get out of sync with additionally played speech samples.
2015-05-03 12:19:17 +02:00
Matthew Hoops
797506eff7
SWORD25: Use fabs for absolute value of doubles
2015-04-11 16:12:47 -04:00
RichieSams
4c64f7e194
SWORD25: Remove unused code
...
The original idea was to keep the code variation and pick the best one. However,
these two methods we're portable enough for our needs.
2015-01-07 07:00:13 -06:00
Eugene Sandulenko
baacf0be61
SWORD25: Commend unused and unportable functions
2015-01-04 22:16:50 +01:00
Eugene Sandulenko
17fe53a34c
SWORD25: Hopefully fix compilation errors
2015-01-04 22:10:17 +01:00
Eugene Sandulenko
ce45caaf83
SWORD25: Fix warning
2015-01-04 21:06:49 +01:00
RichieSams
e4f74b6c34
SWORD25: Remove the option to persist a double as a string
...
Since the current method *should* be more accurate
2014-12-30 18:28:14 -06:00
RichieSams
9a4d62e76a
SWORD25: Change function names to use persist instead of serialize
...
Same argument as in 97c35714ce
.
To match the rest of the SWORD25 code base
2014-12-30 18:26:59 -06:00
RichieSams
8ee75e1dc5
SWORD25: Add Pluto copyright message to new persistence code
...
Since the code is based off the Pluto code
2014-12-30 18:22:15 -06:00
RichieSams
eaff6a40f6
SWORD25: Correct include guards to reflect the changes to the file names
2014-12-30 18:21:43 -06:00
RichieSams
67114c3e7e
SWORD25: Remove old lua persistence files
2014-12-30 15:40:33 -06:00
RichieSams
8668707f16
SWORD25: Fix how nils are persisted
...
The unpersist code expects nils to be represented as an index with value 0.
The persist code incorrectly wrote out this data
2014-12-30 15:40:33 -06:00
RichieSams
08e3f21a8d
SWORD25: Rename double serialization file to better represent what it is
...
AKA functions, rather than a class
2014-12-30 15:40:33 -06:00
RichieSams
97c35714ce
SWORD25: Rename lua serialization functions to use 'persist' in order to match the rest of the engine
2014-12-30 15:40:29 -06:00
RichieSams
a188b31d15
SWORD25: Use new lua serialization functions to persist state
2014-12-30 13:42:45 -06:00
RichieSams
0b8482b55f
SWORD25: Update module.mk with lua serialization changes
2014-12-30 13:42:02 -06:00
RichieSams
2fb116f10e
SWORD25: Move all lua serialization helper functions to their own file
2014-12-30 13:41:24 -06:00
Adrian Astley
2c7a87a4e3
SWORD25: Fix code formatting
...
... with AStyle
2014-12-19 14:51:00 -06:00
Adrian Astley
de20880d9d
SWORD25: Re-write the pluto unserializing function(s)
2014-12-19 13:41:58 -06:00
Adrian Astley
dedfd7aa84
SWORD25: Move common functions to their own set of files so they can be shared
2014-12-19 13:38:56 -06:00
Adrian Astley
efcd6196ee
SWORD25: Create a function for serializing lua objects
...
This function is very similar to the Pluto function. However, this code
is much cleaner and is endian-safe
2014-12-19 11:29:22 -06:00
Adrian Astley
ff35d7118c
SWORD25: Create a set of functions for manually serializing a double
...
Since we can't assume IEEE.
2014-12-19 11:29:22 -06:00