From: <js...@us...> - 2003-02-18 01:08:25
|
Update of /cvsroot/exult/exult In directory sc8-pr-cvs1:/tmp/cvs-serv5783 Modified Files: ChangeLog actions.cc gamewin.cc paths.cc Log Message: Find_door() for speeding up pathfinding Index: ChangeLog =================================================================== RCS file: /cvsroot/exult/exult/ChangeLog,v retrieving revision 1.1721 retrieving revision 1.1722 diff -u -d -r1.1721 -r1.1722 --- ChangeLog 17 Feb 2003 00:27:39 -0000 1.1721 +++ ChangeLog 18 Feb 2003 01:08:17 -0000 1.1722 @@ -1,3 +1,7 @@ +2003-02-17 Jeff Freedman <je...@am...> + + * objs/chunks.{cc,h},etc: find_door() speeds up pathfinding. + 2003-02-16 Jeff Freedman <je...@am...> * drag.cc (Dragging_info): Don't drop above where we can see. Index: actions.cc =================================================================== RCS file: /cvsroot/exult/exult/actions.cc,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- actions.cc 22 Sep 2002 00:06:51 -0000 1.94 +++ actions.cc 18 Feb 2003 01:08:17 -0000 1.95 @@ -272,7 +272,7 @@ !cheat.in_map_editor()) // And NOT map-editing? // +++++Check for intelligence? { - Game_object *door = Game_object::find_blocking(tile); + Game_object *door = Game_object::find_door(tile); if (door != 0 && door->is_closed_door() && // Make sure it's not locked! door->get_framenum()%4 < 2) Index: gamewin.cc =================================================================== RCS file: /cvsroot/exult/exult/gamewin.cc,v retrieving revision 1.668 retrieving revision 1.669 diff -u -d -r1.668 -r1.669 --- gamewin.cc 17 Feb 2003 00:27:39 -0000 1.668 +++ gamewin.cc 18 Feb 2003 01:08:17 -0000 1.669 @@ -1698,7 +1698,7 @@ else { main_actor->stop(); // Stop and set resting state. - paint(); // ++++++Necessary? +// paint(); // ++++++Necessary? if (!gump_man->gump_mode() || gump_man->gumps_dont_pause_game()) main_actor->get_followers(); } Index: paths.cc =================================================================== RCS file: /cvsroot/exult/exult/paths.cc,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- paths.cc 22 Sep 2002 00:06:51 -0000 1.47 +++ paths.cc 18 Feb 2003 01:08:18 -0000 1.48 @@ -85,7 +85,7 @@ int old_lift = to.tz; // Might climb/descend. if (npc->is_blocked(to, &from)) { // Blocked, but check for a door. - Game_object *block = Game_object::find_blocking(to); + Game_object *block = Game_object::find_door(to); if (!block) return -1; if (!block->is_closed_door() || |