From c1e3e1e9e7c7ba383a2978641743335cfa67d016 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 9 Feb 2001 06:50:40 +0000 Subject: [PATCH] Map now compiles (but probably doesn't work: lots of warnings) --- tools/Forge/Map.m | 136 +++++++++++++++++++++---------------------- tools/Forge/qedefs.h | 2 + 2 files changed, 69 insertions(+), 69 deletions(-) diff --git a/tools/Forge/Map.m b/tools/Forge/Map.m index 9185e6d9c..cf9b3b60d 100644 --- a/tools/Forge/Map.m +++ b/tools/Forge/Map.m @@ -20,7 +20,7 @@ FILE METHODS minz = 0; maxz = 80; - oldselection = [[List alloc] init]; + oldselection = [[NSMutableArray alloc] init]; return self; } @@ -30,18 +30,18 @@ FILE METHODS int i, c; id o, w; - [oldselection empty]; - w = [self objectAt: 0]; + [oldselection removeAllObjects]; + w = [self objectAtIndex: 0]; c = [w count]; sb_newowner = oldselection; for (i=0 ; i=0 ; i--) { - ent = [self objectAt: i]; + ent = [self objectAtIndex: i]; c2 = [ent count]; for (j=0 ; jbesttime) continue; @@ -444,12 +442,12 @@ to intervening world brushes } [bestbrush setSelected: YES]; - qprintf ("selected entity %i brush %i face %i", [self indexOf:bestent], [bestent indexOf: bestbrush], bestface); + qprintf ("selected entity %i brush %i face %i", [self indexOfObject:bestent], [bestent indexOfObject: bestbrush], bestface); } else { [bestbrush setSelected: NO]; - qprintf ("deselected entity %i brush %i face %i", [self indexOf:bestent], [bestent indexOf: bestbrush], bestface); + qprintf ("deselected entity %i brush %i face %i", [self indexOfObject:bestent], [bestent indexOfObject: bestbrush], bestface); } [quakeed_i reenableFlushWindow]; @@ -480,11 +478,11 @@ Returns the brush hit, or nil if missed. c = [self count]; for (i=0 ; ibesttime) continue; @@ -583,11 +581,11 @@ setTextureRay c = [self count]; for (i=0 ; ibesttime) continue; @@ -622,12 +620,12 @@ setTextureRay if (allsides) { [bestbrush setTexturedef: &td]; - qprintf ("textured entity %i brush %i", [self indexOf:bestent], [bestent indexOf: bestbrush]); + qprintf ("textured entity %i brush %i", [self indexOfObject:bestent], [bestent indexOfObject: bestbrush]); } else { [bestbrush setTexturedef: &td forFace: bestface]; - qprintf ("deselected entity %i brush %i face %i", [self indexOf:bestent], [bestent indexOf: bestbrush], bestface); + qprintf ("deselected entity %i brush %i face %i", [self indexOfObject:bestent], [bestent indexOfObject: bestbrush], bestface); } [quakeed_i reenableFlushWindow]; @@ -655,11 +653,11 @@ OPERATIONS ON SELECTIONS c = [self count]; for (i=c-1 ; i>=0 ; i--) { - ent = [self objectAt: i]; + ent = [self objectAtIndex: i]; c2 = [ent count]; for (j = c2-1 ; j >=0 ; j--) { - brush = [ent objectAt: j]; + brush = [ent objectAtIndex: j]; if (! [brush selected] ) continue; if ([brush regioned]) @@ -683,11 +681,11 @@ OPERATIONS ON SELECTIONS c = [self count]; for (i=c-1 ; i>=0 ; i--) { - ent = [self objectAt: i]; + ent = [self objectAtIndex: i]; c2 = [ent count]; for (j = c2-1 ; j >=0 ; j--) { - brush = [ent objectAt: j]; + brush = [ent objectAtIndex: j]; if ( [brush selected] ) continue; if ([brush regioned]) @@ -707,11 +705,11 @@ OPERATIONS ON SELECTIONS c = [self count]; for (i=c-1 ; i>=0 ; i--) { - ent = [self objectAt: i]; + ent = [self objectAtIndex: i]; c2 = [ent count]; for (j = c2-1 ; j >=0 ; j--) { - brush = [ent objectAt: j]; + brush = [ent objectAtIndex: j]; if ([brush regioned]) continue; [brush perform:sel]; @@ -729,11 +727,11 @@ OPERATIONS ON SELECTIONS c = [self count]; for (i=c-1 ; i>=0 ; i--) { - ent = [self objectAt: i]; + ent = [self objectAtIndex: i]; c2 = [ent count]; for (j = c2-1 ; j >=0 ; j--) { - brush = [ent objectAt: j]; + brush = [ent objectAtIndex: j]; [brush perform:sel]; } } @@ -854,11 +852,11 @@ UI operations sb_translate[2] = 0; // copy individual brushes in the world entity - o = [self objectAt: 0]; + o = [self objectAtIndex: 0]; c = [o count]; for (i=0 ; i #import #import +#import +#import #import "UserPath.h" #import "cmdlib.h"