Skip to content

Commit

Permalink
No more call in unstable/function.
Browse files Browse the repository at this point in the history
  • Loading branch information
stamourv committed Feb 24, 2012
1 parent 6bc9c28 commit 86b8ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engine/encounters.rkt
@@ -1,6 +1,5 @@
#lang racket

(require unstable/function)
(require "character.rkt")

(provide (all-defined-out))
Expand All @@ -15,7 +14,8 @@
(define-struct encounter (encounter-type monsters) #:transparent)
(define (new-encounter encounter-type) ; actually creates the monsters
(make-encounter encounter-type
(map call (encounter-type-monsters encounter-type))))
(map (lambda (x) (x))
(encounter-type-monsters encounter-type))))
(define (encounter-points e)
(apply + (map character-level (encounter-monsters e))))

Expand Down
4 changes: 2 additions & 2 deletions engine/game-loop.rkt
@@ -1,6 +1,6 @@
#lang racket

(require unstable/function racket/require)
(require racket/require)
(require "../utilities/class.rkt"
"common.rkt"
"character.rkt"
Expand All @@ -17,7 +17,7 @@
(define (game-loop)
(reschedule player)
(let loop ()
(for-each call (find-next-active))
(for-each (lambda (x) (x)) (find-next-active))
(increment-turn-no)
(loop)))

Expand Down

0 comments on commit 86b8ae1

Please sign in to comment.