[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16329] trunk/blender/source/gameengine/ GameLogic/SCA_JoystickSensor.cpp: own dumb mistake 'or' instead of '||'
Campbell Barton
ideasman42 at gmail.com
Mon Sep 1 15:05:26 CEST 2008
Revision: 16329
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16329
Author: campbellbarton
Date: 2008-09-01 15:04:50 +0200 (Mon, 01 Sep 2008)
Log Message:
-----------
own dumb mistake 'or' instead of '||'
Modified Paths:
--------------
trunk/blender/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
Modified: trunk/blender/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
===================================================================
--- trunk/blender/source/gameengine/GameLogic/SCA_JoystickSensor.cpp 2008-09-01 07:03:09 UTC (rev 16328)
+++ trunk/blender/source/gameengine/GameLogic/SCA_JoystickSensor.cpp 2008-09-01 13:04:50 UTC (rev 16329)
@@ -334,7 +334,7 @@
"\tSets the joystick index to use.\n";
PyObject* SCA_JoystickSensor::PySetIndex( PyObject* self, PyObject* value ) {
int index = PyInt_AsLong( value ); /* -1 on error, will raise an error in this case */
- if (index < 0 or index >= JOYINDEX_MAX) {
+ if (index < 0 || index >= JOYINDEX_MAX) {
PyErr_SetString(PyExc_ValueError, "joystick index out of range or not an int");
return NULL;
}
More information about the Bf-blender-cvs
mailing list