Paul Sexton avatar Paul Sexton committed 9beda6c

Update arguments for 'map-clear' wrapper function.

Comments (0)

Files changed (1)

 (defun* console-print-frame ((con console) (x ucoord) (y ucoord)
                              (width ucoord) (height ucoord)
                              (empty? boolean) (flag background-flag)
-                             (fmt string) &rest args)
+                             (fmt (or string null)) &rest args)
   (assert (legal-console-coordinates? con x y))
   (check-type width ucoord)
   (check-type height ucoord)
   (%console-print-frame con x y width height empty? flag
-                        (apply #'format nil fmt args)))
+                        (if fmt (apply #'format nil fmt args)
+                            +NULL+)))
 
 
 ;; Added in wrappers.c
 (defun* console-print-double-frame ((con console) (x ucoord) (y ucoord)
                                     (width ucoord) (height ucoord)
                                     (empty? boolean) (flag background-flag)
-                                    (fmt string) &rest args)
+                                    (fmt (or string null)) &rest args)
   (assert (legal-console-coordinates? con x y))
   (check-type width ucoord)
   (check-type height ucoord)
   (%console-print-double-frame con x y width height empty? flag
-                               (apply #'format nil fmt args)))
+                               (if fmt (apply #'format nil fmt args)
+                                   +NULL+)))
 
 
 
   "Return true if position =(X, Y)= on the map is set to be walkable.")
 
 (define-c-function ("TCOD_map_clear" map-clear) :void
-    ((map mapptr))
+    ((map mapptr) (transparent? :boolean) (walkable? :boolean))
   "Set all cells in =MAP= to be neither walkable nor transparent.")
 
 (define-c-function ("TCOD_map_get_width" map-get-width) :int
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.