Skip to content

Commit

Permalink
Debugging (gotta remove these)
Browse files Browse the repository at this point in the history
  • Loading branch information
GremlingSS committed Jul 17, 2023
1 parent 55f9b9d commit 857402e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/controllers/subsystem/atoms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ SUBSYSTEM_DEF(atoms)
if(!A) //possible harddel
qdeleted = TRUE
else if(!(A.flags_1 & INITIALIZED_1))
log_world("Failed init @[A.x],[A.y],[A.z]")
BadInitializeCalls[the_type] |= BAD_INIT_DIDNT_INIT
else
SEND_SIGNAL(A,COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE)
Expand Down
6 changes: 4 additions & 2 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
new type(loc, max_amount, FALSE)
if(!merge_type)
merge_type = type
// if(zero_amount()) // tired of this shit
// return INITIALIZE_HINT_QDEL
if(zero_amount()) // tired of this shit
log_world("[src] - @[x],[y],[z] zero_amount() triggered")
return INITIALIZE_HINT_QDEL
if(custom_materials && custom_materials.len)
mats_per_unit = list()
var/in_process_mat_list = custom_materials.Copy()
Expand All @@ -78,6 +79,7 @@
if(can_merge(item_stack))
INVOKE_ASYNC(src, .proc/merge_without_del, item_stack)
if(zero_amount())
log_world("[src] - @[x],[y],[z] zero_amount() triggered")
return INITIALIZE_HINT_QDEL
var/list/temp_recipes = get_main_recipes()
recipes = temp_recipes.Copy()
Expand Down

0 comments on commit 857402e

Please sign in to comment.