Skip to content

Commit

Permalink
Tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Apr 1, 2024
1 parent 37b27a0 commit dcb02d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/_onclick/drag_drop.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if(!usr || !over) return

spawn(0)
if(over && usr.client)
if(usr.client)
usr.client.select_box_wrapper(src, over)

if(!Adjacent(usr) || !over.Adjacent(usr)) return // should stop you from dragging through windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ GLOBAL_LIST_EMPTY(all_ai_behavior_overrides)
RegisterSignal(processing_xeno, COMSIG_PARENT_QDELETING, PROC_REF(remove_from_queue), TRUE)
currently_assigned |= processing_xeno

else if(!LAZYLEN(currently_assigned))
qdel(component_to_remove)

Check failure on line 71 in code/datums/components/xeno/ai_behavior_overrides/base_override_behavior.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "component_to_remove"

return TRUE

/datum/component/ai_behavior_override/proc/remove_from_queue(mob/removed_xeno)
SIGNAL_HANDLER
if(currently_assigned)
currently_assigned -= removed_xeno

LAZYREMOVE(currently_assigned, removed_xeno)
UnregisterSignal(removed_xeno, COMSIG_PARENT_QDELETING)
6 changes: 6 additions & 0 deletions code/modules/admin/game_master/game_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
reset_click_overrides()
behavior_click_intercept = TRUE
current_click_intercept_action = BEHAVIOR_CLICK_INTERCEPT_ACTION
game_master_client.show_popup_menus = FALSE
return

//Objective Section
Expand Down Expand Up @@ -314,6 +315,8 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
if(user_client?.click_intercept == src)
user_client.click_intercept = null

game_master_client.show_popup_menus = TRUE

spawn_click_intercept = FALSE
objective_click_intercept = FALSE
behavior_click_intercept = FALSE
Expand Down Expand Up @@ -387,6 +390,8 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
for(var/mob/living/carbon/xenomorph/assigned_xeno as anything in controlled_xenos)
if(LAZYLEN(currently_assigned) >= behavior.max_assigned)
break

deselect_xeno(deselected_xeno)

Check failure on line 394 in code/modules/admin/game_master/game_master.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "deselected_xeno"
currently_assigned |= assigned_xeno
assigned_xeno.patrol_points = list(object)

Expand Down Expand Up @@ -487,6 +492,7 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
return TRUE

/datum/game_master/proc/reset_click_overrides()
game_master_client.show_popup_menus = TRUE
spawn_click_intercept = FALSE
objective_click_intercept = FALSE
behavior_click_intercept = FALSE
Expand Down

0 comments on commit dcb02d5

Please sign in to comment.