refactor(updater): remove reference to compileVersion

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-05 11:50:03 -07:00
parent 7564fd64aa
commit f5ed876244
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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", []));