Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Thanasis Antoniou
f68d0d7d36
SWORD25: Convert ANSI source files to UTF-8
...
Gets rid of VS Studio's warnings about illegal characters
2020-04-18 10:24:22 +03:00
Bastien Bouclet
c115c33b1f
SWORD25: Add override keywords
2020-02-09 12:43:16 +01:00
Nipun Garg
c1f029c6dc
COMMON: Move Lua into Common and make it into...
...
an engine feature
2019-08-13 10:18:02 +02:00
Colin Snover
81f78d4ddf
BLADERUNNER: Remove use of C99 math
...
C++ math functions are overloaded so operate using single-precision
when receiving a float input. The C standard library on FreeMiNT
does not fully support C99 math so use of sqrtf, sinf, etc.
instead of the C++ API does not work.
2018-08-26 15:33:44 +03:00
Colin Snover
6af0c77b5a
SWORD25: Remove use of C99 sqrtf
...
C++ sqrt is overloaded so operates using single-precision when
receiving a float input. The C standard library on FreeMiNT does
not fully support C99 math so use of sqrtf instead of sqrt(float)
does not work.
2018-08-26 15:33:44 +03:00
Eugene Sandulenko
940b2a20f1
Revert "COMMON: Change way the Singleton instances are instantiated"
...
This reverts commit eefa72afa1 .
With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1
COMMON: Change way the Singleton instances are instantiated
...
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Eugene Sandulenko
cad834a69c
JANITORIAL: Fix include statements
2016-09-03 15:19:37 +02:00
Jakub Wilk
407a5a1f55
SWORD25: Fix typo
2015-12-09 23:02:01 +01:00
Johannes Schickel
bad7cdd3a6
SWORD25: Make GPL headers consistent in themselves.
2014-02-18 02:39:38 +01:00
Thierry Crozat
f55259e3b1
SWORD25: Fix regression in persistence code
...
The regression was introduced by commit e6ba26ff0d which wrote
coordinates of a rect as unsigned int when they were before written
as signed int. Since the load code was not modified it still expected
signed int. They are now again written as signed int. Any gamed saved
between commit e6ba26ff0d and this commit will therefore be corrupted.
2013-10-05 00:25:04 +01:00
Eugene Sandulenko
c73904c978
SWORD25: Fix compilation
2013-09-29 10:30:39 +03:00
Eugene Sandulenko
2333041fdf
SWORD25: Specify integer size
2013-09-29 10:15:24 +03:00
Eugene Sandulenko
e6ba26ff0d
SWORD25: int -> int32 correctness
2013-09-29 10:02:34 +03:00
Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Max Horn
3931e1dc50
SWORD25: Avoid including lua headers in other headers
2011-05-23 19:12:25 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
bf4dc80419
SWORD25: Reduce code duplication; formatting
2011-03-21 14:36:25 +01:00
Filippos Karapetis
42670975ac
SWORD25: Removed a lot of debug/unimplemented/unused functions
...
svn-id: r55600
2011-01-28 20:52:52 +00:00
Filippos Karapetis
6dc0999c6d
SWORD25: Cleanup
...
svn-id: r55501
2011-01-24 14:00:55 +00:00
Filippos Karapetis
1f1cb1f140
SWORD25: Removed the logErrorLn and logWarningLn wrappers
...
svn-id: r55488
2011-01-24 00:03:09 +00:00
David Turner
2c2ef3973a
SWORD25: Fix GCC Compilation Warnings.
...
svn-id: r55482
2011-01-23 20:51:16 +00:00
Filippos Karapetis
3d15871ee2
SWORD25: Removed several unused methods of the Vertex class, and made a subclass of the Common::Point class
...
svn-id: r55478
2011-01-23 19:06:35 +00:00
Filippos Karapetis
b17d4ada86
SWORD25: Removed several unused methods from the Polygon class
...
svn-id: r55477
2011-01-23 19:02:36 +00:00
Filippos Karapetis
1250785822
SWORD25: Replaced BS_ASSERT() with assert()
...
svn-id: r55464
2011-01-23 15:01:24 +00:00
Filippos Karapetis
00a0f8d15d
SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
...
svn-id: r55462
2011-01-23 14:49:50 +00:00
Max Horn
b3ba5f6ec5
SWORD25: Fix warning about uninitialized DijkstraNode::parentIter
...
svn-id: r54551
2010-11-28 21:33:27 +00:00
Max Horn
abe1959d36
COMMON: Simplify DECLARE_SINGLETON macro
...
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
2010-11-16 08:23:13 +00:00
Max Horn
e761f76653
SWORD25: Get rid of most of the 'kernel service/superclass' code
...
svn-id: r53835
2010-10-25 22:41:25 +00:00
Max Horn
2da4469686
SWORD25: Remove outdated comments
...
svn-id: r53752
2010-10-24 01:29:59 +00:00
Eugene Sandulenko
6629efc676
SWORD25: Enforced code formatting rules in rest of the engine
...
svn-id: r53626
2010-10-19 21:03:33 +00:00
Eugene Sandulenko
f3becaddf1
SWORD25: Enforce code naming conventions in gfx/image/imageloader*
...
svn-id: r53623
2010-10-19 20:52:47 +00:00
Eugene Sandulenko
d94435eebd
SWORD25: Enforce code naming conventions in gfx/graphicengine*
...
svn-id: r53621
2010-10-19 20:51:21 +00:00
Max Horn
88bca8e13d
SWORD25: Optimize ReverseArray, move it to only place it is used
...
svn-id: r53606
2010-10-19 09:43:31 +00:00
Paul Gilbert
3b29bda9a1
SWORD25: Added operator= to Polygon class
...
This fixes a corruption where vertice arrays were being copied directly and destroyed prematurely
svn-id: r53603
2010-10-19 09:23:20 +00:00
Eugene Sandulenko
3feac393b0
SWORD25: Renamed Lua .c files to .cpp and make it compilable
...
svn-id: r53568
2010-10-18 17:12:00 +00:00
Max Horn
550073ee04
SWORD25: Do not use Kernel::GetService directly anymore
...
svn-id: r53477
2010-10-15 12:18:19 +00:00
Johannes Schickel
bc2781fdb3
SWORD25: Semi-colon cleanup.
...
svn-id: r53446
2010-10-13 20:04:50 +00:00
Max Horn
9755c63292
SWORD25: Invoke parent's class copy constructor
...
svn-id: r53432
2010-10-13 15:41:55 +00:00
Max Horn
9b4d41d2d2
SWORD25: Convert object registries to singletons
...
svn-id: r53431
2010-10-13 15:41:34 +00:00
Max Horn
8f4f0d16fc
SWORD25: Renamed getInstance() -> instance()
...
svn-id: r53430
2010-10-13 15:41:00 +00:00
Filippos Karapetis
17f9913a24
SWORD25: Oops, atan2() takes two arguments
...
svn-id: r53429
2010-10-13 15:06:14 +00:00
Filippos Karapetis
a3d3e94a8d
SWORD25: Extended Mac OSX compilation fix for sqrtf and atan2f
...
svn-id: r53426
2010-10-13 14:40:32 +00:00
Filippos Karapetis
090540504d
SWORD25: Hopefully fixed compilation under Mac OSX, Solaris and mingw32
...
Taken from sound/softsynth/mt32/tables.cpp lines 28-41 (thanks LordHoto)
svn-id: r53425
2010-10-13 14:33:47 +00:00
Eugene Sandulenko
063cb5d84c
SWORD25: Enforced code naming conventions in math/*
...
svn-id: r53392
2010-10-13 00:09:32 +00:00
Eugene Sandulenko
54ccc8f4c9
SWORD25: Enforced code naming conventions in script/*
...
svn-id: r53391
2010-10-13 00:08:28 +00:00
Eugene Sandulenko
06bce68860
SWORD25: Comply to the code conventions for several classes
...
svn-id: r53310
2010-10-12 23:32:32 +00:00