From d0ec7e40f31f4f7b8a747f495f5a8d210bdb2afe Mon Sep 17 00:00:00 2001 From: flowtron Date: Wed, 28 Sep 2011 19:32:31 +0000 Subject: [PATCH] fix crash on wpvisible - still FIXME though! git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6658 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/bot/bot_waypoint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/src/bot/bot_waypoint.cpp b/source/src/bot/bot_waypoint.cpp index 920ed6be..332a963f 100644 --- a/source/src/bot/bot_waypoint.cpp +++ b/source/src/bot/bot_waypoint.cpp @@ -20,8 +20,10 @@ CCubeWaypointClass WaypointClass; VAR(xhairwpsel, 0, 1, 1); // FIXME: multiple selections support ? +// well, TBH I haven't groked this myself yet, but the following curselection segfaults the client, so I'm just putting in a sane-variant until someone groks it ;-) - ft 2011sep28 extern vector sels; -#define curselection (xhairwpsel ? vec(sels.last().x, sels.last().y, S(sels.last().x, sels.last().y)->floor+2.0f) : vec(player1->o.x, player1->o.y, player1->o.z)) +//#define curselection (xhairwpsel ? vec(sels.last().x, sels.last().y, S(sels.last().x, sels.last().y)->floor+2.0f) : vec(player1->o.x, player1->o.y, player1->o.z)) +#define curselection (vec(player1->o.x, player1->o.y, player1->o.z)) // Waypoint class begin