/[hegemonie]/hegemonie/Map/MapTerrain.m
ViewVC logotype

Diff of /hegemonie/Map/MapTerrain.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by gabby, Mon Jul 21 16:37:02 2003 UTC revision 1.6 by gabby, Thu Jul 24 13:32:12 2003 UTC
# Line 62  aroundTheWorld (int n, int max) Line 62  aroundTheWorld (int n, int max)
62   * describing a height field in gray level mode.   * describing a height field in gray level mode.
63   * If any problem opening the file, returns nil.   * If any problem opening the file, returns nil.
64   */   */
65  - (id) initWithImageName: (NSString *)imageName  - (id) initWithMapImageName: (NSString *)map
66  {  {
67    NSParameterAssert (imageName);    NSParameterAssert (map);
68    NSParameterAssert ([imageName length] != 0);    NSParameterAssert ([map length] != 0);
69    
70    self = [super init];    self = [super init];
71    if (self != nil)    if (self != nil)
72      {      {
73        NSArray *imageReps = [NSBitmapImageRep imageRepsWithFile: imageName];        NSArray *imageReps = [NSBitmapImageRep imageRepsWithFile: map];
74        if ([imageReps count] != 1)        if ([imageReps count] != 1)
75          {          {
76            NSWarnMLog (@"Could not open map file");            NSWarnMLog (@"Could not open map file");

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26