- Fix bug when hedgehog was unable to drop some weapons from rope if it thrown rope in jump
authorunc0rr
Fri, 09 Jan 2009 11:55:05 +0000
changeset 1624 3cbf01d31e5c
parent 1623 d590e6da04da
child 1625 37aae47943ce
- Fix bug when hedgehog was unable to drop some weapons from rope if it thrown rope in jump - This makes engine incompatible, so increase protocol number
CMakeLists.txt
hedgewars/GSHandlers.inc
--- a/CMakeLists.txt	Fri Jan 09 11:28:18 2009 +0000
+++ b/CMakeLists.txt	Fri Jan 09 11:55:05 2009 +0000
@@ -19,7 +19,7 @@
 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
 
 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
-set(HEDGEWARS_PROTO_VER 21)
+set(HEDGEWARS_PROTO_VER 22)
 
 if(WITH_SERVER)
 	set(HAVE_NETSERVER true)
--- a/hedgewars/GSHandlers.inc	Fri Jan 09 11:28:18 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Fri Jan 09 11:55:05 2009 +0000
@@ -826,7 +826,7 @@
 			Gear^.Y:= Gear^.Y + ty;
 			Gear^.Elasticity:= tt;
 			Gear^.doStep:= @doStepRopeWork;
-			with HHGear^ do State:= State and not gstAttacking;
+			with HHGear^ do State:= State and not (gstAttacking or gstMoving);
 			tt:= _0
 			end;
 		tx:= tx + Gear^.dX + Gear^.dX;