Skip to content

Commit

Permalink
FIXED object interaction code
Browse files Browse the repository at this point in the history
  • Loading branch information
ksterker committed Aug 5, 2010
1 parent 978d76f commit 3b403c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/event/date.cc
Expand Up @@ -246,7 +246,7 @@ std::string date::format_time (const std::string & format, const u_int32 & time)
// minutes of gametime
case 'm':
{
snprintf (str, 15, "%i", minute (time));
snprintf (str, 15, "%02i", minute (time));
break;
}
// no valid format code
Expand Down
1 change: 1 addition & 0 deletions src/py-wrappers/adonthell/py_world.i
Expand Up @@ -49,6 +49,7 @@ using namespace world;
%include "world/object.h"
%include "world/coordinates.h"
%include "world/moving.h"
%include "world/action.h"
%include "world/character.h"
%include "world/chunk.h"
%include "world/chunk_info.h"
Expand Down
4 changes: 2 additions & 2 deletions src/world/area.cc
Expand Up @@ -398,7 +398,7 @@ bool area::get_state (base::flat & file)
while (entity_data.next (&value, &size, &id) != base::flat::T_UNKNOWN)
{
// load action associated to location, if any
if ("action" == id)
if (strcmp ("action", id) == 0)
{
// get action id
actn_id = *((const char*) value);
Expand Down Expand Up @@ -437,7 +437,7 @@ bool area::get_state (base::flat & file)
while (entity_data.next (&value, &size, &id) != base::flat::T_UNKNOWN)
{
// load action associated to location, if any
if ("action" == id)
if (strcmp ("action", id) == 0)
{
// get action id
actn_id = *((const char*) value);
Expand Down

0 comments on commit 3b403c6

Please sign in to comment.