1 diff -urN freelords.org/src/common/armyset.cpp freelords/src/common/armyset.cpp
2 --- freelords.org/src/common/armyset.cpp Sat Feb 17 15:11:25 2001
3 +++ freelords/src/common/armyset.cpp Sat Feb 17 15:29:29 2001
5 int strength, moves, upkeep, production, defence, vitality, production_cost, HP;
7 // filename of the armydescription file
8 - QString file("../pic/army/");
9 + QString file("/usr/X11R6/share/freelords/army/");
10 file += name + "/default";
12 // path to the pics of this armyset
13 - QString pic_path("../pic/army/");
14 + QString pic_path("/usr/X11R6/share/freelords/army/");
19 moves, upkeep, production, production_cost);
21 // filename of the armypicture to load
22 - QString str("../pic/army/");
23 + QString str("/usr/X11R6/share/freelords/army/");
24 str += name + "/" + pic_name;
25 army[i]->set_pixmap(pics->load(str));
27 diff -urN freelords.org/src/common/game_scenario.cpp freelords/src/common/game_scenario.cpp
28 --- freelords.org/src/common/game_scenario.cpp Sat Feb 17 15:11:25 2001
29 +++ freelords/src/common/game_scenario.cpp Sat Feb 17 15:28:35 2001
32 // now let's load the correct mapset
33 if ((map_type == RANDOM) || (map_type == PREVIOUS))
34 - mapdef->load_mapset("../pic/map/default/default"); // random map chosen
35 + mapdef->load_mapset("/usr/X11R6/share/freelords/map/default/default"); // random map chosen
36 else mapdef->load_mapset(mapdef->extract_mapset(map_file));
40 // create map + cities
41 if (map_type == RANDOM)
43 - system("./genmap.py > random.map"); // execute random map generator
44 + system("/usr/X11R6/share/freelords/genmap.py > random.map"); // execute random map generator
45 mapdef->random(); // load the created map saved in random.map
47 if (map_type == LOADED) mapdef->load(map_file);
48 diff -urN freelords.org/src/common/mapdef.cpp freelords/src/common/mapdef.cpp
49 --- freelords.org/src/common/mapdef.cpp Sat Feb 17 15:11:25 2001
50 +++ freelords/src/common/mapdef.cpp Sat Feb 17 15:27:08 2001
55 - QString str("../pic/map/default/");
56 + QString str("/usr/X11R6/share/freelords/default/");
60 diff -urN freelords.org/src/common/pics.cpp freelords/src/common/pics.cpp
61 --- freelords.org/src/common/pics.cpp Sat Feb 17 15:11:25 2001
62 +++ freelords/src/common/pics.cpp Sat Feb 17 15:26:45 2001
67 - city = load("../pic/map/default/city.png");
68 - ruin = load("../pic/map/default/ruin.png");
69 - temple = load("../pic/map/default/temple.png");
70 - sword = load("../pic/various/sword.png");
71 - splash_screen = load("../pic/various/splash_screen.png");
72 + city = load("/usr/X11R6/share/freelords/map/default/city.png");
73 + ruin = load("/usr/X11R6/share/freelords/map/default/ruin.png");
74 + temple = load("/usr/X11R6/share/freelords/map/default/temple.png");
75 + sword = load("/usr/X11R6/share/freelords/various/sword.png");
76 + splash_screen = load("/usr/X11R6/share/freelords/various/splash_screen.png");
80 diff -urN freelords.org/src/graphic/hero_offer.cpp freelords/src/graphic/hero_offer.cpp
81 --- freelords.org/src/graphic/hero_offer.cpp Sat Feb 17 15:11:25 2001
82 +++ freelords/src/graphic/hero_offer.cpp Sat Feb 17 15:31:14 2001
84 b_reject = new QPushButton("&Reject", this);
85 b_reject->setGeometry(width()-155, 70, 70, 25);
87 - if (gender == MALE) system("./hero_male_names.py 1 > new_name");// generate a male name
88 - else system("./hero_female_names.py 1 > new_name"); // generate a female name
89 + if (gender == MALE) system("/usr/X11R6/share/freelords/hero_male_names.py 1 > new_name");// generate a male name
90 + else system("/usr/X11R6/share/freelords/hero_female_names.py 1 > new_name"); // generate a female name
92 ifstream name_file("new_name"); // get name
94 diff -urN freelords.org/src/graphic/player_preferences.cpp freelords/src/graphic/player_preferences.cpp
95 --- freelords.org/src/graphic/player_preferences.cpp Sat Feb 17 15:11:25 2001
96 +++ freelords/src/graphic/player_preferences.cpp Sat Feb 17 15:30:17 2001
101 -#define PATH_ARMYSET "../pic/army/"
102 +#define PATH_ARMYSET "/usr/X11R6/share/freelords/army/"
104 Player_preferences::Player_preferences(QWidget* parent, const char* name)
105 :QGroupBox(4, QGroupBox::Vertical, "Player preferences", parent, name)
106 diff -urN freelords.org/src/graphic/selector.cpp freelords/src/graphic/selector.cpp
107 --- freelords.org/src/graphic/selector.cpp Sat Feb 17 15:11:25 2001
108 +++ freelords/src/graphic/selector.cpp Sat Feb 17 15:27:28 2001
110 #include "selector.h"
112 Selector::Selector(QCanvas* canvas)
113 - :QCanvasSprite(new QCanvasPixmapArray("../pic/various/select%1.png", 2),
114 + :QCanvasSprite(new QCanvasPixmapArray("/usr/X11R6/share/freelords/various/select%1.png", 2),