Mhh, mach ich doch, oder etwa nicht?

Code:
if(sprint_v > 2 && c_move(me,vector(dist_sprint,0,0),vector(0,0,0), IGNORE_ME | IGNORE_PASSABLE | USE_POLYGON | GLIDE))
		{
			sprint_act = 1;
			sprint_v = sprint_v -0.7 *time_step;
		}
		else
		sprint_act = 0;
		
		if(sprint_act == 0)
		{
			sprint_v = clamp(sprint_v,0,100);
			sprint_v = sprint_v +0.3 *time_step;
		}



Wenn sprint_act null entspricht wird die Energie aufgeladen. (Siehe else)

Mach ich da was falsch? Zeigt mir ruhig meine Fehler auf. grin

Beste Grüße,
TheShooter


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*