Bug 190372 - time not paused properly
Summary: time not paused properly
Status: RESOLVED FIXED
Alias: None
Product: kapman
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Gallinari
URL:
Keywords: junior-jobs
: 236235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-22 22:20 UTC by Piotr Piotrowski
Modified: 2021-05-31 22:45 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Piotrowski 2009-04-22 22:20:14 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Fedora RPMs

If one eats the big ball, that enables one to eat ghosts, then pauses the game for some time, the gosts change from eatable to deadly while the game is paused - time is not paused.
Comment 1 disabled account 2010-01-20 04:14:06 UTC
Confirmed in KDE SC 4.3.90.
Comment 2 Christoph Feck 2010-10-15 02:50:23 UTC
*** Bug 236235 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Majewsky 2011-01-02 00:07:23 UTC
Confirmed on 4.6 Beta 2.
Comment 4 Baconmon 2012-03-21 03:19:53 UTC
It also affects the bonus item (turkey dinner, etc.) thing that appears in the middle.. When I pause it before turkey appears, it seems to actually pause the turkey-timer, and it never appears.... But if it has *already appeared* on the screen in the middle, and *then* I pause it, the turkey disappears in a few seconds, even though it is still paused..
Comment 5 Justin Zobel 2021-03-09 06:30:08 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 6 Baconmon 2021-03-09 06:40:07 UTC
I just confirmed that the issue still exists.. Ghosts still turn back to normal even while paused, and the bonus food that appears in the center also disappears too even while paused..
Comment 7 Albert Astals Cid 2021-03-09 22:24:27 UTC
This should be relatively easy to fix, on Game::pause we need to remember if m_bonusTimer, m_preyTimer where running and how much was left of them (and them stop them) and in  Game::start restart them if they were active.

If someone wants to do some coding please propose a Merge Request against https://invent.kde.org/games/kapman

If not i'll try to have a look when i have time (which may be never)
Comment 8 Frederik Schwarzer 2021-04-04 21:56:32 UTC
https://invent.kde.org/games/kapman/-/merge_requests/1