refactor(updater): remove reference to compileVersion
Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
parent
7564fd64aa
commit
f5ed876244
2 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ default
|
|||
llWhisper(0, m);
|
||||
if(llJsonGetValue(m, ["op"]) == "check_package_servers")
|
||||
{
|
||||
llRegionSayTo(i,c,BuildPacket("package_server_reply", ["server", g_sServerName]));
|
||||
llRegionSayTo(i,c,BuildPacket("package_server_reply", ["server", g_sServerName, "owner", llGetOwner()]));
|
||||
}else if(llJsonGetValue(m,["op"]) == "connect")
|
||||
{
|
||||
// This is always going to be successful in reality, so what we do is we send back all package names
|
||||
|
|
|
@ -39,10 +39,10 @@ default
|
|||
if(iChange & CHANGED_INVENTORY)
|
||||
{
|
||||
// Reset ourselves if not update in progress
|
||||
if(g_iClientPin != 0){
|
||||
if(g_iClientPin != 0) {
|
||||
// We're in a update, scream at the object owner
|
||||
llOwnerSay("/!\\ FATAL /!\\\n \n[ You have changed my contents mid-update. There could be serious problems that arise now. You should repeat the update after this one ends if there are issues ]");
|
||||
}else
|
||||
} else
|
||||
llResetScript();
|
||||
}
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ default
|
|||
if(sOp == "checkupdate")
|
||||
{
|
||||
string sVer = llJsonGetValue(sMsg,["myversion"]);
|
||||
integer iCompare = VersionNumberCompare(compileVersion(), sVer);
|
||||
integer iCompare = VersionNumberCompare(VERSION, sVer);
|
||||
if(iCompare == 0)
|
||||
{
|
||||
llRegionSayTo(kID, UPDATER_CHANNEL, BuildPacket("same", []));
|
||||
|
|
Loading…
Reference in a new issue