Fix for #114: unneccesary newline printed every time a "direct call" made.
authorDavid Griffith <dave@661.org>
Sat, 18 May 2019 03:13:47 +0000 (20:13 -0700)
committerDavid Griffith <dave@661.org>
Sat, 18 May 2019 05:29:44 +0000 (22:29 -0700)
commite48863b7706ee5c2cbe46e6853000aad6aadf461
treee09880a1098967386d928735ddb32a3efbb6dd72
parentbbd920bd849a45a4ad3bdaf89a75c7ab5ce173f7
Fix for #114: unneccesary newline printed every time a "direct call" made.

My fix for #84 (cfec4f1ed81a8e733effbaa93acd917e7f6bded0) neglected to
take into account the fact that interpret() would be called before the
game ends under certain rare circumstances. Therefore, I've added a
reset_screen() to main() which contains the final call to new_line().
src/common/main.c
src/common/process.c
src/common/screen.c