Skip to content

Commit

Permalink
clean var
Browse files Browse the repository at this point in the history
почистил лишние...
  • Loading branch information
MalorMorfin committed Dec 5, 2024
1 parent eb4b4ed commit 3e84f45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 0 additions & 4 deletions code/__DEFINES/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@
#define PARALLAX_LOW 2
#define PARALLAX_DISABLE 3 //this option must be the highest number

#define PARALLAX_DELAY_DEFAULT world.tick_lag
#define PARALLAX_DELAY_MED 1
#define PARALLAX_DELAY_LOW 2

#define PIXEL_SCALING_AUTO 0
#define PIXEL_SCALING_1X 1
#define PIXEL_SCALING_1_2X 1.5
Expand Down
9 changes: 4 additions & 5 deletions code/_onclick/hud/parallax.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@

switch(parallax_selection)
if (PARALLAX_INSANE)
C.parallax_throttle = FALSE
C.do_parallax_animations = TRUE
C.parallax_layers_max = 5
return TRUE

if(PARALLAX_HIGH)
C.parallax_throttle = PARALLAX_DELAY_DEFAULT
C.do_parallax_animations = TRUE
C.parallax_layers_max = 4
return TRUE

if (PARALLAX_MED)
C.parallax_throttle = PARALLAX_DELAY_MED
C.do_parallax_animations = TRUE
C.parallax_layers_max = 3
return TRUE

if (PARALLAX_LOW)
C.parallax_throttle = PARALLAX_DELAY_LOW
C.do_parallax_animations = FALSE
C.parallax_layers_max = 1
return TRUE

Expand Down Expand Up @@ -216,7 +216,6 @@
parallax_layer.pixel_w = round(parallax_layer.offset_x, 1)
parallax_layer.pixel_z = round(parallax_layer.offset_y, 1)


/atom/movable/proc/update_parallax_contents()
for(var/mob/client_mob as anything in client_mobs_in_contents)
if(length(client_mob?.client?.parallax_layers) && client_mob.hud_used)
Expand Down
5 changes: 0 additions & 5 deletions code/modules/client/client_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@
///world.time of when we can state animate()ing parallax again
var/dont_animate_parallax
///world.time of last parallax update
var/last_parallax_shift
///ds between parallax updates
var/parallax_throttle = 0
var/parallax_movedir = 0
var/parallax_layers_max = 4
/// Timers for the area directional animation, one for each layer
Expand Down Expand Up @@ -143,5 +140,3 @@
/// The direction we WANT to move, based off our keybinds
/// Will be udpated to be the actual direction later on
var/intended_direction = NONE


0 comments on commit 3e84f45

Please sign in to comment.