]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/rollback_interface.h
Cleanup and (mostly) document util/string.h and (very) minor refactoring
[dragonfireclient.git] / src / rollback_interface.h
index ac8368f4e458fdbd89f39bebf0544d8160703f3e..f16f82b4028f910cf76e82eaf0d6ed80ccf961b8 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -63,7 +63,7 @@ struct RollbackAction
                TYPE_MODIFY_INVENTORY_STACK,
        } type;
 
-       int unix_time;
+       time_t unix_time;
        std::string actor;
        bool actor_is_guess;
 
@@ -124,7 +124,8 @@ class IRollbackReportSink
        virtual std::string getActor() = 0;
        virtual bool isActorGuess() = 0;
        virtual void setActor(const std::string &actor, bool is_guess) = 0;
-       virtual std::string getSuspect(v3s16 p, int max_time) = 0;
+       virtual std::string getSuspect(v3s16 p, float nearness_shortcut,
+                       float min_nearness) = 0;
 };
 
 class RollbackScopeActor