Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 2 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | #include "common.h" |
21 | #include "common.h" |
22 | #include <ctype.h> |
22 | #include <ctype.h> |
23 | #include <inttypes.h> |
23 | #include <inttypes.h> |
24 | 24 | ||
25 | 25 | ||
26 | extern int |
26 | extern int filter_level; |
27 | 27 | ||
28 | 28 | ||
29 | void disable_fixes_and_enhancements() { |
29 | void disable_fixes_and_enhancements() { |
30 | enable_crouch_after_climbing = 0; |
30 | enable_crouch_after_climbing = 0; |
31 | enable_freeze_time_during_end_music = 0; |
31 | enable_freeze_time_during_end_music = 0; |
Line 227... | Line 227... | ||
227 | } |
227 | } |
228 | #endif |
228 | #endif |
229 | #ifdef USE_LIGHTING |
229 | #ifdef USE_LIGHTING |
230 | process_boolean("enable_lighting", &enable_lighting); |
230 | process_boolean("enable_lighting", &enable_lighting); |
231 | #endif |
231 | #endif |
232 | process_int(" |
232 | process_int("filter_level", &filter_level, NULL); |
233 | if ( |
233 | if (filter_level < 1) |
234 |
|
234 | filter_level = 1; |
235 | else if ( |
235 | else if (filter_level > 6) |
236 |
|
236 | filter_level = 6; |
237 | } |
237 | } |
238 | 238 | ||
239 | if (check_ini_section("Enhancements")) { |
239 | if (check_ini_section("Enhancements")) { |
240 | if (strcasecmp(name, "use_fixes_and_enhancements") == 0) { |
240 | if (strcasecmp(name, "use_fixes_and_enhancements") == 0) { |
241 | if (strcasecmp(value, "true") == 0) use_fixes_and_enhancements = 1; |
241 | if (strcasecmp(value, "true") == 0) use_fixes_and_enhancements = 1; |