lugaru.git
16 months agoFriends fight with true enemies, before they attacked player but hurting enemies improvements
Javier Sancho [Thu, 22 Feb 2018 15:57:17 +0000 (16:57 +0100)]
Friends fight with true enemies, before they attacked player but hurting enemies

16 months agoFriends don't abandon player when enemies flee
Javier Sancho [Thu, 22 Feb 2018 15:29:43 +0000 (16:29 +0100)]
Friends don't abandon player when enemies flee

16 months agoPass killeveryone maps when friends are alive
Javier Sancho [Wed, 21 Feb 2018 15:39:37 +0000 (16:39 +0100)]
Pass killeveryone maps when friends are alive

16 months agoUse victim to attack, not player 0
Javier Sancho [Wed, 21 Feb 2018 15:33:44 +0000 (16:33 +0100)]
Use victim to attack, not player 0

16 months agoFriends help player with its enemies
Javier Sancho [Wed, 21 Feb 2018 15:14:29 +0000 (16:14 +0100)]
Friends help player with its enemies

16 months agoFriends always follow the player
Javier Sancho [Tue, 20 Feb 2018 15:53:52 +0000 (16:53 +0100)]
Friends always follow the player

16 months agoPlayer friend looks at the player
Javier Sancho [Tue, 20 Feb 2018 10:31:24 +0000 (11:31 +0100)]
Player friend looks at the player

16 months agoNew non-atacking player
Javier Sancho [Mon, 19 Feb 2018 15:46:20 +0000 (16:46 +0100)]
New non-atacking player

16 months agoObject size selector with better keys
Javier Sancho [Mon, 19 Feb 2018 12:24:32 +0000 (13:24 +0100)]
Object size selector with better keys

19 months agoIn case the resolution settings in the config file have wrong values,
David Carlier [Sun, 10 Dec 2017 21:05:13 +0000 (21:05 +0000)]
In case the resolution settings in the config file have wrong values,
the main window is not appearing, forcing here minimum decent values.

22 months agoFix unused-result warning for chdir
Rémi Verschelde [Wed, 6 Sep 2017 12:31:42 +0000 (14:31 +0200)]
Fix unused-result warning for chdir

Fixes this warning:

Source/main.cpp: In function 'void chdirToAppPath(const char*)':
Source/main.cpp:581:14: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
         chdir(dir);
         ~~~~~^~~~~

22 months agoOpenAL: Fix dispose logic on Linux
Rémi Verschelde [Wed, 6 Sep 2017 12:11:30 +0000 (14:11 +0200)]
OpenAL: Fix dispose logic on Linux

We no longer know what were the problems Ryan refers to,
but the code seems to work just fine with recent OpenAL and solves this error:

AL lib: (EE) alc_cleanup: 1 device not closed

Might help with #98.

22 months agoClothes paths fix: add changes for new mods
Rémi Verschelde [Sun, 12 Feb 2017 15:03:26 +0000 (16:03 +0100)]
Clothes paths fix: add changes for new mods

Used to fix the mods in https://gitlab.com/osslugaru/nonfree-mods

22 months agoCMake: Remove OggVorbis CMake module and use pkg_check_modules
Neal Gompa [Sat, 2 Sep 2017 14:05:39 +0000 (10:05 -0400)]
CMake: Remove OggVorbis CMake module and use pkg_check_modules

We've long since moved from CMake 2.6 and require at least
CMake 3.0, which includes support for leveraging pkgconfig
modules. Let's use that for the Ogg Vorbis libraries.

22 months agoCI: Enable CentOS Continuous Release (CR) repository for oldgcc target
Neal Gompa [Sat, 2 Sep 2017 13:45:43 +0000 (09:45 -0400)]
CI: Enable CentOS Continuous Release (CR) repository for oldgcc target

With things in flux between CentOS and EPEL while CentOS 7.4 is
prepared, the CR repository will ensure dependencies can be found for
EPEL.

Since EPEL targets Red Hat Enterprise Linux specifically, EPEL for
RHEL 7 has already moved onto RHEL 7.4, but CentOS 7.4 hasn't been
released yet.

23 months agoAdded methods for hasWeapon and isPlayerControlled
Côme Chilliet [Sat, 19 Aug 2017 10:55:56 +0000 (12:55 +0200)]
Added methods for hasWeapon and isPlayerControlled

Some tests on id == 0 may be replaced by isPlayerControlled as well, but
it does not always makes sense
(I’d say stuff specific to main player should still test id == 0)

23 months agoMoved hurtidle anim to PersonType to avoid hardcoded wolftype test
Côme Chilliet [Sat, 19 Aug 2017 00:11:00 +0000 (02:11 +0200)]
Moved hurtidle anim to PersonType to avoid hardcoded wolftype test

23 months agoMoved knife catching test to a method and removed hardcoded rabbittype test
Côme Chilliet [Sat, 19 Aug 2017 00:01:08 +0000 (02:01 +0200)]
Moved knife catching test to a method and removed hardcoded rabbittype test

23 months agoMoved max run speed to PersonType
Côme Chilliet [Fri, 18 Aug 2017 23:37:56 +0000 (01:37 +0200)]
Moved max run speed to PersonType

23 months agoMoved clothes boolean to PersonType to avoid test on rabbittype
Côme Chilliet [Fri, 18 Aug 2017 23:23:23 +0000 (01:23 +0200)]
Moved clothes boolean to PersonType to avoid test on rabbittype

2 years agoRemove zlib from documentation and CI setup
Neal Gompa [Sat, 20 May 2017 23:05:09 +0000 (19:05 -0400)]
Remove zlib from documentation and CI setup

2 years agoRemove some unneeded libs & headers
Martin Erik Werner [Sat, 20 May 2017 19:27:59 +0000 (21:27 +0200)]
Remove some unneeded libs & headers

Based on some hints by the automatic dependency checking in Debian
packaging[0], it appears that, at least on Debian GNU/Linux, quite a few
of the libs that lugaru links against are not needed.

Remove linking to those libs, and use of related unneeded headers.

* For ogg/vorbis, it seems like libogg is not needed unless handling
  container metadata?

* For opengl, there seems to be only a subset of the libs that are
  required. Notably the glext.h header seems to only be needed on
  windows for GL_GENERATE_MIPMAP, but not otherwise.

* For zlib it seems to be unused, but removing zlib.h exposed a
  dependency on unistd.h which is now included directly on non-windows.

[0]
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libz.so.1 (it uses
none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libSM.so.6 (it
uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libX11.so.6 (it
uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libogg.so.0 (it
uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libXext.so.6 (it
uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/lugaru/usr/games/lugaru was not linked against libICE.so.6 (it
uses none of the library's symbols)

2 years agoAdd FindOggVorbis.cmake module license
Martin Erik Werner [Sat, 20 May 2017 10:30:19 +0000 (12:30 +0200)]
Add FindOggVorbis.cmake module license

The copyright notice in FindOggVorbis.cmake refers to the BSD license in
a file which is currently not included in Lugaru.

Since the BSD license requires reproduction of the license notice, add
the referenced file with the included license notice.

The COPYING-CMAKE-SCRIPTS file is copied from
svn://anonsvn.kde.org/home/kde/trunk/KDE/kdemultimedia@582599

The origin of the FindOggVorbis.cmake file can be traced to
svn://anonsvn.kde.org/home/kde/trunk/KDE/kdemultimedia@529535 and the
copyright notice and license was added in
svn://anonsvn.kde.org/home/kde/trunk/KDE/kdemultimedia@582599

2 years agoAdded hasClaws property for PersonType
Côme Chilliet [Fri, 21 Apr 2017 07:34:48 +0000 (09:34 +0200)]
Added hasClaws property for PersonType

2 years agoCI: Rework .gitlab-ci.yml to support a CentOS 7 build
Neal Gompa [Thu, 13 Apr 2017 13:07:02 +0000 (09:07 -0400)]
CI: Rework .gitlab-ci.yml to support a CentOS 7 build

Quite a bit of the .gitlab-ci.yml file needed to be reworked so
that the commonalities between Fedora and CentOS could be leveraged
while allowing us to swap out the differences dynamically.

Thus, we can now test commits against the GCC version we use for
release builds while continuing to use latest GCC for development
builds.

As a nice side effect, there are now much fewer invocations of DNF
to install all the needed things, so CI builds should be faster!

2 years agoMoved tempanimation init to Person constructor
Côme Chilliet [Thu, 23 Mar 2017 14:48:07 +0000 (15:48 +0100)]
Moved tempanimation init to Person constructor

2 years agoBuilding default player after PersonTypes are loaded to avoid segfault
Côme Chilliet [Mon, 20 Mar 2017 10:54:20 +0000 (11:54 +0100)]
Building default player after PersonTypes are loaded to avoid segfault

2 years agoDist: Linux: Add content ratings to AppStream appdata/metainfo file
Neal Gompa [Thu, 9 Mar 2017 13:04:51 +0000 (08:04 -0500)]
Dist: Linux: Add content ratings to AppStream appdata/metainfo file

Content ratings uses the Open Age Rating System, v1.0.

This can be tweaked using the generator: https://odrs.gnome.org/oars

2 years agoFix mismatched usage length, build fail on g++
Martin Erik Werner [Wed, 8 Mar 2017 21:51:16 +0000 (22:51 +0100)]
Fix mismatched usage length, build fail on g++

The length of const option::Descriptor usage[] is intended to be
inferred based on the initialisation in Source/main.cpp, however, the
extern declaration in Source/Game.hpp hard-codes it to 13.

Remove the hard-coded 13 in the extern declaration, in favour of the
inferred length.

This also fixes the follwoing build failure with g++ (Debian 4.9.2-10)
4.9.2:
(...)/Source/main.cpp:602:5: error: uninitialized const member ‘option::Descriptor::index’
     };
     ^
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::index’ [-Wmissing-field-initializers]
(...)/Source/main.cpp:602:5: error: uninitialized const member ‘option::Descriptor::type’
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::type’ [-Wmissing-field-initializers]
(...)/Source/main.cpp:602:5: error: uninitialized const member ‘option::Descriptor::shortopt’
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::shortopt’ [-Wmissing-field-initializers]
(...)/Source/main.cpp:602:5: error: uninitialized const member ‘option::Descriptor::longopt’
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::longopt’ [-Wmissing-field-initializers]
(...)/Source/main.cpp:602:5: error: uninitialized const member ‘option::Descriptor::check_arg’
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::check_arg’ [-Wmissing-field-initializers]
(...)/Source/main.cpp:602:5: warning: missing initializer for member ‘option::Descriptor::help’ [-Wmissing-field-initializers]
CMakeFiles/lugaru.dir/build.make:54: recipe for target 'CMakeFiles/lugaru.dir/Source/main.cpp.o' failed

Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com>
2 years agoMoved default scale and default damage tolerance to PersonType.
Côme Chilliet [Fri, 3 Mar 2017 14:27:00 +0000 (15:27 +0100)]
Moved default scale and default damage tolerance to PersonType.

Added a method for type changing in Person.

2 years agoMoved creature power to PersonType
Côme Chilliet [Sat, 25 Feb 2017 01:09:41 +0000 (02:09 +0100)]
Moved creature power to PersonType

2 years agoSet forgotten rabbit talk anim
Côme Chilliet [Sat, 25 Feb 2017 00:37:01 +0000 (01:37 +0100)]
Set forgotten rabbit talk anim

2 years agoImageIO: fix invalid conversion
Romain Naour [Sun, 12 Feb 2017 20:17:44 +0000 (21:17 +0100)]
ImageIO: fix invalid conversion

Fixes:
Source/Utils/ImageIO.cpp:125:27: error: invalid conversion from 'int' to 'boolean' [-fpermissive]
     cinfo.quantize_colors = 0;
                           ^

quantize_colors type is bool, so it must be initialized to TRUE or FALSE.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2 years agoUsing currentFrame as much as possible
Côme Chilliet [Sun, 12 Feb 2017 19:59:06 +0000 (20:59 +0100)]
Using currentFrame as much as possible

2 years agoCMake: Define build type before configuring version header
Rémi Verschelde [Sat, 11 Feb 2017 19:34:07 +0000 (20:34 +0100)]
CMake: Define build type before configuring version header

Otherwise with no manual CMAKE_BUILD_TYPE, we end up with an
empty string.

2 years agoBump version to 1.3-dev
Rémi Verschelde [Sat, 11 Feb 2017 19:19:31 +0000 (20:19 +0100)]
Bump version to 1.3-dev

2 years agoBump version to 1.2 (stable)
Rémi Verschelde [Sat, 11 Feb 2017 19:06:30 +0000 (20:06 +0100)]
Bump version to 1.2 (stable)

2 years agoAdd release notes for version 1.2
Rémi Verschelde [Sat, 11 Feb 2017 19:04:37 +0000 (20:04 +0100)]
Add release notes for version 1.2

2 years agoclang-format: Apply to all headers
Rémi Verschelde [Sat, 11 Feb 2017 18:30:36 +0000 (19:30 +0100)]
clang-format: Apply to all headers

Apparently it had only been applied to .cpp files until now.
Also added `AccessModifierOffset: -4` in the configuration.

2 years agoDevtools: Remove obsolete skin cmds, fix docs
Rémi Verschelde [Sat, 11 Feb 2017 18:20:04 +0000 (19:20 +0100)]
Devtools: Remove obsolete skin cmds, fix docs

2 years agoDevtools: Fix toggling console out of devtools mode
Rémi Verschelde [Sat, 11 Feb 2017 17:58:06 +0000 (18:58 +0100)]
Devtools: Fix toggling console out of devtools mode

2 years agoMaps: Fix hardcoded usage of FurBW.jpg
Rémi Verschelde [Sat, 11 Feb 2017 17:52:34 +0000 (18:52 +0100)]
Maps: Fix hardcoded usage of FurBW.jpg

Part of #91.

2 years agoDevtools: Improve fixtype cmd and document it
Rémi Verschelde [Sat, 11 Feb 2017 17:50:30 +0000 (18:50 +0100)]
Devtools: Improve fixtype cmd and document it

2 years agoDevtools: Enhance ddialog command
Rémi Verschelde [Sat, 11 Feb 2017 17:04:57 +0000 (18:04 +0100)]
Devtools: Enhance ddialog command

It can now be used to delete a given dialog index, and not only
the last one. Also renamed "dialogue" to "dialog" as used in most
places.

Added some documentation about dialog devtools.

2 years agoDevtools: Fix saving player proportions
Rémi Verschelde [Sat, 11 Feb 2017 16:01:47 +0000 (17:01 +0100)]
Devtools: Fix saving player proportions

Fixes #92.

2 years agoDevtools: Add clotheslist cmd and fix devkeys in console
Rémi Verschelde [Sat, 11 Feb 2017 14:28:38 +0000 (15:28 +0100)]
Devtools: Add clotheslist cmd and fix devkeys in console

The `clotheslist` and `clotheslistnear` can be used to list the
clothes (and their tint) of a player in the terminal.
The other fix prevents text input in the console from activating
devtools hotkeys (e.g. "p" placing a player).

2 years agoRename fur textures for clarity
Rémi Verschelde [Sat, 11 Feb 2017 14:26:30 +0000 (15:26 +0100)]
Rename fur textures for clarity

For now keeping FurBW2.jpg, Fur2.png and Fur.jpg which are
hardcoded into several maps. I will eventually get rid of them
as part of #91.

2 years agoImprove end texts for existing campaigns
Rémi Verschelde [Sat, 11 Feb 2017 12:35:46 +0000 (13:35 +0100)]
Improve end texts for existing campaigns

Made the end text left-aligned since the current system
does not allow proper centering of variable length lines.

Completes and closes #60.

2 years agoFixed Wolves damage tolerance which was broken by f38eb24f446b94d592d97b24b315bb44bed...
Côme Chilliet [Sun, 5 Feb 2017 21:48:49 +0000 (22:48 +0100)]
Fixed Wolves damage tolerance which was broken by f38eb24f446b94d592d97b24b315bb44bed7b12c

2 years agoMoved PersonType class to its own file
Côme Chilliet [Sun, 5 Feb 2017 21:31:01 +0000 (22:31 +0100)]
Moved PersonType class to its own file

2 years agoMoved more animation info to PersonType
Côme Chilliet [Sun, 5 Feb 2017 21:24:11 +0000 (22:24 +0100)]
Moved more animation info to PersonType

2 years agoMoved bloodText to PersonType
Côme Chilliet [Sun, 5 Feb 2017 21:10:29 +0000 (22:10 +0100)]
Moved bloodText to PersonType

2 years agoMoved creatures skins to PersonType class
Côme Chilliet [Sun, 5 Feb 2017 20:57:18 +0000 (21:57 +0100)]
Moved creatures skins to PersonType class

2 years agoMoved models paths to PersonType
Côme Chilliet [Sun, 5 Feb 2017 17:53:30 +0000 (18:53 +0100)]
Moved models paths to PersonType

2 years agoPut some sounds and animations information in creature types
Côme Chilliet [Sun, 5 Feb 2017 17:37:22 +0000 (18:37 +0100)]
Put some sounds and animations information in creature types

2 years agoFixed default command so that it does not make you giant
Côme Chilliet [Sat, 4 Feb 2017 00:01:35 +0000 (01:01 +0100)]
Fixed default command so that it does not make you giant

2 years agoMerge branch 'master' of gitlab.com:osslugaru/lugaru
Côme Chilliet [Fri, 3 Feb 2017 23:58:10 +0000 (00:58 +0100)]
Merge branch 'master' of gitlab.com:osslugaru/lugaru

2 years agoMoved proportions system in a PersonType class
Côme Chilliet [Fri, 3 Feb 2017 16:58:13 +0000 (17:58 +0100)]
Moved proportions system in a PersonType class

Still buggy

2 years agoDevtools: Fix scaling issue with creature type change
Rémi Verschelde [Wed, 1 Feb 2017 21:46:11 +0000 (22:46 +0100)]
Devtools: Fix scaling issue with creature type change

Now the `wolfie` command and the [Ctrl+]Alt+Shift+T command behave similarly
by making wolves 15% bigger than rabbits. The duplicate `wolfieisgod` command
was dropped, and the logic for the hotkey was simplified (it was bogus).

2 years agoFixes #88 Fixed joints and muscles loading for an existing skeleton object
Côme Chilliet [Wed, 1 Feb 2017 18:39:13 +0000 (19:39 +0100)]
Fixes #88 Fixed joints and muscles loading for an existing skeleton object

2 years agoEnhancements to devtools input processing code
Rémi Verschelde [Mon, 30 Jan 2017 07:28:56 +0000 (08:28 +0100)]
Enhancements to devtools input processing code

Changed key to modify player skin and type: [Shift+]Alt+T instead of
[Shift+]Alt+O which conflicted placing objects.

Changed key to restart challenge to Alt+K from Super+Z.

Apply fire to nearby player by default (Alt+F), to self with Shift mod.

Various code quality improvements.

2 years agoGameTick: Move input processing to a dedicated method
Rémi Verschelde [Sun, 29 Jan 2017 14:08:42 +0000 (15:08 +0100)]
GameTick: Move input processing to a dedicated method

Gameplay-related input is still in the main Tick() though as it is
tightly coupled to the game logic.

2 years agoThis should fix the segfault from #89
Côme Chilliet [Mon, 30 Jan 2017 18:13:08 +0000 (19:13 +0100)]
This should fix the segfault from #89

2 years agoFixed bindings or documentation to make sure both are consistent with each other
Côme Chilliet [Mon, 30 Jan 2017 17:52:37 +0000 (18:52 +0100)]
Fixed bindings or documentation to make sure both are consistent with each other

2 years agoFix feedback on prev commits from MCMic
Rémi Verschelde [Sun, 29 Jan 2017 22:47:50 +0000 (23:47 +0100)]
Fix feedback on prev commits from MCMic

2 years agoUpdate copyright year to 2017
Rémi Verschelde [Sat, 28 Jan 2017 21:18:27 +0000 (22:18 +0100)]
Update copyright year to 2017

2 years agoFix a few GCC5 and GCC6 warnings
Rémi Verschelde [Sat, 28 Jan 2017 21:14:01 +0000 (22:14 +0100)]
Fix a few GCC5 and GCC6 warnings

2 years agoSplit distribution stuff per platform
Rémi Verschelde [Sat, 28 Jan 2017 17:11:06 +0000 (18:11 +0100)]
Split distribution stuff per platform

2 years agoUnify platform-specific definitions and clean .rc file
Rémi Verschelde [Sat, 28 Jan 2017 16:20:52 +0000 (17:20 +0100)]
Unify platform-specific definitions and clean .rc file

2 years agoAI: Prevent division by 0 when enemy has no velocity
Rémi Verschelde [Sat, 28 Jan 2017 14:26:00 +0000 (15:26 +0100)]
AI: Prevent division by 0 when enemy has no velocity

Fixes #45.

2 years agoDialogs: Fix long lines overflowing the box
Rémi Verschelde [Sat, 28 Jan 2017 12:12:21 +0000 (13:12 +0100)]
Dialogs: Fix long lines overflowing the box

I just reduced their scale factor from 1.5 to 1.4, which seems to work fine.
Also took the opportunity to cleanup the string management while I was trying
to understand what the code does.

Fixes #86.

2 years agoEmpire: Restore Ash's black fur as intended by the author
Rémi Verschelde [Wed, 25 Jan 2017 20:56:11 +0000 (21:56 +0100)]
Empire: Restore Ash's black fur as intended by the author

Fixes #84.

2 years agoOutput version info to stdout and show in menu
Rémi Verschelde [Tue, 24 Jan 2017 18:47:12 +0000 (19:47 +0100)]
Output version info to stdout and show in menu

Fixes #82.

2 years agoCMake: Add version logic and make it generate Version.hpp
Rémi Verschelde [Tue, 24 Jan 2017 18:34:09 +0000 (19:34 +0100)]
CMake: Add version logic and make it generate Version.hpp

Part of #82.

2 years agoRemove bogus clothes paths from task15 and task18
Rémi Verschelde [Tue, 24 Jan 2017 07:56:02 +0000 (08:56 +0100)]
Remove bogus clothes paths from task15 and task18

2 years agoRemove occurences of All.png used as clothes
Rémi Verschelde [Mon, 23 Jan 2017 22:53:45 +0000 (23:53 +0100)]
Remove occurences of All.png used as clothes

Fixes #54.

2 years agoDevtools: Prevent clothes from saving invalid path
Rémi Verschelde [Mon, 23 Jan 2017 17:38:57 +0000 (18:38 +0100)]
Devtools: Prevent clothes from saving invalid path

Fixes #59.

2 years agoFixed invalid participant focus in svengrotto map (Fixes #79)
Côme Chilliet [Mon, 23 Jan 2017 17:24:09 +0000 (18:24 +0100)]
Fixed invalid participant focus in svengrotto map (Fixes #79)

2 years agoWorkaround GCC issue with mvt keys in tutorial
Rémi Verschelde [Mon, 23 Jan 2017 17:13:50 +0000 (18:13 +0100)]
Workaround GCC issue with mvt keys in tutorial

Fixes #64.

2 years agoReading the campaign end text from campaign file (see #60)
Côme Chilliet [Mon, 23 Jan 2017 17:11:13 +0000 (18:11 +0100)]
Reading the campaign end text from campaign file (see #60)

2 years agoFixes #40 Scores are now integers
Côme Chilliet [Mon, 23 Jan 2017 16:28:46 +0000 (17:28 +0100)]
Fixes #40 Scores are now integers

They are still stored as floats in save file to be backward compatible

2 years agoFixed search for closest ally or weapon
Côme Chilliet [Mon, 23 Jan 2017 16:18:33 +0000 (17:18 +0100)]
Fixed search for closest ally or weapon

2 years agoAdded braces to all statements with clang-tidy and ran clang-format again
Côme Chilliet [Mon, 9 Jan 2017 23:52:57 +0000 (00:52 +0100)]
Added braces to all statements with clang-tidy and ran clang-format again

2 years agoApplied clang-format on all files
Côme Chilliet [Mon, 9 Jan 2017 23:50:38 +0000 (00:50 +0100)]
Applied clang-format on all files

2 years agoAdded .clang-format file
Côme Chilliet [Mon, 9 Jan 2017 23:49:48 +0000 (00:49 +0100)]
Added .clang-format file

2 years agoFixed a few parentheses
Côme Chilliet [Mon, 9 Jan 2017 23:48:44 +0000 (00:48 +0100)]
Fixed a few parentheses

2 years agoReplaced patchobjects arrays by vectors, cleaned code a bit
Côme Chilliet [Sun, 8 Jan 2017 17:43:28 +0000 (18:43 +0100)]
Replaced patchobjects arrays by vectors, cleaned code a bit

2 years agoCleaned up Terrain::AddObject
Côme Chilliet [Sun, 8 Jan 2017 17:14:29 +0000 (18:14 +0100)]
Cleaned up Terrain::AddObject

2 years agoFix levels numbering in main.txt
Rémi Verschelde [Sun, 8 Jan 2017 14:54:17 +0000 (15:54 +0100)]
Fix levels numbering in main.txt

The numbers were offset by one due to the raidercamp between
Level 7 and Level 8, which had caused a bogus decrement of numlevels
causing crashes.

Fixes regression from 4343a4e3ad10d520d65dc537012440fc7077eeb0.

2 years agoAdded a helper for getting model triangle vertexes, mostly used in Decal for now.
Côme Chilliet [Sun, 8 Jan 2017 14:44:11 +0000 (15:44 +0100)]
Added a helper for getting model triangle vertexes, mostly used in Decal for now.

2 years agoFixes #74 Shadow glitch (was using decal.vertex instead of model.vertex)
Côme Chilliet [Sun, 8 Jan 2017 14:11:26 +0000 (15:11 +0100)]
Fixes #74 Shadow glitch (was using decal.vertex instead of model.vertex)

2 years agoFixed participantfocus value in a dialogue in sventemple to avoid crash
Côme Chilliet [Fri, 6 Jan 2017 14:06:42 +0000 (15:06 +0100)]
Fixed participantfocus value in a dialogue in sventemple to avoid crash

2 years agoCreating map saving folder if needed
Côme Chilliet [Fri, 6 Jan 2017 13:46:01 +0000 (14:46 +0100)]
Creating map saving folder if needed

2 years agoAdded .at usage to have clearer crash when dialogue contains invalid participant
Côme Chilliet [Fri, 6 Jan 2017 13:44:44 +0000 (14:44 +0100)]
Added .at usage to have clearer crash when dialogue contains invalid participant

2 years agoConsole: Return gracefully when loading missing level
Rémi Verschelde [Wed, 4 Jan 2017 17:28:04 +0000 (18:28 +0100)]
Console: Return gracefully when loading missing level

For this, implemented Folders::file_exists to check for the existence
of a given file, so that we can exit gracefully before raising a FileNotFound
exception which then closes the game.

The console and stderr both display an error message.
Part of #23.

2 years agoRemoved unused defines, changed method names case
Côme Chilliet [Wed, 4 Jan 2017 17:34:32 +0000 (18:34 +0100)]
Removed unused defines, changed method names case

2 years agoChanged Weapon models and textures to be private
Côme Chilliet [Wed, 4 Jan 2017 14:02:01 +0000 (15:02 +0100)]
Changed Weapon models and textures to be private

2 years agoMoved Weapon model and texture loading in Weapon class
Côme Chilliet [Wed, 4 Jan 2017 14:00:53 +0000 (15:00 +0100)]
Moved Weapon model and texture loading in Weapon class

2 years agoUsing an enum for model type
Côme Chilliet [Wed, 4 Jan 2017 14:00:42 +0000 (15:00 +0100)]
Using an enum for model type

2 years agoRemoved unused members in Model class
Côme Chilliet [Wed, 4 Jan 2017 13:28:57 +0000 (14:28 +0100)]
Removed unused members in Model class