* And keep in mind that this program emulates the
* behavior of the computer screens that were visible
* in the movies -- not the behavior of the effects in
- * the title sequences.
+ * the title sequences. "GLMatrix" does that.
*
* ==========================================================
*
}
+static void
+clear_spinners (m_state *state)
+{
+ int i;
+ for (i = 0; i < state->grid_width * state->grid_height; i++)
+ if (state->cells[i].spinner)
+ {
+ state->cells[i].spinner = 0;
+ state->cells[i].changed = 1;
+ }
+}
+
+
static void set_mode (m_state *, m_mode);
}
/* Turn off all the spinners, else they never go away. */
- for (i = 0; i < state->grid_width * state->grid_height; i++)
- if (state->cells[i].spinner)
- {
- state->cells[i].spinner = 0;
- state->cells[i].changed = 1;
- }
+ clear_spinners (state);
}
static Bool
{
case TRACE_TEXT_A:
case TRACE_TEXT_B:
+ clear_spinners (state);
if (state->mode == TRACE_TEXT_A)
{
if (state->grid_width >= 52)
case KNOCK:
{
+ clear_spinners (state);
state->typing = ("\001Wake up, Neo...\n"
"\001The Matrix has you...\n"
"\001Follow the white rabbit.\n"
lot like Cisco IOS to me. (IOS is a descendant of VMS.)
*/
+ clear_spinners (state);
state->typing =
# ifdef __GNUC__
__extension__ /* don't warn about "string length is greater than
if (state->mode == TRACE_A || state->mode == TRACE_B)
bottom_feeder_p = True;
- if (state->insert_top_p && state->insert_bottom_p)
+ else if (state->insert_top_p && state->insert_bottom_p)
bottom_feeder_p = (random() & 1);
else
bottom_feeder_p = state->insert_bottom_p;