aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/math
AgeCommit message (Collapse)Author
2018-08-26BLADERUNNER: Remove use of C99 mathColin Snover
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-26SWORD25: Remove use of C99 sqrtfColin Snover
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.
2017-07-10Revert "COMMON: Change way the Singleton instances are instantiated"Eugene Sandulenko
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken.
2017-07-10COMMON: Change way the Singleton instances are instantiatedThierry Crozat
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.
2016-09-03JANITORIAL: Fix include statementsEugene Sandulenko
2015-12-09SWORD25: Fix typoJakub Wilk
2014-02-18SWORD25: Make GPL headers consistent in themselves.Johannes Schickel
2013-10-05SWORD25: Fix regression in persistence codeThierry Crozat
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-09-29SWORD25: Fix compilationEugene Sandulenko
2013-09-29SWORD25: Specify integer sizeEugene Sandulenko
2013-09-29SWORD25: int -> int32 correctnessEugene Sandulenko
2011-06-30ALL: Require DECLARE_SINGLETON to be used in the Common namepsaceOri Avtalion
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-05-25ALL: initialise -> initializeMatthew Hoops
2011-05-23SWORD25: Avoid including lua headers in other headersMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-21SWORD25: Reduce code duplication; formattingMax Horn
2011-01-28SWORD25: Removed a lot of debug/unimplemented/unused functionsFilippos Karapetis
svn-id: r55600
2011-01-24SWORD25: CleanupFilippos Karapetis
svn-id: r55501
2011-01-24SWORD25: Removed the logErrorLn and logWarningLn wrappersFilippos Karapetis
svn-id: r55488
2011-01-23SWORD25: Fix GCC Compilation Warnings.David Turner
svn-id: r55482
2011-01-23SWORD25: Removed several unused methods of the Vertex class, and made a ↵Filippos Karapetis
subclass of the Common::Point class svn-id: r55478
2011-01-23SWORD25: Removed several unused methods from the Polygon classFilippos Karapetis
svn-id: r55477
2011-01-23SWORD25: Replaced BS_ASSERT() with assert()Filippos Karapetis
svn-id: r55464
2011-01-23SWORD25: Removed the custom log class and replaced it with ↵Filippos Karapetis
warning/error/debugC calls svn-id: r55462
2010-11-28SWORD25: Fix warning about uninitialized DijkstraNode::parentIterMax Horn
svn-id: r54551
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
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-10-25SWORD25: Get rid of most of the 'kernel service/superclass' codeMax Horn
svn-id: r53835
2010-10-24SWORD25: Remove outdated commentsMax Horn
svn-id: r53752
2010-10-19SWORD25: Enforced code formatting rules in rest of the engineEugene Sandulenko
svn-id: r53626
2010-10-19SWORD25: Enforce code naming conventions in gfx/image/imageloader*Eugene Sandulenko
svn-id: r53623
2010-10-19SWORD25: Enforce code naming conventions in gfx/graphicengine*Eugene Sandulenko
svn-id: r53621
2010-10-19SWORD25: Optimize ReverseArray, move it to only place it is usedMax Horn
svn-id: r53606
2010-10-19SWORD25: Added operator= to Polygon classPaul Gilbert
This fixes a corruption where vertice arrays were being copied directly and destroyed prematurely svn-id: r53603
2010-10-18SWORD25: Renamed Lua .c files to .cpp and make it compilableEugene Sandulenko
svn-id: r53568
2010-10-15SWORD25: Do not use Kernel::GetService directly anymoreMax Horn
svn-id: r53477
2010-10-13SWORD25: Semi-colon cleanup.Johannes Schickel
svn-id: r53446
2010-10-13SWORD25: Invoke parent's class copy constructorMax Horn
svn-id: r53432
2010-10-13SWORD25: Convert object registries to singletonsMax Horn
svn-id: r53431
2010-10-13SWORD25: Renamed getInstance() -> instance()Max Horn
svn-id: r53430
2010-10-13SWORD25: Oops, atan2() takes two argumentsFilippos Karapetis
svn-id: r53429
2010-10-13SWORD25: Extended Mac OSX compilation fix for sqrtf and atan2fFilippos Karapetis
svn-id: r53426
2010-10-13SWORD25: Hopefully fixed compilation under Mac OSX, Solaris and mingw32Filippos Karapetis
Taken from sound/softsynth/mt32/tables.cpp lines 28-41 (thanks LordHoto) svn-id: r53425
2010-10-13SWORD25: Enforced code naming conventions in math/*Eugene Sandulenko
svn-id: r53392
2010-10-13SWORD25: Enforced code naming conventions in script/*Eugene Sandulenko
svn-id: r53391
2010-10-12SWORD25: Comply to the code conventions for several classesEugene Sandulenko
svn-id: r53310
2010-10-12SWORD25: unsigned int -> uintEugene Sandulenko
svn-id: r53309
2010-10-12SWORD25: Corrected the definition of infinity constantPaul Gilbert
Previous string of ~(-1) was actually evaluating to 0, which was screwing up the path-finding algorithms svn-id: r53290
2010-10-12SWORD25: Bugfix to walk path detectionPaul Gilbert
svn-id: r53289
2010-10-12SWORD25: Refactored engine to remove BS_Rect classPaul Gilbert
svn-id: r53265
2010-10-12SWORD25: removed BS_ prefix from rest of the classes.Eugene Sandulenko
The things which are intentionally left with the prefix: BS_LOG, BS_ASSERT, BS_Rect, BS_String. svn-id: r53261