+2003-06-13 Dani Carbonell <bocata@panete.net>
+
+ * src/tetrinet.c (tetrinet_key): fixed this keypress signal
+ handling stage, it was returning FALSE when a key was processed,
+ instead of TRUE.
+
+ * src/gtetrinet.c (keypress): slightly changed the keypress signal
+ handling logic.
+
2003-06-08 Jordi Mallach <jordi@sindominio.net>
* TODO: Updated.
if (gdk_keyval_to_lower (keyval) == keys[K_GAMEMSG]) {
fields_gmsginput (TRUE);
gmsgstate = 1;
+ tetris_drawcurrentblock ();
return TRUE;
}
if (paused || !playing) return FALSE;
if (!nextblocktimeout)
sound_playsound (S_ROTATE);
tetris_blockrotate (1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_ROTLEFT]) {
if (!nextblocktimeout)
sound_playsound (S_ROTATE);
tetris_blockrotate (-1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_RIGHT]) {
tetris_blockmove (1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_LEFT]) {
tetris_blockmove (-1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_DOWN]) {
if (!downpressed) {
downpressed = 1;
tetrinet_settimeout (DOWNDELAY);
}
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_DROP]) {
int sound;
else sound_playsound (S_DROP);
tetrinet_sendfield (0);
}
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_DISCARD]) {
tetrinet_specialkey(-1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL1]) {
tetrinet_specialkey(1);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL2]) {
tetrinet_specialkey(2);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL3]) {
tetrinet_specialkey(3);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL4]) {
tetrinet_specialkey(4);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL5]) {
tetrinet_specialkey(5);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
else if (gdk_keyval_to_lower (keyval) == keys[K_SPECIAL6]) {
tetrinet_specialkey(6);
+ tetris_drawcurrentblock ();
+ return TRUE;
}
tetris_drawcurrentblock ();
return FALSE;