mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server into integration/multi-tenancy-expansions-repository
This commit is contained in:
commit
01d326ef83
@ -705,7 +705,7 @@ sub get_windows_wget {
|
||||
if (!-d "bin") {
|
||||
mkdir("bin");
|
||||
}
|
||||
`powershell -Command "\$ProgressPreference = 'SilentlyContinue'; Invoke-RestMethod -ContentType \"application/octet-stream\" -Uri https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe -OutFile bin/wget.exe"`
|
||||
`powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe', 'bin\\wget.exe') "`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1619,11 +1619,12 @@ XS(XS__ChooseRandom) {
|
||||
if (items < 1)
|
||||
Perl_croak(aTHX_ "Usage: quest::ChooseRandom(option1, option2, option3, option4, option5...[no limit])");
|
||||
|
||||
dXSTARG;
|
||||
int index = zone->random.Int(0, items - 1);
|
||||
SV *RETVAL = ST(index);
|
||||
|
||||
SV *tmp = ST(0);
|
||||
ST(0) = ST(index);
|
||||
ST(index) = tmp;
|
||||
XSprePUSH;
|
||||
PUSHs(RETVAL);
|
||||
|
||||
XSRETURN(1); //return 1 element from the stack (ST(0))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user