summaryrefslogtreecommitdiff
path: root/games/jezzball-kazzmir/insults.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-05-19 08:35:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-19 11:01:56 +0700
commit228ee2eef0b7f741b22f2ab9566495cf6d3820b0 (patch)
tree8422af3e3ace1253833f96be64cc9a4459e20945 /games/jezzball-kazzmir/insults.diff
parentd1ea67b1485b1eea4c6a247b4410ca614cdb91e6 (diff)
downloadslackbuilds-228ee2eef0b7f741b22f2ab9566495cf6d3820b0.tar.gz
games/jezzball-kazzmir: Added (2d arcade/puzzle game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/jezzball-kazzmir/insults.diff')
-rw-r--r--games/jezzball-kazzmir/insults.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/jezzball-kazzmir/insults.diff b/games/jezzball-kazzmir/insults.diff
new file mode 100644
index 0000000000..bf73721973
--- /dev/null
+++ b/games/jezzball-kazzmir/insults.diff
@@ -0,0 +1,30 @@
+diff -Naur jezzball-1.1/src/main.cpp jezzball-1.1.patched/src/main.cpp
+--- jezzball-1.1/src/main.cpp 2007-09-09 18:07:10.000000000 -0400
++++ jezzball-1.1.patched/src/main.cpp 2014-05-12 13:36:14.000000000 -0400
+@@ -250,7 +250,7 @@
+ // sub-bitmap is deleted before parent bitmap which
+ // coincidentally works out well for us :)
+ Bitmap sub_work( work, offset_x, offset_y, 600, 460 );
+- bool quit = false;
++ bool quit = false, died = false;
+ speed_counter = 0;
+ while ( speed_counter < 15 );
+ speed_counter = 0;
+@@ -263,7 +263,8 @@
+ }
+ // if ( key[ KEY_R ] ) quit = true;
+
+- if ( show_insults == -1 && rnd( 40 ) == rnd( 40 ) ){
++ if ( show_insults == -1 && died ) {
++ died = false;
+ show_insults = 60;
+ insult = rnd( num_insults );
+ // insult_x = rnd( 200 ) + 100;
+@@ -284,6 +285,7 @@
+ for ( int q = 0; q < 5; q++ )
+ if ( game->runGame( &mouse, offset_x, offset_y ) ){
+ player->incLives( -1 );
++ died = true;
+ redraw_name = true;
+ }
+ speed_counter--;