From 7afe206a0d35b67f2c4aa3c5bed4c13b2de9c32d Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 18 May 2020 10:09:57 -0700 Subject: [PATCH] Fix indentation of scriptclass::loadcustom() It's now indented with tabs like the rest of the file. Furthermore, two indentation levels have been knocked off. --- desktop_version/src/Script.cpp | 570 ++++++++++++++++----------------- 1 file changed, 285 insertions(+), 285 deletions(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 0f94995a..16d86b08 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3581,296 +3581,296 @@ void scriptclass::hardreset() void scriptclass::loadcustom(std::string t) { - //this magic function breaks down the custom script and turns into real scripting! - std::string cscriptname=""; - for(size_t i=0; i=7) cscriptname+=t[i]; - } + //this magic function breaks down the custom script and turns into real scripting! + std::string cscriptname=""; + for(size_t i=0; i=7) cscriptname+=t[i]; + } - int scriptstart=-1; - int scriptend=-1; - std::string tstring; + int scriptstart=-1; + int scriptend=-1; + std::string tstring; - for(size_t i=0; i 0) { - tstring=tstring[tstring.size()-1]; - } else { - tstring=""; - } - if(tstring==":"){ - scriptend=i; - } - } - } - if(scriptstart>-1){ - if(scriptend==-1){ - scriptend=customscript.size(); - } + for(size_t i=0; i 0) { + tstring=tstring[tstring.size()-1]; + } else { + tstring=""; + } + if(tstring==":"){ + scriptend=i; + } + } + } + if(scriptstart>-1){ + if(scriptend==-1){ + scriptend=customscript.size(); + } - //Ok, we've got the relavent script segment, we do a pass to assess it, then run it! - int customcutscenemode=0; - for(int i=scriptstart; i=0 && ti<=50){ - for(int ti2=0; ti2=0 && ti<=50){ + for(int ti2=0; ti2=0 && ti<=50){ - for(int ti2=0; ti2=0 && ti<=50){ + for(int ti2=0; ti2