if(!doublejump && self.multijump_ready && self.multijump_count < cvar("g_multijump") && self.velocity_z > cvar("g_multijump_speed"))\r
{\r
// doublejump = FALSE; // checked above in the if\r
- if (cvar("g_multijump") > 0)\r
+ if (cvar("g_multijump"))\r
{\r
if (cvar("g_multijump_add") == 0) // in this case we make the z velocity == jumpvelocity\r
{\r
self.velocity_y = wishdir_y * curspeed;\r
// keep velocity_z unchanged!\r
}\r
- self.multijump_count += 1;\r
+ if (cvar("g_multijump") > 0)\r
+ self.multijump_count += 1;\r
}\r
}\r
self.multijump_ready = FALSE; // require releasing and pressing the jump button again for the next jump\r