mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2026-03-22 00:26:22 +00:00
feat: remove unneeded comment
This commit is contained in:
@@ -40,7 +40,6 @@ void run() {
|
|||||||
|
|
||||||
int validateAction(
|
int validateAction(
|
||||||
Player *actor, const Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr) {
|
Player *actor, const Action *action, Room *room, std::vector<Event> *relatedEvents, Player *target = nullptr) {
|
||||||
// null checks
|
|
||||||
if (!actor) {
|
if (!actor) {
|
||||||
return NO_ACTOR;
|
return NO_ACTOR;
|
||||||
}
|
}
|
||||||
@@ -53,7 +52,6 @@ int validateAction(
|
|||||||
if (!relatedEvents) {
|
if (!relatedEvents) {
|
||||||
return NO_RELATED_EVENTS;
|
return NO_RELATED_EVENTS;
|
||||||
}
|
}
|
||||||
// actual validation
|
|
||||||
if (!playerBelongsToRoom(actor, room)) {
|
if (!playerBelongsToRoom(actor, room)) {
|
||||||
return PLAYER_NOT_IN_ROOM;
|
return PLAYER_NOT_IN_ROOM;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user