You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
[3.5] Update NavigationServer backport
Backports features and bugfixes from current Godot 4.0 to 3.5 and brings functions and codebase of both version largely in sync to make tutorials more compatible and future backports easier.
This commit is contained in:
@@ -32,12 +32,7 @@
|
||||
|
||||
#include "nav_map.h"
|
||||
|
||||
/**
|
||||
@author AndreaCatania
|
||||
*/
|
||||
|
||||
RvoAgent::RvoAgent() :
|
||||
map(NULL) {
|
||||
RvoAgent::RvoAgent() {
|
||||
callback.id = ObjectID(0);
|
||||
}
|
||||
|
||||
@@ -70,7 +65,7 @@ void RvoAgent::dispatch_callback() {
|
||||
return;
|
||||
}
|
||||
Object *obj = ObjectDB::get_instance(callback.id);
|
||||
if (obj == NULL) {
|
||||
if (obj == nullptr) {
|
||||
callback.id = ObjectID(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user