mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] 2048: Reset score on startup
@ 2014-06-05 13:46 Alexander Shiyan
  2014-06-06  4:34 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Shiyan @ 2014-06-05 13:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 commands/2048.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/commands/2048.c b/commands/2048.c
index 26c9e6c..5ceb5cf 100644
--- a/commands/2048.c
+++ b/commands/2048.c
@@ -337,6 +337,8 @@ static int do_2048(int argc, char *argv[])
 		return test();
 	}
 
+	score = 0;
+
 	printf("\033[?25l\033[2J\033[H");
 
 	memset(board,0,sizeof(board));
-- 
1.8.5.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 2048: Reset score on startup
  2014-06-05 13:46 [PATCH] 2048: Reset score on startup Alexander Shiyan
@ 2014-06-06  4:34 ` Sascha Hauer
  2014-06-06  9:07   ` Alexander Shiyan
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2014-06-06  4:34 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: barebox

On Thu, Jun 05, 2014 at 05:46:43PM +0400, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  commands/2048.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks. I'm considering a stable release for this ;)

Sascha

> 
> diff --git a/commands/2048.c b/commands/2048.c
> index 26c9e6c..5ceb5cf 100644
> --- a/commands/2048.c
> +++ b/commands/2048.c
> @@ -337,6 +337,8 @@ static int do_2048(int argc, char *argv[])
>  		return test();
>  	}
>  
> +	score = 0;
> +
>  	printf("\033[?25l\033[2J\033[H");
>  
>  	memset(board,0,sizeof(board));
> -- 
> 1.8.5.5
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 2048: Reset score on startup
  2014-06-06  4:34 ` Sascha Hauer
@ 2014-06-06  9:07   ` Alexander Shiyan
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Shiyan @ 2014-06-06  9:07 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

Fri, 6 Jun 2014 06:34:30 +0200 от Sascha Hauer <s.hauer@pengutronix.de>:
> On Thu, Jun 05, 2014 at 05:46:43PM +0400, Alexander Shiyan wrote:
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > ---
> >  commands/2048.c | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> Applied, thanks. I'm considering a stable release for this ;)

Please do this only after we add the world table of records and sound support :)

---

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-06  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05 13:46 [PATCH] 2048: Reset score on startup Alexander Shiyan
2014-06-06  4:34 ` Sascha Hauer
2014-06-06  9:07   ` Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox