Skip to content

Commit

Permalink
Wasteland Flipper Bugfix: Fixes double tile when placing tile on road…
Browse files Browse the repository at this point in the history
… turf (#171)
  • Loading branch information
AF-Buyrcsp2 authored Sep 7, 2024
1 parent 1b87b86 commit b826c62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fallout/turf/ground.dm
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,14 @@ GLOBAL_LIST_INIT(desolate_plant_spawn_list, list(
// step_sounds = list("human" = "erikafootsteps")

/turf/open/indestructible/ground/outside/road/attackby(obj/item/C, mob/user, params)
if(..())
return
if(istype(C, /obj/item/stack/tile))
if(istype(C, /obj/item/stack/tile/road))
if(icon_state == "innermiddle")
to_chat(user, span_warning("The road already looks fixed!"))
return
C.use(1)
icon_state = "innermiddle"
return
else
. = ..()

/turf/open/floor/road
Expand Down

0 comments on commit b826c62

Please sign in to comment.