comparison Outdoor.cpp @ 138:a8ec7e1e18b6

Sliding downhill & relative subs. how it's done: each time you get a little bit pushed in the air along terrain normal, and then falling to the gravity, gradually sliding downwards. nice trick
author Nomad
date Tue, 12 Feb 2013 00:22:30 +0200
parents 3471df3713e2
children cca78efb377e
comparison
equal deleted inserted replaced
137:a2ddaf0e4d8a 138:a8ec7e1e18b6
313 signed int v9; // esi@7 313 signed int v9; // esi@7
314 int v10; // esi@23 314 int v10; // esi@23
315 signed int v11; // eax@23 315 signed int v11; // eax@23
316 int v12; // ST14_4@25 316 int v12; // ST14_4@25
317 signed int v14; // [sp-4h] [bp-84h]@6 317 signed int v14; // [sp-4h] [bp-84h]@6
318 char Str; // [sp+8h] [bp-78h]@3 318 char Str[140]; // [sp+8h] [bp-78h]@3
319 int a5a; // [sp+94h] [bp+14h]@3 319 int a5a; // [sp+94h] [bp+14h]@3
320 320
321 auto Source = this; 321 auto Source = this;
322 322
323 v5 = Source; 323 v5 = Source;
324 if ( a5 < 10 324 if ( a5 < 10
325 || strlen(Source->pLevelFilename) != 9 325 || strlen(Source->pLevelFilename) != 9
326 || (strcpy(&Str, v5->pLevelFilename), 326 || (strcpy(Str, v5->pLevelFilename),
327 _strlwr(&Str), 327 _strlwr(Str),
328 v6 = strtok(&Str, "out"), 328 v6 = strtok(Str, "out"),
329 v6[2] = 0, 329 v6[2] = 0,
330 v7 = atoi(v6), 330 v7 = atoi(v6),
331 v8 = v7, 331 v8 = v7,
332 a5a = v7, 332 a5a = v7,
333 v7 < 1) 333 v7 < 1)