Compare commits

...

3 Commits

Author SHA1 Message Date
Vivian Lim 63a97a2bca add another map to the list 2020-09-06 22:57:54 -07:00
Vivian Lim 6ccbc4b602 remove chance of picking a map hell map, as well as kodachrome void.
this also removes them from the multiplayer vote screen
2020-09-06 16:17:55 -07:00
Vivian Lim 0c9664db9e update gitignore & my run script 2020-09-06 16:16:08 -07:00
3 changed files with 15 additions and 1 deletions

2
.gitignore vendored
View File

@ -21,3 +21,5 @@ Win32_LIB_ASM_Release
/.vs
/debian
/assets/debian
assets
bin

4
run.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
env SRB2WADDIR=$(pwd)/assets/installer/ bin/Linux64/Release/lsdl2srb2kart -file bonuschars.kart +map map11 -opengl

View File

@ -3548,7 +3548,7 @@ INT16 G_RandMap(INT16 tolflags, INT16 pprevmap, boolean ignorebuffer, UINT8 maph
tryagain:
usehellmaps = (maphell == 0 ? false : (maphell == 2 || M_RandomChance(FRACUNIT/100))); // 1% chance of Hell
usehellmaps = false; // no map hell
// Find all the maps that are ok and and put them in an array.
for (ix = 0; ix < NUMMAPS; ix++)
@ -3636,6 +3636,14 @@ tryagain:
else
ix = okmaps[M_RandomKey(numokmaps)];
//hack: don't pick any of these maps
// map numbering seems to start at 0, -1 here
// not sure if this actually works
if (ix == 35 // Kodachrome Void
|| ix == 33 ){ // cloud cradle zone
goto tryagain;
}
if (!callagainsoon)
{
Z_Free(okmaps);