mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 14:38:20 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4896688ac5 | |||
| 0385ed8526 |
@@ -1,3 +1,9 @@
|
|||||||
|
## [22.46.1] 3/2/2024
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
* Change `UnburyCorpse` to use repository methods ([#4147](https://github.com/EQEmu/Server/pull/4147)) @joligario 2024-03-03
|
||||||
|
|
||||||
## [22.46.0] 3/2/2024
|
## [22.46.0] 3/2/2024
|
||||||
|
|
||||||
### Commands
|
### Commands
|
||||||
|
|||||||
@@ -213,23 +213,23 @@ public:
|
|||||||
const glm::vec4& position
|
const glm::vec4& position
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
auto results = db.QueryDatabase(
|
auto corpse = FindOne(db, corpse_id);
|
||||||
fmt::format(
|
|
||||||
"UPDATE `{}` SET `is_buried` = 0, `zone_id` = {}, `instance_id` = {}, `x` = {:.2f}, `y` = {:.2f}, `z` = {:.2f}, `heading` = {:.2f}, `time_of_death` = {}, `was_at_graveyard` = 0 WHERE `{}` = {}",
|
|
||||||
TableName(),
|
|
||||||
zone_id,
|
|
||||||
instance_id,
|
|
||||||
position.x,
|
|
||||||
position.y,
|
|
||||||
position.z,
|
|
||||||
position.w,
|
|
||||||
std::time(nullptr),
|
|
||||||
PrimaryKey(),
|
|
||||||
corpse_id
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
return results.Success() ? results.RowsAffected() : 0;
|
if (corpse.id == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
corpse.is_buried = 0;
|
||||||
|
corpse.zone_id = zone_id;
|
||||||
|
corpse.instance_id = instance_id;
|
||||||
|
corpse.x = position.x;
|
||||||
|
corpse.y = position.y;
|
||||||
|
corpse.z = position.z;
|
||||||
|
corpse.heading = position.w;
|
||||||
|
corpse.time_of_death = time(nullptr);
|
||||||
|
corpse.was_at_graveyard = 0;
|
||||||
|
|
||||||
|
return UpdateOne(db, corpse);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
// Build variables
|
// Build variables
|
||||||
// these get injected during the build pipeline
|
// these get injected during the build pipeline
|
||||||
#define CURRENT_VERSION "22.46.0-dev" // always append -dev to the current version for custom-builds
|
#define CURRENT_VERSION "22.46.1-dev" // always append -dev to the current version for custom-builds
|
||||||
#define LOGIN_VERSION "0.8.0"
|
#define LOGIN_VERSION "0.8.0"
|
||||||
#define COMPILE_DATE __DATE__
|
#define COMPILE_DATE __DATE__
|
||||||
#define COMPILE_TIME __TIME__
|
#define COMPILE_TIME __TIME__
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eqemu-server",
|
"name": "eqemu-server",
|
||||||
"version": "22.46.0",
|
"version": "22.46.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/EQEmu/Server.git"
|
"url": "https://github.com/EQEmu/Server.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user