terraintexture.load(":Data:Textures:snow.jpg", 1, 0);
terraintexture2.load(":Data:Textures:rock.jpg", 1, 0);
- //LoadTexture(":Data:Textures:detailgrain.png",&terraintexture3,1);
-
-
-
temptexdetail = texdetail;
if (texdetail > 1)
terraintexture.load(":Data:Textures:sand.jpg", 1, 0);
terraintexture2.load(":Data:Textures:sandslope.jpg", 1, 0);
- //LoadTexture(":Data:Textures:detailgrain.png",&terraintexture3,1);
-
-
temptexdetail = texdetail;
if (texdetail > 1)
terraintexture.load(":Data:Textures:grassdirt.jpg", 1, 0);
terraintexture2.load(":Data:Textures:mossrock.jpg", 1, 0);
- //LoadTexture(":Data:Textures:detail.png",&terraintexture3,1);
-
-
temptexdetail = texdetail;
if (texdetail > 1)
float maxdistance = 0;
float tempdist;
- //~ int whichclosest;
for (int i = 0; i < objects.numobjects; i++) {
tempdist = distsq(&objects.center, &objects.position[i]);
if (tempdist > maxdistance) {
- //~ whichclosest=i;
maxdistance = tempdist;
}
}
}
}
funpackf(tfile, "Bi", &Person::players[i - howmanyremoved]->numwaypoints);
- //Person::players[i-howmanyremoved]->numwaypoints=10;
for (int j = 0; j < Person::players[i - howmanyremoved]->numwaypoints; j++) {
funpackf(tfile, "Bf", &Person::players[i - howmanyremoved]->waypoints[j].x);
funpackf(tfile, "Bf", &Person::players[i - howmanyremoved]->waypoints[j].y);
break;
case 19:
tutorialstage = 20;
- //tutorialmaxtime=500;
break;
case 20:
tutorialmaxtime = 500;
}
if (Input::isKeyPressed(SDL_SCANCODE_C)) {
- cameramode = 1 - cameramode;
+ cameramode = !cameramode;
}
if (Input::isKeyPressed(SDL_SCANCODE_X) && !Input::isKeyDown(SDL_SCANCODE_LSHIFT)) {
}
if (Input::isKeyPressed(SDL_SCANCODE_M) && Input::isKeyDown(SDL_SCANCODE_LSHIFT)) {
- editorenabled = 1 - editorenabled;
+ editorenabled = !editorenabled;
if (editorenabled) {
Person::players[0]->damagetolerance = 100000;
} else {
void doAttacks()
{
- static XYZ relative;
static int randattack;
static bool playerrealattackkeydown = 0;
displayblinkdelay -= multiplier;
if (displayblinkdelay <= 0) {
displayblinkdelay = .3;
- displayblink = 1 - displayblink;
+ displayblink = !displayblink;
}
}
//keys
if (Input::isKeyPressed(SDL_SCANCODE_V) && debugmode) {
- freeze = 1 - freeze;
+ freeze = !freeze;
if (freeze) {
OPENAL_SetFrequency(OPENAL_ALL, 0.001);
}
consoleblinkdelay -= multiplier;
if (consoleblinkdelay <= 0) {
consoleblinkdelay = .3;
- consoleblink = 1 - consoleblink;
+ consoleblink = !consoleblink;
}
}