Quellcode durchsuchen

Update notes fix potential nil error

Lily Carpenter vor 9 Jahren
Ursprung
Commit
9fbd16b03e
2 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 3 2
      NOTES.org
  2. 2 1
      src/crypts-and-corpses.lisp

+ 3 - 2
NOTES.org

@@ -6,9 +6,10 @@ http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x
6 6
 ** DONE Get bearlibterminal autowrapped and basic window working.
7 7
 CLOSED: [2016-01-01 Fri 22:52]
8 8
 ** High Priority
9
-*** TODO Tweak health, regen, and damage values.
10
-*** TODO Fix mana being allowed to go negative.
11 9
 *** TODO Add instructions page (auto show after start, h key to show later)
10
+*** TODO Tweak health, regen, and damage values.
11
+*** DONE Fix mana being allowed to go negative.
12
+CLOSED: [2016-01-12 Tue 19:31]
12 13
 *** DONE Add status line section for current attack
13 14
 CLOSED: [2016-01-12 Tue 18:52]
14 15
 *** DONE Create enemy AI

+ 2 - 1
src/crypts-and-corpses.lisp

@@ -98,7 +98,8 @@
98 98
   (apply 'values (mapcar #'parse-integer (split-sequence #\x (terminal-get "window.size" "0x0")))))
99 99
 
100 100
 (defun calc-location (x y map)
101
-  (+ (* (game-map-width map) y) x))
101
+  (when x y map
102
+        (+ (* (game-map-width map) y) x)))
102 103
 
103 104
 (defgeneric set-location (object x y map))
104 105
 (defmethod set-location ((object tile-entity) x y map)