Permalink
Browse files

scan. bugs to be fixed!

  • Loading branch information...
1 parent fba5ec7 commit 8a3a1491d61be7b168486959250d029382a63e98 elvin committed Oct 19, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 Sources/Scan.cpp
View
@@ -1,15 +1,8 @@
#include "../Headers/models.h"
#include "../Headers/emulator.h"
-Elevator* Idlest()
-{
- EleIter iter;
- for(iter = Emulator::elevators.begin(); iter != Emulator::elevators.end(); iter++)
- {
- if((*iter)->Dir() == '-' && (*iter)->Get_nPassenger() == 0 && (*iter)->Get_inst()->size() == 0) return *iter;
- }
- return NULL;
-}
+Elevator *Idlest();
+
Elevator* Lowest()
{
EleIter iter;

0 comments on commit 8a3a149

Please sign in to comment.