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

132 Commits

Author SHA1 Message Date
Mathieu Schroeter
b116a98d4e Revert "Do not change the bordered style on Windows"
It's not a problem...

This reverts commit 2d80222257f5745fd86d61e1800cdc08e1b7d8b8.
2018-05-31 22:47:57 +02:00
Mathieu Schroeter
3aba743cd4 Reload the textures when the renderer is asking for
It seems that it fixes textures lose completly.
2018-05-31 22:46:03 +02:00
Mathieu Schroeter
2d80222257 Do not change the bordered style on Windows
It's useless and it seems that the textures reload doesn't work
everytime in this case.
2018-05-31 22:28:51 +02:00
Mathieu Schroeter
0654c3939a Force main display (0) for fullscreen mode
It seems that it doesn't work fine to set the fullscreen mode on the
second display (at least with NVidia) and Windows.
2018-05-31 22:27:34 +02:00
Mathieu Schroeter
43ba6df7af Fix mostly the fullscreen switching with more than 1 display
It concerns the issue #59.

It's not perfect but it works much better (at leats on Linux). The idea
is to move the window to the top left corner of the current display.
2018-05-29 18:06:04 +02:00
Mathieu Schroeter
96cbf54167 Do not move the window when switching with fullscreen mode 2018-05-29 17:42:05 +02:00
Mathieu Schroeter
340e7becac Center the window on the right display with zoom switching 2018-05-29 17:38:51 +02:00
Mathieu Schroeter
e2ac1d96c5 Does not check for world files with private missions 2018-03-16 11:49:23 +01:00
Mathieu Schroeter
ef362c8b37 Fix the last win screen with private missions
It returns to the main screen when the last mission is finished.

It fixes issue #56.
2018-03-16 11:46:31 +01:00
Mathieu Schroeter
537c077146 Use a define for the max private missions number 2018-03-16 11:46:23 +01:00
Mathieu Schroeter
e7dd0ec7c7 Ensure that it's not possible to put fire on all objects
Only burnable objects can have a fire.

Note that it's possible to re-enable the previous feature with the
--restore-bugs argument.

- It fixes issue #54.
2018-02-18 23:33:30 +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
c6d109f87d Revert "Return the music format finally retrieved by GetMusicLocation"
This reverts commit 7097c6708dc4e00d2aa86e95cea279cdfe20a432.
2018-01-31 23:57:49 +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
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
1db67ed200 Save the window zoom and fullscreen settings in the user preferences 2017-12-14 23:07:17 +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
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
8f5cfdfaa0 Fix Win32 build by removing WPARAM/LPARAM clash 2017-12-01 13:52:36 +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
5a3b3ebf87 Improve no music button position, thanks to @JesseRoxII
- It fixes issue #43.
2017-11-02 17:47:24 +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
0a17d2d92e Cosmetic: rename coin to corner 2017-10-28 18:37:06 +02:00
Mathieu Schroeter
4db92b4da6 Cosmetic: translate some comments to english 2017-10-25 07:06:14 +02:00
Mathieu Schroeter
a17a7e1dda Prevent bad values with the language to restore 2017-10-23 19:30:59 +02:00
Mathieu Schroeter
e8f3fc7e37 Initialize the struct 2017-10-23 19:29:23 +02:00
Mathieu Schroeter
6da7be9e78 Cosmetic: apply clang-format 2017-10-23 17:32:18 +02:00
krzys-h
b96741b45f Merge remote-tracking branch 'origin/master' into HEAD 2017-10-22 20:57:31 +02:00
Mathieu Schroeter
04f127af19 Prevent black screen (glitch) when a movie is not found 2017-10-21 23:31:32 +02:00
Mathieu Schroeter
e39c2eaedd Remove obsolete argument 2017-10-21 23:31:20 +02:00
Mathieu Schroeter
a64b03c1da Remove obsolete mask argument of many draw functions 2017-10-18 07:04:35 +02:00
Mathieu Schroeter
9d23c1012c Return in the game when ESC is used in the stop phase
It prevents to lost the current game just because we use two times the
ESC key. It's better to return in the game when ESCAPE is used from the
STOP phase (game paused).
2017-10-18 06:43:04 +02:00
Mathieu Schroeter
c81b41192d Fix cheat text visibility regression 2017-10-11 16:50:00 +02:00
Mathieu Schroeter
1b242ca3aa Adapt the mouse cursor size according to the zoom 2017-10-11 16:08:27 +02:00
Mathieu Schroeter
00d4fbf59e Add Italian translation 2017-09-29 16:26:46 +02:00
Mathieu Schroeter
4c234737ff Disable the pause keyboard event with difficult skill level
- It closes issue #22.
2017-09-22 12:48:20 +02:00