[aisleriot] eliminator: Remove a harmful function call



commit d3e216c3a725a9b358f5a1f199d5230a782ee0ce
Author: Otto Wallenius <owalleni gmail com>
Date:   Sun Oct 13 18:20:08 2019 +0200

    eliminator: Remove a harmful function call
    
    Eliminator might crash when a game that was
    loaded earlier shadows the definition of
    give-status-message given in api.scm. This happens
    for example if Accordion was played just before changing
    to Eliminator.
    
    Function give-status-message defined in api.scm just
    returns #t, so calling it here was a no-op.

 games/eliminator.scm | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/games/eliminator.scm b/games/eliminator.scm
index 5939f92f..d503edf2 100644
--- a/games/eliminator.scm
+++ b/games/eliminator.scm
@@ -72,8 +72,6 @@
        ;       (if (< found-amt 5) (add-card! 5 down))
        ;)
        
-       (give-status-message)
-       
        (list found-amt 4)
 )
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]