aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mortevielle/alert.cpp32
-rw-r--r--engines/mortevielle/menu.cpp5
-rw-r--r--engines/mortevielle/mor.cpp7
-rw-r--r--engines/mortevielle/mor2.cpp3
4 files changed, 38 insertions, 9 deletions
diff --git a/engines/mortevielle/alert.cpp b/engines/mortevielle/alert.cpp
index 1a1356747a..c088502284 100644
--- a/engines/mortevielle/alert.cpp
+++ b/engines/mortevielle/alert.cpp
@@ -118,7 +118,12 @@ static void fait_choix(Common::String c, int &coldep, int &nbcase, Common::Strin
i = i + 2;
while (str[l].size() < 3) str[l] = str[l] + ' ';
putxy(x, 98);
- writeg(string(' ') + str[l] + ' ', 0);
+
+ Common::String tmp(" ");
+ tmp += str[l];
+ tmp += " ";
+
+ writeg(tmp, 0);
x = x + esp + 40;
}
}
@@ -198,10 +203,19 @@ int do_alert(Common::String str_, int n) {
hide_mouse();
if (quoi != 0) {
posit(quoi, coldep, esp);
- writeg(string(' ') + s[quoi] + ' ', 0);
+
+ Common::String tmp(" ");
+ tmp += s[quoi];
+ tmp += " ";
+ writeg(tmp, 0);
}
posit(ix, coldep, esp);
- writeg(string(' ') + s[ix] + ' ', 1);
+
+ Common::String tmp2 = " ";
+ tmp2 += s[ix];
+ tmp2 += " ";
+ writeg(tmp2, 1);
+
quoi = ix;
show_mouse();
}
@@ -210,7 +224,12 @@ int do_alert(Common::String str_, int n) {
if ((quoi != 0) && ! newaff) {
hide_mouse();
posit(quoi, coldep, esp);
- writeg(string(' ') + s[quoi] + ' ', 0);
+
+ Common::String tmp3(" ");
+ tmp3 += s[quoi];
+ tmp3 += " ";
+ writeg(tmp3, 0);
+
quoi = 0;
show_mouse();
}
@@ -222,7 +241,10 @@ int do_alert(Common::String str_, int n) {
if (! test3) {
quoi = n;
posit(n, coldep, esp);
- writeg(string(' ') + s[n] + ' ', 1);
+ Common::String tmp4(" ");
+ tmp4 += s[n];
+ tmp4 += " ";
+ writeg(tmp4, 1);
}
charecr(50, succ(int, nligne) << 4);
show_mouse();
diff --git a/engines/mortevielle/menu.cpp b/engines/mortevielle/menu.cpp
index 083a16d07a..412ab551f7 100644
--- a/engines/mortevielle/menu.cpp
+++ b/engines/mortevielle/menu.cpp
@@ -53,7 +53,10 @@ namespace Mortevielle {
while (s.size() < 30) s = s + ' ';
switch (h) {
case invent :
- if (l != 7) inv[l] = string(' ') + s;
+ if (l != 7) {
+ inv[l] = s;
+ inv[l].insertChar(' ', 0);
+ }
break;
case depla :
dep[l] = s;
diff --git a/engines/mortevielle/mor.cpp b/engines/mortevielle/mor.cpp
index 2938834f9e..83cd3595f3 100644
--- a/engines/mortevielle/mor.cpp
+++ b/engines/mortevielle/mor.cpp
@@ -675,8 +675,11 @@ void pendule() {
if (heu > 11) writeg("PM ", 1);
else writeg("AM ", 1);
putxy(550, 160);
- if ((jou >= 0) && (jou <= 8))
- writeg(string(chr(jou + 49)) + "& jour", 1);
+ if ((jou >= 0) && (jou <= 8)) {
+ Common::String tmp("& jour");
+ tmp.insertChar((char)(jou + 49), 0);
+ writeg(tmp, 1);
+ }
}
/*************
diff --git a/engines/mortevielle/mor2.cpp b/engines/mortevielle/mor2.cpp
index bdf207fb5c..3a895939d2 100644
--- a/engines/mortevielle/mor2.cpp
+++ b/engines/mortevielle/mor2.cpp
@@ -77,7 +77,8 @@ void tinke() {
for (cx = 1; cx <= 10; cx ++) if (s.pourc[cx] == '*') cf = cf + 1;
if (cf == 10) stpo = "10";
else stpo = chr(cf + 48);
- stpou = string(d3) + d5 + d4 + d3 + d1 + stpo + '0' + d2 + d4 + d3 + d6 + d4;
+
+ stpou = Common::String(d3) + d5 + d4 + d3 + d1 + stpo + '0' + d2 + d4 + d3 + d6 + d4;
}
if (m > min) {
min = 30;