diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-11-20 15:44:13 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-11-20 15:44:13 +0000 |
commit | 672c5ac1f166246b6e5ac5872211300ac8e3a403 (patch) | |
tree | 0fea29af07d799e097d9f0c2dae0c53e28972e27 /games/pydance/files/patch-dance.py | |
parent | Update 21.5-b15 to 21.5-b16. (diff) |
Add pydance, a dancing simulator
PR: 58643
Submitted by: Rudolf Polzer <freebsd-dr@durchnull.de>
Notes
Notes:
svn path=/head/; revision=94484
Diffstat (limited to 'games/pydance/files/patch-dance.py')
-rw-r--r-- | games/pydance/files/patch-dance.py | 23 |
1 files changed, 23 insertions, 0 deletions
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) + |