1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

436 Commits

Author SHA1 Message Date
Mathieu Schroeter
d2046a9389 Move code for testing if an object can burn in a dedicated func 2018-02-18 23:24:06 +01:00
Mathieu Schroeter
1093c048ac Update some copyright dates 2018-02-14 06:36:22 +01:00
Mathieu Schroeter
403b5dbb3d Use the right mouse click (when building) for deleting
- It fixes issue #55.
2018-02-14 06:16:45 +01:00
Mathieu Schroeter
0bc1d00074 Cosmetic 2018-02-13 23:44:08 +01:00
Mathieu Schroeter
0239d1e4ee Ensure that gettext strings are always regenerated
- It fixes issue #52.
2018-02-13 23:38:23 +01:00
Mathieu Schroeter
61a1ab65eb Fix mission stripped paving stones goal when there are less or more than 4 blupi
The minimal number of blupi must be used instead of 4.

- It fixes issue #51.
2018-02-05 23:21:56 +01:00
Mathieu Schroeter
883ab7ca19 Free the renderer only fter the textures in order to prevent double free
The reason is that the renderer tries to free the associated textures.
It generates assertion errors on macOS.
2018-02-05 18:22:31 +01:00
Mathieu Schroeter
8bfafd3e4e Fix first texture loading on OSX where it was possible to have garbage
The cache ensures that the texture is cleared after the rendering.
2018-02-05 18:14:21 +01:00
Mathieu Schroeter
c6d109f87d Revert "Return the music format finally retrieved by GetMusicLocation"
This reverts commit 7097c6708dc4e00d2aa86e95cea279cdfe20a432.
2018-01-31 23:57:49 +01:00
Mathieu Schroeter
6975b664b9 Prefer directsound over winmm under Windows 2018-01-31 23:38:27 +01:00
Mathieu Schroeter
fbfadb1eef Enable only music choices accordingly to the available formats
It fixes OdyX need #47.
2018-01-31 07:32:33 +01:00
Mathieu Schroeter
e52704d937 Revert "Add an argument to look for music only in the base location"
This reverts commit ce0fe82a02c0334a068bd2b78fa1f92e81680806.

It's not very useful..
2018-01-31 07:20:36 +01:00
Mathieu Schroeter
ce0fe82a02 Add an argument to look for music only in the base location 2018-01-31 07:10:32 +01:00
Mathieu Schroeter
7097c6708d Return the music format finally retrieved by GetMusicLocation
It means that it's possible that this function returns something
different of the restoreMusic settings. It's the case when the prefered
format is not available in the directories.
2018-01-31 06:59:02 +01:00
Mathieu Schroeter
daa3dbf22b Move the code to retrieve the music in a dedicated method 2018-01-31 06:50:56 +01:00
Mathieu Schroeter
9543ebb60f Add support for all drivers (renderers) 2017-12-14 23:42:54 +01:00
Mathieu Schroeter
82cbcc3611 Change and add missing fr translations 2017-12-14 23:17:24 +01:00
Mathieu Schroeter
dc8f6319f0 Cosmetic: rename windowScale to zoom 2017-12-14 23:10:24 +01:00
Mathieu Schroeter
d27aaf4b3e Cosmetic: remove stupid comment 2017-12-14 23:08:05 +01:00
Mathieu Schroeter
1db67ed200 Save the window zoom and fullscreen settings in the user preferences 2017-12-14 23:07:17 +01:00
Mathieu Schroeter
f97d1c3644 Check that the zoom (-z) is in the range 2017-12-13 23:01:48 +01:00
Mathieu Schroeter
2ac9f735af Exit immediatly on error with the cli parser 2017-12-13 22:40:42 +01:00
Mathieu Schroeter
da3d683bf7 Add a global settings entry for switching between ogg and midi music 2017-12-12 23:48:21 +01:00
Mathieu Schroeter
14836df8fc Remove stupid code 2017-12-12 22:44:32 +01:00
Mathieu Schroeter
6237cfda9f Add the restoremidi option with the config.json file 2017-12-12 22:44:32 +01:00
Mathieu Schroeter
54d7eec1a3 Add a way to change the driver used by the accelerated renderer 2017-12-12 22:44:32 +01:00
Mathieu Schroeter
67ea4d0c2e Look music for user dir, fallback to the game dir
Then it's possible to overload the original musicis by providing yours in
the user directory (in music subdir).
2017-12-11 18:42:49 +01:00
Mathieu Schroeter
d2bfd12934 Restore midi playback support and add --restore-midi cli argument
- It closes issue #49.
2017-12-10 15:34:47 +01:00
Mathieu Schroeter
a058da17a3 Move the function to test if a file exists in misc 2017-12-10 15:29:11 +01:00
Mathieu Schroeter
9efce31d57 Add licenses of new lib (especially for ogg playing) 2017-12-07 17:43:22 +01:00
Mathieu Schroeter
21bd7d3e90 Use ogg music files instead of midi
It prevents different behaviour between OS.
2017-12-07 11:01:01 +01:00
Mathieu Schroeter
222113a343 Add log for SDL_Init failures 2017-12-02 23:23:35 +01:00
Mathieu Schroeter
8f5cfdfaa0 Fix Win32 build by removing WPARAM/LPARAM clash 2017-12-01 13:52:36 +01:00
Mathieu Schroeter
315117e7da Fix regression, halt only when suspend 2017-12-01 10:44:23 +01:00
Mathieu Schroeter
85b8f43738 Fix leak with audio when exiting 2017-11-27 06:46:07 +01:00
Mathieu Schroeter
a1b5e5c76f Fix music memleaks 2017-11-26 22:21:37 +01:00
Mathieu Schroeter
579a74000c Fix blupi channel memleak 2017-11-26 21:57:20 +01:00
Mathieu Schroeter
cb4dd444b4 Fix renderer memleak 2017-11-26 21:57:04 +01:00
Mathieu Schroeter
32e734f59d Prevent screen move when we are not playing or building
- It closes issue #46.
2017-11-03 08:55:07 +01:00
Mathieu Schroeter
bdf93adc77 Fix one more disciple animation 2017-11-02 17:56:50 +01:00
Mathieu Schroeter
5a3b3ebf87 Improve no music button position, thanks to @JesseRoxII
- It fixes issue #43.
2017-11-02 17:47:24 +01:00
Mathieu Schroeter
fdcfd891cc Cosmetic: invert logic 2017-11-01 07:29:23 +01:00
Mathieu Schroeter
61bd9261bf Use small timeouts with cURL 2017-11-01 07:01:22 +01:00
Mathieu Schroeter
4b8623f408 Abort the update curl request when exiting
It can take one second (max).

- It closes issue #40.
2017-11-01 06:58:46 +01:00
Mathieu Schroeter
67c7c4c970 Fix regression when recording or playing a demo
Only keyboard events must be accepted with demos.
2017-10-31 18:45:06 +01:00
Mathieu Schroeter
503ed8ce7f Fix uninitialized variable 2017-10-30 18:26:01 +01:00
Mathieu Schroeter
546f5a86ba Add smooth scrolling for the playing and build area
It fixes the issue #28.
2017-10-30 18:14:31 +01:00
Mathieu Schroeter
64a0bf6512 Cosmetic 2017-10-30 17:38:51 +01:00
Mathieu Schroeter
481f4db4b4 Use a method for fixing the decor shifting
It will be used for supporting the smooth scrolling.
2017-10-30 17:37:59 +01:00
Mathieu Schroeter
6e7947b7be Disable the pause when the window is deactivated (debug) 2017-10-30 17:36:28 +01:00