shithub: puzzles

Download patch

ref: 5b1235c369222cc2f4f13322e9035d03d28dd21c
parent: 0c55b7e16f6c1c3bc0c332ebdbfff9686262804b
author: Simon Tatham <anakin@pobox.com>
date: Sat Apr 23 12:41:35 EDT 2005

Visual C points out a couple of typos.

[originally from svn r5661]

--- a/solo.c
+++ b/solo.c
@@ -221,8 +221,8 @@
 {
     game_params *ret = snew(game_params);
 
-    ret->c = atof(cfg[0].sval);
-    ret->r = atof(cfg[1].sval);
+    ret->c = atoi(cfg[0].sval);
+    ret->r = atoi(cfg[1].sval);
 
     return ret;
 }