remove 512 version checks

This commit is contained in:
vuonojenmustaturska
2018-04-11 22:24:47 +03:00
committed by CitadelStationBot
parent 4063781baf
commit d559fc1bd3
6 changed files with 2 additions and 49 deletions
-8
View File
@@ -481,15 +481,7 @@ Class Procs:
/obj/machinery/proc/adjust_item_drop_location(atom/movable/AM) // Adjust item drop location to a 3x3 grid inside the tile, returns slot id from 0 to 8
var/md5 = md5(AM.name) // Oh, and it's deterministic too. A specific item will always drop from the same slot.
for (var/i in 1 to 32)
#if DM_VERSION >= 513
#warning 512 is definitely stable now, remove the old code
#endif
#if DM_VERSION >= 512
. += hex2num(md5[i])
#else
. += hex2num(copytext(md5,i,i+1))
#endif
. = . % 9
AM.pixel_x = -8 + ((.%3)*8)
AM.pixel_y = -8 + (round( . / 3)*8)