|
96 | 96 | global.attemptPortForward = ini_read_real("Server", "Attempt UPnP Forwarding", 0); |
97 | 97 | global.serverPluginList = ini_read_string("Server", "ServerPluginList", ""); |
98 | 98 | global.serverPluginsRequired = ini_read_real("Server", "ServerPluginsRequired", 0); |
99 | | - var CrosshairFilename, CrosshairRemoveBG; |
100 | | - CrosshairFilename = ini_read_string("Settings", "CrosshairFilename", ""); |
101 | | - CrosshairRemoveBG = ini_read_real("Settings", "CrosshairRemoveBG", 1); |
| 99 | + global.CrosshairFilename = ini_read_string("Settings", "CrosshairFilename", ""); |
| 100 | + global.CrosshairRemoveBG = ini_read_real("Settings", "CrosshairRemoveBG", 1); |
102 | 101 | global.queueJumping = ini_read_real("Settings", "Queued Jumping", 0); |
103 | 102 | global.hideSpyGhosts = ini_read_real("Settings", "Hide Spy Ghosts", 0); |
104 | 103 | //Hidden setting |
|
175 | 174 | ini_write_real("Server", "Attempt UPnP Forwarding", global.attemptPortForward); |
176 | 175 | ini_write_string("Server", "ServerPluginList", global.serverPluginList); |
177 | 176 | ini_write_real("Server", "ServerPluginsRequired", global.serverPluginsRequired); |
178 | | - ini_write_string("Settings", "CrosshairFilename", CrosshairFilename); |
179 | | - ini_write_real("Settings", "CrosshairRemoveBG", CrosshairRemoveBG); |
| 177 | + ini_write_string("Settings", "CrosshairFilename", global.CrosshairFilename); |
| 178 | + ini_write_real("Settings", "CrosshairRemoveBG", global.CrosshairRemoveBG); |
180 | 179 | ini_write_real("Settings", "Queued Jumping", global.queueJumping); |
181 | 180 | ini_write_real("Settings", "Hide Spy Ghosts", global.hideSpyGhosts); |
182 | 181 |
|
@@ -395,11 +394,7 @@ global.launchMap = ""; |
395 | 394 | previous_window_y = window_get_y(); |
396 | 395 | previous_window_w = window_get_width(); |
397 | 396 | |
398 | | - if (file_exists(CrosshairFilename)) |
399 | | - { |
400 | | - sprite_replace(CrosshairS,CrosshairFilename,1,CrosshairRemoveBG,false,0,0); |
401 | | - sprite_set_offset(CrosshairS,sprite_get_width(CrosshairS)/2,sprite_get_height(CrosshairS)/2); |
402 | | - } |
| 397 | + replace_crosshair(); |
403 | 398 | |
404 | 399 | global.isHost = false; |
405 | 400 | |
|
0 commit comments