nick_matrix: show nick on random locations

This commit is contained in:
Florian Richter 2011-08-12 15:14:48 +02:00
parent ff98c7de21
commit 423df99c9a
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ void ram(void){
case NICKNAME_ACTION_SHOW:
nickname_action = NICKNAME_ACTION_HIDE;
ticks_until_next_nickname_action = TICKS_HIDE_NICKNAME;
// new nickname_pos
nickname_posx = getRandom() % (SCREEN_WIDTH - nickname_len);
nickname_posy = getRandom() % SCREEN_HEIGHT;
break;
case NICKNAME_ACTION_HIDE:
nickname_action = NICKNAME_ACTION_SHOW;