diff options
Diffstat (limited to 'fractal.cpp')
-rw-r--r-- | fractal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fractal.cpp b/fractal.cpp index 145886a..a911177 100644 --- a/fractal.cpp +++ b/fractal.cpp | |||
@@ -508,7 +508,7 @@ int Fractal::load(const char* filename, Fractal& fractal) | |||
508 | return 0; | 508 | return 0; |
509 | } | 509 | } |
510 | 510 | ||
511 | Fractal Fractal::random() | 511 | Fractal Fractal::random(std::string colorsfile) |
512 | { | 512 | { |
513 | Fractal fractal; | 513 | Fractal fractal; |
514 | 514 | ||
@@ -577,10 +577,10 @@ Fractal Fractal::random() | |||
577 | } | 577 | } |
578 | 578 | ||
579 | std::vector<std::string> colors; | 579 | std::vector<std::string> colors; |
580 | std::ifstream colorfile("colors.txt"); | 580 | std::ifstream colorfile(colorsfile); |
581 | if (!colorfile.is_open()) | 581 | if (!colorfile.is_open()) |
582 | { | 582 | { |
583 | std::cout << "Could not find colors.txt" << std::endl; | 583 | std::cout << "Could not find colors file" << std::endl; |
584 | exit(-1); | 584 | exit(-1); |
585 | } | 585 | } |
586 | 586 | ||