Overview
Comment: | Migrate vectors |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
853e760619bc8b16ee0262c55740ba82 |
User & Date: | js on 2025-03-16 00:05:52 |
Other Links: | manifest | tags |
Context
2025-03-16
| ||
10:11 | Use one autorelease pool per frame check-in: 489124a92f user: js tags: trunk | |
00:05 | Migrate vectors check-in: 853e760619 user: js tags: trunk | |
2025-03-15
| ||
23:42 | Migrate last strings check-in: b81e2948d7 user: js tags: trunk | |
Changes
Modified src/cube.h from [8cc717f782] to [63027fcfcd].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + - + | @property (class, readonly, nonatomic) Cube *sharedInstance; @property (readonly, nonatomic) SDL_Window *window; @property (readonly, nonatomic) OFIRI *gameDataIRI, *userDataIRI; @property (nonatomic) bool repeatsKeys; @property (nonatomic) int framesInMap; @end |
︙ | |||
40 41 42 43 44 45 46 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + - + - + - + | char defer; // used in mipmapping, when true this cube is not a perfect // mip char occluded; // true when occluded uchar utex; // upper wall tex id uchar tag; // used by triggers }; |
︙ | |||
72 73 74 75 76 77 78 | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | + - + - - + - + | MAPMODEL, // attr1 = angle, attr2 = idx MONSTER, // attr1 = angle, attr2 = monstertype CARROT, // attr1 = tag, attr2 = type JUMPPAD, // attr1 = zpush, attr2 = ypush, attr3 = xpush MAXENTTYPES }; // map entity |
︙ | |||
340 341 342 343 344 345 346 | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | - + - + | #define m_tarena (gamemode >= 10) #define m_teammode (gamemode & 1 && gamemode > 2) #define m_sp (gamemode < 0) #define m_dmsp (gamemode == -1) #define m_classicsp (gamemode == -2) #define isteam(a, b) (m_teammode && [a isEqual:b]) |
︙ |
Modified src/worldlight.mm from [9b1a521652] to [05fab5d192].
︙ | |||
185 186 187 188 189 190 191 | 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | - + - - + + + - + | block b = { 1, 1, ssize - 2, ssize - 2 }; postlightarea(b); setvar(@"fullbright", 0); } VARP(dynlight, 0, 16, 32); |
︙ | |||
223 224 225 226 227 228 229 | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | + + + + - + + + | if (b.y < 1) b.y = 1; if (b.xs + b.x > ssize - 2) b.xs = ssize - 2 - b.x; if (b.ys + b.y > ssize - 2) b.ys = ssize - 2 - b.y; if (dlights == nil) dlights = [[OFMutableData alloc] initWithItemSize:sizeof(block *)]; |
︙ |