src/states.c
changeset 291 6165554cbfe9
parent 284 24bf3d692993
child 303 340348f0193f
--- a/src/states.c	Sun Sep 30 22:34:10 2007 +0200
+++ b/src/states.c	Sun Sep 30 22:35:48 2007 +0200
@@ -106,11 +106,11 @@
 }
 
 #define StartOrStop(CommType, FuncStart, FuncStop) \
-	if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\
+	if(newCommunicationState->CommType && d->CurrentCommunicationState.CommType == 0){\
 		MSG_WAR(0x9999,#FuncStart, 9999);\
 		d->CurrentCommunicationState.CommType = 1;\
 		FuncStart;\
-	}else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\
+	}else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType == 1){\
 		MSG_WAR(0x9999,#FuncStop, 9999);\
 		d->CurrentCommunicationState.CommType = 0;\
 		FuncStop;\