diff options
author | B. Watson <yalhcru@gmail.com> | 2014-05-19 08:35:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-19 11:01:56 +0700 |
commit | 228ee2eef0b7f741b22f2ab9566495cf6d3820b0 (patch) | |
tree | 8422af3e3ace1253833f96be64cc9a4459e20945 /games/jezzball-kazzmir/insults.diff | |
parent | d1ea67b1485b1eea4c6a247b4410ca614cdb91e6 (diff) | |
download | slackbuilds-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.diff | 30 |
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--; |