mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DIRECTOR: Lingo: Implemented string() built-in function
This commit is contained in:
@@ -41,6 +41,7 @@ static struct BuiltinProto {
|
||||
{ "random", Lingo::b_random, 1},
|
||||
{ "sin", Lingo::b_sin, 1},
|
||||
{ "sqrt", Lingo::b_sqrt, 1},
|
||||
{ "string", Lingo::b_string, 1},
|
||||
{ "tan", Lingo::b_tan, 1},
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -145,6 +146,12 @@ void Lingo::b_sqrt() {
|
||||
g_lingo->push(d);
|
||||
}
|
||||
|
||||
void Lingo::b_string() {
|
||||
Datum d = g_lingo->pop();
|
||||
d.toString();
|
||||
g_lingo->push(d);
|
||||
}
|
||||
|
||||
void Lingo::b_tan() {
|
||||
Datum d = g_lingo->pop();
|
||||
d.toFloat();
|
||||
|
||||
@@ -226,6 +226,7 @@ public:
|
||||
static void b_random();
|
||||
static void b_sin();
|
||||
static void b_sqrt();
|
||||
static void b_string();
|
||||
static void b_tan();
|
||||
|
||||
void func_mci(Common::String &s);
|
||||
|
||||
Reference in New Issue
Block a user