From d022f92a91fbc47c9210ff25bf0bd42527b9a3ac Mon Sep 17 00:00:00 2001 From: Bone White Date: Wed, 28 Jan 2015 04:54:40 +0000 Subject: [PATCH] Fix for atom/add_hiddenprint() 1) add_hiddenprint was not assigning the list type to fingerprintshidden on all atoms correctly. This has now been resolved. NOTES This was what was causing the issues with the singularity restart, but I expect this to also have many other implications. Some bugs may develop in live testing, but I believe this will cause far more good than harm, as all the code expects to find a list. (fingerprintshidden is always declared as a list) --- code/game/atoms.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index b58e3bf099f..6dec5fed5c8 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -257,16 +257,25 @@ its easier to just keep the beam vertical. return 0 if(H.gloves) if(fingerprintslast != H.ckey) + //Add the list if it does not exist. + if(!fingerprintshidden) + fingerprintshidden = list() fingerprintshidden += text("\[[time_stamp()]\] (Wearing gloves). Real name: [], Key: []",H.real_name, H.key) fingerprintslast = H.ckey return 0 if(!( fingerprints )) if(fingerprintslast != H.ckey) + //Add the list if it does not exist. + if(!fingerprintshidden) + fingerprintshidden = list() fingerprintshidden += text("\[[time_stamp()]\] Real name: [], Key: []",H.real_name, H.key) fingerprintslast = H.ckey return 1 else if(fingerprintslast != M.ckey) + //Add the list if it does not exist. + if(!fingerprintshidden) + fingerprintshidden = list() fingerprintshidden += text("\[[time_stamp()]\] Real name: [], Key: []",M.real_name, M.key) fingerprintslast = M.ckey return