[iortcw] 53/497: All: Fix native trap_BotMutateGoalFuzzyLogic

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit b5a3663a7482d3695b061f312dec1034818b83de
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Mon Mar 3 12:52:53 2014 +0000

    All: Fix native trap_BotMutateGoalFuzzyLogic
---
 MP/code/game/g_syscalls.c | 2 +-
 SP/code/game/g_syscalls.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/game/g_syscalls.c b/MP/code/game/g_syscalls.c
index a044f97..a683e08 100644
--- a/MP/code/game/g_syscalls.c
+++ b/MP/code/game/g_syscalls.c
@@ -703,7 +703,7 @@ void trap_BotSaveGoalFuzzyLogic( int goalstate, char *filename ) {
 }
 
 void trap_BotMutateGoalFuzzyLogic( int goalstate, float range ) {
-	syscall( BOTLIB_AI_MUTATE_GOAL_FUZZY_LOGIC, goalstate, range );
+	syscall( BOTLIB_AI_MUTATE_GOAL_FUZZY_LOGIC, goalstate, PASSFLOAT(range) );
 }
 
 int trap_BotAllocGoalState( int state ) {
diff --git a/SP/code/game/g_syscalls.c b/SP/code/game/g_syscalls.c
index 8d17dbd..3738610 100644
--- a/SP/code/game/g_syscalls.c
+++ b/SP/code/game/g_syscalls.c
@@ -717,7 +717,7 @@ void trap_BotSaveGoalFuzzyLogic( int goalstate, char *filename ) {
 }
 
 void trap_BotMutateGoalFuzzyLogic( int goalstate, float range ) {
-	syscall( BOTLIB_AI_MUTATE_GOAL_FUZZY_LOGIC, goalstate, range );
+	syscall( BOTLIB_AI_MUTATE_GOAL_FUZZY_LOGIC, goalstate, PASSFLOAT(range) );
 }
 
 int trap_BotAllocGoalState( int state ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list