gnome-games r8960 - trunk/gnibbles
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8960 - trunk/gnibbles
- Date: Mon, 30 Mar 2009 16:04:16 +0000 (UTC)
Author: thomashpa
Date: Mon Mar 30 16:04:16 2009
New Revision: 8960
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8960&view=rev
Log:
don't kill worm by pressing backwards. Patch by Roger Light. Fixes bug #516992
Modified:
trunk/gnibbles/gnibbles.c
trunk/gnibbles/worm.c
Modified: trunk/gnibbles/gnibbles.c
==============================================================================
--- trunk/gnibbles/gnibbles.c (original)
+++ trunk/gnibbles/gnibbles.c Mon Mar 30 16:04:16 2009
@@ -590,8 +590,9 @@
gnibbles_keypress_worms (guint keyval)
{
gint i;
+ gint numworms = ggz_network_mode ? 1 : properties->numworms;
- for (i = 0; i < properties->numworms; i++)
+ for (i = 0; i < numworms; i++)
if (gnibbles_worm_handle_keypress (worms[i], keyval)) {
return TRUE;
}
Modified: trunk/gnibbles/worm.c
==============================================================================
--- trunk/gnibbles/worm.c (original)
+++ trunk/gnibbles/worm.c Mon Mar 30 16:04:16 2009
@@ -534,6 +534,9 @@
if (ggz_network_mode) {
#ifdef GGZ_CLIENT
network_game_move (dir);
+
+ worms[0]->direction = dir;
+ worms[0]->keypress = 1;
#endif
} else {
worm_set_direction (worm, dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]