From 027fbaad56fa44c342739a07e763596684b8cc37 Mon Sep 17 00:00:00 2001
From: Vicacrov <49321394+Vicacrov@users.noreply.github.com>
Date: Thu, 11 Jan 2024 09:23:34 +0100
Subject: [PATCH] Fixes stack of flags anchoring after placing one down (#5409)
# About the pull request
Currently, when you put down a flag, the stack of flags in your hand
becomes anchored instead of the placed down flag. Fixes #5145
# Explain why it's good for the game
The actual flag gets anchored, not the stack of flags in your hands.
# Testing Photographs and Procedure
Screenshots & Videos
https://github.com/cmss13-devs/cmss13/assets/49321394/fb9092a5-9c2e-4d86-a591-e9f793a62a2e
# Changelog
:cl:
fix: Placing flags now anchors the actual flag, not the stack of flags
in your hand.
/:cl:
Co-authored-by: Nanu308 <59782240+Nanu308@users.noreply.github.com>
---
code/game/objects/items/stacks/flags.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/game/objects/items/stacks/flags.dm b/code/game/objects/items/stacks/flags.dm
index bc55096211d4..484d2779f5f8 100644
--- a/code/game/objects/items/stacks/flags.dm
+++ b/code/game/objects/items/stacks/flags.dm
@@ -71,7 +71,7 @@
var/obj/item/stack/flag/newflag = new src.type(T)
newflag.amount = 1
newflag.upright = TRUE
- anchored = TRUE
+ newflag.anchored = TRUE
newflag.name = newflag.singular_name
newflag.icon_state = "[newflag.base_state]_open"
newflag.visible_message("[user] plants [newflag] firmly in the ground.")