Soft'N'Design Software
/
projects
/
tetris.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbae062
)
increase converage
author
Laurent Mazet
<mazet@softndesign.org>
Sat, 10 Aug 2024 09:26:21 +0000
(11:26 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sat, 10 Aug 2024 09:26:21 +0000
(11:26 +0200)
tetris.c
patch
|
blob
|
blame
|
history
diff --git
a/tetris.c
b/tetris.c
index e43c173f1ab841a7fc0a86fbeed276506ca297b4..48533e58b108cdbf8677b2709d470b805483fc3e 100644
(file)
--- a/
tetris.c
+++ b/
tetris.c
@@
-132,16
+132,17
@@
int main (int argc, char *argv[])
/* init seed */
seed = newseed (seed);
+ int ret = -1;
switch (multi) {
case 0:
- ret
urn
oneplayer (width, height, scale, chrono, filename);
+ ret
=
oneplayer (width, height, scale, chrono, filename);
break;
case 1:
- ret
urn
twoplayers (width, height, scale);
+ ret
=
twoplayers (width, height, scale);
break;
}
- return
0
;
+ return
ret
;
}
/* test: tetris.exe -f 2>&1 | grep 'no file' */