mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-21 11:11:37 +00:00
Fix wad loading when loading the map.
This broke with the fix for the entity inspector.
This commit is contained in:
parent
05a8b981a5
commit
3593274eeb
1 changed files with 4 additions and 3 deletions
|
@ -264,17 +264,18 @@ readMapFile
|
|||
|
||||
[self addSelected];
|
||||
|
||||
ent = [self objectAtIndex: 0];
|
||||
// load the apropriate texture wad
|
||||
wad = [currentEntity valueForQKey: "wad"];
|
||||
wad = [ent valueForQKey: "wad"];
|
||||
if (wad && wad[0]) {
|
||||
// remove old style fullpaths
|
||||
if (wad[0] == '/')
|
||||
[currentEntity removeKeyPair: "wad"];
|
||||
[ent removeKeyPair: "wad"];
|
||||
else if (strcmp ([texturepalette_i currentWad], wad))
|
||||
[project_i setTextureWad: wad];
|
||||
}
|
||||
|
||||
[self setCurrentEntity: [self objectAtIndex: 0]];
|
||||
[self setCurrentEntity: ent];
|
||||
|
||||
// center the camera and XY view on the playerstart
|
||||
c = [self count];
|
||||
|
|
Loading…
Reference in a new issue