Bug 342262 - Bonus life system is badly broken
Summary: Bonus life system is badly broken
Status: RESOLVED FIXED
Alias: None
Product: bomber
Classification: Applications
Component: general (show other bugs)
Version: 0.1
Platform: Ubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-27 22:14 UTC by Andrej M.
Modified: 2017-06-01 17:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej M. 2014-12-27 22:14:15 UTC
Looking through the source code you should receive a bonus life every 10000 points, however, the game gives you one life (at 10000 points) at first play through, but that is it. You won't receive the next bonus life at 20000 points. Even worse: when you start a new game after dying, you won't receive any bonus lives at all, not even at 10000 points! Restarting the application doesn't fix the problem, but restarting the system seems to give you that one bonus life at the start, but then its nothing again.

I'm using KDE 4.14.2 on Kubuntu 14.10 64-bit.
Comment 1 Christoph Feck 2014-12-30 02:12:24 UTC
Can you check if changing

    unsigned int m_scoreLeftBeforeNewLife;

to

    int m_scoreLeftBeforeNewLife;

in bomberwidget.h, line 180 fixes the issue?
Comment 2 Andrej M. 2015-01-02 19:12:10 UTC
I checked out the git version, changed the source file, but would require some help compiling this (Kubuntu 14.10). Thanks!
Comment 3 Christoph Feck 2015-01-03 15:55:01 UTC
Compilation of KDE projects requires CMake. The steps are:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/yourkdeprefix ../
make
sudo make install

If you get errors, you need to install the missing -dev packages.

If you want to keep the old version, and install the new one into a different prefix, you need to tell KDE libraries where to find it. Detailed instructions at https://techbase.kde.org/Development/Tutorials/Building_An_Existing_Application
Comment 4 Andrej M. 2017-06-01 17:23:04 UTC
Hello Christoph, I completely forgot about this bug, sorry. 

I did a test with the 16.08.1 version of Bomber present in Debian Stretch. I can confirm that I'm not affected by this bug anymore, because I did get a +1 life passing 10k and then +1 passing 20k.

Best Regards,
Andrej