Mathieu Schroeter
f64c03e37f
Cosmetic: remove dead code
2017-08-13 17:15:38 +02:00
Mathieu Schroeter
b4c5f62dcf
Replace sprintf by snprintf
2017-08-13 17:15:09 +02:00
Mathieu Schroeter
a80c3d09fc
Cosmetic
2017-08-13 17:03:26 +02:00
Mathieu Schroeter
97482dcbbb
Add missing static specifier
2017-08-13 16:52:30 +02:00
Mathieu Schroeter
77262bf3a8
Show a message on the main screen if an update is available
2017-08-13 16:37:01 +02:00
Mathieu Schroeter
4ba3056984
Add a function to check for updates
2017-08-13 16:35:46 +02:00
Mathieu Schroeter
bf8dcd1c9e
Cosmetic: fix indent
2017-08-13 07:47:03 +02:00
Mathieu Schroeter
19329c0d63
Try to use the Sounds enum type as much as possible
2017-08-12 22:51:19 +02:00
Mathieu Schroeter
c9aea77afc
Fix leak by freeing the cursor surface
2017-08-11 23:22:28 +02:00
Mathieu Schroeter
d983422866
Fix memleak with CHBLUPI channel
2017-08-11 23:14:48 +02:00
Mathieu Schroeter
8810e9afa9
Convert if..if to switch
2017-08-11 23:07:05 +02:00
Mathieu Schroeter
22087548b3
Add explicit include on string
2017-08-11 22:33:15 +02:00
Mathieu Schroeter
6a1f8e0cbd
Add cmdline options for some stuff
...
You can set the speedrate, timerinterval, fullscreen and the renderer
exactly like with the config.ini file.
Note that the timerinterval can be set in the ini file but it's not
really public. The default interval is a good choice (50 ms).
2017-08-11 22:07:43 +02:00
Mathieu Schroeter
2c15835ddf
Fix bug where the buttons were not shown with the factory
...
The buttons are not shown when a blupi is just on south of the factory.
It's an offset problem that this commit is fixing.
2017-08-11 21:31:27 +02:00
Mathieu Schroeter
b42967d762
Cosmetic
2017-08-11 20:02:28 +02:00
Mathieu Schroeter
41ae39d1dc
Use the enum type instead of Sint32 with the buttons
2017-08-11 20:01:49 +02:00
Mathieu Schroeter
1cd4885fc8
Use enum instead of defines
2017-08-11 20:00:45 +02:00
Mathieu Schroeter
2085292545
Merge branch 'master' of schroetersa.ch:/kunden/264795_8004/web/1221820/A1221820/devel/planetblupi
2017-08-11 19:01:14 +02:00
Mathieu Schroeter
4508c1a51c
Use argagg for command line args parsing
...
Use this for printing help and version.
2017-08-11 14:39:09 +02:00
Mathieu Schroeter
70a8bda9e4
Cosmetic: rename more def
2017-08-10 22:29:48 +02:00
Mathieu Schroeter
f427439b7e
Cosmetic: rename more def
2017-08-10 00:02:23 +02:00
Mathieu Schroeter
5980889f8d
Cosmetic: rename some french def to english
2017-08-09 23:37:53 +02:00
Mathieu Schroeter
046db739cc
Cosmetic: rename TAKE to CARRY
2017-08-09 23:31:47 +02:00
Mathieu Schroeter
3ed5c118b8
Fix bug of object duplicating
...
See the reporting https://youtu.be/MyWZj20-Iok?t=5m13s
2017-08-09 23:28:12 +02:00
Mathieu Schroeter
7aed50040e
Cosmetic
2017-08-09 23:27:38 +02:00
Mathieu Schroeter
bd88b7fe94
Cosmetic: fix typo
2017-08-09 06:57:01 +02:00
Mathieu Schroeter
172efa6ba5
Fix a bug where it possibles to take the control of an enemy
...
This bug was reported by https://youtu.be/MyWZj20-Iok?t=9m
The idea is to enter in the enemy factory when it should not be
possible because the enemy is already into.
2017-08-09 06:54:43 +02:00
Mathieu Schroeter
6cf8036206
Remove dead code
2017-08-09 00:19:45 +02:00
Mathieu Schroeter
16e1042541
Ensure that the disciple can not block the electro factory
...
Bug discovered here: https://youtu.be/MyWZj20-Iok?t=7m21s
2017-08-08 23:40:37 +02:00
Mathieu Schroeter
3e45f1cde2
Fix tooltip with electro building
...
Bug discoverd by https://youtu.be/MyWZj20-Iok?t=7m30s
2017-08-08 23:36:49 +02:00
Mathieu Schroeter
12acbf2106
Cosmetic: rename a lot of action from french to english
2017-08-08 18:49:01 +02:00
Mathieu Schroeter
4072c534ff
Walk for bulding a wall or a tower must not reduce the life quickly
...
The problem appears when Blupi is far of the stones. When the action is
building a wall or a tower, the life when walking was reducing very
quickly and it makes no sense in this case.
2017-08-08 18:22:19 +02:00
Mathieu Schroeter
bf649cb202
Fix bug where it was possible to enter in the workshop without action
...
See first bug (at the beginning) in this video:
https://www.youtube.com/watch?v=y4mmQCDfO08
2017-08-08 17:39:13 +02:00
Mathieu Schroeter
1b4f3822fa
Rename event with something less windows-like
2017-08-07 18:33:26 +02:00
Mathieu Schroeter
6dcf31fae9
Cosmetic: rename some actions from french to english
2017-08-07 18:27:36 +02:00
Mathieu Schroeter
8bc539ab7b
Cosmetic
2017-08-06 22:49:47 +02:00
Mathieu Schroeter
a9c99af678
Remove dead code
2017-08-06 22:31:38 +02:00
Mathieu Schroeter
90b9126d26
Enable build of wall and tower only if energy >= half
...
It was a bug because when the energy is lower,
Blupi dies immediatly but the wall is terminated
with the death. It makes no sense because the
wall and the tower needs a lot of energy and
in all cases the death of Blupi.
2017-08-06 21:28:40 +02:00
Mathieu Schroeter
3e0bce333e
Cosmetic
2017-08-06 21:27:06 +02:00
Mathieu Schroeter
1ee58d06c4
Cosmetic: fix indent with more recent clang-format
2017-08-04 23:34:10 +02:00
Mathieu Schroeter
4f856916a0
Cosmetic: fix indent
2017-08-04 21:52:35 +02:00
Mathieu Schroeter
e1e8d7d844
Remove dead code
2017-08-04 21:51:48 +02:00
Mathieu Schroeter
a14adc4fe5
Fix build with clang
2017-08-04 21:45:17 +02:00
Mathieu Schroeter
0b9dda2a92
Fix warnings with clang
2017-08-04 21:45:04 +02:00
Mathieu Schroeter
2d7a6f28d1
Cosmetic: translate comments
2017-08-04 21:04:04 +02:00
Mathieu Schroeter
8ac93b8e40
Remove useless directx argument
2017-08-04 20:53:25 +02:00
Mathieu Schroeter
1772691a0b
Cosmetic: fix typo
2017-08-04 20:52:56 +02:00
Mathieu Schroeter
4b2cf9417d
Reformat with clang-format file
2017-08-04 00:21:47 +02:00
Mathieu Schroeter
57b6190a53
Add license header in all source files
2017-08-03 22:51:40 +02:00
Mathieu Schroeter
1fb73742a9
Fix windows state after fullscreen
2017-08-03 15:15:33 +02:00