Portals from hand tele and portal gun are now logged (#10898)

* Portals from hand tele and portal gun are now logged

* remove owner
This commit is contained in:
JustSumBody
2016-07-10 10:14:29 -04:00
committed by ComicIronic
parent 31b991597c
commit 37494d6ec4
4 changed files with 13 additions and 7 deletions

View File

@@ -58,7 +58,7 @@
icon_state = "portalgun[setting]"
item_state = "portalgun[setting]"
/obj/item/weapon/gun/portalgun/proc/open_portal(var/proj_setting,var/turf/T,var/atom/A = null)
/obj/item/weapon/gun/portalgun/proc/open_portal(var/proj_setting,var/turf/T,var/atom/A = null,var/mob/firer)
if(!T)
return
@@ -71,7 +71,7 @@
blue_portal = null
blue_portal = new_portal
blue_portal.creator = src
blue_portal.owner = firer
if(1)
if(red_portal)
qdel(red_portal)
@@ -79,6 +79,7 @@
red_portal = new_portal
red_portal.icon_state = "portal1"
red_portal.creator = src
red_portal.owner = firer
sync_portals()

View File

@@ -318,7 +318,7 @@ obj/item/projectile/kinetic/New()
forceMove(get_step(loc,dir))
if(!(locate(/obj/effect/portal) in loc))
P.open_portal(setting,loc,A)
P.open_portal(setting,loc,A,firer)
bullet_die()