Make Cinematic verb cancellable (#53411)

This commit is contained in:
Tad Hardesty
2020-09-05 02:41:05 -07:00
committed by GitHub
parent a1e8349030
commit 2b8f976fd2
+2 -2
View File
@@ -1,11 +1,11 @@
/client/proc/cinematic()
set name = "cinematic"
set name = "Cinematic"
set category = "Fun"
set desc = "Shows a cinematic." // Intended for testing but I thought it might be nice for events on the rare occasion Feel free to comment it out if it's not wanted.
set hidden = 1
if(!SSticker)
return
var/datum/cinematic/choice = input(src,"Cinematic","Choose",null) as anything in sortList(subtypesof(/datum/cinematic), /proc/cmp_typepaths_asc)
var/datum/cinematic/choice = input(src,"Cinematic","Choose",null) as null|anything in sortList(subtypesof(/datum/cinematic), /proc/cmp_typepaths_asc)
if(choice)
Cinematic(initial(choice.id),world,null)