hedgewars/SDLMain.h
author sheepluva
Thu, 18 Aug 2011 00:14:43 +0200
changeset 5594 3ab68a93434b
parent 2565 54296af65fe9
permissions -rw-r--r--
portal: combating the space-detection issue. what needs to be tweaked next is how far away objects are spawned. it should either be a trial&error adjustment or depend on the object's moving direction and the portal's angle in order to avoid issues with box collisions. if the spawn distance to the portal is just a fixed value (as it was before this patch) or a constant factor (it is now) it can be too big for "nice" portal angles (in tight gaps with still enough space, but -> denied) and too small for bad angles (box collision esp. on big objects like barrels -> denied)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     1
/*   SDLMain.m - main entry point for our Cocoa-ized SDL app
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     2
       Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     3
       Non-NIB-Code & other changes: Max Horn <max@quendi.de>
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     4
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     5
    Feel free to customize this file to suit your needs
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     6
*/
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
     7
2565
54296af65fe9 update sdlmain files to 1.2.14
koda
parents: 1999
diff changeset
     8
#ifndef _SDLMain_h_
54296af65fe9 update sdlmain files to 1.2.14
koda
parents: 1999
diff changeset
     9
#define _SDLMain_h_
54296af65fe9 update sdlmain files to 1.2.14
koda
parents: 1999
diff changeset
    10
1999
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
    11
#import <Cocoa/Cocoa.h>
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
    12
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
    13
@interface SDLMain : NSObject
a28dcfe658e3 Commit part of koda's patch which applies cleanly:
unc0rr
parents:
diff changeset
    14
@end
2565
54296af65fe9 update sdlmain files to 1.2.14
koda
parents: 1999
diff changeset
    15
54296af65fe9 update sdlmain files to 1.2.14
koda
parents: 1999
diff changeset
    16
#endif /* _SDLMain_h_ */