Index: question.php
===================================================================
RCS file: /cvsroot/moodle/moodle/question/question.php,v
retrieving revision 1.26.2.1
diff -u -r1.26.2.1 question.php
--- question.php	31 Oct 2006 12:03:44 -0000	1.26.2.1
+++ question.php	6 Feb 2007 08:23:31 -0000
@@ -279,7 +279,7 @@
         $question->image = "";
     }
     if (!isset($question->penalty)) {
-        $question->penalty = 0.1;
+	$question->penalty = 0.1;
     }
     if (!isset($question->defaultgrade)) {
         $question->defaultgrade = 1;
Index: type/truefalse/questiontype.php
===================================================================
RCS file: /cvsroot/moodle/moodle/question/type/truefalse/questiontype.php,v
retrieving revision 1.7
diff -u -r1.7 questiontype.php
--- type/truefalse/questiontype.php	20 Aug 2006 15:37:42 -0000	1.7
+++ type/truefalse/questiontype.php	6 Feb 2007 08:23:34 -0000
@@ -196,8 +196,8 @@
         } else {
             $state->raw_grade = 0;
         }
-        // Only allow one attempt at the question
-        $state->penalty = 1 * $question->maxgrade;
+       
+        $state->penalty = $question->penalty * $question->maxgrade;
 
         // mark the state as graded
         $state->event = ($state->event ==  QUESTION_EVENTCLOSE) ? QUESTION_EVENTCLOSEANDGRADE : QUESTION_EVENTGRADE;
