Skip to content

Commit

Permalink
Убираем костыльность
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Sep 17, 2024
1 parent bfbb838 commit b2a4230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions modular_bandastation/loadout/code/client.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
if(query_get_donator_level.warn_execute() && length(query_get_donator_level.rows))
query_get_donator_level.NextRow()
amount = query_get_donator_level.item[1]
//Даем разрешение сохранять лодаут только после успешного запроса к СУБД
can_save_donator_level = TRUE

Check failure on line 51 in modular_bandastation/loadout/code/client.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "can_save_donator_level"

Check failure on line 51 in modular_bandastation/loadout/code/client.dm

View workflow job for this annotation

GitHub Actions / Run Linters

OD0404: Unknown identifier "can_save_donator_level"
qdel(query_get_donator_level)

switch(amount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@

return TRUE

/datum/preferences/check_keybindings()
can_save_donator_level = FALSE
. = ..()
can_save_donator_level = TRUE

/datum/preferences/save_preferences()
. = ..() // Вызов базового сохранения

Expand Down

0 comments on commit b2a4230

Please sign in to comment.