diff --git a/Unuk-QT/Unuk-QT b/Unuk-QT/Unuk-QT new file mode 100755 index 0000000..f39783b Binary files /dev/null and b/Unuk-QT/Unuk-QT differ diff --git a/src/libUnuk/AStar.cpp b/src/libUnuk/AStar.cpp index 763fc4b..a04f9e3 100644 --- a/src/libUnuk/AStar.cpp +++ b/src/libUnuk/AStar.cpp @@ -56,7 +56,7 @@ AStarBase* AStar::Search(void) { // Put best on the closed list. _closedList[key] = best; - // Check id best is our goal. + // Check if best is our goal. if(best->isGoal()) return best; diff --git a/src/libUnuk/NPC.h b/src/libUnuk/NPC.h index 1e6c232..971ba93 100644 --- a/src/libUnuk/NPC.h +++ b/src/libUnuk/NPC.h @@ -2,6 +2,7 @@ #define _NPC_H_ #include "Character.h" +#include "AStar.h" class NPC : public Character { public: diff --git a/src/libUnuk/Rect.cpp b/src/libUnuk/Rect.cpp index 818642d..d2b1d53 100644 --- a/src/libUnuk/Rect.cpp +++ b/src/libUnuk/Rect.cpp @@ -46,6 +46,8 @@ void Rect::Draw(int xArg, int yArg) { offset.y = (Sint16)(yArg - camera.y); offset.w = (Sint16)rect.w; offset.h = (Sint16)rect.h; + + SDL_FillRect(screen, &offset, SDL_MapRGB(screen->format, r, g, b)); } void Rect::DrawLiteral(void) {