From 672c5ac1f166246b6e5ac5872211300ac8e3a403 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Thu, 20 Nov 2003 15:44:13 +0000 Subject: Add pydance, a dancing simulator PR: 58643 Submitted by: Rudolf Polzer --- games/pydance/files/patch-dance.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 games/pydance/files/patch-dance.py (limited to 'games/pydance/files/patch-dance.py') diff --git a/games/pydance/files/patch-dance.py b/games/pydance/files/patch-dance.py new file mode 100644 index 000000000000..8eecffc49dcb --- /dev/null +++ b/games/pydance/files/patch-dance.py @@ -0,0 +1,23 @@ +--- /tmp/pydance/share/games/pydance/dance.py Sat Oct 25 18:50:56 2003 ++++ dance.py Sun Oct 26 18:44:40 2003 +@@ -11,6 +11,9 @@ + + import random, sys, os, copy + ++import time ++# see comment about FreeBSD below. A better solution would be appreciated. ++ + class BGmovie(pygame.sprite.Sprite): + def __init__ (self, filename): + pygame.sprite.Sprite.__init__(self) +@@ -314,6 +317,10 @@ + break + if songFailed: + song.kill() ++ ++ time.sleep(0.0001) ++ # needed for FreeBSD, otherwise music hangs (it does in non-sleeping loops) ++ # and yes, I do know this is an ugly hack + + for plr in players: plr.get_next_events(song) + -- cgit v1.2.3