mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Try to preserve the script args for createentity when using default args
This commit is contained in:
parent
d22b895e22
commit
ee610238b5
1 changed files with 19 additions and 7 deletions
|
@ -715,17 +715,29 @@ void scriptclass::run()
|
|||
}
|
||||
else if (words[0] == "createentity")
|
||||
{
|
||||
std::string word6 = words[6];
|
||||
std::string word7 = words[7];
|
||||
std::string word8 = words[8];
|
||||
std::string word9 = words[9];
|
||||
if (words[6] == "") words[6] = "0";
|
||||
if (words[7] == "") words[7] = "0";
|
||||
if (words[8] == "") words[8] = "320";
|
||||
if (words[9] == "") words[9] = "240";
|
||||
obj.createentity(ss_toi(words[1]), ss_toi(words[2]), ss_toi(words[3]),
|
||||
ss_toi(words[4]), ss_toi(words[5]),
|
||||
ss_toi(words[6]), ss_toi(words[7]), ss_toi(words[8]), ss_toi(words[9]));
|
||||
words[6] = "";
|
||||
words[7] = "";
|
||||
words[8] = "";
|
||||
words[9] = "";
|
||||
obj.createentity(
|
||||
ss_toi(words[1]),
|
||||
ss_toi(words[2]),
|
||||
ss_toi(words[3]),
|
||||
ss_toi(words[4]),
|
||||
ss_toi(words[5]),
|
||||
ss_toi(words[6]),
|
||||
ss_toi(words[7]),
|
||||
ss_toi(words[8]),
|
||||
ss_toi(words[9])
|
||||
);
|
||||
words[6] = word6;
|
||||
words[7] = word7;
|
||||
words[8] = word8;
|
||||
words[9] = word9;
|
||||
}
|
||||
else if (words[0] == "createcrewman")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue