diff --git a/doomsday/engine/portable/src/edit_bias.c b/doomsday/engine/portable/src/edit_bias.c index dbfa6f5d72..698d185bf4 100644 --- a/doomsday/engine/portable/src/edit_bias.c +++ b/doomsday/engine/portable/src/edit_bias.c @@ -393,7 +393,7 @@ static boolean SBE_Save(const char* name) Str_Init(&fileName); if(!name || !name[0]) { - Str_Appendf(&fileName, "%s.ded", Str_Text(Uri_Path(P_MapUri(map)))); + Str_Appendf(&fileName, "%s.ded", P_MapUri(map)); } else { diff --git a/doomsday/engine/portable/src/r_world.c b/doomsday/engine/portable/src/r_world.c index 1904c825b4..bc239f88ea 100644 --- a/doomsday/engine/portable/src/r_world.c +++ b/doomsday/engine/portable/src/r_world.c @@ -1376,7 +1376,6 @@ void R_SetupMap(int mode, int flags) case DDSMM_FINALIZE: { gamemap_t* map = P_GetCurrentMap(); ded_mapinfo_t* mapInfo; - ddstring_t* str = 0; float startTime; char cmd[80]; int i; @@ -1419,10 +1418,7 @@ void R_SetupMap(int mode, int flags) } // Run the special map setup command, which the user may alias to do something useful. - sprintf(cmd, "init-%s", Str_Text(Uri_Path(P_MapUri(map)))); -#ifdef _DEBUG - Con_Message("R_SetupMap: Setup command: %s\n", cmd); -#endif + sprintf(cmd, "init-%s", P_MapUri(map)); if(Con_IsValidCommand(cmd)) { Con_Executef(CMDS_SCRIPT, false, "%s", cmd);