yogstation13 / yogstation-classic

Yogstation13's classic code source.
http://www.yogstation.net
GNU Affero General Public License v3.0
10 stars 37 forks source link

Fixes metal sheet subtypes not being accepted for walls #1293

Closed X-TheDark closed 7 years ago

X-TheDark commented 8 years ago

Intent of your Pull Request

Fixes /fifty (etc) subtypes of metal/plasteel sheets not being accepted for walls. Girders.dm had a very crappy way they check for types.

Changelog

:cl: X-TheDark bugfix: You can now use 50 sheet metal stacks from cargo to build walls. /:cl:

Super3222 commented 8 years ago

hmm

X-TheDark commented 8 years ago

/tg/ also had this problem when they made the /fifty subtype for metal as well. Also, the "Files changed" looks really horrible, but it's nothing more than removing the switch(S.type) (and associated ifs)(this switch(S.type) also is very strict and didn't account for subtypes of whatever it checked) and replacing it with istype() checks, the rest of the changes are just indentation changes.