Skip to content

Commit

Permalink
Fixes ShowInterface() using usr instead of user. Thanks MrPerson.
Browse files Browse the repository at this point in the history
Also added a pause to the end of both mapmerge batch files, to stop them autoclosing when doubleclicked (and hence hiding errors).
  • Loading branch information
carnie committed Jun 27, 2013
1 parent bb65dba commit 56a6f19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/dna.dm
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@
/obj/machinery/computer/scan_consolenew/proc/ShowInterface(mob/user, last_change)
if(!user) return
var/datum/browser/popup = new(user, "scannernew", "DNA Modifier Console", 880, 470) // Set up the popup browser window
if(!( in_range(src, usr) || istype(usr, /mob/living/silicon) ))
if(!( in_range(src, user) || istype(user, /mob/living/silicon) ))
popup.close()
return
popup.add_stylesheet("scannernew", 'html/browser/scannernew.css')
Expand Down
4 changes: 3 additions & 1 deletion tools/mapmerge/clean_map.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set MAPFILE=tgstation.2.1.2.dmm

java -jar MapPatcher.jar -clean ../../maps/%MAPFILE%.backup ../../maps/%MAPFILE% ../../maps/%MAPFILE%
java -jar MapPatcher.jar -clean ../../maps/%MAPFILE%.backup ../../maps/%MAPFILE% ../../maps/%MAPFILE%

pause
2 changes: 2 additions & 0 deletions tools/mapmerge/prepare_map.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ set MAPFILE=tgstation.2.1.2.dmm

cd ../../maps
copy %MAPFILE% %MAPFILE%.backup

pause

0 comments on commit 56a6f19

Please sign in to comment.