diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 2b3237caeb..303d034ff8 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,14 @@ -March 12, 2009 +March 14, 2009 +- Changed Linux default for fullscreen to false. +- Removed CVAR_SERVERINFO flag from compatmode. Since it writes to + compatflags, that should be enough. Having that flag set for both of + them leads to problems with e.g. loading a savegame, where compatflags is + restored, then compatmode is restored and it completely undoes whatever + compatflags was restored to. +- Fixed: Trying to start a map for some single file that isn't really a map + caused a crash. + +March 12, 2009 - Fixed: After loading a savegame or unmorphing, a player's weapon slots were empty. diff --git a/src/d_main.cpp b/src/d_main.cpp index fc8fc10b3f..d7cface4b9 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -526,7 +526,7 @@ CUSTOM_CVAR (Int, compatflags, 0, CVAR_ARCHIVE|CVAR_SERVERINFO) i_compatflags = GetCompatibility(self) | ii_compatflags; } -CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_SERVERINFO|CVAR_NOINITCALL) +CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_NOINITCALL) { int v; diff --git a/src/g_shared/a_morph.cpp b/src/g_shared/a_morph.cpp index 0979c88cf6..3c7deebf60 100644 --- a/src/g_shared/a_morph.cpp +++ b/src/g_shared/a_morph.cpp @@ -20,6 +20,9 @@ static FRandom pr_morphmonst ("MorphMonster"); // // Returns true if the player gets turned into a chicken/pig. // +// TODO: Allow morphed players to receive weapon sets (not just one weapon), +// since they have their own weapon slots now. +// //--------------------------------------------------------------------------- bool P_MorphPlayer (player_t *activator, player_t *p, const PClass *spawntype, int duration, int style, const PClass *enter_flash, const PClass *exit_flash) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 7cb4806ab4..857308e860 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -255,7 +255,6 @@ MapData *P_OpenMapData(const char * mapname) MapData * map = new MapData; bool externalfile = !strnicmp(mapname, "file:", 5); - if (externalfile) { mapname += 5; @@ -284,8 +283,12 @@ MapData *P_OpenMapData(const char * mapname) if (lump_name > lump_wad && lump_name > lump_map && lump_name != -1) { - int lumpfile=Wads.GetLumpFile(lump_name); - int nextfile=Wads.GetLumpFile(lump_name+1); + int lumpfile = Wads.GetLumpFile(lump_name); + int nextfile = Wads.GetLumpFile(lump_name+1); + + map->file = Wads.GetFileReader(lumpfile); + map->CloseOnDestruct = false; + map->lumpnum = lump_name; if (lumpfile != nextfile) { @@ -303,10 +306,6 @@ MapData *P_OpenMapData(const char * mapname) // This case can only happen if the lump is inside a real WAD file. // As such any special handling for other types of lumps is skipped. - map->file = Wads.GetFileReader(lumpfile); - map->CloseOnDestruct = false; - map->lumpnum = lump_name; - map->MapLumps[0].FilePos = Wads.GetLumpOffset(lump_name); map->MapLumps[0].Size = Wads.LumpLength(lump_name); map->Encrypted = Wads.IsEncryptedFile(lump_name); diff --git a/src/sdl/hardware.cpp b/src/sdl/hardware.cpp index 992e88b601..88c700767b 100644 --- a/src/sdl/hardware.cpp +++ b/src/sdl/hardware.cpp @@ -162,7 +162,7 @@ void I_ClosestResolution (int *width, int *height, int bits) extern int NewWidth, NewHeight, NewBits, DisplayBits; -CUSTOM_CVAR (Bool, fullscreen, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) +CUSTOM_CVAR (Bool, fullscreen, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) { NewWidth = screen->GetWidth(); NewHeight = screen->GetHeight();