11 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
bb4f811b12 BBVS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Colin Snover
972c453986 BBVS: Remove all bit shifts of potentially negative integers
Previous patches that removed shifts of constant negative values
to eliminate UB were valid, but did not correct all places where
this engine was potentially bit shifting negative values. There is
no reason to not just use multiplication and division and let the
compiler make the right choice for optimisation for an
architecture, so that is what this patch does.
2017-11-10 09:57:03 -06:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
johndoe123
1800f9d8dc BBVS: Fix bug #6954: Pathfinding bug in Prison
The bug was caused by a check introduced by me to avoid division-by-zero errors
when the source and dest x values are equal.
This had the side effect that it didn't work well in this case outlined in the
bug report, maybe also in other places.
I'm not sure how to handle a DBZ correctly here so I'm setting the x delta to
1.0 if it would normally be 0.0, which seems to work after walking around
in some scenes.
2015-11-23 13:22:51 +01:00
Filippos Karapetis
88e5998ee5 BBVS: Remove trailing whitespace 2014-10-28 16:24:45 +02:00
Johannes Schickel
f2685a8876 BBVS: Use floating point constants of type float. 2014-06-02 01:00:15 +02:00
Johannes Schickel
3630c588c6 BBVS: Silence double->float conversion warning.
This might not be obvious to a C++ developer, but we use C's sin which is
*always* double. Thus, sin will return a double and therefore some compilers
might warn about this conversion.
2014-06-02 01:00:14 +02:00
Matthew Hoops
d5b5d4b545 BBVS: Silence gcc conversion warnings 2014-06-01 17:28:34 -04:00
Strangerke
e324f3e6be BVBS: Fix some uninitialized variables 2014-03-20 19:28:05 +01:00
Filippos Karapetis
b56f8f2212 BBVS: Move some code out of bbvs.cpp 2014-02-22 20:34:52 +02:00